SDL2Texture

SDL Texture wrapper.

Constructors

this
this(SDL2Renderer renderer, uint format, uint access, int width, int height)

Creates a SDL Texture for a specific renderer.

this
this(SDL2Renderer renderer, SDL2Surface surface)

Creates a SDL Texture for a specific renderer, from an existing surface.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

access
int access()
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()

Releases the SDL resource.

format
uint format()
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height()
setAlphaMod
void setAlphaMod(ubyte a)
Undocumented in source. Be warned that the author may not have intended to support it.
setBlendMode
void setBlendMode(SDL_BlendMode blendMode)
Undocumented in source. Be warned that the author may not have intended to support it.
setColorMod
void setColorMod(ubyte r, ubyte g, ubyte b)
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width()

Variables

_handle
SDL_Texture* _handle;
Undocumented in source.

Meta