Make parameters const where possible

This commit is contained in:
hasufell 2014-05-09 17:53:25 +02:00
parent 7bc3d7230f
commit 6725dcf5ab
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,7 @@ static HE_vert *find_center(HE_obj const * const obj)
* *
* @param obj the object of which we will draw the vertices * @param obj the object of which we will draw the vertices
*/ */
static void draw_vertices(HE_obj *obj) static void draw_vertices(HE_obj const * const obj)
{ {
for (uint32_t i = 0; i < obj->fc; i++) { /* for all faces */ for (uint32_t i = 0; i < obj->fc; i++) { /* for all faces */
HE_edge *tmp_edge = obj->faces[i].edge; HE_edge *tmp_edge = obj->faces[i].edge;
@ -111,7 +111,9 @@ static void draw_vertices(HE_obj *obj)
* @param myyrot rotation increment around x-axis * @param myyrot rotation increment around x-axis
* @param myzrot rotation increment around x-axis * @param myzrot rotation increment around x-axis
*/ */
static void draw_obj(uint32_t myxrot, uint32_t myyrot, uint32_t myzrot) static void draw_obj(uint32_t const myxrot,
const uint32_t myyrot,
const uint32_t myzrot)
{ {
static uint32_t xrot = 0, static uint32_t xrot = 0,
yrot = 0, yrot = 0,