dll entry point

Started by
4 comments, last by V-man 16 years, 7 months ago
hi... i'm trying to use a glsl shader with opengl.... when using glCreateShader() i get the following error: Unable to find an entry point named 'glCreateShader' in DLL 'opengl32.dll'. i have installed the newest gfx card driver which should be compatible to opengl2.1... any suggestions?
Advertisement
read this.
thx but i'm not trying to call this function through a arb extension.

the arb extension function would be:

GLhandleARB glCreateShaderObjectARB(GLenum shaderType);

but i'm trying to call the opengl 2.0 function:

GLuint glCreateShader(GLenum shaderType);
Quote:Original post by ignorator
thx but i'm not trying to call this function through a arb extension.

the arb extension function would be:

GLhandleARB glCreateShaderObjectARB(GLenum shaderType);

but i'm trying to call the opengl 2.0 function:

GLuint glCreateShader(GLenum shaderType);


You can't. Not under Windows. Read the article Sneftel posted.
oh ok. sry.
Well, you can use glCreateShader and other GL 2.0 functions, but you need to get functions pointers or use something like glew.
This is a shorter read
Getting Started
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement