Please guys, i really need your help to solve this problem.
Type: Posts; User: robgeek
Please guys, i really need your help to solve this problem.
I put "glutIdleFunc(display);" between "glutDisplayFunc(display);" and "glutReshapeFunc(reshape);" in "main" function, and ir works, but my window almost freezes, it gets heavy very very heavy!
I...
Hello guys.
I'm trying to make a drawing in a window change his size every time i hit 'b' in my keyboard, but is not working properly.
Every time i hit 'b', "glVertex3f(x,y,z)" in...
Ok, understood.
I tried to include freeglut library like bellow:
#include<GL/freeglut.h>
And in my makefile i changed "-lglut" to "-lfreeglut", like bellow:
hist:
g++ -o game keyboard.cpp...
Hi.
I started programming with OpenGL, and i made this little program bellow:
#include"keyboard.h"
Keyboard :: Keyboard(void)
{
cout<<"Object created."<<endl;
}
Ok, i did what you said to do, and now everything is working fine.
Thank you very much.
But is really necessary to create a window just to test a simple callback or a keyboard event?
I've tried to registrate a idle function, but still doesn't work!
//main.cpp
#include"keyboard.h"
...
Hello guys.
I'm a newbie in OpenGL and i'm trying to make a program with keyboard events, just to make some tests.
I'm using Linux Debian e g++ to compile the code which i'm making with c++.
The...