Texture

A class representing a texture. A texture contains the pixeldata that can be rendered to its associated Window.

It wrapps a SDL_Texture wich can be freely retrived and manipulated

Constructors

this
this(Window window, int textureWidth, int textureHeight)

Destructor

~this
~this()
Undocumented in source.

Members

Functions

getDepth
int getDepth()

Returns the pixels depth

getHeight
uint getHeight()

Return the texture's height in pixels

getPitch
int getPitch()

Returns the pitch

getPixelFormat
int getPixelFormat()

Returns the pixel format

getTexture
SDL_Texture* getTexture()

Retuens the internal SDL_Texture

getWidth
uint getWidth()

Returns the texture's width in pixels

lock
uint* lock()

Lock the texture to manipulate its pixeldata

unlock
void unlock()

Unlocks the texture

Meta