Texture.this

Creates a dsdl2.Texture in the VRAM from a dsdl2.Surface, which wraps SDL_CreateTextureFromSurface

Parameters

renderer Renderer

dsdl2.Renderer the texture belongs to

surface Surface

dsdl2.Surface for its pixel data to be copied over to the texture

Throws

dsdl2.SDLException if creation failed

Meta