Added support for double and integer attribute (VertexDeclaration)

Improved Renderer error handling


Former-commit-id: 8cded7c0a7d1ba7c8583ef3e7b74b1d9604088e3
This commit is contained in:
Lynix
2014-04-25 21:11:14 +02:00
parent 4898018396
commit beb1879aca
4 changed files with 195 additions and 72 deletions

View File

@@ -1886,10 +1886,14 @@ GLenum NzOpenGL::AttributeType[] =
GL_FLOAT, // nzAttributeType_Float1
GL_FLOAT, // nzAttributeType_Float2
GL_FLOAT, // nzAttributeType_Float3
GL_FLOAT // nzAttributeType_Float4
GL_FLOAT, // nzAttributeType_Float4
GL_INT, // nzAttributeType_Int1
GL_INT, // nzAttributeType_Int2
GL_INT, // nzAttributeType_Int3
GL_INT // nzAttributeType_Int4
};
static_assert(nzAttributeType_Max+1 == 9, "Attribute type array is incomplete");
static_assert(nzAttributeType_Max+1 == 13, "Attribute type array is incomplete");
GLenum NzOpenGL::BlendFunc[] =
{