OpenGL GLUTES, specfunc / keyboard |
Author :
balogh9
Post Date :
2006-11-25 00:20
Posts :
3
|
hi
im just programming on PDA. I have a problem in glutes. if i call
example glutSpecialFunc(keyboard_func)
void keyboard_func(int key, int x, int y)
{
switch(key)
{
case GLUT_KEY_LEFT :
{
sg += 0.1f;
break;
}
}
}
well, if i continously "down" the left button, it has an unwanted effect. it was stopped periodic for a moment. i tried reply func but doesnt help. any ideas ? thx |
Author :
grant
Post Date :
2006-11-25 10:21
Posts :
117
|
Hi,
If you want your screen to update, you need to call glutPostRedisplay() after increasing sg.
Regards,
Grant |
Author :
balogh9
Post Date :
2006-11-25 10:26
Posts :
3
|
hi
yeah i use that function, but it doesnt help.
but ive solved the problem
if a button "down", i use a boolean
and if that boolen is true the animation value is groving ( the past solution was : if a button "down" i groving the animation value) |
Author :
balogh9
Post Date :
2006-11-25 10:41
Posts :
3
|
anyway thx
did you work any shader in gles or 3d model loader with any library ?
|
Author :
grant
Post Date :
2006-11-25 20:27
Posts :
117
|
Hi,
Unfortunately, for ES shaders, we will need to wait for ES 2.x implementations to be released.
Regards,
Grant |
All Rights Reserved, © Zeus Communications, Multimedia & Development 2004-2005