3d text selection
Hi guys, Im having trouble getting my program to ackowledge that the text has been selected on screen(im making a menu),i just have one word on screen at the moment to test it, ive heard that if you place text 'in front of you' on the screen it can create problems, and thats what seems to be happening here, if i comment out gluLookAt, then obviously the text appears massive on screen but if you click on it, then it works and i get my message box popping up saying its been clicked but if i include the 'lookat' command then it doesnt :/ any ideas? here is my code(using gametutorials object selection code): int DrawGLScene(GLvoid) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt(0, 3, 6, 0, 0, 0, 0, 1, 0); glInitNames(); glPushName(CONTROLS);//it has an preassigned object id glPushMatrix(); glColor3f(0, 1, 0); glTranslatef(0.0f, 0.0f, 0.0f); glDraw3DText("Controls"); //just draws controls on the screen glPopMatrix(); glPopName(); return TRUE; } any help or ideas would be appreciated guys, thanks
go hard or go home :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement