All Classes Functions Variables Typedefs Enumerations Groups
Public Member Functions | Public Attributes | List of all members
GPU_RendererImpl Struct Reference

#include <SDL_gpu_RendererImpl.h>

Collaboration diagram for GPU_RendererImpl:
Collaboration graph
[legend]

Public Member Functions

GPU_Target *SDLCALL * Init (GPU_Renderer *renderer, GPU_RendererID renderer_request, Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags)
 
GPU_Target *SDLCALL * CreateTargetFromWindow (GPU_Renderer *renderer, Uint32 windowID, GPU_Target *target)
 
GPU_Target *SDLCALL * CreateAliasTarget (GPU_Renderer *renderer, GPU_Target *target)
 
 void (SDLCALL *MakeCurrent)(GPU_Renderer *renderer
 
 void (SDLCALL *SetAsCurrent)(GPU_Renderer *renderer)
 
 void (SDLCALL *ResetRendererState)(GPU_Renderer *renderer)
 
 GPU_bool (SDLCALL *SetWindowResolution)(GPU_Renderer *renderer
 
 void (SDLCALL *SetVirtualResolution)(GPU_Renderer *renderer
 
 void (SDLCALL *UnsetVirtualResolution)(GPU_Renderer *renderer
 
 void (SDLCALL *Quit)(GPU_Renderer *renderer)
 
 GPU_bool (SDLCALL *SetFullscreen)(GPU_Renderer *renderer
 
 GPU_Camera (SDLCALL *SetCamera)(GPU_Renderer *renderer
 
GPU_Image *SDLCALL * CreateImage (GPU_Renderer *renderer, Uint16 w, Uint16 h, GPU_FormatEnum format)
 
GPU_Image *SDLCALL * CreateImageUsingTexture (GPU_Renderer *renderer, Uint32 handle, GPU_bool take_ownership)
 
GPU_Image *SDLCALL * CreateAliasImage (GPU_Renderer *renderer, GPU_Image *image)
 
 GPU_bool (SDLCALL *SaveImage)(GPU_Renderer *renderer
 
GPU_Image *SDLCALL * CopyImage (GPU_Renderer *renderer, GPU_Image *image)
 
 void (SDLCALL *UpdateImage)(GPU_Renderer *renderer
 
 void (SDLCALL *UpdateImageBytes)(GPU_Renderer *renderer
 
 GPU_bool (SDLCALL *ReplaceImage)(GPU_Renderer *renderer
 
GPU_Image *SDLCALL * CopyImageFromSurface (GPU_Renderer *renderer, SDL_Surface *surface)
 
GPU_Image *SDLCALL * CopyImageFromTarget (GPU_Renderer *renderer, GPU_Target *target)
 
SDL_Surface *SDLCALL * CopySurfaceFromTarget (GPU_Renderer *renderer, GPU_Target *target)
 
SDL_Surface *SDLCALL * CopySurfaceFromImage (GPU_Renderer *renderer, GPU_Image *image)
 
 void (SDLCALL *FreeImage)(GPU_Renderer *renderer
 
GPU_Target *SDLCALL * LoadTarget (GPU_Renderer *renderer, GPU_Image *image)
 
 void (SDLCALL *FreeTarget)(GPU_Renderer *renderer
 
 void (SDLCALL *Blit)(GPU_Renderer *renderer
 
 void (SDLCALL *BlitRotate)(GPU_Renderer *renderer
 
 void (SDLCALL *BlitScale)(GPU_Renderer *renderer
 
 void (SDLCALL *BlitTransform)(GPU_Renderer *renderer
 
 void (SDLCALL *BlitTransformX)(GPU_Renderer *renderer
 
 void (SDLCALL *TriangleBatchX)(GPU_Renderer *renderer
 
 void (SDLCALL *GenerateMipmaps)(GPU_Renderer *renderer
 
 GPU_Rect (SDLCALL *SetClip)(GPU_Renderer *renderer
 
 void (SDLCALL *UnsetClip)(GPU_Renderer *renderer
 
 SDL_Color (SDLCALL *GetPixel)(GPU_Renderer *renderer
 
 void (SDLCALL *SetImageFilter)(GPU_Renderer *renderer
 
 void (SDLCALL *SetWrapMode)(GPU_Renderer *renderer
 
 void (SDLCALL *ClearRGBA)(GPU_Renderer *renderer
 
 void (SDLCALL *FlushBlitBuffer)(GPU_Renderer *renderer)
 
 void (SDLCALL *Flip)(GPU_Renderer *renderer
 
 Uint32 (SDLCALL *CreateShaderProgram)(GPU_Renderer *renderer)
 
 void (SDLCALL *FreeShaderProgram)(GPU_Renderer *renderer
 
 Uint32 (SDLCALL *CompileShader_RW)(GPU_Renderer *renderer
 
 Uint32 (SDLCALL *CompileShader)(GPU_Renderer *renderer
 
 void (SDLCALL *FreeShader)(GPU_Renderer *renderer
 
 void (SDLCALL *AttachShader)(GPU_Renderer *renderer
 
 void (SDLCALL *DetachShader)(GPU_Renderer *renderer
 
 GPU_bool (SDLCALL *LinkShaderProgram)(GPU_Renderer *renderer
 
 void (SDLCALL *ActivateShaderProgram)(GPU_Renderer *renderer
 
 void (SDLCALL *DeactivateShaderProgram)(GPU_Renderer *renderer)
 
const char *SDLCALL * GetShaderMessage (GPU_Renderer *renderer)
 
 int (SDLCALL *GetAttributeLocation)(GPU_Renderer *renderer
 
 int (SDLCALL *GetUniformLocation)(GPU_Renderer *renderer
 
 GPU_ShaderBlock (SDLCALL *LoadShaderBlock)(GPU_Renderer *renderer
 
 void (SDLCALL *SetShaderBlock)(GPU_Renderer *renderer
 
 void (SDLCALL *SetShaderImage)(GPU_Renderer *renderer
 
 void (SDLCALL *GetUniformiv)(GPU_Renderer *renderer
 
 void (SDLCALL *SetUniformi)(GPU_Renderer *renderer
 
 void (SDLCALL *SetUniformiv)(GPU_Renderer *renderer
 
 void (SDLCALL *GetUniformuiv)(GPU_Renderer *renderer
 
 void (SDLCALL *SetUniformui)(GPU_Renderer *renderer
 
 void (SDLCALL *SetUniformuiv)(GPU_Renderer *renderer
 
 void (SDLCALL *GetUniformfv)(GPU_Renderer *renderer
 
 void (SDLCALL *SetUniformf)(GPU_Renderer *renderer
 
 void (SDLCALL *SetUniformfv)(GPU_Renderer *renderer
 
 void (SDLCALL *SetUniformMatrixfv)(GPU_Renderer *renderer
 
 void (SDLCALL *SetAttributef)(GPU_Renderer *renderer
 
 void (SDLCALL *SetAttributei)(GPU_Renderer *renderer
 
 void (SDLCALL *SetAttributeui)(GPU_Renderer *renderer
 
 void (SDLCALL *SetAttributefv)(GPU_Renderer *renderer
 
 void (SDLCALL *SetAttributeiv)(GPU_Renderer *renderer
 
 void (SDLCALL *SetAttributeuiv)(GPU_Renderer *renderer
 
 void (SDLCALL *SetAttributeSource)(GPU_Renderer *renderer
 
 float (SDLCALL *SetLineThickness)(GPU_Renderer *renderer
 
 float (SDLCALL *GetLineThickness)(GPU_Renderer *renderer)
 
 void (SDLCALL *Pixel)(GPU_Renderer *renderer
 
 void (SDLCALL *Line)(GPU_Renderer *renderer
 
 void (SDLCALL *Arc)(GPU_Renderer *renderer
 
 void (SDLCALL *ArcFilled)(GPU_Renderer *renderer
 
 void (SDLCALL *Circle)(GPU_Renderer *renderer
 
 void (SDLCALL *CircleFilled)(GPU_Renderer *renderer
 
 void (SDLCALL *Ellipse)(GPU_Renderer *renderer
 
 void (SDLCALL *EllipseFilled)(GPU_Renderer *renderer
 
 void (SDLCALL *Sector)(GPU_Renderer *renderer
 
 void (SDLCALL *SectorFilled)(GPU_Renderer *renderer
 
 void (SDLCALL *Tri)(GPU_Renderer *renderer
 
 void (SDLCALL *TriFilled)(GPU_Renderer *renderer
 
 void (SDLCALL *Rectangle)(GPU_Renderer *renderer
 
 void (SDLCALL *RectangleFilled)(GPU_Renderer *renderer
 
 void (SDLCALL *RectangleRound)(GPU_Renderer *renderer
 
 void (SDLCALL *RectangleRoundFilled)(GPU_Renderer *renderer
 
 void (SDLCALL *Polygon)(GPU_Renderer *renderer
 
 void (SDLCALL *PolygonFilled)(GPU_Renderer *renderer
 

Public Attributes

GPU_Targettarget
 
GPU_Target Uint32 windowID
 
Uint16 w
 
Uint16 Uint16 h
 
GPU_Target Uint16 w
 
GPU_Target Uint16 Uint16 h
 
GPU_bool enable_fullscreen
 
GPU_bool GPU_bool use_desktop_resolution
 
GPU_Target GPU_Cameracam
 
GPU_Imageimage
 
GPU_Image const char * filename
 
GPU_Image const char
GPU_FileFormatEnum 
format
 
GPU_Image const GPU_Rectimage_rect
 
GPU_Image const GPU_Rect
SDL_Surface * 
surface
 
GPU_Image const GPU_Rect
SDL_Surface const GPU_Rect
surface_rect
 
GPU_Image const GPU_Rect const
unsigned char * 
bytes
 
GPU_Image const GPU_Rect const
unsigned char int 
bytes_per_row
 
GPU_Image SDL_Surface * surface
 
GPU_Image SDL_Surface const
GPU_Rect
surface_rect
 
GPU_Image GPU_Rectsrc_rect
 
GPU_Image GPU_Rect GPU_Targettarget
 
GPU_Image GPU_Rect GPU_Target float x
 
GPU_Image GPU_Rect GPU_Target
float float 
y
 
GPU_Image GPU_Rect GPU_Target
float float float 
degrees
 
GPU_Image GPU_Rect GPU_Target
float float float 
scaleX
 
GPU_Image GPU_Rect GPU_Target
float float float float 
scaleY
 
GPU_Image GPU_Rect GPU_Target
float float float float 
scaleX
 
GPU_Image GPU_Rect GPU_Target
float float float float float 
scaleY
 
GPU_Image GPU_Rect GPU_Target
float float float 
pivot_x
 
GPU_Image GPU_Rect GPU_Target
float float float float 
pivot_y
 
GPU_Image GPU_Rect GPU_Target
float float float float float 
degrees
 
GPU_Image GPU_Rect GPU_Target
float float float float float
float 
scaleX
 
GPU_Image GPU_Rect GPU_Target
float float float float float
float float 
scaleY
 
GPU_Image GPU_Targettarget
 
GPU_Image GPU_Target unsigned short num_vertices
 
GPU_Image GPU_Target unsigned
short void
values
 
GPU_Image GPU_Target unsigned
short void unsigned int 
num_indices
 
GPU_Image GPU_Target unsigned
short void unsigned int
unsigned short * 
indices
 
GPU_Image GPU_Target unsigned
short void unsigned int
unsigned short
GPU_BatchFlagEnum 
flags
 
GPU_Target Sint16 x
 
GPU_Target Sint16 Sint16 y
 
GPU_Target Sint16 Sint16 Uint16 w
 
GPU_Target Sint16 Sint16
Uint16 Uint16 
h
 
GPU_Image GPU_FilterEnum filter
 
GPU_Image GPU_WrapEnum wrap_mode_x
 
GPU_Image GPU_WrapEnum GPU_WrapEnum wrap_mode_y
 
GPU_Target Uint8 r
 
GPU_Target Uint8 Uint8 g
 
GPU_Target Uint8 Uint8 Uint8 b
 
GPU_Target Uint8 Uint8 Uint8 Uint8 a
 
Uint32 program_object
 
GPU_ShaderEnum shader_type
 
GPU_ShaderEnum SDL_RWops * shader_source
 
GPU_ShaderEnum SDL_RWops GPU_bool free_rwops
 
GPU_ShaderEnum const char * shader_source
 
Uint32 shader_object
 
Uint32 Uint32 shader_object
 
Uint32 GPU_ShaderBlockblock
 
Uint32 const char * attrib_name
 
Uint32 const char * uniform_name
 
Uint32 const char * position_name
 
Uint32 const char const char * texcoord_name
 
Uint32 const char const char
const char * 
color_name
 
Uint32 const char const char
const char const char * 
modelViewMatrix_name
 
GPU_ShaderBlock block
 
GPU_Image int location
 
GPU_Image int int image_unit
 
Uint32 int location
 
Uint32 int intvalues
 
int location
 
int int value
 
int int num_elements_per_value
 
int int int num_values
 
int int int intvalues
 
Uint32 int unsigned intvalues
 
int unsigned int value
 
int int int unsigned intvalues
 
Uint32 int floatvalues
 
int float value
 
int int int floatvalues
 
int int num_matrices
 
int int int num_rows
 
int int int int num_columns
 
int int int int GPU_bool transpose
 
int int int int GPU_bool floatvalues
 
int int num_elements
 
int int floatvalue
 
int int intvalue
 
int int unsigned intvalue
 
int num_values
 
int GPU_Attribute source
 
float thickness
 
GPU_Target float x
 
GPU_Target float float y
 
GPU_Target float float SDL_Color color
 
GPU_Target float x1
 
GPU_Target float float y1
 
GPU_Target float float float x2
 
GPU_Target float float float float y2
 
GPU_Target float float float
float SDL_Color 
color
 
GPU_Target float float float radius
 
GPU_Target float float float float start_angle
 
GPU_Target float float float
float float 
end_angle
 
GPU_Target float float float
float float SDL_Color 
color
 
GPU_Target float float float
SDL_Color 
color
 
GPU_Target float float float rx
 
GPU_Target float float float float ry
 
GPU_Target float float float
float float 
degrees
 
GPU_Target float float float inner_radius
 
GPU_Target float float float float outer_radius
 
GPU_Target float float float
float float 
start_angle
 
GPU_Target float float float
float float float 
end_angle
 
GPU_Target float float float
float float float SDL_Color 
color
 
GPU_Target float float float
float float 
x3
 
GPU_Target float float float
float float float 
y3
 
GPU_Target float float float
float float 
radius
 
GPU_Target unsigned int num_vertices
 
GPU_Target unsigned int floatvertices
 
GPU_Target unsigned int float
SDL_Color 
color
 

Detailed Description

Private implementation of renderer members.

Member Function Documentation

GPU_Image* SDLCALL* GPU_RendererImpl::CopyImage ( GPU_Renderer renderer,
GPU_Image image 
)
See Also
GPU_CopyImage()
GPU_Image* SDLCALL* GPU_RendererImpl::CopyImageFromSurface ( GPU_Renderer renderer,
SDL_Surface *  surface 
)
GPU_Image* SDLCALL* GPU_RendererImpl::CopyImageFromTarget ( GPU_Renderer renderer,
GPU_Target target 
)
SDL_Surface* SDLCALL* GPU_RendererImpl::CopySurfaceFromImage ( GPU_Renderer renderer,
GPU_Image image 
)
SDL_Surface* SDLCALL* GPU_RendererImpl::CopySurfaceFromTarget ( GPU_Renderer renderer,
GPU_Target target 
)
GPU_Image* SDLCALL* GPU_RendererImpl::CreateAliasImage ( GPU_Renderer renderer,
GPU_Image image 
)
GPU_Target* SDLCALL* GPU_RendererImpl::CreateAliasTarget ( GPU_Renderer renderer,
GPU_Target target 
)
GPU_Image* SDLCALL* GPU_RendererImpl::CreateImage ( GPU_Renderer renderer,
Uint16  w,
Uint16  h,
GPU_FormatEnum  format 
)
GPU_Image* SDLCALL* GPU_RendererImpl::CreateImageUsingTexture ( GPU_Renderer renderer,
Uint32  handle,
GPU_bool  take_ownership 
)
GPU_Target* SDLCALL* GPU_RendererImpl::CreateTargetFromWindow ( GPU_Renderer renderer,
Uint32  windowID,
GPU_Target target 
)
See Also
GPU_CreateTargetFromWindow The extra parameter is used internally to reuse/reinit a target.
GPU_RendererImpl::float ( SDLCALL *  SetLineThickness)
GPU_RendererImpl::float ( SDLCALL *  GetLineThickness)
const char* SDLCALL* GPU_RendererImpl::GetShaderMessage ( GPU_Renderer renderer)
GPU_RendererImpl::GPU_bool ( SDLCALL *  SetWindowResolution)
GPU_RendererImpl::GPU_bool ( SDLCALL *  SetFullscreen)
GPU_RendererImpl::GPU_bool ( SDLCALL *  SaveImage)
See Also
GPU_SaveImage()
GPU_RendererImpl::GPU_bool ( SDLCALL *  ReplaceImage)
GPU_RendererImpl::GPU_bool ( SDLCALL *  LinkShaderProgram)
GPU_RendererImpl::GPU_Camera ( SDLCALL *  SetCamera)
See Also
GPU_SetCamera()
GPU_RendererImpl::GPU_Rect ( SDLCALL *  SetClip)
See Also
GPU_SetClip()
GPU_RendererImpl::GPU_ShaderBlock ( SDLCALL *  LoadShaderBlock)
GPU_Target* SDLCALL* GPU_RendererImpl::Init ( GPU_Renderer renderer,
GPU_RendererID  renderer_request,
Uint16  w,
Uint16  h,
GPU_WindowFlagEnum  SDL_flags 
)
GPU_RendererImpl::int ( SDLCALL *  GetAttributeLocation)
See Also
GPU_GetAttribLocation()
GPU_RendererImpl::int ( SDLCALL *  GetUniformLocation)
GPU_Target* SDLCALL* GPU_RendererImpl::LoadTarget ( GPU_Renderer renderer,
GPU_Image image 
)
GPU_RendererImpl::SDL_Color ( SDLCALL *  GetPixel)
See Also
GPU_GetPixel()
GPU_RendererImpl::Uint32 ( SDLCALL *  CreateShaderProgram)
GPU_RendererImpl::Uint32 ( SDLCALL *  CompileShader_RW)
GPU_RendererImpl::Uint32 ( SDLCALL *  CompileShader)
GPU_RendererImpl::void ( SDLCALL *  MakeCurrent)
See Also
GPU_MakeCurrent
GPU_RendererImpl::void ( SDLCALL *  SetAsCurrent)

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

GPU_RendererImpl::void ( SDLCALL *  ResetRendererState)
GPU_RendererImpl::void ( SDLCALL *  SetVirtualResolution)
GPU_RendererImpl::void ( SDLCALL *  UnsetVirtualResolution)
GPU_RendererImpl::void ( SDLCALL *  Quit)

Clean up the renderer state.

GPU_RendererImpl::void ( SDLCALL *  UpdateImage)
See Also
GPU_UpdateImage
GPU_RendererImpl::void ( SDLCALL *  UpdateImageBytes)
GPU_RendererImpl::void ( SDLCALL *  FreeImage)
See Also
GPU_FreeImage()
GPU_RendererImpl::void ( SDLCALL *  FreeTarget)
GPU_RendererImpl::void ( SDLCALL *  Blit)
See Also
GPU_Blit()
GPU_RendererImpl::void ( SDLCALL *  BlitRotate)
GPU_RendererImpl::void ( SDLCALL *  BlitScale)
See Also
GPU_BlitScale()
GPU_RendererImpl::void ( SDLCALL *  BlitTransform)
GPU_RendererImpl::void ( SDLCALL *  BlitTransformX)
GPU_RendererImpl::void ( SDLCALL *  TriangleBatchX)
GPU_RendererImpl::void ( SDLCALL *  GenerateMipmaps)
GPU_RendererImpl::void ( SDLCALL *  UnsetClip)
See Also
GPU_UnsetClip()
GPU_RendererImpl::void ( SDLCALL *  SetImageFilter)
GPU_RendererImpl::void ( SDLCALL *  SetWrapMode)
GPU_RendererImpl::void ( SDLCALL *  ClearRGBA)
See Also
GPU_ClearRGBA()
GPU_RendererImpl::void ( SDLCALL *  FlushBlitBuffer)
GPU_RendererImpl::void ( SDLCALL *  Flip)
See Also
GPU_Flip()
GPU_RendererImpl::void ( SDLCALL *  FreeShaderProgram)
GPU_RendererImpl::void ( SDLCALL *  FreeShader)
GPU_RendererImpl::void ( SDLCALL *  AttachShader)
GPU_RendererImpl::void ( SDLCALL *  DetachShader)
GPU_RendererImpl::void ( SDLCALL *  ActivateShaderProgram)
GPU_RendererImpl::void ( SDLCALL *  DeactivateShaderProgram)
GPU_RendererImpl::void ( SDLCALL *  SetShaderBlock)
GPU_RendererImpl::void ( SDLCALL *  SetShaderImage)
GPU_RendererImpl::void ( SDLCALL *  GetUniformiv)
GPU_RendererImpl::void ( SDLCALL *  SetUniformi)
GPU_RendererImpl::void ( SDLCALL *  SetUniformiv)
GPU_RendererImpl::void ( SDLCALL *  GetUniformuiv)
GPU_RendererImpl::void ( SDLCALL *  SetUniformui)
GPU_RendererImpl::void ( SDLCALL *  SetUniformuiv)
GPU_RendererImpl::void ( SDLCALL *  GetUniformfv)
GPU_RendererImpl::void ( SDLCALL *  SetUniformf)
GPU_RendererImpl::void ( SDLCALL *  SetUniformfv)
GPU_RendererImpl::void ( SDLCALL *  SetUniformMatrixfv)
GPU_RendererImpl::void ( SDLCALL *  SetAttributef)
GPU_RendererImpl::void ( SDLCALL *  SetAttributei)
GPU_RendererImpl::void ( SDLCALL *  SetAttributeui)
GPU_RendererImpl::void ( SDLCALL *  SetAttributefv)
GPU_RendererImpl::void ( SDLCALL *  SetAttributeiv)
GPU_RendererImpl::void ( SDLCALL *  SetAttributeuiv)
GPU_RendererImpl::void ( SDLCALL *  SetAttributeSource)
GPU_RendererImpl::void ( SDLCALL *  Pixel)
See Also
GPU_Pixel()
GPU_RendererImpl::void ( SDLCALL *  Line)
See Also
GPU_Line()
GPU_RendererImpl::void ( SDLCALL *  Arc)
See Also
GPU_Arc()
GPU_RendererImpl::void ( SDLCALL *  ArcFilled)
See Also
GPU_ArcFilled()
GPU_RendererImpl::void ( SDLCALL *  Circle)
See Also
GPU_Circle()
GPU_RendererImpl::void ( SDLCALL *  CircleFilled)
GPU_RendererImpl::void ( SDLCALL *  Ellipse)
See Also
GPU_Ellipse()
GPU_RendererImpl::void ( SDLCALL *  EllipseFilled)
GPU_RendererImpl::void ( SDLCALL *  Sector)
See Also
GPU_Sector()
GPU_RendererImpl::void ( SDLCALL *  SectorFilled)
GPU_RendererImpl::void ( SDLCALL *  Tri)
See Also
GPU_Tri()
GPU_RendererImpl::void ( SDLCALL *  TriFilled)
See Also
GPU_TriFilled()
GPU_RendererImpl::void ( SDLCALL *  Rectangle)
See Also
GPU_Rectangle()
GPU_RendererImpl::void ( SDLCALL *  RectangleFilled)
GPU_RendererImpl::void ( SDLCALL *  RectangleRound)
GPU_RendererImpl::void ( SDLCALL *  RectangleRoundFilled)
GPU_RendererImpl::void ( SDLCALL *  Polygon)
See Also
GPU_Polygon()
GPU_RendererImpl::void ( SDLCALL *  PolygonFilled)

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