Gorgon Game Engine
TextureSource Class Referenceabstract

This interface represents a GL texture source. More...

Inheritance diagram for TextureSource:
[legend]

Public Member Functions

virtual const Geometry::PointfGetCoordinates () 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...
 

Detailed Description

This interface represents a GL texture source.

Member Function Documentation

◆ GetCoordinates()

virtual const Geometry::Pointf* GetCoordinates ( ) const
pure virtual

Should return the coordinates of the texture to be used.

Implemented in Texture, and basic_TextureAnimation< T_, P_, F_ >.

◆ GetID()

virtual GL::Texture GetID ( ) const
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_ >.

◆ GetImageSize()

virtual Geometry::Size GetImageSize ( ) const
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_ >.

◆ GetMode()

virtual ColorMode GetMode ( ) const
pure virtual

◆ IsPartial()

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().

Member Data Documentation

◆ fullcoordinates

const Geometry::Pointf fullcoordinates
staticprotected

Coordinates that selects the entire texture to be used.


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