Texture.this - multiple declarations
Function Texture.this
Constructs a dsdl
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 dsdl
in the VRAM, which wraps SDL_CreateTexture
Parameters
Name | Description |
---|---|
renderer | dsdl the texture belongs to |
pixelFormat | dsdl that the texture pixel data is stored as |
access | dsdl enumeration which indicates its access rule |
size | the size of the texture (width and height) |
Throws
dsdl
if creation failed
Function Texture.this
Creates a dsdl
in the VRAM from a dsdl
, which wraps SDL_CreateTextureFromSurface
Parameters
Name | Description |
---|---|
renderer | dsdl the texture belongs to |
surface | dsdl for its pixel data to be copied over to the texture |
Throws
dsdl
if creation failed