9 #include "begin_code.h"
16 #define SDL_GPU_VERSION_MAJOR 0
17 #define SDL_GPU_VERSION_MINOR 11
18 #define SDL_GPU_VERSION_PATCH 0
21 #if SDL_VERSION_ATLEAST(2,0,0)
22 #define SDL_GPU_USE_SDL2
24 #define SDL_GPU_USE_SDL1
29 #ifdef __STDC_VERSION__
30 #define GPU_HAVE_STDC 1
32 #define GPU_HAVE_STDC 0
35 #define GPU_HAVE_C99 (GPU_HAVE_STDC && (__STDC_VERSION__ >= 199901L))
37 #ifdef __GNUC__ // catches both gcc and clang I believe
38 #define GPU_HAVE_GNUC 1
40 #define GPU_HAVE_GNUC 0
44 #define GPU_HAVE_MSVC 1
46 #define GPU_HAVE_MSVC 0
49 #define GPU_HAVE_MSVC18 (GPU_HAVE_MSVC && (_MSC_VER >= 1800)) // VS2013+
51 #if defined(GPU_USE_REAL_BOOL) && GPU_USE_REAL_BOOL // allow user to specify
53 #elif defined(GPU_USE_INT_BOOL) && GPU_USE_INT_BOOL
55 #elif GPU_HAVE_C99 || GPU_HAVE_GNUC || GPU_HAVE_MSVC18 || (defined(GPU_HAVE_STDBOOL) && GPU_HAVE_STDBOOL)
95 #define GPU_RENDERER_ORDER_MAX 10
97 typedef Uint32 GPU_RendererEnum;
98 static const GPU_RendererEnum GPU_RENDERER_UNKNOWN = 0;
99 static const GPU_RendererEnum GPU_RENDERER_OPENGL_1_BASE = 1;
100 static const GPU_RendererEnum GPU_RENDERER_OPENGL_1 = 2;
101 static const GPU_RendererEnum GPU_RENDERER_OPENGL_2 = 3;
102 static const GPU_RendererEnum GPU_RENDERER_OPENGL_3 = 4;
103 static const GPU_RendererEnum GPU_RENDERER_OPENGL_4 = 5;
104 static const GPU_RendererEnum GPU_RENDERER_GLES_1 = 11;
105 static const GPU_RendererEnum GPU_RENDERER_GLES_2 = 12;
106 static const GPU_RendererEnum GPU_RENDERER_GLES_3 = 13;
107 static const GPU_RendererEnum GPU_RENDERER_D3D9 = 21;
108 static const GPU_RendererEnum GPU_RENDERER_D3D10 = 22;
109 static const GPU_RendererEnum GPU_RENDERER_D3D11 = 23;
110 #define GPU_RENDERER_CUSTOM_0 1000
122 GPU_RendererEnum renderer;
136 GPU_FUNC_SRC_COLOR = 0x0300,
137 GPU_FUNC_DST_COLOR = 0x0306,
138 GPU_FUNC_ONE_MINUS_SRC = 0x0301,
139 GPU_FUNC_ONE_MINUS_DST = 0x0307,
140 GPU_FUNC_SRC_ALPHA = 0x0302,
141 GPU_FUNC_DST_ALPHA = 0x0304,
142 GPU_FUNC_ONE_MINUS_SRC_ALPHA = 0x0303,
143 GPU_FUNC_ONE_MINUS_DST_ALPHA = 0x0305
153 GPU_EQ_SUBTRACT = 0x800A,
154 GPU_EQ_REVERSE_SUBTRACT = 0x800B
176 GPU_BLEND_NORMAL = 0,
177 GPU_BLEND_PREMULTIPLIED_ALPHA = 1,
178 GPU_BLEND_MULTIPLY = 2,
180 GPU_BLEND_SUBTRACT = 4,
181 GPU_BLEND_MOD_ALPHA = 5,
182 GPU_BLEND_SET_ALPHA = 6,
184 GPU_BLEND_NORMAL_KEEP_ALPHA = 8,
185 GPU_BLEND_NORMAL_ADD_ALPHA = 9,
186 GPU_BLEND_NORMAL_FACTOR_ALPHA = 10
194 GPU_FILTER_NEAREST = 0,
195 GPU_FILTER_LINEAR = 1,
196 GPU_FILTER_LINEAR_MIPMAP = 2
206 GPU_SNAP_POSITION = 1,
207 GPU_SNAP_DIMENSIONS = 2,
208 GPU_SNAP_POSITION_AND_DIMENSIONS = 3
219 GPU_WRAP_MIRRORED = 2
227 GPU_FORMAT_LUMINANCE = 1,
228 GPU_FORMAT_LUMINANCE_ALPHA = 2,
231 GPU_FORMAT_ALPHA = 5,
233 GPU_FORMAT_YCbCr422 = 7,
234 GPU_FORMAT_YCbCr420P = 8
269 GPU_bool using_virtual_resolution;
273 Uint16 base_w, base_h;
274 Uint16 texture_w, texture_h;
275 GPU_bool has_mipmaps;
281 GPU_bool use_blending;
320 int modelViewProjection_loc;
327 #define GPU_MODELVIEW 0
328 #define GPU_PROJECTION 1
330 #ifndef GPU_MATRIX_STACK_MAX
331 #define GPU_MATRIX_STACK_MAX 5
339 float matrix[GPU_MATRIX_STACK_MAX][16];
368 Uint32 default_textured_shader_program;
369 Uint32 default_untextured_shader_program;
375 GPU_bool shapes_use_blending;
377 float line_thickness;
378 GPU_bool use_texturing;
405 GPU_bool using_virtual_resolution;
406 Uint16 base_w, base_h;
407 GPU_bool use_clip_rect;
430 static const GPU_FeatureEnum GPU_FEATURE_NON_POWER_OF_TWO = 0x1;
431 static const GPU_FeatureEnum GPU_FEATURE_RENDER_TARGETS = 0x2;
432 static const GPU_FeatureEnum GPU_FEATURE_BLEND_EQUATIONS = 0x4;
433 static const GPU_FeatureEnum GPU_FEATURE_BLEND_FUNC_SEPARATE = 0x8;
434 static const GPU_FeatureEnum GPU_FEATURE_BLEND_EQUATIONS_SEPARATE = 0x10;
435 static const GPU_FeatureEnum GPU_FEATURE_GL_BGR = 0x20;
436 static const GPU_FeatureEnum GPU_FEATURE_GL_BGRA = 0x40;
437 static const GPU_FeatureEnum GPU_FEATURE_GL_ABGR = 0x80;
438 static const GPU_FeatureEnum GPU_FEATURE_VERTEX_SHADER = 0x100;
439 static const GPU_FeatureEnum GPU_FEATURE_FRAGMENT_SHADER = 0x200;
440 static const GPU_FeatureEnum GPU_FEATURE_PIXEL_SHADER = 0x200;
441 static const GPU_FeatureEnum GPU_FEATURE_GEOMETRY_SHADER = 0x400;
442 static const GPU_FeatureEnum GPU_FEATURE_WRAP_REPEAT_MIRRORED = 0x800;
445 #define GPU_FEATURE_ALL_BASE GPU_FEATURE_RENDER_TARGETS
446 #define GPU_FEATURE_ALL_BLEND_PRESETS (GPU_FEATURE_BLEND_EQUATIONS | GPU_FEATURE_BLEND_FUNC_SEPARATE)
447 #define GPU_FEATURE_ALL_GL_FORMATS (GPU_FEATURE_GL_BGR | GPU_FEATURE_GL_BGRA | GPU_FEATURE_GL_ABGR)
448 #define GPU_FEATURE_BASIC_SHADERS (GPU_FEATURE_FRAGMENT_SHADER | GPU_FEATURE_VERTEX_SHADER)
449 #define GPU_FEATURE_ALL_SHADERS (GPU_FEATURE_FRAGMENT_SHADER | GPU_FEATURE_VERTEX_SHADER | GPU_FEATURE_GEOMETRY_SHADER)
452 typedef Uint32 GPU_WindowFlagEnum;
461 static const GPU_InitFlagEnum GPU_INIT_ENABLE_VSYNC = 0x1;
462 static const GPU_InitFlagEnum GPU_INIT_DISABLE_VSYNC = 0x2;
463 static const GPU_InitFlagEnum GPU_INIT_DISABLE_DOUBLE_BUFFER = 0x4;
464 static const GPU_InitFlagEnum GPU_INIT_DISABLE_AUTO_VIRTUAL_RESOLUTION = 0x8;
465 static const GPU_InitFlagEnum GPU_INIT_REQUEST_COMPATIBILITY_PROFILE = 0x10;
467 #define GPU_DEFAULT_INIT_FLAGS 0
470 static const Uint32 GPU_NONE = 0x0;
478 static const GPU_BatchFlagEnum GPU_BATCH_XY = 0x1;
479 static const GPU_BatchFlagEnum GPU_BATCH_XYZ = 0x2;
480 static const GPU_BatchFlagEnum GPU_BATCH_ST = 0x4;
481 static const GPU_BatchFlagEnum GPU_BATCH_RGB = 0x8;
482 static const GPU_BatchFlagEnum GPU_BATCH_RGBA = 0x10;
483 static const GPU_BatchFlagEnum GPU_BATCH_RGB8 = 0x20;
484 static const GPU_BatchFlagEnum GPU_BATCH_RGBA8 = 0x40;
486 #define GPU_BATCH_XY_ST (GPU_BATCH_XY | GPU_BATCH_ST)
487 #define GPU_BATCH_XYZ_ST (GPU_BATCH_XYZ | GPU_BATCH_ST)
488 #define GPU_BATCH_XY_RGB (GPU_BATCH_XY | GPU_BATCH_RGB)
489 #define GPU_BATCH_XYZ_RGB (GPU_BATCH_XYZ | GPU_BATCH_RGB)
490 #define GPU_BATCH_XY_RGBA (GPU_BATCH_XY | GPU_BATCH_RGBA)
491 #define GPU_BATCH_XYZ_RGBA (GPU_BATCH_XYZ | GPU_BATCH_RGBA)
492 #define GPU_BATCH_XY_ST_RGBA (GPU_BATCH_XY | GPU_BATCH_ST | GPU_BATCH_RGBA)
493 #define GPU_BATCH_XYZ_ST_RGBA (GPU_BATCH_XYZ | GPU_BATCH_ST | GPU_BATCH_RGBA)
494 #define GPU_BATCH_XY_RGB8 (GPU_BATCH_XY | GPU_BATCH_RGB8)
495 #define GPU_BATCH_XYZ_RGB8 (GPU_BATCH_XYZ | GPU_BATCH_RGB8)
496 #define GPU_BATCH_XY_RGBA8 (GPU_BATCH_XY | GPU_BATCH_RGBA8)
497 #define GPU_BATCH_XYZ_RGBA8 (GPU_BATCH_XYZ | GPU_BATCH_RGBA8)
498 #define GPU_BATCH_XY_ST_RGBA8 (GPU_BATCH_XY | GPU_BATCH_ST | GPU_BATCH_RGBA8)
499 #define GPU_BATCH_XYZ_ST_RGBA8 (GPU_BATCH_XYZ | GPU_BATCH_ST | GPU_BATCH_RGBA8)
506 typedef Uint32 GPU_FlipEnum;
507 static const GPU_FlipEnum GPU_FLIP_NONE = 0x0;
508 static const GPU_FlipEnum GPU_FLIP_HORIZONTAL = 0x1;
509 static const GPU_FlipEnum GPU_FLIP_VERTICAL = 0x2;
517 static const GPU_TypeEnum GPU_TYPE_BYTE = 0x1400;
518 static const GPU_TypeEnum GPU_TYPE_UNSIGNED_BYTE = 0x1401;
519 static const GPU_TypeEnum GPU_TYPE_SHORT = 0x1402;
520 static const GPU_TypeEnum GPU_TYPE_UNSIGNED_SHORT = 0x1403;
521 static const GPU_TypeEnum GPU_TYPE_INT = 0x1404;
522 static const GPU_TypeEnum GPU_TYPE_UNSIGNED_INT = 0x1405;
523 static const GPU_TypeEnum GPU_TYPE_FLOAT = 0x1406;
524 static const GPU_TypeEnum GPU_TYPE_DOUBLE = 0x140A;
538 GPU_VERTEX_SHADER = 0,
539 GPU_FRAGMENT_SHADER = 1,
540 GPU_PIXEL_SHADER = 1,
541 GPU_GEOMETRY_SHADER = 2
550 GPU_LANGUAGE_NONE = 0,
551 GPU_LANGUAGE_ARB_ASSEMBLY = 1,
552 GPU_LANGUAGE_GLSL = 2,
553 GPU_LANGUAGE_GLSLES = 3,
554 GPU_LANGUAGE_HLSL = 4,
561 GPU_bool is_per_sprite;
562 int num_elems_per_value;
584 int per_vertex_storage_stride_bytes;
585 int per_vertex_storage_offset_bytes;
586 int per_vertex_storage_size;
587 void* per_vertex_storage;
599 GPU_ERROR_BACKEND_ERROR = 1,
600 GPU_ERROR_DATA_ERROR = 2,
601 GPU_ERROR_USER_ERROR = 3,
602 GPU_ERROR_UNSUPPORTED_FUNCTION = 4,
603 GPU_ERROR_NULL_ARGUMENT = 5,
604 GPU_ERROR_FILE_NOT_FOUND = 6
622 GPU_DEBUG_LEVEL_0 = 0,
623 GPU_DEBUG_LEVEL_1 = 1,
624 GPU_DEBUG_LEVEL_2 = 2,
625 GPU_DEBUG_LEVEL_3 = 3,
626 GPU_DEBUG_LEVEL_MAX = 3
650 GPU_WindowFlagEnum SDL_init_flags;
651 GPU_InitFlagEnum GPU_init_flags;
654 int min_shader_version;
655 int max_shader_version;
656 GPU_FeatureEnum enabled_features;
666 float default_image_anchor_y;
681 static SDL_version SDLCALL GPU_GetCompiledVersion(
void)
683 static inline SDL_version SDLCALL GPU_GetCompiledVersion(
void)
686 SDL_version v = {SDL_GPU_VERSION_MAJOR, SDL_GPU_VERSION_MINOR, SDL_GPU_VERSION_PATCH};
690 DECLSPEC SDL_version SDLCALL GPU_GetLinkedVersion(
void);
724 DECLSPEC
GPU_Target* SDLCALL
GPU_Init(Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags);
727 DECLSPEC
GPU_Target* SDLCALL
GPU_InitRenderer(GPU_RendererEnum renderer_enum, Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags);
745 DECLSPEC
void SDLCALL
GPU_Quit(
void);
754 #define GPU_Log GPU_LogInfo
770 DECLSPEC
void SDLCALL
GPU_LogInfo(
const char* format, ...);
776 DECLSPEC
void SDLCALL
GPU_LogError(
const char* format, ...);
850 DECLSPEC
void SDLCALL GPU_FreeRenderer(
GPU_Renderer* renderer);
860 DECLSPEC
GPU_bool SDLCALL GPU_GetCoordinateMode(
void);
1218 DECLSPEC
void SDLCALL
GPU_VectorCross(
float* result,
float* A,
float* B);
1231 DECLSPEC
void SDLCALL
GPU_MatrixCopy(
float* result,
const float* A);
1237 DECLSPEC
void SDLCALL
GPU_MatrixOrtho(
float* result,
float left,
float right,
float bottom,
float top,
float near,
float far);
1240 DECLSPEC
void SDLCALL
GPU_MatrixFrustum(
float* result,
float left,
float right,
float bottom,
float top,
float near,
float far);
1243 DECLSPEC
void SDLCALL
GPU_MatrixPerspective(
float* result,
float fovy,
float aspect,
float zNear,
float zFar);
1246 DECLSPEC
void SDLCALL
GPU_MatrixLookAt(
float* matrix,
float eye_x,
float eye_y,
float eye_z,
float target_x,
float target_y,
float target_z,
float up_x,
float up_y,
float up_z);
1252 DECLSPEC
void SDLCALL
GPU_MatrixScale(
float* result,
float sx,
float sy,
float sz);
1255 DECLSPEC
void SDLCALL
GPU_MatrixRotate(
float* result,
float degrees,
float x,
float y,
float z);
1260 DECLSPEC
void SDLCALL
GPU_Multiply4x4(
float* result,
float* A,
float* B);
1299 DECLSPEC
void SDLCALL
GPU_Ortho(
float left,
float right,
float bottom,
float top,
float near,
float far);
1302 DECLSPEC
void SDLCALL
GPU_Frustum(
float left,
float right,
float bottom,
float top,
float near,
float far);
1305 DECLSPEC
void SDLCALL
GPU_Translate(
float x,
float y,
float z);
1308 DECLSPEC
void SDLCALL
GPU_Scale(
float sx,
float sy,
float sz);
1311 DECLSPEC
void SDLCALL
GPU_Rotate(
float degrees,
float x,
float y,
float z);
1402 DECLSPEC
void SDLCALL
GPU_TriangleBatch(
GPU_Image* image,
GPU_Target* target,
unsigned short num_vertices,
float* values,
unsigned int num_indices,
unsigned short* indices, GPU_BatchFlagEnum flags);
1409 DECLSPEC
void SDLCALL
GPU_TriangleBatchX(
GPU_Image* image,
GPU_Target* target,
unsigned short num_vertices,
void* values,
unsigned int num_indices,
unsigned short* indices, GPU_BatchFlagEnum flags);
1454 DECLSPEC
void SDLCALL
GPU_Arc(
GPU_Target* target,
float x,
float y,
float radius,
float start_angle,
float end_angle,
SDL_Color color);
1517 DECLSPEC
void SDLCALL
GPU_Sector(
GPU_Target* target,
float x,
float y,
float inner_radius,
float outer_radius,
float start_angle,
float end_angle,
SDL_Color color);
1529 DECLSPEC
void SDLCALL
GPU_SectorFilled(
GPU_Target* target,
float x,
float y,
float inner_radius,
float outer_radius,
float start_angle,
float end_angle,
SDL_Color color);
1541 DECLSPEC
void SDLCALL
GPU_Tri(
GPU_Target* target,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
SDL_Color color);
1739 DECLSPEC
void SDLCALL
GPU_SetUniformiv(
int location,
int num_elements_per_value,
int num_values,
int* values);
1749 DECLSPEC
void SDLCALL
GPU_SetUniformuiv(
int location,
int num_elements_per_value,
int num_values,
unsigned int* values);
1759 DECLSPEC
void SDLCALL
GPU_SetUniformfv(
int location,
int num_elements_per_value,
int num_values,
float* values);
1777 DECLSPEC
void SDLCALL
GPU_SetAttributefv(
int location,
int num_elements,
float* value);
1780 DECLSPEC
void SDLCALL
GPU_SetAttributeiv(
int location,
int num_elements,
int* value);
1783 DECLSPEC
void SDLCALL
GPU_SetAttributeuiv(
int location,
int num_elements,
unsigned int* value);
1796 #include "close_code.h"
DECLSPEC float SDLCALL GPU_VectorDot(float *A, float *B)
Definition: SDL_gpu_matrix.c:71
DECLSPEC void SDLCALL GPU_UpdateImage(GPU_Image *image, const GPU_Rect *image_rect, SDL_Surface *surface, const GPU_Rect *surface_rect)
Definition: SDL_gpu.c:983
Definition: SDL_gpu.h:578
DECLSPEC void SDLCALL GPU_MatrixCopy(float *result, const float *A)
Definition: SDL_gpu_matrix.c:122
DECLSPEC void SDLCALL GPU_Clear(GPU_Target *target)
Definition: SDL_gpu.c:1981
DECLSPEC void SDLCALL GPU_EnableCamera(GPU_Target *target, GPU_bool use_camera)
Definition: SDL_gpu.c:891
Definition: SDL_gpu.h:119
DECLSPEC void SDLCALL GPU_FreeShader(Uint32 shader_object)
Definition: SDL_gpu.c:2145
DECLSPEC GPU_bool SDLCALL GPU_SetFullscreen(GPU_bool enable_fullscreen, GPU_bool use_desktop_resolution)
Definition: SDL_gpu.c:505
DECLSPEC void SDLCALL GPU_DeactivateShaderProgram(void)
Definition: SDL_gpu.c:2196
DECLSPEC void SDLCALL GPU_ResetRendererState(void)
Definition: SDL_gpu.c:89
DECLSPEC void SDLCALL GPU_PushMatrix(void)
Definition: SDL_gpu_matrix.c:432
DECLSPEC void SDLCALL GPU_SetWrapMode(GPU_Image *image, GPU_WrapEnum wrap_mode_x, GPU_WrapEnum wrap_mode_y)
Definition: SDL_gpu.c:1953
Definition: SDL_gpu.h:608
DECLSPEC void SDLCALL GPU_SetTargetRGBA(GPU_Target *target, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
Definition: SDL_gpu.c:1681
DECLSPEC void SDLCALL GPU_MultMatrix(float *matrix4x4)
Definition: SDL_gpu_matrix.c:508
DECLSPEC void SDLCALL GPU_UnsetClip(GPU_Target *target)
Definition: SDL_gpu.c:1539
DECLSPEC void SDLCALL GPU_SetShapeBlending(GPU_bool enable)
Definition: SDL_gpu.c:1723
DECLSPEC GPU_bool SDLCALL GPU_ReplaceImage(GPU_Image *image, SDL_Surface *surface, const GPU_Rect *surface_rect)
Definition: SDL_gpu.c:999
Definition: SDL_gpu.h:570
DECLSPEC void SDLCALL GPU_Line(GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
Definition: SDL_gpu_shapes.c:34
DECLSPEC Uint32 SDLCALL GPU_LinkShaders(Uint32 shader_object1, Uint32 shader_object2)
Definition: SDL_gpu.c:2114
DECLSPEC void SDLCALL GPU_BlitScale(GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float scaleX, float scaleY)
Definition: SDL_gpu.c:1355
DECLSPEC GPU_Target *SDLCALL GPU_GetWindowTarget(Uint32 windowID)
Definition: SDL_gpu.c:385
DECLSPEC GPU_bool SDLCALL GPU_SaveSurface_RW(SDL_Surface *surface, SDL_RWops *rwops, GPU_bool free_rwops, GPU_FileFormatEnum format)
Definition: SDL_gpu.c:1204
DECLSPEC void SDLCALL GPU_MatrixFrustum(float *result, float left, float right, float bottom, float top, float near, float far)
Definition: SDL_gpu_matrix.c:163
DECLSPEC void SDLCALL GPU_FlushBlitBuffer(void)
Definition: SDL_gpu.c:2025
DECLSPEC void SDLCALL GPU_SetLogCallback(int(*callback)(GPU_LogLevelEnum log_level, const char *format, va_list args))
Definition: SDL_gpu.c:151
DECLSPEC void SDLCALL GPU_SetSnapMode(GPU_Image *image, GPU_SnapEnum mode)
Definition: SDL_gpu.c:1945
DECLSPEC Uint32 SDLCALL GPU_CompileShader(GPU_ShaderEnum shader_type, const char *shader_source)
Definition: SDL_gpu.c:2090
Definition: SDL_gpu.h:300
DECLSPEC void SDLCALL GPU_GetVirtualResolution(GPU_Target *target, Uint16 *w, Uint16 *h)
Definition: SDL_gpu.c:538
DECLSPEC void SDLCALL GPU_BlitTransform(GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float degrees, float scaleX, float scaleY)
Definition: SDL_gpu.c:1371
DECLSPEC void SDLCALL GPU_SetTargetColor(GPU_Target *target, SDL_Color color)
Definition: SDL_gpu.c:1657
DECLSPEC void SDLCALL GPU_Sector(GPU_Target *target, float x, float y, float inner_radius, float outer_radius, float start_angle, float end_angle, SDL_Color color)
Definition: SDL_gpu_shapes.c:78
DECLSPEC void SDLCALL GPU_SetAttributeSource(int num_values, GPU_Attribute source)
Definition: SDL_gpu.c:2435
DECLSPEC Uint32 SDLCALL GPU_GetInitWindow(void)
Definition: SDL_gpu.c:215
DECLSPEC int SDLCALL GPU_GetAttributeLocation(Uint32 program_object, const char *attrib_name)
Definition: SDL_gpu.c:2212
DECLSPEC float SDLCALL GPU_GetLineThickness(void)
Definition: SDL_gpu_shapes.c:22
DECLSPEC void SDLCALL GPU_SetDebugLevel(GPU_DebugLevelEnum level)
Definition: SDL_gpu.c:680
DECLSPEC GPU_bool SDLCALL GPU_IsCameraEnabled(GPU_Target *target)
Definition: SDL_gpu.c:899
DECLSPEC int SDLCALL GPU_GetNumActiveRenderers(void)
Definition: SDL_gpu_renderer.c:43
DECLSPEC void SDLCALL GPU_SetViewport(GPU_Target *target, GPU_Rect viewport)
Definition: SDL_gpu.c:855
DECLSPEC GPU_Image *SDLCALL GPU_CreateImage(Uint16 w, Uint16 h, GPU_FormatEnum format)
Definition: SDL_gpu.c:906
GPU_LogLevelEnum
Definition: SDL_gpu.h:634
DECLSPEC GPU_bool SDLCALL GPU_GetFullscreen(void)
Definition: SDL_gpu.c:513
DECLSPEC void SDLCALL GPU_MatrixTranslate(float *result, float x, float y, float z)
Definition: SDL_gpu_matrix.c:233
struct GPU_BlendMode GPU_BlendMode
DECLSPEC void SDLCALL GPU_MatrixLookAt(float *matrix, float eye_x, float eye_y, float eye_z, float target_x, float target_y, float target_z, float up_x, float up_y, float up_z)
Definition: SDL_gpu_matrix.c:194
DECLSPEC void SDLCALL GPU_VectorCross(float *result, float *A, float *B)
Definition: SDL_gpu_matrix.c:76
DECLSPEC void SDLCALL GPU_SetRequiredFeatures(GPU_FeatureEnum features)
Definition: SDL_gpu.c:230
DECLSPEC GPU_Camera SDLCALL GPU_GetDefaultCamera(void)
Definition: SDL_gpu.c:867
DECLSPEC void SDLCALL GPU_Tri(GPU_Target *target, float x1, float y1, float x2, float y2, float x3, float y3, SDL_Color color)
Definition: SDL_gpu_shapes.c:90
DECLSPEC GPU_Image *SDLCALL GPU_CopyImageFromTarget(GPU_Target *target)
Definition: SDL_gpu.c:1254
Definition: SDL_gpu_RendererImpl.h:16
DECLSPEC void SDLCALL GPU_PushErrorCode(const char *function, GPU_ErrorEnum error, const char *details,...)
Definition: SDL_gpu.c:692
DECLSPEC SDL_Surface *SDLCALL GPU_CopySurfaceFromImage(GPU_Image *image)
Definition: SDL_gpu.c:1276
DECLSPEC void SDLCALL GPU_GetModelViewProjection(float *result)
Definition: SDL_gpu_matrix.c:519
DECLSPEC void SDLCALL GPU_GetDefaultRendererOrder(int *order_size, GPU_RendererID *order)
Definition: SDL_gpu_renderer.c:323
DECLSPEC void SDLCALL GPU_Translate(float x, float y, float z)
Definition: SDL_gpu_matrix.c:490
GPU_FileFormatEnum
Definition: SDL_gpu.h:244
DECLSPEC void SDLCALL GPU_SetUniformiv(int location, int num_elements_per_value, int num_values, int *values)
Definition: SDL_gpu.c:2311
DECLSPEC void SDLCALL GPU_BlitRectX(GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, GPU_Rect *dest_rect, float degrees, float pivot_x, float pivot_y, GPU_FlipEnum flip_direction)
Definition: SDL_gpu.c:1425
DECLSPEC GPU_bool SDLCALL GPU_IntersectRect(GPU_Rect A, GPU_Rect B, GPU_Rect *result)
Definition: SDL_gpu.c:1548
struct GPU_AttributeFormat GPU_AttributeFormat
Uint32 GPU_BatchFlagEnum
Definition: SDL_gpu.h:477
DECLSPEC GPU_Image *SDLCALL GPU_CreateAliasImage(GPU_Image *image)
Definition: SDL_gpu.c:947
DECLSPEC void SDLCALL GPU_LogInfo(const char *format,...)
Definition: SDL_gpu.c:159
DECLSPEC GPU_Target *SDLCALL GPU_LoadTarget(GPU_Image *image)
Definition: SDL_gpu.c:1302
DECLSPEC void SDLCALL GPU_TriFilled(GPU_Target *target, float x1, float y1, float x2, float y2, float x3, float y3, SDL_Color color)
Definition: SDL_gpu_shapes.c:96
DECLSPEC void SDLCALL GPU_UnsetTargetColor(GPU_Target *target)
Definition: SDL_gpu.c:1696
DECLSPEC float *SDLCALL GPU_GetProjection(void)
Definition: SDL_gpu_matrix.c:402
Definition: SDL_gpu.h:313
DECLSPEC void SDLCALL GPU_SetBlending(GPU_Image *image, GPU_bool enable)
Definition: SDL_gpu.c:1715
DECLSPEC void SDLCALL GPU_EllipseFilled(GPU_Target *target, float x, float y, float rx, float ry, float degrees, SDL_Color color)
Definition: SDL_gpu_shapes.c:72
DECLSPEC void SDLCALL GPU_SetTargetRGB(GPU_Target *target, Uint8 r, Uint8 g, Uint8 b)
Definition: SDL_gpu.c:1666
DECLSPEC void SDLCALL GPU_SetUniformMatrixfv(int location, int num_matrices, int num_rows, int num_columns, GPU_bool transpose, float *values)
Definition: SDL_gpu.c:2378
DECLSPEC GPU_InitFlagEnum SDLCALL GPU_GetPreInitFlags(void)
Definition: SDL_gpu.c:225
DECLSPEC GPU_FeatureEnum SDLCALL GPU_GetRequiredFeatures(void)
Definition: SDL_gpu.c:235
DECLSPEC void SDLCALL GPU_Rotate(float degrees, float x, float y, float z)
Definition: SDL_gpu_matrix.c:502
DECLSPEC void SDLCALL GPU_SetRGBA(GPU_Image *image, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
Definition: SDL_gpu.c:1634
DECLSPEC void SDLCALL GPU_RectangleRound(GPU_Target *target, float x1, float y1, float x2, float y2, float radius, SDL_Color color)
Definition: SDL_gpu_shapes.c:126
GPU_bool(SDLCALL *SetWindowResolution)(GPU_Renderer *renderer
DECLSPEC Uint32 SDLCALL GPU_CreateShaderProgram(void)
Definition: SDL_gpu.c:2106
GPU_WrapEnum
Definition: SDL_gpu.h:216
GPU_Camera camera
Definition: SDL_gpu.h:415
Definition: SDL_gpu.h:645
DECLSPEC GPU_ShaderBlock SDLCALL GPU_GetShaderBlock(void)
Definition: SDL_gpu.c:2272
DECLSPEC void SDLCALL GPU_DetachShader(Uint32 program_object, Uint32 shader_object)
Definition: SDL_gpu.c:2169
DECLSPEC void SDLCALL GPU_SetShapeBlendFunction(GPU_BlendFuncEnum source_color, GPU_BlendFuncEnum dest_color, GPU_BlendFuncEnum source_alpha, GPU_BlendFuncEnum dest_alpha)
Definition: SDL_gpu.c:1847
GPU_BlendPresetEnum
Definition: SDL_gpu.h:175
DECLSPEC GPU_Camera SDLCALL GPU_GetCamera(GPU_Target *target)
Definition: SDL_gpu.c:873
DECLSPEC void SDLCALL GPU_Flip(GPU_Target *target)
Definition: SDL_gpu.c:2033
DECLSPEC void SDLCALL GPU_MatrixRotate(float *result, float degrees, float x, float y, float z)
Definition: SDL_gpu_matrix.c:279
DECLSPEC void SDLCALL GPU_SectorFilled(GPU_Target *target, float x, float y, float inner_radius, float outer_radius, float start_angle, float end_angle, SDL_Color color)
Definition: SDL_gpu_shapes.c:84
DECLSPEC void SDLCALL GPU_SetUniformuiv(int location, int num_elements_per_value, int num_values, unsigned int *values)
Definition: SDL_gpu.c:2336
DECLSPEC void SDLCALL GPU_SetAttributeuiv(int location, int num_elements, unsigned int *value)
Definition: SDL_gpu.c:2427
Definition: SDL_gpu.h:336
GPU_FilterEnum
Definition: SDL_gpu.h:193
DECLSPEC void SDLCALL GPU_SetErrorQueueMax(unsigned int max)
Definition: SDL_gpu.c:624
DECLSPEC SDL_Surface *SDLCALL GPU_LoadSurface_RW(SDL_RWops *rwops, GPU_bool free_rwops)
Definition: SDL_gpu.c:1089
DECLSPEC void SDLCALL GPU_ActivateShaderProgram(Uint32 program_object, GPU_ShaderBlock *block)
Definition: SDL_gpu.c:2188
DECLSPEC void SDLCALL GPU_ClearColor(GPU_Target *target, SDL_Color color)
Definition: SDL_gpu.c:1992
DECLSPEC GPU_bool SDLCALL GPU_LinkShaderProgram(Uint32 program_object)
Definition: SDL_gpu.c:2098
DECLSPEC GPU_Rect SDLCALL GPU_SetClip(GPU_Target *target, Sint16 x, Sint16 y, Uint16 w, Uint16 h)
Definition: SDL_gpu.c:1528
DECLSPEC void SDLCALL GPU_SetUniformf(int location, float value)
Definition: SDL_gpu.c:2353
Uint32 GPU_FeatureEnum
Definition: SDL_gpu.h:429
GPU_SnapEnum
Definition: SDL_gpu.h:204
DECLSPEC void SDLCALL GPU_ArcFilled(GPU_Target *target, float x, float y, float radius, float start_angle, float end_angle, SDL_Color color)
Definition: SDL_gpu_shapes.c:48
DECLSPEC SDL_Color SDLCALL GPU_GetPixel(GPU_Target *target, Sint16 x, Sint16 y)
Definition: SDL_gpu.c:1964
GPU_ShaderLanguageEnum
Definition: SDL_gpu.h:549
int drawable_w
Definition: SDL_gpu.h:359
DECLSPEC void SDLCALL GPU_MatrixPerspective(float *result, float fovy, float aspect, float zNear, float zFar)
Definition: SDL_gpu_matrix.c:181
DECLSPEC void SDLCALL GPU_SetBlendFunction(GPU_Image *image, GPU_BlendFuncEnum source_color, GPU_BlendFuncEnum dest_color, GPU_BlendFuncEnum source_alpha, GPU_BlendFuncEnum dest_alpha)
Definition: SDL_gpu.c:1816
DECLSPEC GPU_RendererID SDLCALL GPU_MakeRendererID(const char *name, GPU_RendererEnum renderer, int major_version, int minor_version)
Definition: SDL_gpu.c:844
DECLSPEC void SDLCALL GPU_MatrixIdentity(float *result)
Definition: SDL_gpu_matrix.c:127
DECLSPEC void SDLCALL GPU_SetShaderImage(GPU_Image *image, int location, int image_unit)
Definition: SDL_gpu.c:2287
DECLSPEC void SDLCALL GPU_Rectangle(GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
Definition: SDL_gpu_shapes.c:102
DECLSPEC void SDLCALL GPU_Quit(void)
Definition: SDL_gpu.c:642
DECLSPEC GPU_Camera SDLCALL GPU_SetCamera(GPU_Target *target, GPU_Camera *cam)
Definition: SDL_gpu.c:880
GPU_FormatEnum
Definition: SDL_gpu.h:226
DECLSPEC void SDLCALL GPU_SetShapeBlendMode(GPU_BlendPresetEnum mode)
Definition: SDL_gpu.c:1873
DECLSPEC void SDLCALL GPU_SetUniformui(int location, unsigned int value)
Definition: SDL_gpu.c:2328
DECLSPEC void SDLCALL GPU_UpdateImageBytes(GPU_Image *image, const GPU_Rect *image_rect, const unsigned char *bytes, int bytes_per_row)
Definition: SDL_gpu.c:991
DECLSPEC void SDLCALL GPU_SetBlendEquation(GPU_Image *image, GPU_BlendEqEnum color_equation, GPU_BlendEqEnum alpha_equation)
Definition: SDL_gpu.c:1827
Uint32 windowID
Definition: SDL_gpu.h:352
DECLSPEC void SDLCALL GPU_RectangleRoundFilled(GPU_Target *target, float x1, float y1, float x2, float y2, float radius, SDL_Color color)
Definition: SDL_gpu_shapes.c:138
DECLSPEC float *SDLCALL GPU_GetCurrentMatrix(void)
Definition: SDL_gpu_matrix.c:415
DECLSPEC void SDLCALL GPU_GenerateMipmaps(GPU_Image *image)
Definition: SDL_gpu.c:1506
Definition: SDL_gpu.h:345
DECLSPEC void SDLCALL GPU_RectangleFilled(GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color)
Definition: SDL_gpu_shapes.c:114
DECLSPEC GPU_RendererEnum SDLCALL GPU_ReserveNextRendererEnum(void)
Definition: SDL_gpu_renderer.c:37
GPU_ErrorEnum
Definition: SDL_gpu.h:597
DECLSPEC void SDLCALL GPU_VectorCopy(float *result, float *A)
Definition: SDL_gpu_matrix.c:83
GPU_Target * current_context_target
Definition: SDL_gpu.h:659
DECLSPEC GPU_bool SDLCALL GPU_SaveImage_RW(GPU_Image *image, SDL_RWops *rwops, GPU_bool free_rwops, GPU_FileFormatEnum format)
Definition: SDL_gpu.c:963
DECLSPEC GPU_Rect SDLCALL GPU_MakeRect(float x, float y, float w, float h)
Definition: SDL_gpu.c:822
DECLSPEC void SDLCALL GPU_CloseCurrentRenderer(void)
Definition: SDL_gpu.c:633
DECLSPEC void SDLCALL GPU_GetUniformuiv(Uint32 program_object, int location, unsigned int *values)
Definition: SDL_gpu.c:2320
DECLSPEC void SDLCALL GPU_UnsetImageVirtualResolution(GPU_Image *image)
Definition: SDL_gpu.c:589
DECLSPEC GPU_bool SDLCALL GPU_GetBlending(GPU_Image *image)
Definition: SDL_gpu.c:1706
DECLSPEC GPU_AttributeFormat SDLCALL GPU_MakeAttributeFormat(int num_elems_per_vertex, GPU_TypeEnum type, GPU_bool normalize, int stride_bytes, int offset_bytes)
Definition: SDL_gpu.c:2220
DECLSPEC void SDLCALL GPU_RegisterRenderer(GPU_RendererID id, GPU_Renderer *(SDLCALL *create_renderer)(GPU_RendererID request), void(SDLCALL *free_renderer)(GPU_Renderer *renderer))
DECLSPEC GPU_Target *SDLCALL GPU_CreateAliasTarget(GPU_Target *target)
Definition: SDL_gpu.c:486
DECLSPEC GPU_Target *SDLCALL GPU_InitRenderer(GPU_RendererEnum renderer_enum, Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags)
Definition: SDL_gpu.c:433
void * context
Definition: SDL_gpu.h:348
DECLSPEC float SDLCALL GPU_SetLineThickness(float thickness)
Definition: SDL_gpu_shapes.c:16
int window_w
Definition: SDL_gpu.h:355
DECLSPEC GPU_Target *SDLCALL GPU_CreateTargetFromWindow(Uint32 windowID)
Definition: SDL_gpu.c:478
GPU_ShaderEnum
Definition: SDL_gpu.h:537
DECLSPEC void SDLCALL GPU_Polygon(GPU_Target *target, unsigned int num_vertices, float *vertices, SDL_Color color)
Definition: SDL_gpu_shapes.c:150
DECLSPEC void SDLCALL GPU_PolygonFilled(GPU_Target *target, unsigned int num_vertices, float *vertices, SDL_Color color)
Definition: SDL_gpu_shapes.c:156
DECLSPEC float SDLCALL GPU_VectorLength(float *vec3)
Definition: SDL_gpu_matrix.c:58
DECLSPEC void SDLCALL GPU_GetRendererOrder(int *order_size, GPU_RendererID *order)
Definition: SDL_gpu_renderer.c:287
DECLSPEC GPU_bool SDLCALL GPU_SetWindowResolution(Uint16 w, Uint16 h)
Definition: SDL_gpu.c:529
struct GPU_Camera GPU_Camera
DECLSPEC GPU_Target *SDLCALL GPU_GetContextTarget(void)
Definition: SDL_gpu.c:1293
int stored_window_w
Definition: SDL_gpu.h:363
DECLSPEC void SDLCALL GPU_ClearRGB(GPU_Target *target, Uint8 r, Uint8 g, Uint8 b)
Definition: SDL_gpu.c:2003
DECLSPEC void SDLCALL GPU_FreeShaderProgram(Uint32 program_object)
Definition: SDL_gpu.c:2153
DECLSPEC void SDLCALL GPU_GetActiveRendererList(GPU_RendererID *renderers_array)
Definition: SDL_gpu_renderer.c:59
DECLSPEC GPU_bool SDLCALL GPU_SaveSurface(SDL_Surface *surface, const char *filename, GPU_FileFormatEnum format)
Definition: SDL_gpu.c:1149
DECLSPEC void SDLCALL GPU_SetUniformfv(int location, int num_elements_per_value, int num_values, float *values)
Definition: SDL_gpu.c:2361
GPU_BlendEqEnum
Definition: SDL_gpu.h:151
DECLSPEC void SDLCALL GPU_MatrixMode(int matrix_mode)
Definition: SDL_gpu_matrix.c:380
Definition: SDL_gpu.h:159
DECLSPEC void SDLCALL GPU_SetAttributeui(int location, unsigned int value)
Definition: SDL_gpu.c:2403
GPU_RendererID id
Definition: SDL_gpu.h:648
DECLSPEC void SDLCALL GPU_SetRendererOrder(int order_size, GPU_RendererID *order)
Definition: SDL_gpu_renderer.c:296
DECLSPEC void SDLCALL GPU_SetCoordinateMode(GPU_bool use_math_coords)
Definition: SDL_gpu.c:97
DECLSPEC void SDLCALL GPU_Circle(GPU_Target *target, float x, float y, float radius, SDL_Color color)
Definition: SDL_gpu_shapes.c:54
DECLSPEC float *SDLCALL GPU_GetModelView(void)
Definition: SDL_gpu_matrix.c:389
DECLSPEC GPU_RendererID SDLCALL GPU_GetRendererID(GPU_RendererEnum renderer)
Definition: SDL_gpu_renderer.c:113
Definition: SDL_gpu.h:398
DECLSPEC SDL_Color SDLCALL GPU_MakeColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a)
Definition: SDL_gpu.c:833
DECLSPEC void SDLCALL GPU_Arc(GPU_Target *target, float x, float y, float radius, float start_angle, float end_angle, SDL_Color color)
Definition: SDL_gpu_shapes.c:41
float default_image_anchor_x
Definition: SDL_gpu.h:665
DECLSPEC void SDLCALL GPU_GetUniformiv(Uint32 program_object, int location, int *values)
Definition: SDL_gpu.c:2295
Uint32 GPU_TypeEnum
Definition: SDL_gpu.h:515
DECLSPEC void SDLCALL GPU_GetAnchor(GPU_Image *image, float *anchor_x, float *anchor_y)
Definition: SDL_gpu.c:1925
DECLSPEC void SDLCALL GPU_MatrixScale(float *result, float sx, float sy, float sz)
Definition: SDL_gpu_matrix.c:261
DECLSPEC void SDLCALL GPU_SetBlendMode(GPU_Image *image, GPU_BlendPresetEnum mode)
Definition: SDL_gpu.c:1836
DECLSPEC GPU_Image *SDLCALL GPU_CopyImageFromSurface(SDL_Surface *surface)
Definition: SDL_gpu.c:1246
DECLSPEC void SDLCALL GPU_SetVirtualResolution(GPU_Target *target, Uint16 w, Uint16 h)
Definition: SDL_gpu.c:552
Uint32(SDLCALL *CreateShaderProgram)(GPU_Renderer *renderer)
DECLSPEC void SDLCALL GPU_UnsetViewport(GPU_Target *target)
Definition: SDL_gpu.c:861
DECLSPEC void SDLCALL GPU_SetAttributef(int location, float value)
Definition: SDL_gpu.c:2387
DECLSPEC void SDLCALL GPU_Ortho(float left, float right, float bottom, float top, float near, float far)
Definition: SDL_gpu_matrix.c:478
GPU_DebugLevelEnum
Definition: SDL_gpu.h:621
DECLSPEC GPU_Rect SDLCALL GPU_SetClipRect(GPU_Target *target, GPU_Rect rect)
Definition: SDL_gpu.c:1517
DECLSPEC void SDLCALL GPU_BlitTransformX(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)
Definition: SDL_gpu.c:1387
DECLSPEC void SDLCALL GPU_VectorApplyMatrix(float *vec3, float *matrix_4x4)
Definition: SDL_gpu_matrix.c:90
DECLSPEC void SDLCALL GPU_SetAttributei(int location, int value)
Definition: SDL_gpu.c:2395
GPU_BlendFuncEnum
Definition: SDL_gpu.h:133
Uint32 GPU_InitFlagEnum
Definition: SDL_gpu.h:460
DECLSPEC void SDLCALL GPU_SetShapeBlendEquation(GPU_BlendEqEnum color_equation, GPU_BlendEqEnum alpha_equation)
Definition: SDL_gpu.c:1861
DECLSPEC GPU_bool SDLCALL GPU_IntersectClipRect(GPU_Target *target, GPU_Rect B, GPU_Rect *result)
Definition: SDL_gpu.c:1597
DECLSPEC const char *SDLCALL GPU_GetMatrixString(float *A)
Definition: SDL_gpu_matrix.c:360
DECLSPEC GPU_Target *SDLCALL GPU_Init(Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags)
Definition: SDL_gpu.c:405
DECLSPEC void SDLCALL GPU_MatrixOrtho(float *result, float left, float right, float bottom, float top, float near, float far)
Definition: SDL_gpu_matrix.c:134
DECLSPEC void SDLCALL GPU_PopMatrix(void)
Definition: SDL_gpu_matrix.c:450
DECLSPEC GPU_Image *SDLCALL GPU_CreateImageUsingTexture(Uint32 handle, GPU_bool take_ownership)
Definition: SDL_gpu.c:914
DECLSPEC GPU_bool SDLCALL GPU_SaveImage(GPU_Image *image, const char *filename, GPU_FileFormatEnum format)
Definition: SDL_gpu.c:955
DECLSPEC void SDLCALL GPU_LogWarning(const char *format,...)
Definition: SDL_gpu.c:167
DECLSPEC void SDLCALL GPU_Frustum(float left, float right, float bottom, float top, float near, float far)
Definition: SDL_gpu_matrix.c:484
DECLSPEC void SDLCALL GPU_UnsetColor(GPU_Image *image)
Definition: SDL_gpu.c:1648
DECLSPEC void SDLCALL GPU_RectangleRound2(GPU_Target *target, GPU_Rect rect, float radius, SDL_Color color)
Definition: SDL_gpu_shapes.c:132
DECLSPEC GPU_ErrorObject SDLCALL GPU_PopErrorCode(void)
Definition: SDL_gpu.c:736
DECLSPEC GPU_bool SDLCALL GPU_IsFeatureEnabled(GPU_FeatureEnum feature)
Definition: SDL_gpu.c:470
GPU_Context * context
Definition: SDL_gpu.h:419
DECLSPEC void SDLCALL GPU_BlitRect(GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, GPU_Rect *dest_rect)
Definition: SDL_gpu.c:1403
DECLSPEC void SDLCALL GPU_RectangleRoundFilled2(GPU_Target *target, GPU_Rect rect, float radius, SDL_Color color)
Definition: SDL_gpu_shapes.c:144
DECLSPEC void SDLCALL GPU_SetCurrentRenderer(GPU_RendererID id)
Definition: SDL_gpu.c:81
DECLSPEC void SDLCALL GPU_TriangleBatchX(GPU_Image *image, GPU_Target *target, unsigned short num_vertices, void *values, unsigned int num_indices, unsigned short *indices, GPU_BatchFlagEnum flags)
Definition: SDL_gpu.c:1485
DECLSPEC GPU_SnapEnum SDLCALL GPU_GetSnapMode(GPU_Image *image)
Definition: SDL_gpu.c:1937
struct GPU_Attribute GPU_Attribute
DECLSPEC void SDLCALL GPU_SetImageVirtualResolution(GPU_Image *image, Uint16 w, Uint16 h)
Definition: SDL_gpu.c:576
Definition: SDL_gpu.h:263
DECLSPEC void SDLCALL GPU_AttachShader(Uint32 program_object, Uint32 shader_object)
Definition: SDL_gpu.c:2161
GPU_bool coordinate_mode
Definition: SDL_gpu.h:662
DECLSPEC GPU_Image *SDLCALL GPU_LoadImage_RW(SDL_RWops *rwops, GPU_bool free_rwops)
Definition: SDL_gpu.c:927
DECLSPEC void SDLCALL GPU_LogError(const char *format,...)
Definition: SDL_gpu.c:175
DECLSPEC Uint32 SDLCALL GPU_CompileShader_RW(GPU_ShaderEnum shader_type, SDL_RWops *shader_source, GPU_bool free_rwops)
Definition: SDL_gpu.c:2058
DECLSPEC int SDLCALL GPU_GetUniformLocation(Uint32 program_object, const char *uniform_name)
Definition: SDL_gpu.c:2241
DECLSPEC void SDLCALL GPU_TriangleBatch(GPU_Image *image, GPU_Target *target, unsigned short num_vertices, float *values, unsigned int num_indices, unsigned short *indices, GPU_BatchFlagEnum flags)
Definition: SDL_gpu.c:1480
DECLSPEC void SDLCALL GPU_SetColor(GPU_Image *image, SDL_Color color)
Definition: SDL_gpu.c:1612
DECLSPEC SDL_Surface *SDLCALL GPU_CopySurfaceFromTarget(GPU_Target *target)
Definition: SDL_gpu.c:1265
DECLSPEC GPU_Image *SDLCALL GPU_LoadImage(const char *filename)
Definition: SDL_gpu.c:922
struct GPU_Image GPU_Image
DECLSPEC GPU_Image *SDLCALL GPU_CopyImage(GPU_Image *image)
Definition: SDL_gpu.c:975
DECLSPEC void SDLCALL GPU_ClearRGBA(GPU_Target *target, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
Definition: SDL_gpu.c:2014
DECLSPEC void SDLCALL GPU_UnsetVirtualResolution(GPU_Target *target)
Definition: SDL_gpu.c:565
DECLSPEC void SDLCALL GPU_SetAttributeiv(int location, int num_elements, int *value)
Definition: SDL_gpu.c:2419
DECLSPEC GPU_Attribute SDLCALL GPU_MakeAttribute(int location, void *values, GPU_AttributeFormat format)
Definition: SDL_gpu.c:2232
DECLSPEC void SDLCALL GPU_Blit(GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y)
Definition: SDL_gpu.c:1322
DECLSPEC GPU_Renderer *SDLCALL GPU_GetCurrentRenderer(void)
Definition: SDL_gpu.c:113
DECLSPEC Uint32 SDLCALL GPU_LoadShader(GPU_ShaderEnum shader_type, const char *filename)
Definition: SDL_gpu.c:2070
DECLSPEC SDL_Surface *SDLCALL GPU_LoadSurface(const char *filename)
Definition: SDL_gpu.c:1135
DECLSPEC void SDLCALL GPU_SetAttributefv(int location, int num_elements, float *value)
Definition: SDL_gpu.c:2411
DECLSPEC void SDLCALL GPU_SetUniformi(int location, int value)
Definition: SDL_gpu.c:2303
DECLSPEC void SDLCALL GPU_FreeTarget(GPU_Target *target)
Definition: SDL_gpu.c:1312
DECLSPEC void SDLCALL GPU_GetRegisteredRendererList(GPU_RendererID *renderers_array)
Definition: SDL_gpu_renderer.c:94
DECLSPEC void SDLCALL GPU_SetImageFilter(GPU_Image *image, GPU_FilterEnum filter)
Definition: SDL_gpu.c:1884
struct GPU_RendererID GPU_RendererID
DECLSPEC void SDLCALL GPU_CircleFilled(GPU_Target *target, float x, float y, float radius, SDL_Color color)
Definition: SDL_gpu_shapes.c:60
DECLSPEC void SDLCALL GPU_VectorNormalize(float *vec3)
Definition: SDL_gpu_matrix.c:63
DECLSPEC void SDLCALL GPU_GetUniformfv(Uint32 program_object, int location, float *values)
Definition: SDL_gpu.c:2345
struct GPU_ErrorObject GPU_ErrorObject
DECLSPEC void SDLCALL GPU_MultiplyAndAssign(float *result, float *B)
Definition: SDL_gpu_matrix.c:348
Uint32 current_shader_program
Definition: SDL_gpu.h:367
DECLSPEC int SDLCALL GPU_GetNumRegisteredRenderers(void)
Definition: SDL_gpu_renderer.c:78
DECLSPEC GPU_BlendMode SDLCALL GPU_GetBlendModeFromPreset(GPU_BlendPresetEnum preset)
Definition: SDL_gpu.c:1732
DECLSPEC void SDLCALL GPU_FreeImage(GPU_Image *image)
Definition: SDL_gpu.c:1284
DECLSPEC GPU_Renderer *SDLCALL GPU_GetRenderer(GPU_RendererID id)
Definition: SDL_gpu_renderer.c:411
struct GPU_Context GPU_Context
DECLSPEC void SDLCALL GPU_MakeCurrent(GPU_Target *target, Uint32 windowID)
Definition: SDL_gpu.c:497
DECLSPEC void SDLCALL GPU_SetInitWindow(Uint32 windowID)
Definition: SDL_gpu.c:210
DECLSPEC void SDLCALL GPU_SetAnchor(GPU_Image *image, float anchor_x, float anchor_y)
Definition: SDL_gpu.c:1916
DECLSPEC GPU_ShaderBlock SDLCALL GPU_LoadShaderBlock(Uint32 program_object, const char *position_name, const char *texcoord_name, const char *color_name, const char *modelViewMatrix_name)
Definition: SDL_gpu.c:2249
DECLSPEC void SDLCALL GPU_Scale(float sx, float sy, float sz)
Definition: SDL_gpu_matrix.c:496
struct GPU_AttributeSource GPU_AttributeSource
struct GPU_MatrixStack GPU_MatrixStack
DECLSPEC void SDLCALL GPU_SetShaderBlock(GPU_ShaderBlock block)
Definition: SDL_gpu.c:2264
DECLSPEC void SDLCALL GPU_GetUniformMatrixfv(Uint32 program_object, int location, float *values)
Definition: SDL_gpu.c:2370
DECLSPEC void SDLCALL GPU_Multiply4x4(float *result, float *A, float *B)
Definition: SDL_gpu_matrix.c:325
DECLSPEC void SDLCALL GPU_GetDefaultAnchor(float *anchor_x, float *anchor_y)
Definition: SDL_gpu.c:1904
DECLSPEC GPU_bool SDLCALL GPU_IsDefaultShaderProgram(Uint32 program_object)
Definition: SDL_gpu.c:2177
DECLSPEC void SDLCALL GPU_SetPreInitFlags(GPU_InitFlagEnum GPU_flags)
Definition: SDL_gpu.c:220
DECLSPEC void SDLCALL GPU_BlitRotate(GPU_Image *image, GPU_Rect *src_rect, GPU_Target *target, float x, float y, float degrees)
Definition: SDL_gpu.c:1339
DECLSPEC void SDLCALL GPU_SetRGB(GPU_Image *image, Uint8 r, Uint8 g, Uint8 b)
Definition: SDL_gpu.c:1620
DECLSPEC void SDLCALL GPU_GetVirtualCoords(GPU_Target *target, float *x, float *y, float displayX, float displayY)
Definition: SDL_gpu.c:788
DECLSPEC GPU_DebugLevelEnum SDLCALL GPU_GetDebugLevel(void)
Definition: SDL_gpu.c:687
DECLSPEC Uint32 SDLCALL GPU_GetCurrentShaderProgram(void)
Definition: SDL_gpu.c:118
DECLSPEC void SDLCALL GPU_Rectangle2(GPU_Target *target, GPU_Rect rect, SDL_Color color)
Definition: SDL_gpu_shapes.c:108
struct GPU_ShaderBlock GPU_ShaderBlock
DECLSPEC GPU_Target *SDLCALL GPU_InitRendererByID(GPU_RendererID renderer_request, Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags)
Definition: SDL_gpu.c:439
DECLSPEC const char *SDLCALL GPU_GetShaderMessage(void)
Definition: SDL_gpu.c:2204
DECLSPEC const char *SDLCALL GPU_GetErrorString(GPU_ErrorEnum error)
Definition: SDL_gpu.c:765
DECLSPEC void SDLCALL GPU_Ellipse(GPU_Target *target, float x, float y, float rx, float ry, float degrees, SDL_Color color)
Definition: SDL_gpu_shapes.c:66
DECLSPEC void SDLCALL GPU_Pixel(GPU_Target *target, float x, float y, SDL_Color color)
Definition: SDL_gpu_shapes.c:28
SDL_Color(SDLCALL *GetPixel)(GPU_Renderer *renderer
DECLSPEC Uint32 SDLCALL GPU_LinkManyShaders(Uint32 *shader_objects, int count)
Definition: SDL_gpu.c:2122
DECLSPEC void SDLCALL GPU_SetDefaultAnchor(float anchor_x, float anchor_y)
Definition: SDL_gpu.c:1895
DECLSPEC void SDLCALL GPU_LoadIdentity(void)
Definition: SDL_gpu_matrix.c:468
DECLSPEC void SDLCALL GPU_RectangleFilled2(GPU_Target *target, GPU_Rect rect, SDL_Color color)
Definition: SDL_gpu_shapes.c:120