Lightmetrica  0.0.1.50dbee3 (yosakoi)
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions | List of all members
DefaultBitmapTexture Class Referencefinal

Public Member Functions

 LM_COMPONENT_IMPL_DEF ("bitmap")
 
virtual bool Load (const ConfigNode &node, const Assets &assets) override
 
virtual bool Load (const std::string &path, bool verticalFlip) override
 
virtual const BitmapImageBitmap () const override
 
virtual Math::Vec3 Evaluate (const Math::Vec2 &uv) const override
 
- Public Member Functions inherited from Texture
 LM_ASSET_INTERFACE_DEF ("texture","textures")
 
 LM_ASSET_NO_DEPENDENCIES ()
 
- Public Member Functions inherited from Asset
LM_PUBLIC_API std::string ID () const
 
LM_HIDDEN_API void SetID (const std::string &id)
 
- Public Member Functions inherited from Component
virtual std::string ComponentInterfaceTypeName () const =0
 
virtual std::string ComponentImplTypeName () const =0
 
- Public Member Functions inherited from SIMDAlignedType
void * operator new (std::size_t size) throw (std::bad_alloc)
 
void operator delete (void *p)
 

Static Public Member Functions

static void FreeImageErrorCallback (FREE_IMAGE_FORMAT fif, const char *message)
 

Detailed Description

Bitmap texture. Implements a bitmap texture.

Inheritance diagram for DefaultBitmapTexture:
BitmapTexture Texture Asset Component SIMDAlignedType

Member Function Documentation

virtual const BitmapImage& DefaultBitmapTexture::Bitmap ( ) const
inlineoverridevirtual

Get internal bitmap data.

Returns
A bitmap.

Implements BitmapTexture.

bool DefaultBitmapTexture::Load ( const ConfigNode node,
const Assets assets 
)
overridevirtual

Load an asset. Configure and initialize the asset by the XML elements given by #node. Some assets have references to the other assets, so #assets is also required. Dependent asset must be loaded beforehand.

Parameters
nodeXML node for the configuration.
assetsAsset manager.
trueSucceeded to load.
falseFailed to load.

Implements Asset.


The documentation for this class was generated from the following file: