Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: Storm Trooper on March 11, 2010

Title: [C++] Starting Out In Open GL
Post by: Storm Trooper on March 11, 2010
hello dbf forum,

you may of heard this question before.
i have been looking at nehe lesson on open gl. but the includes they use, etc, are missing or it looks like have been changed in vsc++2008. Is there an alternative way of working with open gl?

im interested in shaders, but don't really know how to make them. it looks to me like mixing per pixel effects like blending and blurring.

thanks for your valuable time,
Storm Trooper aka Trantor.

Title: Re: [C++] Starting Out In Open GL
Post by: hellfire on March 12, 2010
Quote
im interested in shaders
You can find an introduction to glsl here (http://www.lighthouse3d.com/opengl/glsl).
A very simple example-source can be found here (http://www.lcg.ufrj.br/Cursos/GPUProg/GLSLfirst) (at the bottom of the page).
You need to get glut from here (http://www.xmission.com/~nate/glut.html) and copy glut.h, glut32.lib & glut32.dll into the same folder.
Title: Re: [C++] Starting Out In Open GL
Post by: Rbz on March 12, 2010
...
i have been looking at nehe lesson on open gl. but the includes they use, etc, are missing or it looks like have been changed in vsc++2008. Is there an alternative way of working with open gl?
...
Do you mean gl.h / glu.h / glaux.h ?
I attached those here for you, just copy gl folder to your msvc lib folder.

Check this out:
http://www.dbfinteractive.com/forum/index.php/topic,2558.msg36157.html#msg36157
You will find a little shader framework, it might help you start with it.
Title: Re: [C++] Starting Out In Open GL
Post by: mziskandar on April 16, 2010
Hello..

Latest additional header(extension) from opengl.org is here..
http://www.opengl.org/registry/api/glext.h (http://www.opengl.org/registry/api/glext.h)
http://www.opengl.org/registry/api/glxext.h (http://www.opengl.org/registry/api/glxext.h)
http://www.opengl.org/registry/api/wglext.h (http://www.opengl.org/registry/api/wglext.h)

..and gl3
http://www.opengl.org/registry/api/gl3.h (http://www.opengl.org/registry/api/gl3.h)

Cheers!