The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Attributes | List of all members
GPU_Context Struct Reference

#include <SDL_gpu.h>

Public Attributes

voidcontext
 
Uint8 failed
 
Uint32 windowID
 
int window_w
 
int window_h
 
int stored_window_w
 
int stored_window_h
 
Uint32 current_shader_program
 
Uint32 default_textured_shader_program
 
Uint32 default_untextured_shader_program
 
Uint8 shapes_use_blending
 
GPU_BlendMode shapes_blend_mode
 
float line_thickness
 
Uint8 use_texturing
 
int matrix_mode
 
GPU_MatrixStack projection_matrix
 
GPU_MatrixStack modelview_matrix
 
voiddata
 

Detailed Description

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

Definition at line 242 of file SDL_gpu.h.

Member Data Documentation

void* GPU_Context::context

SDL_GLContext

Definition at line 245 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), FreeTarget(), makeContextCurrent(), and MakeCurrent().

Uint32 GPU_Context::current_shader_program
void* GPU_Context::data
Uint32 GPU_Context::default_textured_shader_program
Uint32 GPU_Context::default_untextured_shader_program
Uint8 GPU_Context::failed

Definition at line 246 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), and FreeTarget().

float GPU_Context::line_thickness

Definition at line 266 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), GetLineThickness(), and SetLineThickness().

int GPU_Context::matrix_mode
GPU_MatrixStack GPU_Context::modelview_matrix
GPU_MatrixStack GPU_Context::projection_matrix
GPU_BlendMode GPU_Context::shapes_blend_mode
Uint8 GPU_Context::shapes_use_blending

Definition at line 264 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), GPU_SetShapeBlending(), and prepareToRenderShapes().

int GPU_Context::stored_window_h

Definition at line 257 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), SetWindowResolution(), and ToggleFullscreen().

int GPU_Context::stored_window_w

Window dimensions for restoring windowed mode after GPU_ToggleFullscreen(1).

Definition at line 256 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), SetWindowResolution(), and ToggleFullscreen().

Uint8 GPU_Context::use_texturing
int GPU_Context::window_h
int GPU_Context::window_w
Uint32 GPU_Context::windowID

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