Menu
Forums
Login | Register

Home > Forums > OpenGL ES > OpenGL GLUTES, specfunc / keyboard Page :  1 
OpenGL GLUTES, specfunc / keyboard
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
Hi,

If you want your screen to update, you need to call glutPostRedisplay() after increasing sg.

Regards,
Grant
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)
anyway thx

did you work any shader in gles or 3d model loader with any library ?
Hi,

Unfortunately, for ES shaders, we will need to wait for ES 2.x implementations to be released.

Regards,
Grant

Home > Forums > OpenGL ES > OpenGL GLUTES, specfunc / keyboard Page :  1 

You need to be logged in to reply to this topic.


All Rights Reserved, © Zeus Communications, Multimedia & Development 2004-2005

Read the Disclaimer

Links