Texture.this - multiple declarations
Function Texture.this
Constructs a dsdl2
from a vanilla SDL_Texture*
from bindbc-sdl
this
(
sdl .render .SDL_Texture* sdlTexture,
bool isOwner = true,
void* userRef = null
);
Parameters
Name | Description |
---|---|
sdlTexture | the SDL_Texture pointer to manage |
isOwner | whether the instance owns the given SDL_Texture* and should destroy it on its own |
userRef | optional pointer to maintain reference link, avoiding GC cleanup |
Function Texture.this
Creates a blank dsdl2
in the VRAM, which wraps SDL_CreateTexture
Parameters
Name | Description |
---|---|
renderer | dsdl2 the texture belongs to |
pixelFormat | dsdl2 that the texture pixel data is stored as |
access | dsdl2 enumeration which indicates its access rule |
size | the size of the texture (width and height) |
Throws
dsdl2
if creation failed
Function Texture.this
Creates a dsdl2
in the VRAM from a dsdl2
, which wraps SDL_CreateTextureFromSurface
Parameters
Name | Description |
---|---|
renderer | dsdl2 the texture belongs to |
surface | dsdl2 for its pixel data to be copied over to the texture |
Throws
dsdl2
if creation failed