mirror of https://github.com/xemu-project/xemu.git
Vertex3f support
This commit is contained in:
parent
0e5b4f1eff
commit
d80645afa4
|
@ -912,6 +912,7 @@ static void gl_debug_label(GLenum target, GLuint name, const char *fmt, ...)
|
||||||
# define NV097_SET_VIEWPORT_SCALE 0x00970AF0
|
# define NV097_SET_VIEWPORT_SCALE 0x00970AF0
|
||||||
# define NV097_SET_TRANSFORM_PROGRAM 0x00970B00
|
# define NV097_SET_TRANSFORM_PROGRAM 0x00970B00
|
||||||
# define NV097_SET_TRANSFORM_CONSTANT 0x00970B80
|
# define NV097_SET_TRANSFORM_CONSTANT 0x00970B80
|
||||||
|
# define NV097_SET_VERTEX3F 0x00971500
|
||||||
# define NV097_SET_VERTEX4F 0x00971518
|
# define NV097_SET_VERTEX4F 0x00971518
|
||||||
# define NV097_SET_VERTEX_DATA_ARRAY_OFFSET 0x00971720
|
# define NV097_SET_VERTEX_DATA_ARRAY_OFFSET 0x00971720
|
||||||
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT 0x00971760
|
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT 0x00971760
|
||||||
|
@ -4776,6 +4777,20 @@ static void pgraph_method(NV2AState *d,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case NV097_SET_VERTEX3F ...
|
||||||
|
NV097_SET_VERTEX3F + 8: {
|
||||||
|
slot = (class_method - NV097_SET_VERTEX3F) / 4;
|
||||||
|
VertexAttribute *attribute =
|
||||||
|
&pg->vertex_attributes[NV2A_VERTEX_ATTR_POSITION];
|
||||||
|
pgraph_allocate_inline_buffer_vertices(pg, NV2A_VERTEX_ATTR_POSITION);
|
||||||
|
attribute->inline_value[slot] = *(float*)¶meter;
|
||||||
|
attribute->inline_value[3] = 1.0f;
|
||||||
|
if (slot == 2) {
|
||||||
|
pgraph_finish_inline_buffer_vertex(pg);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case NV097_SET_VERTEX4F ...
|
case NV097_SET_VERTEX4F ...
|
||||||
NV097_SET_VERTEX4F + 12: {
|
NV097_SET_VERTEX4F + 12: {
|
||||||
slot = (class_method - NV097_SET_VERTEX4F) / 4;
|
slot = (class_method - NV097_SET_VERTEX4F) / 4;
|
||||||
|
|
Loading…
Reference in New Issue