2.1 Equivelent Of "glDrawElementsInstanced" ?

Started by
3 comments, last by RLS0812 10 years, 3 months ago

Please note that I am not very familiar with the Opengl library ...

What is the 2.1 equivalent of "glDrawElementsInstanced" ?

This recently popped up on a test as being incompatible with 2.x graphics cards.

I cannot remember the books I've read any more than the meals I have eaten; even so, they have made me.

~ Ralph Waldo Emerson

Advertisement
There is no real direct equivalent... is there?
        for (int i = 0; i < primcount ; i++) {
            instanceID = i;//pass to shader somehow
            glDrawElements(mode, count, type, indices);
        }

There isn't, but it's probably worth checking for the extension even in a 2.x context:

https://www.opengl.org/registry/specs/ARB/draw_instanced.txt

SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.

Please note that I am not very familiar with the Opengl library ...

What is the 2.1 equivalent of "glDrawElementsInstanced" ?

This recently popped up on a test as being incompatible with 2.x graphics cards.

https://www.opengl.org/registry/specs/ARB/draw_instanced.txt

Edit. Bah beaten, some older drivers will have it as an EXT extension rather than ARB as well.

[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

Thank you very much for the info.

I cannot remember the books I've read any more than the meals I have eaten; even so, they have made me.

~ Ralph Waldo Emerson

This topic is closed to new replies.

Advertisement