mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 08:36:28 +00:00
[client] opengl: make draw functions static
This commit is contained in:
parent
829db8a0e4
commit
f2fbb2b27c
@ -528,7 +528,8 @@ bool opengl_render(LG_Renderer * renderer, LG_RendererRotate rotate, const bool
|
|||||||
return true;
|
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);
|
glBegin(GL_QUAD_STRIP);
|
||||||
for (unsigned int i = 0; i <= pts; ++i)
|
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();
|
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);
|
glBegin(GL_QUAD_STRIP);
|
||||||
for (unsigned int i = 0; i <= pts; ++i)
|
for (unsigned int i = 0; i <= pts; ++i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user