Asset.h File Reference
#include "Meta.h"
#include <Data/Stream/MemoryDataStream.h>
#include <FlashString/Stream.hpp>
#include "resource.h"
Include dependency graph for Asset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Graphics::Asset
 An asset is used to render an Object, but is not itself drawable. More...
 
class  Graphics::AssetTemplate< asset_type >
 
class  Graphics::SolidBrush
 
class  Graphics::TextureBrush
 
class  Graphics::GradientBrush
 
class  Graphics::ImageBrush
 Brush using pixels from image. More...
 
class  Graphics::Brush
 The source of colour for drawing. More...
 
class  Graphics::Pen
 
class  Graphics::PenAsset
 
class  Graphics::TextOptions
 
class  Graphics::TypeFace
 Base class for a loaded typeface, e.g. Sans 16pt bold. More...
 
class  Graphics::Font
 Base class for a loaded font. More...
 
class  Graphics::ResourceTypeface
 
class  Graphics::ResourceFont
 
class  Graphics::TextAsset
 
class  Graphics::ObjectAsset
 
class  Graphics::AssetList
 

Namespaces

 Graphics
 
 Graphics::Resource
 

Macros

#define GRAPHICS_ASSET_TYPE_LIST(XX)
 
#define XX(tag)   tag,
 
#define GRAPHICS_BRUSH_KIND_MAP(XX)
 
#define XX(name)   name,
 

Typedefs

using Graphics::AssetType = Asset::Type
 
using Graphics::GlyphOptions = TextOptions
 

Enumerations

enum class  Graphics::BrushStyle { Graphics::FullScreen , Graphics::SourceLocal }
 

Functions

void Graphics::Resource::init (IDataSourceStream *stream)
 Application calls this method to set source for graphics resourcess. More...
 
IDataSourceStreamGraphics::Resource::createSubStream (uint32_t offset, size_t size)
 Graphics objects call this method to obtain access to resource data. More...
 
String toString (Graphics::AssetType type)
 
String toString (Graphics::Brush::Kind kind)
 

Macro Definition Documentation

◆ GRAPHICS_ASSET_TYPE_LIST

#define GRAPHICS_ASSET_TYPE_LIST (   XX)
Value:
XX(Pen) \
XX(SolidBrush) \
XX(TextureBrush) \
XX(Text) \
XX(Font) \
XX(Typeface) \
XX(Blend) \
XX(Surface) \
XX(Object)
#define XX(tag)
Definition: Asset.h:262

◆ GRAPHICS_BRUSH_KIND_MAP

#define GRAPHICS_BRUSH_KIND_MAP (   XX)
Value:
XX(None) \
XX(Color) \
XX(PackedColor) \
XX(Texture)
Color
Standard colour definitions.
Definition: Colors.h:227

◆ XX [1/2]

#define XX (   name)    name,

◆ XX [2/2]

#define XX (   tag)    tag,

Function Documentation

◆ toString() [1/2]

String toString ( Graphics::AssetType  type)

◆ toString() [2/2]

String toString ( Graphics::Brush::Kind  kind)