Sign in to follow this  
Alph@1

find out how many texture units ... ?

Recommended Posts

Alph@1    122
I want to find out how many texture units are supported by OpenGL implementation, so i write a program like this:
#include<windows.h>
#include<iostream.h>
#include<gl\gl.h>
#include<gl\glu.h>
#include<gl\glut.h>

void main()
{
	int mm;
	glGetIntegerv(GL_MAX_TEXTURE_UNITS,&mm);
	cout <<"mm = " << mm << endl;
}
but when i compiled i received the error message: error C2065: 'GL_MAX_TEXTURE_UNITS' : undeclared identifier i'm using VC6++ now. I really don't know that ! help me !!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this