]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Replaced some model fields and changed their purpose slightly to simplify a lot of...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Dec 2020 10:19:47 +0000 (10:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Dec 2020 10:19:47 +0000 (10:19 +0000)
commit81428659a4156981ed76f6167ef3be82d35a4bf8
tree957c1a277fd2ba8c59e0bebf3a9d4ac502c36f3c
parentb49b978aa7e5f734a083abc02110b1e8c5682c26
Replaced some model fields and changed their purpose slightly to simplify a lot of code:
model->firstmodelsurface : model->submodelsurfaces_start
model->nummodelsurfaces : replaced with model->submodelsurfaces_end
model->sortedmodelsurfaces : replaced with model->modelsurfaces_sorted (which starts at surface 0, not firstmodelsurface).

Changed the implementation of MakeSortedSurfaces so that it now sorts by effect, texture, lightmap, previously it didn't care about lightmap or effect.

No behavior changes.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13072 d7cf8633-e32d-0410-b094-e92efae38249
gl_rmain.c
gl_rsurf.c
model_alias.c
model_brush.c
model_shared.c
model_shared.h
prvm_cmds.c
r_shadow.c
world.c