12-10-2005, 07:53 AM
aha!
i havent been using this... and thats why it never works when i goto fullscreen. thanks!
btw, what do you use for mouse/keyboard input when using glfw? the normal fb commands?
edit: nm, i answered my own question, glfw has input routines, heh, and no, i havent tried shadowing my ship yet, i'm really new to opengl and havent ventured off into that territory yet, heh
edit2: dr_d, i used something like the flash code you wrote above and it worked quite well, making the flash hide for as long as it is displayed, and at each interval just resetting the flash variable to its inverse. thanks!
Code:
glViewport 0, 0, 640, 480
i havent been using this... and thats why it never works when i goto fullscreen. thanks!
btw, what do you use for mouse/keyboard input when using glfw? the normal fb commands?
edit: nm, i answered my own question, glfw has input routines, heh, and no, i havent tried shadowing my ship yet, i'm really new to opengl and havent ventured off into that territory yet, heh
edit2: dr_d, i used something like the flash code you wrote above and it worked quite well, making the flash hide for as long as it is displayed, and at each interval just resetting the flash variable to its inverse. thanks!
Code:
ticks = SDL_GetTicks
if waitflash <= ticks then
firing = 1 - firing
waitflash = ticks + 24
end if
if firing then glEnable GL_LIGHT2