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_Renderer Struct Reference

#include <SDL_gpu.h>

Public Attributes

GPU_RendererID id
 
GPU_RendererID requested_id
 
GPU_WindowFlagEnum SDL_init_flags
 
GPU_InitFlagEnum GPU_init_flags
 
GPU_ShaderLanguageEnum shader_language
 
int shader_version
 
GPU_FeatureEnum enabled_features
 
GPU_Targetcurrent_context_target
 
GPU_Target *(* Init )(GPU_Renderer *renderer, GPU_RendererID renderer_request, Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags)
 
Uint8(* IsFeatureEnabled )(GPU_Renderer *renderer, GPU_FeatureEnum feature)
 
GPU_Target *(* CreateTargetFromWindow )(GPU_Renderer *renderer, Uint32 windowID, GPU_Target *target)
 
GPU_Target *(* CreateAliasTarget )(GPU_Renderer *renderer, GPU_Target *target)
 
void(* MakeCurrent )(GPU_Renderer *renderer, GPU_Target *target, Uint32 windowID)
 
void(* SetAsCurrent )(GPU_Renderer *renderer)
 
Uint8(* SetWindowResolution )(GPU_Renderer *renderer, Uint16 w, Uint16 h)
 
void(* SetVirtualResolution )(GPU_Renderer *renderer, GPU_Target *target, Uint16 w, Uint16 h)
 
void(* UnsetVirtualResolution )(GPU_Renderer *renderer, GPU_Target *target)
 
void(* Quit )(GPU_Renderer *renderer)
 
Uint8(* ToggleFullscreen )(GPU_Renderer *renderer, Uint8 use_desktop_resolution)
 
GPU_Camera(* SetCamera )(GPU_Renderer *renderer, GPU_Target *target, GPU_Camera *cam)
 
GPU_Image *(* CreateImage )(GPU_Renderer *renderer, Uint16 w, Uint16 h, GPU_FormatEnum format)
 
GPU_Image *(* LoadImage )(GPU_Renderer *renderer, const char *filename)
 
GPU_Image *(* CreateAliasImage )(GPU_Renderer *renderer, GPU_Image *image)
 
Uint8(* SaveImage )(GPU_Renderer *renderer, GPU_Image *image, const char *filename)
 
GPU_Image *(* CopyImage )(GPU_Renderer *renderer, GPU_Image *image)
 
void(* UpdateImage )(GPU_Renderer *renderer, GPU_Image *image, SDL_Surface *surface, const GPU_Rect *surface_rect)
 
void(* UpdateSubImage )(GPU_Renderer *renderer, GPU_Image *image, const GPU_Rect *image_rect, SDL_Surface *surface, const GPU_Rect *surface_rect)
 
void(* UpdateImageBytes )(GPU_Renderer *renderer, GPU_Image *image, const GPU_Rect *image_rect, const unsigned char *bytes, int bytes_per_row)
 
GPU_Image *(* CopyImageFromSurface )(GPU_Renderer *renderer, SDL_Surface *surface)
 
GPU_Image *(* CopyImageFromTarget )(GPU_Renderer *renderer, GPU_Target *target)
 
SDL_Surface *(* CopySurfaceFromTarget )(GPU_Renderer *renderer, GPU_Target *target)
 
SDL_Surface *(* CopySurfaceFromImage )(GPU_Renderer *renderer, GPU_Image *image)
 
void(* FreeImage )(GPU_Renderer *renderer, GPU_Image *image)
 
GPU_Target *(* LoadTarget )(GPU_Renderer *renderer, GPU_Image *image)
 
void(* FreeTarget )(GPU_Renderer *renderer, GPU_Target *target)
 
void(* Blit )(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y)
 
void(* BlitRotate )(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float degrees)
 
void(* BlitScale )(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float scaleX, float scaleY)
 
void(* BlitTransform )(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float degrees, float scaleX, float scaleY)
 
void(* BlitTransformX )(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float pivot_x, float pivot_y, float degrees, float scaleX, float scaleY)
 
void(* BlitTransformMatrix )(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float *matrix3x3)
 
void(* BlitBatch )(GPU_Renderer *renderer, GPU_Image *image, GPU_Target *target, unsigned int num_sprites, float *values, GPU_BlitFlagEnum flags)
 
void(* TriangleBatch )(GPU_Renderer *renderer, GPU_Image *image, GPU_Target *target, unsigned short num_vertices, float *values, unsigned int num_indices, unsigned short *indices, GPU_BlitFlagEnum flags)
 
void(* GenerateMipmaps )(GPU_Renderer *renderer, GPU_Image *image)
 
GPU_Rect(* SetClip )(GPU_Renderer *renderer, GPU_Target *target, Sint16 x, Sint16 y, Uint16 w, Uint16 h)
 
void(* UnsetClip )(GPU_Renderer *renderer, GPU_Target *target)
 
SDL_Color(* GetPixel )(GPU_Renderer *renderer, GPU_Target *target, Sint16 x, Sint16 y)
 
void(* SetImageFilter )(GPU_Renderer *renderer, GPU_Image *image, GPU_FilterEnum filter)
 
void(* SetWrapMode )(GPU_Renderer *renderer, GPU_Image *image, GPU_WrapEnum wrap_mode_x, GPU_WrapEnum wrap_mode_y)
 
