97 lines
1.5 KiB
C
97 lines
1.5 KiB
C
{
|
|
{
|
|
/* Render function */
|
|
(brp_render_fn *) PointRender, NULL,
|
|
|
|
"Point, Textured", &PrimitiveLibrary3Dfx,
|
|
BRT_POINT, 0,
|
|
|
|
/* components - constant and per vertex */
|
|
0,
|
|
CM_SX|CM_SY|CM_SZ|CM_U|CM_V|CM_Q,
|
|
|
|
/* Component slots as - float, fixed or integer */
|
|
(1<<C_SX)|(1<<C_SY)|(1<<C_SZ)|(1<<C_U)|(1<<C_V)|(1<<C_Q),
|
|
0,
|
|
0,
|
|
|
|
/* Constant slots */
|
|
0,
|
|
|
|
/* Reserved */
|
|
0, 0, 0, 0
|
|
},
|
|
|
|
/* Masks */
|
|
PRIMF_TEXTURE_BUFFER,
|
|
PRIMF_TEXTURE_BUFFER,
|
|
|
|
/* Block specific begin/end */
|
|
NULL,
|
|
NULL,
|
|
},
|
|
{
|
|
{
|
|
/* Render function */
|
|
(brp_render_fn *) PointRender, NULL,
|
|
|
|
"Point, Smooth", &PrimitiveLibrary3Dfx,
|
|
BRT_POINT, 0,
|
|
|
|
/* components - constant and per vertex */
|
|
0,
|
|
CM_SX|CM_SY|CM_SZ|CM_R|CM_G|CM_B|CM_Q,
|
|
|
|
/* Component slots as - float, fixed or integer */
|
|
(1<<C_SX)|(1<<C_SY)|(1<<C_SZ)|(1<<C_R)|(1<<C_G)|(1<<C_B)|(1<<C_Q),
|
|
0,
|
|
0,
|
|
|
|
/* Constant slots */
|
|
0,
|
|
|
|
/* Reserved */
|
|
0, 0, 0, 0
|
|
},
|
|
|
|
/* Masks */
|
|
PRIMF_SMOOTH,
|
|
PRIMF_SMOOTH,
|
|
|
|
/* Block specific begin/end */
|
|
NULL,
|
|
NULL,
|
|
},
|
|
{
|
|
{
|
|
/* Render function */
|
|
(brp_render_fn *) PointRender, NULL,
|
|
|
|
"Point, Flat", &PrimitiveLibrary3Dfx,
|
|
BRT_POINT, 0,
|
|
|
|
/* components - constant and per vertex */
|
|
CM_R|CM_G|CM_B,
|
|
CM_SX|CM_SY|CM_SZ|CM_Q,
|
|
|
|
/* Component slots as - float, fixed or integer */
|
|
(1<<C_SX)|(1<<C_SY)|(1<<C_SZ)|(1<<C_R)|(1<<C_G)|(1<<C_B)|(1<<C_Q),
|
|
0,
|
|
0,
|
|
|
|
/* Constant slots */
|
|
(1<<C_R)|(1<<C_G)|(1<<C_B),
|
|
|
|
/* Reserved */
|
|
0, 0, 0, 0
|
|
},
|
|
|
|
/* Masks */
|
|
PRIMF_SMOOTH,
|
|
0,
|
|
|
|
/* Block specific begin/end */
|
|
NULL,
|
|
NULL,
|
|
}
|
|
|