![]() |
Gorgon Game Engine
|
This interface represents a GL texture source. More...
Public Member Functions | |
virtual const Geometry::Pointf * | GetCoordinates () const =0 |
Should return the coordinates of the texture to be used. More... | |
virtual GL::Texture | GetID () const =0 |
Should return GL::Texture to be drawn. This could be 0 to denote no texture is to be used. More... | |
virtual Geometry::Size | GetImageSize () const =0 |
Should return the size of the image stored in texture. Not the whole texture size. More... | |
virtual ColorMode | GetMode () const =0 |
bool | IsPartial () const |
Returns whether this texture uses only a part of the GL::Texture. More... | |
Static Protected Attributes | |
static const Geometry::Pointf | fullcoordinates [4] |
Coordinates that selects the entire texture to be used. More... | |
This interface represents a GL texture source.
|
pure virtual |
Should return the coordinates of the texture to be used.
Implemented in Texture, and basic_TextureAnimation< T_, P_, F_ >.
|
pure virtual |
Should return GL::Texture to be drawn. This could be 0 to denote no texture is to be used.
Implemented in Texture, and basic_TextureAnimation< T_, P_, F_ >.
|
pure virtual |
Should return the size of the image stored in texture. Not the whole texture size.
Implemented in Texture, and basic_TextureAnimation< T_, P_, F_ >.
|
pure virtual |
Implemented in basic_TextureAnimation< T_, P_, F_ >, Texture, and Bitmap.
bool IsPartial | ( | ) | const |
Returns whether this texture uses only a part of the GL::Texture.
This indicates that the tiling operations should be performed without texture repeating method.
References TextureSource::fullcoordinates, and TextureSource::GetCoordinates().
|
staticprotected |
Coordinates that selects the entire texture to be used.