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.

OpenGL VAO best practices

Im facing an issue which I believe to be VAO-dependant, but Im not sure.. I am not sure about the …

opengl opengl-3 vao
How to apply texture to glutSolidCube

I can find tutorials about mapping textures to polygons specifying vertices etc. but nothing regarding how to apply a texture …

opengl glut textures
Convert Quaternion rotation to rotation matrix?

Basically, given a quaterion (qx, qy, qz, qw)... How can i convert that to an OpenGL rotation matrix? I'm also …

opengl graphics matrix quaternions
OpenGL: scale then translate? and how?

I've got some 2D geometry. I want to take some bounding rect around my geometry, and then render a smaller …

opengl graphics transform
Generate a plane with triangle strips

What would be the best algorithm to generate a list of vertices to draw a plane using triangle strips? I'm …

c++ opengl geometry plane gl-triangle-strip
What is the difference between OpenGL and XRender in KDE Desktop Effects?

In KDE environment when you go to Desktop Effects and in the Advanced tab there is an option named "Compositing …

linux opengl kde
Error with GLUT compile in ubuntu

I try to compile some "hello world" glut application: #include <stdlib.h> #include <GL/gl.h> #…

c++ opengl glut glu
What does sampler2D store?

I've read a texture example in OpenGL 2.1. The fragment shader looks like this: #version 120 uniform sampler2D texture; varying vec2 …

opengl glsl
Building glew for Mac OSX

I have spent the day struggling to get my simple engine to work on Mac. I have SDL working and …

macos opengl glew
Do conditional statements slow down shaders?

I want to know if "if-statements" inside shaders (vertex / fragment / pixel...) are really slowing down the shader performance. For example: …

opengl glsl shader direct3d hlsl