Tag Info

New answers tagged

3

A common reason for null pointer dereferences on calls to newer OpenGL functions is that they are provided by an extension wrangler library like GLEW through function pointers that are dynamically loaded at runtime. In order for them to be initialized, you need to run the initialization function of GLEW. The correct place to call glewInit() is after you've ...


2

You mentioned to be using GLEW. If so, the glGenVertexArrays symbol should be just a plain global variable of type function pointer. To know if it is available, you can just test it for null: if (glGenVertexArrays == NULL) { // chances are you don't have this feature... } If it is null, then either you have a problem with GLEW or the feature is likely ...


2

Try Freetype OpenGL, a library for displaying a unicode text using a (single) vertex buffer and freetype fonts. Have a look at their web, repository and documentation. An example, from their website: /* Text to be printed */ wchar_t *text = L"A Quick Brown Fox Jumps Over The Lazy Dog 0123456789"; /* Texture atlas to store individual glyphs */ ...



Top 50 recent answers are included