Fullscreen problem

Started by
5 comments, last by martin76 22 years, 2 months ago
i found a lot of OpenGL tutorials and books. They taught me a lot. But the only thing they didn''t teach me is how to write fullscreen OpenGL application. Somebody told me just create a window cover everything at screen and then set it always on top. but i don''t think this is a good way, so any ideas?
Advertisement
nehe.gamedev.net
go there before i throw rocks at you!!



-eldee
;another space monkey;
[ Forced Evolution Studios ]

Vash says: eat more donuts, play more games!

-eldee;another space monkey;[ Forced Evolution Studios ]
thanks eldee, i finally know how to use fullscreen with OpenGL. so the key API is ChangeDisplaySettings(..), rite?
ChangeDisplaySetting() is not an API it is a function that is a part of an API, the Win32 APi. But, you are right. There is also EnumDisplaySettings() which is important as well.
Use glutFuuScreen(); !!!!!!!!!!!!!!!!!!!!!!!
.......you have to use glut.
Don''t use glut - glut sucks.

You''ll learn far more using the Win32 API. It really isn''t very hard at all. All glut does is hide what you''re program is actually doing.
a simple flow:
set yr window to be top of all windows and make its size to be the same as the screen.and what u display on the dc will display as fullscreen.

jerry2
Programming,make a whole new world.
jerry2The God creates the world, the world creates the nature,the nature creates human. Human create...Everything.

This topic is closed to new replies.

Advertisement