The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions
SDL_gpuShapes_GL_common.inl File Reference
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

#define BEGIN_UNTEXTURED (   function_name,
  shape,
  num_additional_vertices,
  num_additional_indices 
)
#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().

Function Documentation

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
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
static void Circle ( GPU_Renderer renderer,
GPU_Target target,
float  x,
float  y,
float  radius,
SDL_Color  color 
)
static
static void CircleFilled ( GPU_Renderer renderer,
GPU_Target target,
float  x,
float  y,
float  radius,
SDL_Color  color 
)
static
static float GetLineThickness ( GPU_Renderer renderer)
static
static void Line ( GPU_Renderer renderer,
GPU_Target target,
float  x1,
float  y1,
float  x2,
float  y2,
SDL_Color  color 
)
static
static void Pixel ( GPU_Renderer renderer,
GPU_Target target,
float  x,
float  y,
SDL_Color  color 
)
static

Definition at line 115 of file SDL_gpuShapes_GL_common.inl.

References BEGIN_UNTEXTURED, GL_POINTS, and SET_UNTEXTURED_VERTEX.

static void Polygon ( GPU_Renderer renderer,
GPU_Target target,
unsigned int  num_vertices,
float *  vertices,
SDL_Color  color 
)
static
static void PolygonFilled ( GPU_Renderer renderer,
GPU_Target target,
unsigned int  num_vertices,
float *  vertices,
SDL_Color  color 
)
static
static void Rectangle ( GPU_Renderer renderer,
GPU_Target target,
float  x1,
float  y1,
float  x2,
float  y2,
SDL_Color  color 
)
static
static void RectangleFilled ( GPU_Renderer renderer,
GPU_Target target,
float  x1,
float  y1,
float  x2,
float  y2,
SDL_Color  color 
)
static
static void RectangleRound ( GPU_Renderer renderer,
GPU_Target target,
float  x1,
float  y1,
float  x2,
float  y2,
float  radius,
SDL_Color  color 
)
static
static void RectangleRoundFilled ( GPU_Renderer renderer,
GPU_Target target,
float  x1,
float  y1,
float  x2,
float  y2,
float  radius,
SDL_Color  color 
)
static
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

Definition at line 357 of file SDL_gpuShapes_GL_common.inl.

References Arc(), Line(), and RADPERDEG.

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
static float SetLineThickness ( GPU_Renderer renderer,
float  thickness 
)
static
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
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