From b35bfd43ab1be69e7b11b6dab8edcd5b9cb2176d Mon Sep 17 00:00:00 2001 From: taw27 Date: Sun, 27 Jul 2008 22:38:20 +0000 Subject: Formatting in model.c git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@184 84d2e878-0bd5-11dd-ad15-13eda11d74c5 --- src/model.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/model.c b/src/model.c index 1432f62..bf5512e 100644 --- a/src/model.c +++ b/src/model.c @@ -72,9 +72,9 @@ static Model *model_new(const char *name) { } -static Primitive *model_add_primitive(Model *model, GLenum type, GLfloat *vertices, GLfloat *normals, GLfloat *texcoords, - int n, PrimitiveAttrib attribs, GLfloat r, GLfloat g, GLfloat b, char *texture, - GLfloat radius, GLfloat shininess, int vbos) { +static Primitive *model_add_primitive(Model *model, GLenum type, GLfloat *vertices, GLfloat *normals, + GLfloat *texcoords, int n, PrimitiveAttrib attribs, GLfloat r, GLfloat g, + GLfloat b, char *texture, GLfloat radius, GLfloat shininess, int vbos) { Primitive *p; @@ -153,7 +153,8 @@ static Primitive *model_add_primitive(Model *model, GLenum type, GLfloat *vertic } -static void model_calculate_normals(GLfloat *vertices, GLfloat *normals, int first, int last, int centre, int v1, int v2) { +static void model_calculate_normals(GLfloat *vertices, GLfloat *normals, int first, int last, int centre, + int v1, int v2) { GLfloat ax, ay, az; GLfloat bx, by, bz; @@ -238,7 +239,8 @@ static int model_load(ModelContext *ctx, const char *name, RenderContext *render if ( line[0] == '\n' ) { if ( num_vertices > 0 ) { model_add_primitive(model, type, vertices, normals, texcoords, num_vertices, - attribs, col_r, col_g, col_b, texture, radius, shininess, render->vbos); + attribs, col_r, col_g, col_b, texture, radius, shininess, + render->vbos); num_vertices = 0; type = PRIMITIVE_TRIANGLES; attribs = ATTRIB_NONE; -- cgit v1.2.3