void(* Clear )(GPU_Renderer *renderer, GPU_Target *target)
 
void(* ClearRGBA )(GPU_Renderer *renderer, GPU_Target *target, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
 
void(* FlushBlitBuffer )(GPU_Renderer *renderer)
 
void(* Flip )(GPU_Renderer *renderer, GPU_Target *target)
 
Uint32(* CompileShader_RW )(GPU_Renderer *renderer, GPU_ShaderEnum shader_type, SDL_RWops *shader_source)
 
Uint32(* CompileShader )(GPU_Renderer *renderer, GPU_ShaderEnum shader_type, const char *shader_source)
 
Uint32(* LinkShaderProgram )(GPU_Renderer *renderer, Uint32 program_object)
 
Uint32(* LinkShaders )(GPU_Renderer *renderer, Uint32 shader_object1, Uint32 shader_object2)
 
void(* FreeShader )(GPU_Renderer *renderer, Uint32 shader_object)
 
void(* FreeShaderProgram )(GPU_Renderer *renderer, Uint32 program_object)
 
void(* AttachShader )(GPU_Renderer *renderer, Uint32 program_object, Uint32 shader_object)
 
void(* DetachShader )(GPU_Renderer *renderer, Uint32 program_object, Uint32 shader_object)
 
Uint8(* IsDefaultShaderProgram )(GPU_Renderer *renderer, Uint32 program_object)
 
void(* ActivateShaderProgram )(GPU_Renderer *renderer, Uint32 program_object, GPU_ShaderBlock *block)
 
void(* DeactivateShaderProgram )(GPU_Renderer *renderer)
 
const char *(* GetShaderMessage )(GPU_Renderer *renderer)
 
int(* GetAttributeLocation )(GPU_Renderer *renderer, Uint32 program_object, const char *attrib_name)
 
int(* GetUniformLocation )(GPU_Renderer *renderer, Uint32 program_object, const char *uniform_name)
 
GPU_ShaderBlock(* LoadShaderBlock )(GPU_Renderer *renderer, Uint32 program_object, const char *position_name, const char *texcoord_name, const char *color_name, const char *modelViewMatrix_name)
 
void(* SetShaderBlock )(GPU_Renderer *renderer, GPU_ShaderBlock block)
 
void(* SetShaderImage )(GPU_Renderer *renderer, GPU_Image *image, int location, int image_unit)
 
void(* GetUniformiv )(GPU_Renderer *renderer, Uint32 program_object, int location, int *values)
 
void(* SetUniformi )(GPU_Renderer *renderer, int location, int value)
 
void(* SetUniformiv )(GPU_Renderer *renderer, int location, int num_elements_per_value, int num_values, int *values)
 
void(* GetUniformuiv )(GPU_Renderer *renderer, Uint32 program_object, int location, unsigned int *values)
 
void(* SetUniformui )(GPU_Renderer *renderer, int location, unsigned int value)
 
void(* SetUniformuiv )(GPU_Renderer *renderer, int location, int num_elements_per_value, int num_values, unsigned int *values)
 
void(* GetUniformfv )(GPU_Renderer *renderer, Uint32 program_object, int location, float *values)
 
void(* SetUniformf )(GPU_Renderer *renderer, int location, float value)
 
void(* SetUniformfv )(GPU_Renderer *renderer, int location, int num_elements_per_value, int num_values, float *values)
 
void(* SetUniformMatrixfv )(GPU_Renderer *renderer, int location, int num_matrices, int num_rows, int num_columns, Uint8 transpose, float *values)
 
void(* SetAttributef )(GPU_Renderer *renderer, int location, float value)
 
void(* SetAttributei )(GPU_Renderer *renderer, int location, int value)
 
void(* SetAttributeui )(GPU_Renderer *renderer, int location, unsigned int value)
 
void(* SetAttributefv )(GPU_Renderer *renderer, int location, int num_elements, float *value)
 
void(* SetAttributeiv )(GPU_Renderer *renderer, int location, int num_elements, int *value)
 
void(* SetAttributeuiv )(GPU_Renderer *renderer, int location, int num_elements, unsigned int *value)
 
void(* SetAttributeSource )(GPU_Renderer *renderer, int num_values, GPU_Attribute source)
 
float(* SetLineThickness )(GPU_Renderer *renderer, float thickness)
 
float(* GetLineThickness )(GPU_Renderer *renderer)
 
void(* Pixel )(GPU_Renderer *renderer, GPU_Target *target, float x, float y, SDL_Color color)
 
void(* Line )(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
 
void(* Arc )(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, float start_angle, float end_angle, SDL_Color color)
 
void(* ArcFilled )(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, float start_angle, float end_angle, SDL_Color color)
 
void(* Circle )(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, SDL_Color color)
 
void(* CircleFilled )(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, SDL_Color color)
 
void(* Sector )(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float inner_radius, float outer_radius, float start_angle, float end_angle, SDL_Color color)
 
void(* SectorFilled )(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float inner_radius, float outer_radius, float start_angle, float end_angle, SDL_Color color)
 
void(* Tri )(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float x3, float y3, SDL_Color color)
 
void(* TriFilled )(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float x3, float y3, SDL_Color color)
 
void(* Rectangle )(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
 
void(* RectangleFilled )(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
 
void(* RectangleRound )(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float radius, SDL_Color color)
 
void(* RectangleRoundFilled )(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float radius, SDL_Color color)
 
void(* Polygon )(GPU_Renderer *renderer, GPU_Target *target, unsigned int num_vertices, float *vertices, SDL_Color color)
 
void(* PolygonFilled )(GPU_Renderer *renderer, GPU_Target *target, unsigned int num_vertices, float *vertices, SDL_Color color)
 

Detailed Description

Renderer object which specializes the API to a particular backend.

Definition at line 481 of file SDL_gpu.h.

Member Data Documentation

void(* GPU_Renderer::ActivateShaderProgram)(GPU_Renderer *renderer, Uint32 program_object, GPU_ShaderBlock *block)
void(* GPU_Renderer::Arc)(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, float start_angle, float end_angle, SDL_Color color)
See also
GPU_Arc()

Definition at line 752 of file SDL_gpu.h.

void(* GPU_Renderer::ArcFilled)(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, float start_angle, float end_angle, SDL_Color color)
See also
GPU_ArcFilled()

Definition at line 755 of file SDL_gpu.h.

void(* GPU_Renderer::AttachShader)(GPU_Renderer *renderer, Uint32 program_object, Uint32 shader_object)
See also
GPU_AttachShader()

Definition at line 653 of file SDL_gpu.h.

Referenced by GPU_AttachShader().

void(* GPU_Renderer::Blit)(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y)
See also
GPU_Blit()

Definition at line 583 of file SDL_gpu.h.

Referenced by BlitTransformMatrix(), CopyImage(), and GPU_Blit().

void(* GPU_Renderer::BlitBatch)(GPU_Renderer *renderer, GPU_Image *image, GPU_Target *target, unsigned int num_sprites, float *values, GPU_BlitFlagEnum flags)
See also
GPU_BlitBatch()

Definition at line 601 of file SDL_gpu.h.

Referenced by GPU_BlitBatch(), and GPU_BlitBatchSeparate().

void(* GPU_Renderer::BlitRotate)(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float degrees)
See also
GPU_BlitRotate()

Definition at line 586 of file SDL_gpu.h.

Referenced by GPU_BlitRotate().

void(* GPU_Renderer::BlitScale)(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float scaleX, float scaleY)
See also
GPU_BlitScale()

Definition at line 589 of file SDL_gpu.h.

Referenced by GPU_BlitScale().

void(* GPU_Renderer::BlitTransform)(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float degrees, float scaleX, float scaleY)
See also
GPU_BlitTransform

Definition at line 592 of file SDL_gpu.h.

Referenced by GPU_BlitTransform().

void(* GPU_Renderer::BlitTransformMatrix)(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float *matrix3x3)
See also
GPU_BlitTransformMatrix()

Definition at line 598 of file SDL_gpu.h.

Referenced by GPU_BlitTransformMatrix().

void(* GPU_Renderer::BlitTransformX)(GPU_Renderer *renderer, GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float pivot_x, float pivot_y, float degrees, float scaleX, float scaleY)
See also
GPU_BlitTransformX()

Definition at line 595 of file SDL_gpu.h.

Referenced by BlitRotate(), BlitScale(), BlitTransform(), and GPU_BlitTransformX().

void(* GPU_Renderer::Circle)(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, SDL_Color color)
See also
GPU_Circle()

Definition at line 758 of file SDL_gpu.h.

void(* GPU_Renderer::CircleFilled)(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, SDL_Color color)
See also
GPU_CircleFilled()

Definition at line 761 of file SDL_gpu.h.

void(* GPU_Renderer::Clear)(GPU_Renderer *renderer, GPU_Target *target)
See also
GPU_Clear()

Definition at line 625 of file SDL_gpu.h.

Referenced by GPU_Clear().

void(* GPU_Renderer::ClearRGBA)(GPU_Renderer *renderer, GPU_Target *target, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
See also
GPU_ClearRGBA()

Definition at line 627 of file SDL_gpu.h.

Referenced by GPU_ClearColor(), and GPU_ClearRGBA().

Uint32(* GPU_Renderer::CompileShader)(GPU_Renderer *renderer, GPU_ShaderEnum shader_type, const char *shader_source)
See also
GPU_CompileShader()

Definition at line 638 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), and GPU_CompileShader().

Uint32(* GPU_Renderer::CompileShader_RW)(GPU_Renderer *renderer, GPU_ShaderEnum shader_type, SDL_RWops *shader_source)
See also
GPU_CompileShader_RW()

Definition at line 635 of file SDL_gpu.h.

Referenced by CompileShader(), and GPU_CompileShader_RW().

GPU_Image*(* GPU_Renderer::CopyImage)(GPU_Renderer *renderer, GPU_Image *image)
See also
GPU_CopyImage()

Definition at line 550 of file SDL_gpu.h.

Referenced by GPU_CopyImage().

GPU_Image*(* GPU_Renderer::CopyImageFromSurface)(GPU_Renderer *renderer, SDL_Surface *surface)
See also
GPU_CopyImageFromSurface()

Definition at line 562 of file SDL_gpu.h.

Referenced by CopyImageFromTarget(), GPU_CopyImageFromSurface(), and LoadImage().

GPU_Image*(* GPU_Renderer::CopyImageFromTarget)(GPU_Renderer *renderer, GPU_Target *target)
See also
GPU_CopyImageFromTarget()

Definition at line 565 of file SDL_gpu.h.

Referenced by GPU_CopyImageFromTarget().

SDL_Surface*(* GPU_Renderer::CopySurfaceFromImage)(GPU_Renderer *renderer, GPU_Image *image)
See also
GPU_CopySurfaceFromImage()

Definition at line 571 of file SDL_gpu.h.

Referenced by GPU_CopySurfaceFromImage().

SDL_Surface*(* GPU_Renderer::CopySurfaceFromTarget)(GPU_Renderer *renderer, GPU_Target *target)
See also
GPU_CopySurfaceFromTarget()

Definition at line 568 of file SDL_gpu.h.

Referenced by CopyImageFromTarget(), and GPU_CopySurfaceFromTarget().

GPU_Image*(* GPU_Renderer::CreateAliasImage)(GPU_Renderer *renderer, GPU_Image *image)
See also
GPU_CreateAliasImage()

Definition at line 544 of file SDL_gpu.h.

Referenced by GPU_CreateAliasImage().

GPU_Target*(* GPU_Renderer::CreateAliasTarget)(GPU_Renderer *renderer, GPU_Target *target)
See also
GPU_CreateAliasTarget()

Definition at line 511 of file SDL_gpu.h.

Referenced by GPU_CreateAliasTarget().

GPU_Image*(* GPU_Renderer::CreateImage)(GPU_Renderer *renderer, Uint16 w, Uint16 h, GPU_FormatEnum format)
See also
GPU_CreateImage()

Definition at line 538 of file SDL_gpu.h.

Referenced by CopyImage(), CopyImageFromSurface(), and GPU_CreateImage().

GPU_Target*(* GPU_Renderer::CreateTargetFromWindow)(GPU_Renderer *renderer, Uint32 windowID, GPU_Target *target)
See also
GPU_CreateTargetFromWindow The extra parameter is used internally to reuse/reinit a target.

Definition at line 508 of file SDL_gpu.h.

Referenced by GPU_CreateTargetFromWindow(), and Init().

GPU_Target* GPU_Renderer::current_context_target

Current display target

Definition at line 494 of file SDL_gpu.h.

Referenced by ActivateShaderProgram(), applyTexturing(), bindFramebuffer(), bindTexture(), Blit(), BlitBatch(), BlitTransformX(), changeBlending(), changeBlendMode(), changeColor(), changeTexturing(), CreateTargetFromWindow(), disableTexturing(), enableTexturing(), Flip(), flushAndBindFramebuffer(), flushAndBindTexture(), flushAndClearBlitBufferIfCurrentFramebuffer(), flushAndClearBlitBufferIfCurrentTexture(), FlushBlitBuffer(), flushBlitBufferIfCurrentTexture(), FreeTarget(), get_proper_program_id(), GetLineThickness(), GPU_ActivateShaderProgram(), GPU_AttachShader(), GPU_Clear(), GPU_ClearColor(), GPU_ClearRGBA(), GPU_CompileShader(), GPU_CompileShader_RW(), GPU_CopyImage(), GPU_CopyImageFromSurface(), GPU_CopyImageFromTarget(), GPU_CopySurfaceFromImage(), GPU_CopySurfaceFromTarget(), GPU_CreateAliasImage(), GPU_CreateAliasTarget(), GPU_CreateImage(), GPU_CreateRenderer_GLES_1(), GPU_CreateRenderer_GLES_2(), GPU_CreateRenderer_OpenGL_1(), GPU_CreateRenderer_OpenGL_1_BASE(), GPU_CreateRenderer_OpenGL_2(), GPU_CreateRenderer_OpenGL_3(), GPU_CreateTargetFromWindow(), GPU_DeactivateShaderProgram(), GPU_DetachShader(), GPU_Flip(), GPU_FlushBlitBuffer(), GPU_FreeImage(), GPU_FreeShader(), GPU_FreeShaderProgram(), GPU_FreeTarget(), GPU_GenerateMipmaps(), GPU_GetAttributeLocation(), GPU_GetContextTarget(), GPU_GetCurrentShaderProgram(), GPU_GetPixel(), GPU_GetShaderMessage(), GPU_GetUniformfv(), GPU_GetUniformiv(), GPU_GetUniformLocation(), GPU_GetUniformMatrixfv(), GPU_GetUniformuiv(), GPU_IsDefaultShaderProgram(), GPU_IsFeatureEnabled(), GPU_LinkShaderProgram(), GPU_LinkShaders(), GPU_LoadImage(), GPU_LoadShaderBlock(), GPU_LoadTarget(), GPU_MakeCurrent(), GPU_SaveImage(), GPU_SetAttributef(), GPU_SetAttributefv(), GPU_SetAttributei(), GPU_SetAttributeiv(), GPU_SetAttributeSource(), GPU_SetAttributeui(), GPU_SetAttributeuiv(), GPU_SetCamera(), GPU_SetClip(), GPU_SetClipRect(), GPU_SetImageFilter(), GPU_SetShaderBlock(), GPU_SetShaderImage(), GPU_SetShapeBlendEquation(), GPU_SetShapeBlendFunction(), GPU_SetShapeBlending(), GPU_SetShapeBlendMode(), GPU_SetUniformf(), GPU_SetUniformfv(), GPU_SetUniformi(), GPU_SetUniformiv(), GPU_SetUniformMatrixfv(), GPU_SetUniformui(), GPU_SetUniformuiv(), GPU_SetVirtualResolution(), GPU_SetWindowResolution(), GPU_SetWrapMode(), GPU_ToggleFullscreen(), GPU_UnsetClip(), GPU_UnsetVirtualResolution(), GPU_UpdateImage(), GPU_UpdateImageBytes(), GPU_UpdateSubImage(), Init(), isCurrentTarget(), IsDefaultShaderProgram(), makeContextCurrent(), MakeCurrent(), prepareToRenderImage(), prepareToRenderShapes(), Quit(), readImagePixels(), SetAsCurrent(), SetAttributef(), SetAttributefv(), SetAttributei(), SetAttributeiv(), SetAttributeSource(), SetAttributeui(), SetAttributeuiv(), setClipRect(), SetLineThickness(), SetShaderBlock(), SetShaderImage(), SetUniformf(), SetUniformfv(), SetUniformi(), SetUniformiv(), SetUniformMatrixfv(), SetUniformui(), SetUniformuiv(), SetWindowResolution(), ToggleFullscreen(), and TriangleBatch().

void(* GPU_Renderer::DeactivateShaderProgram)(GPU_Renderer *renderer)
See also
GPU_DeactivateShaderProgram()

Definition at line 665 of file SDL_gpu.h.

Referenced by GPU_DeactivateShaderProgram().

void(* GPU_Renderer::DetachShader)(GPU_Renderer *renderer, Uint32 program_object, Uint32 shader_object)
See also
GPU_DetachShader()

Definition at line 656 of file SDL_gpu.h.

Referenced by GPU_DetachShader().

GPU_FeatureEnum GPU_Renderer::enabled_features
void(* GPU_Renderer::Flip)(GPU_Renderer *renderer, GPU_Target *target)
See also
GPU_Flip()

Definition at line 631 of file SDL_gpu.h.

Referenced by GPU_Flip().

void(* GPU_Renderer::FlushBlitBuffer)(GPU_Renderer *renderer)
void(* GPU_Renderer::FreeImage)(GPU_Renderer *renderer, GPU_Image *image)
See also
GPU_FreeImage()

Definition at line 574 of file SDL_gpu.h.

Referenced by GPU_FreeImage().

void(* GPU_Renderer::FreeShader)(GPU_Renderer *renderer, Uint32 shader_object)
See also
GPU_FreeShader()

Definition at line 647 of file SDL_gpu.h.

Referenced by GPU_FreeShader().

void(* GPU_Renderer::FreeShaderProgram)(GPU_Renderer *renderer, Uint32 program_object)
See also
GPU_FreeShaderProgram()

Definition at line 650 of file SDL_gpu.h.

Referenced by GPU_FreeShaderProgram().

void(* GPU_Renderer::FreeTarget)(GPU_Renderer *renderer, GPU_Target *target)
See also
GPU_FreeTarget()

Definition at line 580 of file SDL_gpu.h.

Referenced by FreeImage(), GPU_FreeTarget(), Quit(), and readImagePixels().

void(* GPU_Renderer::GenerateMipmaps)(GPU_Renderer *renderer, GPU_Image *image)
See also
GPU_GenerateMipmaps()

Definition at line 607 of file SDL_gpu.h.

Referenced by GPU_GenerateMipmaps().

int(* GPU_Renderer::GetAttributeLocation)(GPU_Renderer *renderer, Uint32 program_object, const char *attrib_name)
See also
GPU_GetAttribLocation()

Definition at line 671 of file SDL_gpu.h.

Referenced by GPU_GetAttributeLocation(), and LoadShaderBlock().

float(* GPU_Renderer::GetLineThickness)(GPU_Renderer *renderer)
See also
GPU_GetLineThickness()

Definition at line 743 of file SDL_gpu.h.

Referenced by Line(), and Rectangle().

SDL_Color(* GPU_Renderer::GetPixel)(GPU_Renderer *renderer, GPU_Target *target, Sint16 x, Sint16 y)
See also
GPU_GetPixel()

Definition at line 616 of file SDL_gpu.h.

Referenced by GPU_GetPixel().

const char*(* GPU_Renderer::GetShaderMessage)(GPU_Renderer *renderer)
See also
GPU_GetShaderMessage()

Definition at line 668 of file SDL_gpu.h.

Referenced by GPU_GetShaderMessage().

void(* GPU_Renderer::GetUniformfv)(GPU_Renderer *renderer, Uint32 program_object, int location, float *values)
See also
GPU_GetUniformfv()

Definition at line 704 of file SDL_gpu.h.

Referenced by GPU_GetUniformfv(), and GPU_GetUniformMatrixfv().

void(* GPU_Renderer::GetUniformiv)(GPU_Renderer *renderer, Uint32 program_object, int location, int *values)
See also
GPU_GetUniformiv()

Definition at line 686 of file SDL_gpu.h.

Referenced by GPU_GetUniformiv().

int(* GPU_Renderer::GetUniformLocation)(GPU_Renderer *renderer, Uint32 program_object, const char *uniform_name)
See also
GPU_GetUniformLocation()

Definition at line 674 of file SDL_gpu.h.

Referenced by GPU_GetUniformLocation(), and LoadShaderBlock().

void(* GPU_Renderer::GetUniformuiv)(GPU_Renderer *renderer, Uint32 program_object, int location, unsigned int *values)
See also
GPU_GetUniformuiv()

Definition at line 695 of file SDL_gpu.h.

Referenced by GPU_GetUniformuiv().

GPU_InitFlagEnum GPU_Renderer::GPU_init_flags

Definition at line 487 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), and Init().

GPU_RendererID GPU_Renderer::id
GPU_Target*(* GPU_Renderer::Init)(GPU_Renderer *renderer, GPU_RendererID renderer_request, Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags)
See also
GPU_Init()
GPU_InitRenderer()
GPU_InitRendererByID()

Definition at line 501 of file SDL_gpu.h.

Referenced by GPU_InitRendererByID().

Uint8(* GPU_Renderer::IsDefaultShaderProgram)(GPU_Renderer *renderer, Uint32 program_object)
See also
GPU_IsDefaultShaderProgram()

Definition at line 659 of file SDL_gpu.h.

Referenced by GPU_IsDefaultShaderProgram().

Uint8(* GPU_Renderer::IsFeatureEnabled)(GPU_Renderer *renderer, GPU_FeatureEnum feature)
See also
GPU_IsFeatureEnabled()

Definition at line 504 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), and GPU_IsFeatureEnabled().

void(* GPU_Renderer::Line)(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
See also
GPU_Line()

Definition at line 749 of file SDL_gpu.h.

Uint32(* GPU_Renderer::LinkShaderProgram)(GPU_Renderer *renderer, Uint32 program_object)
See also
GPU_LinkShaderProgram()

Definition at line 641 of file SDL_gpu.h.

Referenced by GPU_LinkShaderProgram(), and LinkShaders().

Uint32(* GPU_Renderer::LinkShaders)(GPU_Renderer *renderer, Uint32 shader_object1, Uint32 shader_object2)
See also
GPU_LinkShaders()

Definition at line 644 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), and GPU_LinkShaders().

GPU_Image*(* GPU_Renderer::LoadImage)(GPU_Renderer *renderer, const char *filename)
See also
GPU_LoadImage()

Definition at line 541 of file SDL_gpu.h.

Referenced by GPU_LoadImage().

GPU_ShaderBlock(* GPU_Renderer::LoadShaderBlock)(GPU_Renderer *renderer, Uint32 program_object, const char *position_name, const char *texcoord_name, const char *color_name, const char *modelViewMatrix_name)
See also
GPU_LoadShaderBlock()

Definition at line 677 of file SDL_gpu.h.

Referenced by GPU_LoadShaderBlock().

GPU_Target*(* GPU_Renderer::LoadTarget)(GPU_Renderer *renderer, GPU_Image *image)
See also
GPU_LoadTarget()

Definition at line 577 of file SDL_gpu.h.

Referenced by GPU_LoadTarget(), and readImagePixels().

void(* GPU_Renderer::MakeCurrent)(GPU_Renderer *renderer, GPU_Target *target, Uint32 windowID)
See also
GPU_MakeCurrent

Definition at line 514 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), GPU_MakeCurrent(), and SetAsCurrent().

void(* GPU_Renderer::Pixel)(GPU_Renderer *renderer, GPU_Target *target, float x, float y, SDL_Color color)
See also
GPU_Pixel()

Definition at line 746 of file SDL_gpu.h.

void(* GPU_Renderer::Polygon)(GPU_Renderer *renderer, GPU_Target *target, unsigned int num_vertices, float *vertices, SDL_Color color)
See also
GPU_Polygon()

Definition at line 788 of file SDL_gpu.h.

void(* GPU_Renderer::PolygonFilled)(GPU_Renderer *renderer, GPU_Target *target, unsigned int num_vertices, float *vertices, SDL_Color color)
See also
GPU_PolygonFilled()

Definition at line 791 of file SDL_gpu.h.

void(* GPU_Renderer::Quit)(GPU_Renderer *renderer)

Clean up the renderer state.

Definition at line 529 of file SDL_gpu.h.

Referenced by GPU_CloseCurrentRenderer(), and GPU_Quit().

void(* GPU_Renderer::Rectangle)(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
See also
GPU_Rectangle()

Definition at line 776 of file SDL_gpu.h.

void(* GPU_Renderer::RectangleFilled)(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
See also
GPU_RectangleFilled()

Definition at line 779 of file SDL_gpu.h.

void(* GPU_Renderer::RectangleRound)(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float radius, SDL_Color color)
See also
GPU_RectangleRound()

Definition at line 782 of file SDL_gpu.h.

void(* GPU_Renderer::RectangleRoundFilled)(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float radius, SDL_Color color)
See also
GPU_RectangleRoundFilled()

Definition at line 785 of file SDL_gpu.h.

GPU_RendererID GPU_Renderer::requested_id

Definition at line 485 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow(), and Init().

Uint8(* GPU_Renderer::SaveImage)(GPU_Renderer *renderer, GPU_Image *image, const char *filename)
See also
GPU_SaveImage()

Definition at line 547 of file SDL_gpu.h.

Referenced by GPU_SaveImage().

GPU_WindowFlagEnum GPU_Renderer::SDL_init_flags

Definition at line 486 of file SDL_gpu.h.

Referenced by Init().

void(* GPU_Renderer::Sector)(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float inner_radius, float outer_radius, float start_angle, float end_angle, SDL_Color color)
See also
GPU_Sector()

Definition at line 764 of file SDL_gpu.h.

void(* GPU_Renderer::SectorFilled)(GPU_Renderer *renderer, GPU_Target *target, float x, float y, float inner_radius, float outer_radius, float start_angle, float end_angle, SDL_Color color)
See also
GPU_SectorFilled()

Definition at line 767 of file SDL_gpu.h.

void(* GPU_Renderer::SetAsCurrent)(GPU_Renderer *renderer)

Sets up this renderer to act as the current renderer. Called automatically by GPU_SetCurrentRenderer().

Definition at line 517 of file SDL_gpu.h.

Referenced by GPU_SetCurrentRenderer().

void(* GPU_Renderer::SetAttributef)(GPU_Renderer *renderer, int location, float value)
See also
GPU_SetAttributef()

Definition at line 716 of file SDL_gpu.h.

Referenced by GPU_SetAttributef().

void(* GPU_Renderer::SetAttributefv)(GPU_Renderer *renderer, int location, int num_elements, float *value)
See also
GPU_SetAttributefv()

Definition at line 725 of file SDL_gpu.h.

Referenced by GPU_SetAttributefv().

void(* GPU_Renderer::SetAttributei)(GPU_Renderer *renderer, int location, int value)
See also
GPU_SetAttributei()

Definition at line 719 of file SDL_gpu.h.

Referenced by GPU_SetAttributei().

void(* GPU_Renderer::SetAttributeiv)(GPU_Renderer *renderer, int location, int num_elements, int *value)
See also
GPU_SetAttributeiv()

Definition at line 728 of file SDL_gpu.h.

Referenced by GPU_SetAttributeiv().

void(* GPU_Renderer::SetAttributeSource)(GPU_Renderer *renderer, int num_values, GPU_Attribute source)
See also
GPU_SetAttributeSource()

Definition at line 734 of file SDL_gpu.h.

Referenced by GPU_SetAttributeSource().

void(* GPU_Renderer::SetAttributeui)(GPU_Renderer *renderer, int location, unsigned int value)
See also
GPU_SetAttributeui()

Definition at line 722 of file SDL_gpu.h.

Referenced by GPU_SetAttributeui().

void(* GPU_Renderer::SetAttributeuiv)(GPU_Renderer *renderer, int location, int num_elements, unsigned int *value)
See also
GPU_SetAttributeuiv()

Definition at line 731 of file SDL_gpu.h.

Referenced by GPU_SetAttributeuiv().

GPU_Camera(* GPU_Renderer::SetCamera)(GPU_Renderer *renderer, GPU_Target *target, GPU_Camera *cam)
See also
GPU_SetCamera()

Definition at line 535 of file SDL_gpu.h.

Referenced by GPU_SetCamera(), and prepareToRenderToTarget().

GPU_Rect(* GPU_Renderer::SetClip)(GPU_Renderer *renderer, GPU_Target *target, Sint16 x, Sint16 y, Uint16 w, Uint16 h)
See also
GPU_SetClip()

Definition at line 610 of file SDL_gpu.h.

Referenced by GPU_SetClip(), and GPU_SetClipRect().

void(* GPU_Renderer::SetImageFilter)(GPU_Renderer *renderer, GPU_Image *image, GPU_FilterEnum filter)
See also
GPU_SetImageFilter()

Definition at line 619 of file SDL_gpu.h.

Referenced by GPU_SetImageFilter().

float(* GPU_Renderer::SetLineThickness)(GPU_Renderer *renderer, float thickness)
See also
GPU_SetLineThickness()

Definition at line 740 of file SDL_gpu.h.

Referenced by CreateTargetFromWindow().

void(* GPU_Renderer::SetShaderBlock)(GPU_Renderer *renderer, GPU_ShaderBlock block)
See also
GPU_SetShaderBlock()

Definition at line 680 of file SDL_gpu.h.

Referenced by GPU_SetShaderBlock().

void(* GPU_Renderer::SetShaderImage)(GPU_Renderer *renderer, GPU_Image *image, int location, int image_unit)
See also
GPU_SetShaderImage()

Definition at line 683 of file SDL_gpu.h.

Referenced by GPU_SetShaderImage().

void(* GPU_Renderer::SetUniformf)(GPU_Renderer *renderer, int location, float value)
See also
GPU_SetUniformf()

Definition at line 707 of file SDL_gpu.h.

Referenced by GPU_SetUniformf().

void(* GPU_Renderer::SetUniformfv)(GPU_Renderer *renderer, int location, int num_elements_per_value, int num_values, float *values)
See also
GPU_SetUniformfv()

Definition at line 710 of file SDL_gpu.h.

Referenced by GPU_SetUniformfv().

void(* GPU_Renderer::SetUniformi)(GPU_Renderer *renderer, int location, int value)
See also
GPU_SetUniformi()

Definition at line 689 of file SDL_gpu.h.

Referenced by GPU_SetUniformi().

void(* GPU_Renderer::SetUniformiv)(GPU_Renderer *renderer, int location, int num_elements_per_value, int num_values, int *values)
See also
GPU_SetUniformiv()

Definition at line 692 of file SDL_gpu.h.

Referenced by GPU_SetUniformiv().

void(* GPU_Renderer::SetUniformMatrixfv)(GPU_Renderer *renderer, int location, int num_matrices, int num_rows, int num_columns, Uint8 transpose, float *values)
See also
GPU_SetUniformMatrixfv()

Definition at line 713 of file SDL_gpu.h.

Referenced by GPU_SetUniformMatrixfv().

void(* GPU_Renderer::SetUniformui)(GPU_Renderer *renderer, int location, unsigned int value)
See also
GPU_SetUniformui()

Definition at line 698 of file SDL_gpu.h.

Referenced by GPU_SetUniformui().

void(* GPU_Renderer::SetUniformuiv)(GPU_Renderer *renderer, int location, int num_elements_per_value, int num_values, unsigned int *values)
See also
GPU_SetUniformuiv()

Definition at line 701 of file SDL_gpu.h.

Referenced by GPU_SetUniformuiv().

void(* GPU_Renderer::SetVirtualResolution)(GPU_Renderer *renderer, GPU_Target *target, Uint16 w, Uint16 h)
See also
GPU_SetVirtualResolution()

Definition at line 523 of file SDL_gpu.h.

Referenced by GPU_SetVirtualResolution(), and Init().

Uint8(* GPU_Renderer::SetWindowResolution)(GPU_Renderer *renderer, Uint16 w, Uint16 h)
See also
GPU_SetWindowResolution()

Definition at line 520 of file SDL_gpu.h.

Referenced by GPU_SetWindowResolution(), and ToggleFullscreen().

void(* GPU_Renderer::SetWrapMode)(GPU_Renderer *renderer, GPU_Image *image, GPU_WrapEnum wrap_mode_x, GPU_WrapEnum wrap_mode_y)
See also
GPU_SetWrapMode()

Definition at line 622 of file SDL_gpu.h.

Referenced by GPU_SetWrapMode().

GPU_ShaderLanguageEnum GPU_Renderer::shader_language
int GPU_Renderer::shader_version
Uint8(* GPU_Renderer::ToggleFullscreen)(GPU_Renderer *renderer, Uint8 use_desktop_resolution)
See also
GPU_ToggleFullscreen()

Definition at line 532 of file SDL_gpu.h.

Referenced by GPU_ToggleFullscreen().

void(* GPU_Renderer::Tri)(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float x3, float y3, SDL_Color color)
See also
GPU_Tri()

Definition at line 770 of file SDL_gpu.h.

void(* GPU_Renderer::TriangleBatch)(GPU_Renderer *renderer, GPU_Image *image, GPU_Target *target, unsigned short num_vertices, float *values, unsigned int num_indices, unsigned short *indices, GPU_BlitFlagEnum flags)
See also
GPU_TriangleBatch()

Definition at line 604 of file SDL_gpu.h.

Referenced by GPU_TriangleBatch().

void(* GPU_Renderer::TriFilled)(GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float x3, float y3, SDL_Color color)
See also
GPU_TriFilled()

Definition at line 773 of file SDL_gpu.h.

void(* GPU_Renderer::UnsetClip)(GPU_Renderer *renderer, GPU_Target *target)
See also
GPU_UnsetClip()

Definition at line 613 of file SDL_gpu.h.

Referenced by GPU_UnsetClip().

void(* GPU_Renderer::UnsetVirtualResolution)(GPU_Renderer *renderer, GPU_Target *target)
See also
GPU_UnsetVirtualResolution()

Definition at line 526 of file SDL_gpu.h.

Referenced by GPU_UnsetVirtualResolution().

void(* GPU_Renderer::UpdateImage)(GPU_Renderer *renderer, GPU_Image *image, SDL_Surface *surface, const GPU_Rect *surface_rect)
See also
GPU_UpdateImage

Definition at line 553 of file SDL_gpu.h.

Referenced by CopyImageFromSurface(), and GPU_UpdateImage().

void(* GPU_Renderer::UpdateImageBytes)(GPU_Renderer *renderer, GPU_Image *image, const GPU_Rect *image_rect, const unsigned char *bytes, int bytes_per_row)
See also
GPU_UpdateImageBytes

Definition at line 559 of file SDL_gpu.h.

Referenced by GPU_UpdateImageBytes().

void(* GPU_Renderer::UpdateSubImage)(GPU_Renderer *renderer, GPU_Image *image, const GPU_Rect *image_rect, SDL_Surface *surface, const GPU_Rect *surface_rect)
See also
GPU_UpdateSubImage

Definition at line 556 of file SDL_gpu.h.

Referenced by GPU_UpdateSubImage(), and UpdateImage().


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