marciano wrote:
Here is an excellent tutorial which covers shaders in GLSL, the shader language Horde is using:
http://www.lighthouse3d.com/opengl/glsl/Might be you want to have a look to help you get started.
Hi Nic,
I've taken a quick look, thanks for the link. Before I get too deep into the tutorial, I need to work out how I am going to do this in Euphoria. Am I right in thinking the following...
1. glsl shaders are compiled at run-time?
2. the glsl shader is passed to ogl as a C-like program string?
3. that certain functions in ogl are used to pass the glsl program string to ogl for compilation and execution?
Point 3 is important to me. I am assuming that functions like "glCompileShader" should be available in an ogl dll somewhere on my system. I will need to wrap those functions for use in Euphoria. Unfortunately, I can't seem to find the dll on my system which exports these functions. Do you know of a link which tells me which ogl dlls should export which ogl functions?
Many apologies if this should be obvious. Once I can confirm I can use shaders with Horde from Euphoria I will be able to dig further into the tutorial. I can see this has a *lot* of possibilities.
EDIT: I found the following link which I think explains why I can't see glCompileShader in opengl32.dll
http://opengl.org/resources/code/samples/sig99/advanced99/notes/node396.html
I gather that I'm going to need to use wglGetProcAddress to do this.
More wrapping to do
All the best,
Mark