Brian
2bf4a500de
Fix for-loop in interp() so we don't go out of bounds.
...
Improved comments for that loop.
Added some sanity check assertions regarding vertex layout.
2007-07-13 12:28:42 -06:00
Brian
5810b40d6e
set INTERP_CONSTANT when appropriate
...
Not really signficant now since draw_flat stage copies the provoking
vertex color to all prim verts.
2007-07-13 12:26:09 -06:00
Brian
a47b5764c0
comments
2007-07-13 12:23:34 -06:00
Brian
a6eccf9e4f
Enable Keith's branch-less stipple code - it works.
2007-07-13 11:16:13 -06:00
Brian
80362a90d8
Add 'prim' field to quad so that stipple and aa coverage stages can do the right thing.
2007-07-13 11:15:10 -06:00
Brian
46bba80a54
Implement AA points and AA coverage application in quad pipeline.
2007-07-13 10:33:48 -06:00
Brian
5796056e28
press 's' to toggle smoothing
2007-07-13 10:32:56 -06:00
Brian
563479552e
Added basic occlusion counting
2007-07-13 09:25:57 -06:00
Brian
676fcf0de2
minor rename
2007-07-13 09:23:41 -06:00
Keith Whitwell
aa0f415c8d
Add conditional-free implementation (disabled, not tested)
2007-07-13 11:28:42 +01:00
Keith Whitwell
60a21f6c54
Simplify slightly.
...
Don't bother trying to save a small memcpy.
2007-07-13 11:27:57 +01:00
Brian
f0f9a22609
minor changes, comments about multiple color buffers, MRT.
2007-07-12 16:17:14 -06:00
Brian
a48d767cf2
Add a quad 'bufloop' stage to handle glDrawBuffer(GL_FRONT_AND_BACK).
...
This removes the notion of multiple color buffers from all other stages.
Will need a bit more work when shaders with multiple render targets arrive.
2007-07-12 14:13:48 -06:00
Brian
e8ceb5a2eb
XXX comment about skipping stipple for points/lines
2007-07-12 13:44:43 -06:00
Brian
c78f372b17
s/prim_setup/sp_draw_render_stage/, new comments
2007-07-12 13:43:33 -06:00
Brian
4f218958cc
Remove dead code
2007-07-12 13:33:33 -06:00
Brian
ea470eec86
Rename prim_stage -> draw_stage
2007-07-12 13:32:31 -06:00
Brian
86352ff70d
Added colormask, dither, multisample state. Implement colormasking stage.
2007-07-12 12:20:14 -06:00
Brian
bd5533bb7c
front/back-face determination was wrong
2007-07-12 11:59:43 -06:00
Brian
9e94e9b798
culling was inverted
2007-07-12 11:59:15 -06:00
Brian
62f5f18b3e
handle edge flags for GL_POLYGONs
2007-07-12 11:50:52 -06:00
Brian
5b06424a15
fix MIN/MAX mix-up
2007-07-12 10:43:33 -06:00
Brian
2371ed36f7
remove unused hw_data_offset
2007-07-11 16:17:23 -06:00
Brian
46d75518fa
disable debug printfs
2007-07-11 13:13:00 -06:00
Brian
8db689350d
remove glDepthFunc(GL_LEQUAL) change from prev commit
2007-07-11 13:12:33 -06:00
Brian
aac2129663
Fix broken depth offset.
...
The edge vectors were totally wrong.
Need to multiply bias units by the min resolvable depth delta.
2007-07-11 13:02:03 -06:00
Brian
bc4dd63f12
Obsolete file.
2007-07-11 11:36:22 -06:00
Brian
e89bd0fbc5
Implement polygon stipple state tracking, application.
2007-07-11 11:34:19 -06:00
Brian
300e97081e
need to clamp floats to [0,1] in write functions
2007-07-11 09:56:46 -06:00
Brian
d6aa360edd
fix stencil logic error, use proper front/back face value
2007-07-11 09:52:32 -06:00
Brian
0ac0fb91bd
Compute quad.facing from prim->det and polygon winding.
...
Updated comments/questions about area vs. prim->det.
2007-07-11 09:52:00 -06:00
Brian
73daa68854
Checkpoint: stencil roughly working, some bugs to fix...
2007-07-10 18:59:17 -06:00
Brian
e6eca5c37e
Begin hooking up stenciling.
2007-07-10 16:37:18 -06:00
Brian
227c95737b
clean-ups
2007-07-10 16:37:03 -06:00
Brian
d015d2e0f4
Fill in remaining switch cases. Only call next stage if quad->mask != 0.
2007-07-10 16:25:43 -06:00
Brian
093d1b42d0
remove debug printf
2007-07-10 15:29:17 -06:00
Brian
a49a23efc5
Fix line clipping bug. New comments.
...
Need to use a new prim_header for the post-clipped line. Otherwise,
we were changing the header passed to us from the vb code. That messed
up the vertex pointers for the next line primitive.
2007-07-10 15:24:31 -06:00
Brian
985e37eedb
clean-up, comments
2007-07-10 14:46:15 -06:00
Brian
13aa51de41
clamp after offsetting, new comments
2007-07-10 14:38:10 -06:00
Brian
6aa9c8ebc1
remove unneeded casts, added comments
2007-07-10 14:36:10 -06:00
Brian
1deafdb1de
Do depth testing with integer values.
...
Using floats (and float->ushort->float conversion) introduces errors.
Only GLushort depth buffers work for now...
2007-07-10 13:53:21 -06:00
Brian
f6dffd6ee7
fix problems with polygon offset
2007-07-10 13:34:23 -06:00
Brian
5e4379b5a4
comments, clean-up
2007-07-10 13:33:45 -06:00
Brian
720c0eb71d
added comments
2007-07-10 11:54:16 -06:00
Brian
1fe4cf83cd
Fix front/back mix-up. added comments.
2007-07-10 11:54:03 -06:00
Brian
24b68f4184
press 'f' to toggle GL_CCW/GL_CW front face
2007-07-10 11:53:27 -06:00
Brian
9a89cc3b6b
use 'c' to cycle through polygon cull modes
2007-07-10 11:39:08 -06:00
Brian
8733ee9dc9
use cursor keys to translate triangle
2007-07-10 11:33:10 -06:00
Brian
17b86cfa4e
Comments, minor clean-up.
2007-07-10 11:03:51 -06:00
Brian
e7a2085148
comments
2007-07-10 11:00:24 -06:00