Permalink
Browse files

Vertex count is done

  • Loading branch information...
1 parent 836f0ab commit ab711df469b57f80dc89696e6bbcdf122a54427b @kthakore committed Nov 1, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 first/object.c
  2. +1 −1 first/object.h
  3. +1 −1 first/scenegraph.h
View
@@ -42,7 +42,7 @@ void obj_add( object* parent, object* child )
*
* Additionally set the bounding box
*/
-void obj_load( object* obj, int mode, void* data, int count)
+void obj_load( object* obj, int mode, void* data, int vert_count, int poly_count)
{
//We alread have data loaded
if( obj->polygon_count > 0 )
@@ -51,7 +51,7 @@ void obj_load( object* obj, int mode, void* data, int count)
obj->render_mode = mode;
obj->polygon_data = (vertex*)data;
- obj->polygon_count = count;
+ obj->polygon_count = poly_count;
obj_update_bounding_sphere( obj );
}
View
@@ -2,7 +2,7 @@
#define _OBJECT_H
object* obj_create ( scene_manager* sm);
-void obj_load( object* obj, int mode, void* data, int count);
+void obj_load( object* obj, int mode, void* data, int vert_`count, int poly_count);
void obj_update_bounding_sphere( object* obj);
void obj_add( object* parent, object* child);
void obj_calculate_bounding_sphere( object* obj );
View
@@ -45,7 +45,7 @@ typedef struct OBJ
int render_callist;
-
+ int vertex_count;
int polygon_count; /* Number of polygons */
int render_mode; /* GL_TRIANGLE_STRIPS ... so on */

0 comments on commit ab711df

Please sign in to comment.