#include <SDL_gpu.h>
Public Attributes | |
void * | context |
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 |
void * | data |
Rendering context data. Only GPU_Targets which represent windows will store this.
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 |
Internal state
Definition at line 260 of file SDL_gpu.h.
Referenced by ActivateShaderProgram(), CreateTargetFromWindow(), GPU_GetCurrentShaderProgram(), prepareToRenderImage(), prepareToRenderShapes(), SetAttributef(), SetAttributefv(), SetAttributei(), SetAttributeiv(), SetAttributeui(), SetAttributeuiv(), SetShaderImage(), SetUniformf(), SetUniformfv(), SetUniformi(), SetUniformiv(), SetUniformMatrixfv(), SetUniformui(), and SetUniformuiv().
void* GPU_Context::data |
Definition at line 273 of file SDL_gpu.h.
Referenced by ActivateShaderProgram(), applyTargetCamera(), applyTexturing(), bindFramebuffer(), bindTexture(), Blit(), BlitBatch(), BlitTransformX(), changeBlending(), changeBlendMode(), changeColor(), changeTexturing(), changeViewport(), CreateTargetFromWindow(), flushAndBindFramebuffer(), flushAndBindTexture(), flushAndClearBlitBufferIfCurrentFramebuffer(), flushAndClearBlitBufferIfCurrentTexture(), FlushBlitBuffer(), flushBlitBufferIfCurrentTexture(), FreeTarget(), isCurrentTarget(), MakeCurrent(), prepareToRenderImage(), prepareToRenderShapes(), readImagePixels(), SetAttributeSource(), SetShaderBlock(), and TriangleBatch().
Uint32 GPU_Context::default_textured_shader_program |
Definition at line 261 of file SDL_gpu.h.
Referenced by ActivateShaderProgram(), CreateTargetFromWindow(), get_proper_program_id(), IsDefaultShaderProgram(), prepareToRenderImage(), and prepareToRenderShapes().
Uint32 GPU_Context::default_untextured_shader_program |
Definition at line 262 of file SDL_gpu.h.
Referenced by ActivateShaderProgram(), CreateTargetFromWindow(), IsDefaultShaderProgram(), prepareToRenderImage(), and prepareToRenderShapes().
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 |
Definition at line 269 of file SDL_gpu.h.
Referenced by CreateTargetFromWindow(), GPU_GetCurrentMatrix(), GPU_MatrixMode(), GPU_PopMatrix(), and GPU_PushMatrix().
GPU_MatrixStack GPU_Context::modelview_matrix |
Definition at line 271 of file SDL_gpu.h.
Referenced by CreateTargetFromWindow(), GPU_GetCurrentMatrix(), GPU_GetModelView(), GPU_PopMatrix(), and GPU_PushMatrix().
GPU_MatrixStack GPU_Context::projection_matrix |
Definition at line 270 of file SDL_gpu.h.
Referenced by CreateTargetFromWindow(), GPU_GetCurrentMatrix(), GPU_GetProjection(), GPU_PopMatrix(), and GPU_PushMatrix().
GPU_BlendMode GPU_Context::shapes_blend_mode |
Definition at line 265 of file SDL_gpu.h.
Referenced by CreateTargetFromWindow(), GPU_SetShapeBlendEquation(), GPU_SetShapeBlendFunction(), and prepareToRenderShapes().
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 |
Definition at line 267 of file SDL_gpu.h.
Referenced by applyTexturing(), CreateTargetFromWindow(), disableTexturing(), and enableTexturing().
int GPU_Context::window_h |
Definition at line 253 of file SDL_gpu.h.
Referenced by changeViewport(), CreateTargetFromWindow(), GPU_GetVirtualCoords(), MakeCurrent(), setClipRect(), SetWindowResolution(), ToggleFullscreen(), and UnsetVirtualResolution().
int GPU_Context::window_w |
Actual window dimensions
Definition at line 252 of file SDL_gpu.h.
Referenced by CreateTargetFromWindow(), GPU_GetVirtualCoords(), MakeCurrent(), setClipRect(), SetWindowResolution(), ToggleFullscreen(), and UnsetVirtualResolution().
Uint32 GPU_Context::windowID |
SDL window ID
Definition at line 249 of file SDL_gpu.h.
Referenced by CreateTargetFromWindow(), Flip(), GPU_AddWindowMapping(), GPU_RemoveWindowMapping(), GPU_RemoveWindowMappingByTarget(), Init(), makeContextCurrent(), MakeCurrent(), SetAsCurrent(), SetWindowResolution(), and ToggleFullscreen().