Top "Opengl" questions

OpenGL (Open Graphics Library) is a graphics standard and API which is platform independent and available for desktop, workstation and mobile devices.

Calculating normals in a triangle mesh

I have drawn a triangle mesh with 10000 vertices(100x100) and it will be a grass ground. I used gldrawelements() for …

c++ opengl computational-geometry normals
How to use multiple viewports in OpenGL?

I need to show the same object in OpenGL in two different viewports, for instance, one using ortographic projection and …

opengl viewport
OpenGL ES versus OpenGL

What are the differences between OpenGL ES and OpenGL ?

opengl opengl-es
What is so bad about GL_QUADS?

I hear that GL_QUADS are going to be removed in the OpenGL versions > 3.0, why is that? Will my …

opengl deprecated
Installing OpenGL and OpenAL in Ubuntu

How can I install OpenGL (with GLUT) and OpenAL (with ALUT) in Ubuntu Lucid lynx? I tried installing Mesa 7.8.2 using …

opengl ubuntu openal
How to make an OpenGL rendering context with transparent background?

Rendering contexts usually have a solid color on the background (black or whatever, see the image below): I'm wondering if …

c winapi opengl transparency
error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup, but this time it's NOT a Windows/Console problem!

So, the infamous error is back. The project is complaining that it can't find the main() method (that's what the …

c++ opengl sdl lnk2019
Generating a normal map from a height map?

I'm working on procedurally generating patches of dirt using randomized fractals for a video game. I've already generated a height …

c++ opengl graphics
glm::perspective explanation

I am trying to understand what the following code does: glm::mat4 Projection = glm::perspective(35.0f, 1.0f, 0.1f, 100.0f); Does …

opengl glm-math
How to draw smooth line in OpenGL with antialiasing?

I need to draw a smooth line in OpenGL and here is what I have done: glEnable( GL_LINE_SMOOTH ); …

opengl line antialiasing