Archived

This topic is now archived and is closed to further replies.

666_1337

ATI_element_array

Recommended Posts

hi all... i''ve had an ati radeon 32 for a long time an programmed it... now i''ve bought myself a geforce 4 ti 4600 and am wondering why i''m not able to load it with ATI_element_array... void init(void) { ... glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_ELEMENT_ARRAY_ATI); glArrayObjectATI(GL_VERTEX_ARRAY, 3, GL_FLOAT, sizeof(vertex_t), g_VertexObject, sizeof(float) * 5); glArrayObjectATI(GL_ELEMENT_ARRAY_ATI, 1, GL_UNSIGNED_INT, 0, g_uiElementObject, 0); ... } void display(void) { ... glDrawElementArrayATI(GL_TRIANGLES, g_NumTriangles * 3); ... } ... and it makes actually nothing. can anybody please help me?

Share this post


Link to post
Share on other sites