Render target object for use as a blitting destination. A GPU_Target can be created from a GPU_Image with GPU_LoadTarget(). A GPU_Target can also represent a separate window with GPU_CreateTargetFromWindow(). In that case, 'context' is allocated and filled in. Note: You must have passed the SDL_WINDOW_OPENGL flag to SDL_CreateWindow() for OpenGL renderers to work with new windows. Free the memory with GPU_FreeTarget() when you're done.
- See also
- GPU_LoadTarget()
-
GPU_CreateTargetFromWindow()
-
GPU_FreeTarget()
Definition at line 403 of file SDL_gpu.h.