103 tVoid
Blit(tInt x, tInt y, tInt nWidth, tInt nHeight);
115 GLenum* pBitmapFormat,
116 GLint* pBitmapFormatInternal);
125 return static_cast<ITexture*
>(
this);
131 using dengar::cGLTexture;
Image and bitmap handling.
The interface for common texture handling.
virtual tInt GetPhysicalWidth() const =0
Gets the physical width of the texture (in byte).
virtual tResult Release()=0
The Function releases the Texture.
virtual tVoid MakeCurrent()=0
Sets this texture as the current texture.
virtual tInt GetWidth() const =0
Gets the width of a texture (in pixel).
virtual tInt GetPhysicalHeight() const =0
Gets the physical height of the texture (in byte).
virtual tResult SetMode(tInt nMode)=0
Set the Mode shown in tTextureMode.
tTextureMode
The enumeration shows the texture modes.
virtual tResult Copy(IImage *pSource)=0
Fills the texture using a IImage.
virtual tInt GetBitsPerPixel() const =0
Gets the number of bits per line of a texture.
virtual tInt GetHeight() const =0
Gets the height of a texture (in pixel).
static tResult CalcOpenGLTextureFormat(const tBitmapFormat *pBitmapInfo, GLenum *pPixelType, GLenum *pBitmapFormat, GLint *pBitmapFormatInternal)
Calculates an OpenGL texture format based on a bitmap format.
ITexture::tTextureMode m_nMode
tBool IsCompatible(const tBitmapFormat *psFormat)
tResult Create(const tBitmapFormat *psFormat, tInt nMode=0)
tVoid Blit(tInt x, tInt y, tInt nWidth, tInt nHeight)
Blits a texture to the given rectangle.
A_UTILS_D(cGLTexture)
D-Pointer implementation.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.