Commit Graph

13 Commits

Author SHA1 Message Date
Kevin Shanahan
2ac2685ae3 model: remove duplicated poseverts/numverts info
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-20 10:16:15 +10:30
Kevin Shanahan
acfc75321e model: remove gl_model.h and use model.h everywhere
Gets rid of a bunch of conditionals throughout the .c files as well.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-19 13:22:30 +10:30
Kevin Shanahan
233aa47965 model: hand off alias mesh data loading to helper
GLQuake had pretty much already implemented this with
GL_MakeAliasModelDisplayLists, but generalise it to use the model_loader_t
system and have the software render place it's internal details behind the same
interface.

Again I have introduced some limitations into the software renderer in the form
of the static arrays used to hold temporary data as we load the mesh (same a
glquake) - will attempt to get rid of these later.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-19 11:18:36 +10:30
Kevin Shanahan
ee45322afc model: separate out renderer specific alias header data
Move the renderer specific fields from aliashdr_t to another struct. Embed the
common aliashdr_t struct within it and use the padded cache allocator to allow
the extra data to be managed automatically by the cache.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-16 14:39:32 +10:30
Kevin Shanahan
4b5c4b50a0 model: remove paliashdr global from gl_mesh.c
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-14 13:33:32 +10:30
Kevin Shanahan
b37ed7266d fix strict aliasing issues in gl_mesh.c
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-02 18:39:09 +10:30
Kevin Shanahan
f1ac2404a2 model: constify Mod_LoadAliasFrame input argument
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 11:10:21 +10:30
Kevin Shanahan
d8885d88ba model: pass poseverts down to GL_MakeAliasModelDisplayLists
Make globals "poseverts" and "posenum" local to gl_model.c

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 12:44:47 +10:30
Kevin Shanahan
2abce220c1 model: pass tris and verts down to GL_MakeAliasModelDisplayLists
Make globals "triangles" and "stverts" local to gl_model.c

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 12:32:18 +10:30
Ozkan Sezer
83ff318864 [PATCH] gl_mesh.c, used, int type
changed the type of 'used' in gl_mesh.c from qboolean to int,
because we assign values other than true and false to it.

Signed-off-by: O.Sezer <sezero@users.sourceforge.net>
Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-10-01 22:37:31 +09:30
Tyrann
9c7aba96bc [PATCH] gl_mesh.c statics
Make a whole lot of globals from gl_mesh.c static.

Pass in the aliashdr_t to GL_MakeAliasModelDisplayLists so that
pheader global in gl_model.c can be made static also.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-08-12 16:29:08 +09:30
Tyrann
7e2ff0ee90 [PATCH] gl_mesh cleanups
Cleanup path handling in gl_mesh.c.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-10 19:06:03 +09:30
Tyrann
130e22195a Import v0.47 sources 2006-09-10 19:02:51 +09:30