Computer Science Canada openGL |
Author: | Thuged_Out_G [ Tue Mar 23, 2004 5:45 pm ] |
Post subject: | openGL |
how much expereince do you need with C++ do get into openGl? is it a difficult langauge to use? could someone possibly post some openGl code just so i can see what it looks like. for some reason, i dont think it will be as easy as Draw.FillBox(x,y,x1,y1,clr) |
Author: | tinhnho [ Tue Mar 23, 2004 6:32 pm ] | ||
Post subject: | |||
It's hard to say that it easy or not.It's depend on peoples.here is some code for openGL:
|
Author: | Catalyst [ Tue Mar 23, 2004 6:33 pm ] | ||
Post subject: | |||
once u get past setting up the window opengl isnt very difficult to use some example code that draws an orange rectangle
There is a lot (and i mean a lot) more stuff in ogl (e.g. Matrices,Textures,Vertex Arrays, Depth-buffers,extensions,etc) note: posted at the same time |
Author: | Thuged_Out_G [ Tue Mar 23, 2004 7:08 pm ] |
Post subject: | |
woah....i was reading the tut on nehe.gamedev about opening a window....it was like 350 lines of code just to open a window with a black background....i think ill just stick with C++ for the time being...since i just started with it...umm, lets see...yesterday haha |
Author: | Mazer [ Tue Mar 23, 2004 8:23 pm ] |
Post subject: | |
Try printint out the window lesson and reading it over a few times every once in a while when you're bored and you'll see that it isn't that difficult. It isn't something you have to write often when you're making a game, it's just a bit fugly the first time you see it. If you really don't like the window creation code you can check out GLUT which allows you to create a window in a few simple lines and get straight into the OpenGL right away. You'll see that OpenGL really isn't that difficult compared to turing's draw commands, it's just the way you need to use them. EDIT: Although, having one day's experience with C++ may have some factor in this. Play around with C++ more and when you feel ready jump back into the nehe tutorials, they're quite nice. |
Author: | Catalyst [ Tue Mar 23, 2004 8:32 pm ] |
Post subject: | |
once you are ready (give it a little bit of time) try SDL it also simplifies window creation and input and is cross-platform |
Author: | Thuged_Out_G [ Tue Mar 23, 2004 10:33 pm ] |
Post subject: | |
i wasnt planning on jumping right into oGL ..i just wanted to see what it was all about. and try to gain a bit of an understanding of it. but just the opening a window code, kidna blew me away haha |
Author: | rizzix [ Fri Mar 26, 2004 10:33 am ] |
Post subject: | |
Thuged_Out_G wrote: woah....i was reading the tut on nehe.gamedev about opening a window....it was like 350 lines of code just to open a window with a black background....i think ill just stick with C++ for the time being...since i just started with it...umm, lets see...yesterday haha
u can use the GLUT to speed things up.. this way u can concentrate only on OpenGL |