[client] opengl: make draw functions static

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2022-01-23 08:49:01 +11:00
1 parent 829db8a0e4
commit f2fbb2b27c
1 file changed
+4 -2
+4 -2
View File
@@ -528,7 +528,8 @@ bool opengl_render(LG_Renderer * renderer, LG_RendererRotate rotate, const bool
return true;
}
void drawTorus(float x, float y, float inner, float outer, unsigned int pts)
static void drawTorus(float x, float y, float inner, float outer,
unsigned int pts)
{
glBegin(GL_QUAD_STRIP);
for (unsigned int i = 0; i <= pts; ++i)
@@ -540,7 +541,8 @@ void drawTorus(float x, float y, float inner, float outer, unsigned int pts)
glEnd();
}
void drawTorusArc(float x, float y, float inner, float outer, unsigned int pts, float s, float e)
static void drawTorusArc(float x, float y, float inner, float outer,
unsigned int pts, float s, float e)
{
glBegin(GL_QUAD_STRIP);
for (unsigned int i = 0; i <= pts; ++i)