brender-1997/myst/Prim_l15.c
2022-05-03 14:31:40 -07:00

67 lines
1 KiB
C

{
{
/* Render function
*/
(brp_render_fn *) LineRenderSmooth, NULL,
"Smooth", &PrimitiveLibraryMyst,
BRT_LINE, 0,
/* components - constant and per vertex
*/
0,
CM_SX|CM_SY|CM_SZ|CM_R|CM_G|CM_B|CM_U|CM_V|CM_W,
/* 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_U)|(1<<C_V)|(1<<C_W),
0,
0,
/* Constant slots
*/
0,
/* Reserved */
0, 0, 0, 0
},
/* Masks
*/
PRIMF_SMOOTH,
PRIMF_SMOOTH,
},
{
{
/* Render function
*/
(brp_render_fn *) LineRenderFlat, NULL,
"Flat", &PrimitiveLibraryMyst,
BRT_LINE, 0,
/* components - constant and per vertex
*/
CM_R|CM_G|CM_B,
CM_SX|CM_SY|CM_SZ|CM_U|CM_V|CM_W,
/* 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_U)|(1<<C_V)|(1<<C_W),
0,
0,
/* Constant slots
*/
// (1<<C_R)|(1<<C_G)|(1<<C_B), // may be buggy, removed
0,
/* Reserved */
0, 0, 0, 0
},
/* Masks
*/
PRIMF_SMOOTH,
0,
}