#define FFB_VB_TWOSIDE_BIT 0x04
#define FFB_VB_MAX 0x08
-typedef void (*emit_func)(GLcontext *, GLuint, GLuint);
+typedef void (*ffb_emit_func)(GLcontext *, GLuint, GLuint);
static struct {
- emit_func emit;
+ ffb_emit_func emit;
interp_func interp;
} setup_tab[FFB_VB_MAX];
mEndPrimitive();
} else {
int mmio_index = 0, incr = 0;
- void (*emit_func)(sisContextPtr smesa, char *verts) = NULL;
+ void (*sis_emit_func)(sisContextPtr smesa, char *verts) = NULL;
if (smesa->AGPParseSet & MASK_PsShadingSmooth)
mmio_index |= VERT_SMOOTH;
switch (smesa->AGPParseSet & MASK_PsDataType) {
case MASK_PsPointList:
incr = smesa->vertex_size * 4;
- emit_func = sis_point_func_mmio[mmio_index];
+ sis_emit_func = sis_point_func_mmio[mmio_index];
break;
case MASK_PsLineList:
incr = smesa->vertex_size * 4 * 2;
- emit_func = sis_line_func_mmio[mmio_index];
+ sis_emit_func = sis_line_func_mmio[mmio_index];
break;
case MASK_PsTriangleList:
incr = smesa->vertex_size * 4 * 3;
- emit_func = sis_tri_func_mmio[mmio_index];
+ sis_emit_func = sis_tri_func_mmio[mmio_index];
break;
}
mWait3DCmdQueue(1);
MMIO(REG_3D_PrimitiveSet, smesa->dwPrimitiveSet);
while (smesa->vb_last < smesa->vb_cur) {
- emit_func(smesa, smesa->vb_last);
+ sis_emit_func(smesa, smesa->vb_last);
smesa->vb_last += incr;
}
mWait3DCmdQueue(1);
dst->ui[3] = src->ui[3];
}
-typedef void (*emit_func)( GLcontext *, GLuint, GLuint, void *, GLuint );
+typedef void (*tdfx_emit_func)( GLcontext *, GLuint, GLuint, void *, GLuint );
static struct {
- emit_func emit;
+ tdfx_emit_func emit;
interp_func interp;
copy_pv_func copy_pv;
GLboolean (*check_tex_sizes)( GLcontext *ctx );