All Classes Functions Variables Typedefs Enumerations Groups
Public Attributes | List of all members
GPU_Target Struct Reference

#include <SDL_gpu.h>

Collaboration diagram for GPU_Target:
Collaboration graph
[legend]

Public Attributes

struct GPU_Rendererrenderer
 
GPU_Targetcontext_target
 
GPU_Imageimage
 
void * data
 
Uint16 w
 
Uint16 h
 
GPU_bool using_virtual_resolution
 
Uint16 base_w
 
Uint16 base_h
 
GPU_bool use_clip_rect
 
GPU_Rect clip_rect
 
GPU_bool use_color
 
SDL_Color color
 
GPU_Rect viewport
 
GPU_Camera camera
 
GPU_bool use_camera
 
GPU_Contextcontext
 
int refcount
 
GPU_bool is_alias
 

Detailed Description

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()

Member Data Documentation

GPU_Camera GPU_Target::camera

Perspective and object viewing transforms.

GPU_Context* GPU_Target::context

Renderer context data. NULL if the target does not represent a window or rendering context.


The documentation for this struct was generated from the following file: