Go to the source code of this file.
Macros | |
#define | DEGPERRAD 57.2957795f |
#define | RADPERDEG 0.0174532925f |
#define | BEGIN_UNTEXTURED(function_name, shape, num_additional_vertices, num_additional_indices) |
Functions | |
static float | SetLineThickness (GPU_Renderer *renderer, float thickness) |
static float | GetLineThickness (GPU_Renderer *renderer) |
static void | Pixel (GPU_Renderer *renderer, GPU_Target *target, float x, float y, SDL_Color color) |
static void | Line (GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color) |
static void | Circle (GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, SDL_Color color) |
static void | Arc (GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, float start_angle, float end_angle, SDL_Color color) |
static void | CircleFilled (GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, SDL_Color color) |
static void | ArcFilled (GPU_Renderer *renderer, GPU_Target *target, float x, float y, float radius, float start_angle, float end_angle, SDL_Color color) |
static 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) |
static 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) |
static void | Tri (GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float x3, float y3, SDL_Color color) |
static void | TriFilled (GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float x3, float y3, SDL_Color color) |
static void | Rectangle (GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color) |
static void | RectangleFilled (GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, SDL_Color color) |
static void | RectangleRound (GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float radius, SDL_Color color) |
static void | RectangleRoundFilled (GPU_Renderer *renderer, GPU_Target *target, float x1, float y1, float x2, float y2, float radius, SDL_Color color) |
static void | Polygon (GPU_Renderer *renderer, GPU_Target *target, unsigned int num_vertices, float *vertices, SDL_Color color) |
static void | PolygonFilled (GPU_Renderer *renderer, GPU_Target *target, unsigned int num_vertices, float *vertices, SDL_Color color) |
#define BEGIN_UNTEXTURED | ( | function_name, | |
shape, | |||
num_additional_vertices, | |||
num_additional_indices | |||
) |
Definition at line 19 of file SDL_gpuShapes_GL_common.inl.
Referenced by Arc(), ArcFilled(), Circle(), CircleFilled(), Line(), Pixel(), Polygon(), PolygonFilled(), Rectangle(), RectangleFilled(), RectangleRound(), RectangleRoundFilled(), SectorFilled(), Tri(), and TriFilled().
#define DEGPERRAD 57.2957795f |
Definition at line 5 of file SDL_gpuShapes_GL_common.inl.
Referenced by Arc(), ArcFilled(), Circle(), CircleFilled(), and SectorFilled().
#define RADPERDEG 0.0174532925f |
Definition at line 9 of file SDL_gpuShapes_GL_common.inl.
Referenced by Arc(), ArcFilled(), Circle(), CircleFilled(), Sector(), and SectorFilled().
|
static |
Definition at line 145 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, Circle(), DEGPERRAD, GL_LINES, i, RADPERDEG, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
Referenced by Sector(), and SectorFilled().
|
static |
Definition at line 217 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, CircleFilled(), DEGPERRAD, GL_TRIANGLES, i, RADPERDEG, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 294 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, DEGPERRAD, GL_LINES, i, RADPERDEG, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
Referenced by Arc().
|
static |
Definition at line 320 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, DEGPERRAD, GL_TRIANGLES, i, RADPERDEG, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
Referenced by ArcFilled().
|
static |
Definition at line 110 of file SDL_gpuShapes_GL_common.inl.
References GPU_Target::context, GPU_Renderer::current_context_target, and GPU_Context::line_thickness.
|
static |
Definition at line 122 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GPU_Renderer::GetLineThickness, GL_TRIANGLES, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
Referenced by Sector().
|
static |
Definition at line 115 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GL_POINTS, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 794 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GL_LINES, i, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 817 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GL_TRIANGLES, i, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 558 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GPU_Renderer::GetLineThickness, GL_TRIANGLES, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 617 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GL_TRIANGLES, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 630 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GL_LINES, i, M_PI, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 705 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GL_TRIANGLES, i, M_PI, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 357 of file SDL_gpuShapes_GL_common.inl.
|
static |
Definition at line 414 of file SDL_gpuShapes_GL_common.inl.
References Arc(), BEGIN_UNTEXTURED, DEGPERRAD, GL_TRIANGLES, i, RADPERDEG, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 94 of file SDL_gpuShapes_GL_common.inl.
References GPU_Target::context, GPU_Renderer::current_context_target, GPU_Renderer::FlushBlitBuffer, glLineWidth(), and GPU_Context::line_thickness.
|
static |
Definition at line 535 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GL_LINES, SET_INDEXED_VERTEX, and SET_UNTEXTURED_VERTEX.
|
static |
Definition at line 549 of file SDL_gpuShapes_GL_common.inl.
References BEGIN_UNTEXTURED, GL_TRIANGLES, and SET_UNTEXTURED_VERTEX.