ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
ITextureabstract

The interface for common texture handling. More...

Inheritance diagram for ITexture:
[legend]

Public Types

enum  tTextureMode { MODE_BilinearFiltered , MODE_NearestPixel }
 The enumeration shows the texture modes. More...
 

Public Member Functions

virtual ~ITexture ()
 virtual destructor to ensure proper cleanup.
 
virtual tResult Release ()=0
 The Function releases the Texture. More...
 
virtual tResult SetMode (tInt nMode)=0
 Set the Mode shown in tTextureMode. More...
 
virtual tVoid MakeCurrent ()=0
 Sets this texture as the current texture.
 
virtual tResult Copy (IImage *pSource)=0
 Fills the texture using a IImage. More...
 
virtual tInt GetWidth () const =0
 Gets the width of a texture (in pixel). More...
 
virtual tInt GetHeight () const =0
 Gets the height of a texture (in pixel). More...
 
virtual tInt GetBitsPerPixel () const =0
 Gets the number of bits per line of a texture. More...
 
virtual tInt GetPhysicalWidth () const =0
 Gets the physical width of the texture (in byte). More...
 
virtual tInt GetPhysicalHeight () const =0
 Gets the physical height of the texture (in byte). More...
 

Detailed Description

The interface for common texture handling.

Definition at line 132 of file gfxlibinterfaces.h.

Member Enumeration Documentation

◆ tTextureMode

The enumeration shows the texture modes.

Enumerator
MODE_BilinearFiltered 

bi linear filtered.

MODE_NearestPixel 

nearest pixel mode.

Definition at line 136 of file gfxlibinterfaces.h.

Member Function Documentation

◆ Copy()

virtual tResult Copy ( IImage pSource)
pure virtual

Fills the texture using a IImage.

Parameters
[in]pSourcenew texture
Returns
The standard result code.

◆ GetBitsPerPixel()

virtual tInt GetBitsPerPixel ( ) const
pure virtual

Gets the number of bits per line of a texture.

Returns
The /// Gets the height of a texture.

◆ GetHeight()

virtual tInt GetHeight ( ) const
pure virtual

Gets the height of a texture (in pixel).

Returns
The height of the Texture.

◆ GetPhysicalHeight()

virtual tInt GetPhysicalHeight ( ) const
pure virtual

Gets the physical height of the texture (in byte).

Returns
physical height a texture.

◆ GetPhysicalWidth()

virtual tInt GetPhysicalWidth ( ) const
pure virtual

Gets the physical width of the texture (in byte).

Returns
physical width a texture.

◆ GetWidth()

virtual tInt GetWidth ( ) const
pure virtual

Gets the width of a texture (in pixel).

Returns
The width of the Texture.

◆ Release()

virtual tResult Release ( )
pure virtual

The Function releases the Texture.

Returns
The standard result code.

◆ SetMode()

virtual tResult SetMode ( tInt  nMode)
pure virtual

Set the Mode shown in tTextureMode.

Parameters
nMode[in] ode shown in tTextureMode.
Returns
The standard result code.