OpenGL Window
Hello ppl !
I just have to thank NeHe for a wonderful page and tutorial.
But the first lesson where you learn howto open a OpenGL Window is a lil long to remember or for me to learn, anyone know a easy way without much (or any) error handling. I just want to be able to open a OpenGL window and thats it, later i want to draw in it but thats not important.
Lets say i want a OpenGL Window that is 1024*768 and 32bit Color, with the Title: PeterPoPS
how do I do this ?
And you don't need to tell me Im a newbie to this, cuz i am !
Have been learning OpenGL for 4 days now
plz email on: peterpops_82@hotmail.com if you can or want to help me
Edited by - PeterPoPS on 9/26/00 7:53:01 AM
I am a new guy to OpenGL and C++, and I will always be
September 26, 2000 11:53 AM
just use his framework with all of the error checking. you do not need to understand everything at the outset, but you really should use it.
as for the title of the window and the resolution that is clearly marked in the tutorials. What''s the title of the window in the tutorial? Search for this in the project, change it to whatever.
What resolution is the project in if you do not want full screen mode? This is also clearly marked in the project. But what may require a little investigation on your part is specifying 16 bit, 32 bit, 24 bit It''s good to research your own questions, and if you just download the project and hammer on it a bit you''ll learn far more than if i just post your answers here.
welcome to opengl, enjoy.
as for the title of the window and the resolution that is clearly marked in the tutorials. What''s the title of the window in the tutorial? Search for this in the project, change it to whatever.
What resolution is the project in if you do not want full screen mode? This is also clearly marked in the project. But what may require a little investigation on your part is specifying 16 bit, 32 bit, 24 bit It''s good to research your own questions, and if you just download the project and hammer on it a bit you''ll learn far more than if i just post your answers here.
welcome to opengl, enjoy.
Well, i know how to change that
But today i tried to delete some lines of the code, most of it were Error handling i thought, but when i tried to compile it didn''t work.. and i dunno what faults i done..So i thought it might be a shorter way to open an OpenGL Window without all error handlings and stuff
But today i tried to delete some lines of the code, most of it were Error handling i thought, but when i tried to compile it didn''t work.. and i dunno what faults i done..So i thought it might be a shorter way to open an OpenGL Window without all error handlings and stuff
I am a new guy to OpenGL and C++, and I will always be
The most basic OGL window you can get is the one demonstrated by the SuperBible (in my opinion, anyways)... This is it...
That is short enough to get you on your feet, but you will want to use NeHe''s example if you want to do anything final, it''s best to stay away from the glaux library. It''s nasty and evil and things.
S.
void WinMain( ... ){ auxInitDisplayMode(AUX_DOUBLE | AUX_RGBA); auxInitPosition(0, 0, 1024, 768); auxInitWindow("PeterPoPS"); auxMainLoop(RenderScene);}
That is short enough to get you on your feet, but you will want to use NeHe''s example if you want to do anything final, it''s best to stay away from the glaux library. It''s nasty and evil and things.
S.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement