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

#include <SDL_gpu.h>

Data Fields

void * context
 
GPU_bool failed
 
Uint32 windowID
 
int window_w
 
int window_h
 
int drawable_w
 
int drawable_h
 
int stored_window_w
 
int stored_window_h
 
Uint32 current_shader_program
 
Uint32 default_textured_shader_program
 
Uint32 default_untextured_shader_program
 
GPU_ShaderBlock current_shader_block
 
GPU_ShaderBlock default_textured_shader_block
 
GPU_ShaderBlock default_untextured_shader_block
 
GPU_bool shapes_use_blending
 
GPU_BlendMode shapes_blend_mode
 
float line_thickness
 
GPU_bool use_texturing
 
int matrix_mode
 
GPU_MatrixStack projection_matrix
 
GPU_MatrixStack modelview_matrix
 
int refcount
 
void * data
 

Detailed Description

Rendering context data. Only GPU_Targets which represent windows will store this.

Definition at line 348 of file SDL_gpu.h.

Field Documentation

◆ context

void* GPU_Context::context

SDL_GLContext

Definition at line 351 of file SDL_gpu.h.

◆ current_shader_block

GPU_ShaderBlock GPU_Context::current_shader_block

Definition at line 374 of file SDL_gpu.h.

◆ current_shader_program

Uint32 GPU_Context::current_shader_program

Internal state

Definition at line 370 of file SDL_gpu.h.

◆ data

void* GPU_Context::data

Definition at line 389 of file SDL_gpu.h.

◆ default_textured_shader_block

GPU_ShaderBlock GPU_Context::default_textured_shader_block

Definition at line 375 of file SDL_gpu.h.

◆ default_textured_shader_program

Uint32 GPU_Context::default_textured_shader_program

Definition at line 371 of file SDL_gpu.h.

◆ default_untextured_shader_block

GPU_ShaderBlock GPU_Context::default_untextured_shader_block

Definition at line 376 of file SDL_gpu.h.

◆ default_untextured_shader_program

Uint32 GPU_Context::default_untextured_shader_program

Definition at line 372 of file SDL_gpu.h.

◆ drawable_h

int GPU_Context::drawable_h

Definition at line 363 of file SDL_gpu.h.

◆ drawable_w

int GPU_Context::drawable_w

Drawable region dimensions

Definition at line 362 of file SDL_gpu.h.

◆ failed

GPU_bool GPU_Context::failed

Definition at line 352 of file SDL_gpu.h.

◆ line_thickness

float GPU_Context::line_thickness

Definition at line 380 of file SDL_gpu.h.

◆ matrix_mode

int GPU_Context::matrix_mode

Definition at line 383 of file SDL_gpu.h.

◆ modelview_matrix

GPU_MatrixStack GPU_Context::modelview_matrix

Definition at line 385 of file SDL_gpu.h.

◆ projection_matrix

GPU_MatrixStack GPU_Context::projection_matrix

Definition at line 384 of file SDL_gpu.h.

◆ refcount

int GPU_Context::refcount

Definition at line 387 of file SDL_gpu.h.

◆ shapes_blend_mode

GPU_BlendMode GPU_Context::shapes_blend_mode

Definition at line 379 of file SDL_gpu.h.

◆ shapes_use_blending

GPU_bool GPU_Context::shapes_use_blending

Definition at line 378 of file SDL_gpu.h.

◆ stored_window_h

int GPU_Context::stored_window_h

Definition at line 367 of file SDL_gpu.h.

◆ stored_window_w

int GPU_Context::stored_window_w

Window dimensions for restoring windowed mode after GPU_SetFullscreen(1,1).

Definition at line 366 of file SDL_gpu.h.

◆ use_texturing

GPU_bool GPU_Context::use_texturing

Definition at line 381 of file SDL_gpu.h.

◆ window_h

int GPU_Context::window_h

Definition at line 359 of file SDL_gpu.h.

◆ window_w

int GPU_Context::window_w

Actual window dimensions

Definition at line 358 of file SDL_gpu.h.

◆ windowID

Uint32 GPU_Context::windowID

SDL window ID

Definition at line 355 of file SDL_gpu.h.


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