View Full Version : Proplem with an example from the red book
02-04-2007, 06:43 AM I am trying to run an example piece of code
from the openGL Red Book. the example is blendeqn.c and the
error comes up with the glBlendEquation(); function. With the
glBlendEquation(GL_MAX); function I get the error "`GL_MAX'
undeclared (first use this function)" With similar errors each
time for each glBlendEquation function  02-04-2007, 08:23 AM
oooo, goodie, i just did some work with this less than one hour
ago (for a new NeHe lesson), so i got all the code for it just
in front of me right now.  Ok, first you need to include glext.h
because GL_MAX and all the other blend equations are defined
there. You can get the file from the extension page on
openGL.org  Next you need to load the blend equation extension
itself. In windows you need to first create a global variable
then amongst the first lines of gl code call  glBlendEquation =
(PFNGLBLENDEQUATIONPROC) wglGetProcAddress("glBlendEquation");
and your done.  There are li