PDA

View Full Version : opengl keyboard event not working



Eric Phua
02-21-2017, 10:45 PM
hi! i need help with the opengl keyboard recall event, i am require to Develop the following keyboard control:
Press Escape key to exit the application
Press ‘c’ key to display only the Cube
Press ‘p’ key to display only the Pyramid
Press ‘s’ key to display both the Cube and the Pyramid

and here's are my coding which are not working, please kindly advise

[[ EDIT: Code deleted ]]

Dark Photon
02-22-2017, 05:22 AM
Please read the Forum Posting Guidelines (https://www.opengl.org/discussion_boards/showthread.php/176139-Forum-Posting-Guidelines?p=1262303), paying particular attention to the advice about assignments.

Aside from that, this is not a debugging service. Don't just post a bunch of code giving no indication that you've even tried to figure out what the problem is on your own.

That said, if you have "specific" questions about OpenGL APIs or how to use them, feel free to follow-up with those.

Eric Phua
02-22-2017, 10:53 PM
Please read the Forum Posting Guidelines (https://www.opengl.org/discussion_boards/showthread.php/176139-Forum-Posting-Guidelines?p=1262303), paying particular attention to the advice about assignments.

Aside from that, this is not a debugging service. Don't just post a bunch of code giving no indication that you've even tried to figure out what the problem is on your own.

That said, if you have "specific" questions about OpenGL APIs or how to use them, feel free to follow-up with those.

thanks! managed to resolve those errors. thread closed.