SDL_gpu  0.11.0
A hardware-accelerated, cross-platform 2D graphics API
Data Fields
GPU_Target Struct Reference

#include <SDL_gpu.h>

Data Fields

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

Definition at line 403 of file SDL_gpu.h.

Field Documentation

◆ base_h

Uint16 GPU_Target::base_h

Definition at line 411 of file SDL_gpu.h.

◆ base_w

Uint16 GPU_Target::base_w

Definition at line 411 of file SDL_gpu.h.

◆ camera

GPU_Camera GPU_Target::camera

Perspective and object viewing transforms.

Definition at line 420 of file SDL_gpu.h.

◆ clip_rect

GPU_Rect GPU_Target::clip_rect

Definition at line 413 of file SDL_gpu.h.

◆ color

SDL_Color GPU_Target::color

Definition at line 415 of file SDL_gpu.h.

◆ context

GPU_Context* GPU_Target::context

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

Definition at line 424 of file SDL_gpu.h.

◆ context_target

GPU_Target* GPU_Target::context_target

Definition at line 406 of file SDL_gpu.h.

◆ data

void* GPU_Target::data

Definition at line 408 of file SDL_gpu.h.

◆ h

Uint16 GPU_Target::h

Definition at line 409 of file SDL_gpu.h.

◆ image

GPU_Image* GPU_Target::image

Definition at line 407 of file SDL_gpu.h.

◆ is_alias

GPU_bool GPU_Target::is_alias

Definition at line 426 of file SDL_gpu.h.

◆ refcount

int GPU_Target::refcount

Definition at line 425 of file SDL_gpu.h.

◆ renderer

struct GPU_Renderer* GPU_Target::renderer

Definition at line 405 of file SDL_gpu.h.

◆ use_camera

GPU_bool GPU_Target::use_camera

Definition at line 421 of file SDL_gpu.h.

◆ use_clip_rect

GPU_bool GPU_Target::use_clip_rect

Definition at line 412 of file SDL_gpu.h.

◆ use_color

GPU_bool GPU_Target::use_color

Definition at line 414 of file SDL_gpu.h.

◆ using_virtual_resolution

GPU_bool GPU_Target::using_virtual_resolution

Definition at line 410 of file SDL_gpu.h.

◆ viewport

GPU_Rect GPU_Target::viewport

Definition at line 417 of file SDL_gpu.h.

◆ w

Uint16 GPU_Target::w

Definition at line 409 of file SDL_gpu.h.


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