Improve inline comments

This commit is contained in:
hasufell 2014-05-12 20:55:16 +02:00
parent 0fc3212f5a
commit 58d4eb474e
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -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();
} }