Improve inline comments
This commit is contained in:
parent
0fc3212f5a
commit
58d4eb474e
@ -125,9 +125,11 @@ static void draw_obj(int32_t const myxrot,
|
|||||||
int32_t const myyrot,
|
int32_t const myyrot,
|
||||||
int32_t const myzrot)
|
int32_t const myzrot)
|
||||||
{
|
{
|
||||||
|
/* rotation */
|
||||||
static int32_t xrot = 0,
|
static int32_t xrot = 0,
|
||||||
yrot = 0,
|
yrot = 0,
|
||||||
zrot = 0;
|
zrot = 0;
|
||||||
|
|
||||||
/* color */
|
/* color */
|
||||||
static float red = 90,
|
static float red = 90,
|
||||||
blue = 90,
|
blue = 90,
|
||||||
@ -150,6 +152,7 @@ static void draw_obj(int32_t const myxrot,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* increment rotation, if any */
|
||||||
xrot += myxrot;
|
xrot += myxrot;
|
||||||
yrot += myyrot;
|
yrot += myyrot;
|
||||||
zrot += myzrot;
|
zrot += myzrot;
|
||||||
@ -181,7 +184,6 @@ static void draw_obj(int32_t const myxrot,
|
|||||||
draw_vertices(obj);
|
draw_vertices(obj);
|
||||||
glEnd();
|
glEnd();
|
||||||
|
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user