Jump to content
  • Advertisement
Sign in to follow this  

Location of glEnableClientState()

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

hi there m8s .

i'v got a problem with this function .

i'm using Visual C++ 2010 Exprss to practice openGL under glut (freeglut)

when i use this function out of main() loop , it takes an error that says :

"missing type specifier - int assumed. Note: C++ does not support default-int

error C2365: 'glEnableClientState' : redefinition; previous definition was 'function'

see declaration of 'glEnableClientState'


note that using this function (or relevant funcs) in main() , does not return error but it also doesnt work !

the included files :

[font="Consolas"] [/font][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"]<windows.h>[/font][/font][/font][font="Consolas"][color="#0000ff"]

[/font][font="Consolas"] [/font][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"]<GL\GLU.h>[/font][/font][/font]

[font="Consolas"] [/font][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"]<gl\GL.h>[/font][/font][/font]

[font="Consolas"] [/font][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"]<GL\freeglut.h>



Share this post

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

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!