Module twilight: Change committed

warp at icculus.org warp at icculus.org
Wed Sep 10 15:12:54 EDT 2003


Commiter   : warp
CVSROOT    : /cvs/cvsroot/twilight
Module     : twilight
Commit time: 2003-09-10 19:12:53 UTC

Log message:

This is what I get for starting one set of huge changes before
committing the previous.

Moved some stuff from cl.<foo> to ccl.<foo>

Move CCL_BuildLightList to the renderer, rename to R_BuildLightList.

Rework the model system somewhat to support reloading models on mass.
(Mod_ClearAll now takes an argument, if it is true then it keeps enough
 of a record of the models that Mod_ReloadAll can reload them all.)

Add the ability to shutdown and reinit the HUD code.

r_refdef, r_worldmodel, and a number of others have been moved into
renderer_t, now accessed as r.worldmodel.

Changed the handling of notexture and notexture_water, handles shutdown
better and fixed a bug that would crash Twilight in the event of more
then one brush model having surfaces without textures.

Move screen.h to src/renderer/, gl_screen.c needs to move over as well.

Rework the texture generation code somewhat, added the corona texture to
the font texture, move all the other generated textures to here as well.

Completely reworked the renderer init, and added renderer shutdown,
allowing vid_restart to work!
(WARNING!  While it seems to work, after vid_restart there have been
 some crashes that I have been unable to figure out, use caution.
 Help tracking these down would be appreciated.)

Change the single letter r to red in R_DrawExplosion, naming conflict.)

Fix a particle bug that resulted in us allocating the particle arrays
twice. (Gee, only 2-3 megs of memory, whoops.)

Changed the handling of _windowed_mouse, it is now a bit saner.

gl_driver is now CVAR_ARCHIVE instead of CVAR_ROM, new value will take
effect on vid_restart.

-width, -height, and -winsize now simply set the vid_width and
vid_height cvars, which are CVAR_ARCHIVE.
Changes to these cvars will take effect on vid_restart.

-window now sets the vid_windowed cvar, changes take effect on
vid_restart.

-bpp now sets the vid_bpp cvar, changes take effect on vid_restart.

Some misc minor cleanups.

Modified files:
     src/base/mod_brush.c src/base/model.c src/client/cclient.h
     src/client/dlight.c src/client/dlight.h src/client/hud.c
     src/client/hud.h src/include/mod_brush.h src/include/model.h
     src/nq/chase.c src/nq/cl_demo.c src/nq/cl_input.c
     src/nq/cl_main.c src/nq/cl_model.c src/nq/cl_parse.c
     src/nq/client.h src/nq/gl_screen.c src/nq/host.c src/nq/view.c
     src/qw/cl_demo.c src/qw/cl_ents.c src/qw/cl_input.c
     src/qw/cl_main.c src/qw/cl_model.c src/qw/cl_parse.c
     src/qw/cl_pred.c src/qw/client.h src/qw/gl_screen.c
     src/qw/server.h src/qw/sv_init.c src/qw/sv_model.c src/qw/view.c
     src/renderer/entities.c src/renderer/entities.h
     src/renderer/gen_textures.c src/renderer/gen_textures.h
     src/renderer/gl_alias.c src/renderer/gl_arrays.c
     src/renderer/gl_arrays.h src/renderer/gl_brush.c
     src/renderer/gl_draw.c src/renderer/gl_draw.h
     src/renderer/gl_info.c src/renderer/gl_info.h
     src/renderer/gl_light.c src/renderer/gl_light.h
     src/renderer/gl_main.c src/renderer/gl_main.h
     src/renderer/gl_sprite.c src/renderer/gl_textures.c
     src/renderer/gl_textures.h src/renderer/liquid.c
     src/renderer/liquid.h src/renderer/menu.c
     src/renderer/mod_alias.c src/renderer/mod_brush.c
     src/renderer/mod_sprite.c src/renderer/palette.c
     src/renderer/palette.h src/renderer/r_explosion.c
     src/renderer/r_explosion.h src/renderer/r_part.c
     src/renderer/r_part.h src/renderer/sky.c src/renderer/sky.h
     src/renderer/surface.c src/renderer/video.c src/renderer/video.h
     src/renderer/vis.c src/renderer/vis.h

Added files:
     src/renderer/screen.h

Removed files:
     src/nq/screen.h src/qw/screen.h
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: twilight.20030910.191253.warp.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20030910/44d330ec/attachment.diff>


More information about the twilight-commits mailing list