Questions tagged [types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
2answers
684 views

Is there ever a time when I should *not* use the GL* types?

If I am writing my own function to check shader compile errors, or do anything that interacts with the OpenGL API but ultimately returns as a result of my application code, should I use the C++ ...
4
votes
1answer
1k views

How to use 32 bit Integers for Element Indices in WebGL 1.0?

WebGL 1.0 specification does not allow to create 32-bit index buffers. Now I'm in trouble, I'm trying to render huge objects with 100 thousands to 1 million indices. In OpenGL this is no issue at all, ...
5
votes
1answer
495 views

Type conversion to GL-types

If I have a std::vector<Foo> and want to store its size in a GLuint, my compiler gives a warning that there is possible ...