Branch for OpenGL ES work.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3524 78b8d119-cf0a-0410-b17c-f493084dd1d7
Added struct b_offs to solid_base.
Refactored solid_base, solid_draw, and mapc to accomodate b_offs.
Temporarily commented out the glMultiTexture conditional.
Fixed long type warning in sync.c under OSX.
Fixed Ogg Vorbis warning static callbacks.
Added timer feature to mapc.
Added CSV feature to mapc.
Removed "visible geom" output from mapc output, as offs is more relevant.
Removed uniq_geoms tweak from mapc.
Added uniq_mtrl tweak to mapc (just for symmetry, not for optimization.)


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3527 78b8d119-cf0a-0410-b17c-f493084dd1d7
Converted the SOL renderer to use VBOs.
Multitexture shadow is not yet implemented.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3531 78b8d119-cf0a-0410-b17c-f493084dd1d7
Fixed the shadow, though the shadow clip is still broken.
Added the shadow flag to everything.  We'll sort out the non-shadow later.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3532 78b8d119-cf0a-0410-b17c-f493084dd1d7
Fixed rendering decals after opaque material and before transparent material.  This was causing Z fighting.
Fixed material state revert in sol_draw.  This was allowing state to leak the level and corrupt the GUI.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3533 78b8d119-cf0a-0410-b17c-f493084dd1d7
Added a billboard VBO to the draw structure.
Re-implemented sol_bill and sol_back using VBOs.
Backgrounds and balls are now fully functional.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3534 78b8d119-cf0a-0410-b17c-f493084dd1d7
Testing a SOL-based goal renderer as an efficient alternative to the display lists used by the switches, teleporters, etc.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3535 78b8d119-cf0a-0410-b17c-f493084dd1d7
CURRENTLY BROKEN DUE TO FLAG GEOM.
Added separate material flags for S and T clamp.
Merged goal, switch, and jump geometry.
Converted flag to SOL.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3536 78b8d119-cf0a-0410-b17c-f493084dd1d7
Fixed flag SOL.  The culprit was a lack of texture coords.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3537 78b8d119-cf0a-0410-b17c-f493084dd1d7
Converted mark GL into SOL.
Moved fader draw to sol_fade and reimplemented in terms of billboard drawing.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3538 78b8d119-cf0a-0410-b17c-f493084dd1d7
Added default material to enable SOL files that don't apply any materials.
Added star mtrl files.  They weren't being additive blended.
Merged back.c into geom.c.
Replaced back display list with back SOL.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3539 78b8d119-cf0a-0410-b17c-f493084dd1d7
GUI rewrite is mostly complete.  Removed all display list usage and merged everything down to a single vertex buffer object.  The counter and timer widgets (originally based on separate digit DLs) are currently broken.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3540 78b8d119-cf0a-0410-b17c-f493084dd1d7
Tiny tweaks to eliminate pointless transforms.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3541 78b8d119-cf0a-0410-b17c-f493084dd1d7
Finished GUI rewrite.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3542 78b8d119-cf0a-0410-b17c-f493084dd1d7
Rewrote all mtrl files to use flag names instead of an integer bitmap.  This is done so that mtrl flag values can be modified and reordered in the engine without having to recompute all bitmap values for all materials.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3543 78b8d119-cf0a-0410-b17c-f493084dd1d7
Added a per-rendering pass mesh count to the body draw structure.  This optimizes the rendering of bodies that have no materials matching the current pass.
Reordered the material flags to ensure that cheap state changes happen more often than expensive ones.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3544 78b8d119-cf0a-0410-b17c-f493084dd1d7
Sketched in possible alternatives for jump and goal particles.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3545 78b8d119-cf0a-0410-b17c-f493084dd1d7
Minor tweaks to geom.c.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3546 78b8d119-cf0a-0410-b17c-f493084dd1d7
Converted the remaining particle usage (coin bursts) to point sprite.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3547 78b8d119-cf0a-0410-b17c-f493084dd1d7
Enabled SOL billboards on items.
Added experimental highlight to coin to enhance visibility at low res (320x240).  I don't really expect this feature to be popular.


git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3548 78b8d119-cf0a-0410-b17c-f493084dd1d7