Jump to content
  • Advertisement
Sign in to follow this  
AverageJoeSSU

OpenGL glDepthTest not found???

This topic is 3814 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

um... weird! could this be a typo... im using the More OpenGL GP book where is this located standard OpenGL code... i have gl.h 1.1 and glee and glu.. am i missing something? i just call it ...

//set up stencil/depth test
	glDepthMask(GL_FALSE);
	glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE);
	glEnable(GL_DEPTH_TEST);
	glEnable(GL_STENCIL_TEST);
	glClearStencil(0x0);
	glClear(GL_STENCIL_BUFFER_BIT);

	//Draw light volume back faces
	//Tag pixels behind volume
	glCullFace(GL_FRONT);
	glDepthTest(GL_GREATER);
	glStencilFunc(GL_ALWAYS, 0x1, 0x1);
	glStencilOp(GL_KEEP, GL_REPLACE, GL_KEEP);




[Edited by - AverageJoeSSU on January 15, 2008 1:00:29 AM]

Share this post


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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!