Jump to content
  • Advertisement
Sign in to follow this  
knobby67

OpenGL starting opengl 3/4 issues

This topic is 2362 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi All,
I'm just about to start to learn opengl 3 (4). So I've read a couple of tutorials on the lighthouse 3d site and decided to download their framework to help out. I also downloaded the sample for this. However when I try to compile I get large numbers of errors such as
‘glProgramUniform1uiv’ was not declared in this scope
error: ‘GL_DOUBLE_MAT2’ was not declared in this scope


I'm guessing my PC cannot run opengl 3? However from what I've read on the net my card should run this.
I'm using ubuntu 12.04, my card is a nvidia 8600GT. My drivers, which Ubuntu installed are NVIDIA 280.13.

I'm linking with -lGLEW -lIL -lILU -lILUT -lglut

Does anyone know how I can find out if my card runs opengl 3 and if my drivers can run it.

Share this post


Link to post
Share on other sites
Advertisement
the program glewinfo that came with glew tells me what version of opengl my current graphics card supports. glProgramUniform is a opengl 4 function it seems.

Share this post


Link to post
Share on other sites

Hi All,
I'm just about to start to learn opengl 3 (4). So I've read a couple of tutorials on the lighthouse 3d site and decided to download their framework to help out. I also downloaded the sample for this. However when I try to compile I get large numbers of errors such as
‘glProgramUniform1uiv’ was not declared in this scope
error: ‘GL_DOUBLE_MAT2’ was not declared in this scope


Those are compilation errors, not runtime problems. Regardless of whether your card and driver supports opengl 3 you shouldn't have those errors. Make sure you do use Glew's own headers files, ie that you use

#include <GL/glew.h>

and not

#include <GL/gl.h>

Share this post


Link to post
Share on other sites
Thanks for the replies, you answers put me on the right track, I knew I had glew installed and was it was on the right path ( I use it for gl2 shaders) but found the dev package was glew 1.5 rather than the new 1.6.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!