what do you need to support under glx ? rendering, refreshing, keyboard interactivity ? and what else… joystick…
Rendering is done with OpenGL itself, flipping the backbuffer is done with glXSwapBuffers(…), keyboard presses can be taken care of using X (ie. KeyPress message, XLookupKeysym(…)) and joysticks can be used via X too.
I know, berlin & SVGAlib are not used a lot (i think in this case, you’ll have to use the frame-buffer)…
That’s probably because you won’t get hardware acceleration when using Berlin and/or other grahpical libs.
Well, not for NVIDIA cards anyway, because they’re not releasing any specs (AFAIK)
glut was not created in 2 weeks. he was created by a great programmer (well known in fact) , so i wonder if I really could do a good thing under glx. In fact, i’m afraid i bad-code it, so it’s slow or bad refreshed…
You can be a great programmer too, but you will only be a great programmer when you’re doing things yourself, when you know how stuff works, etc.
And definitly not by taking a library for every part of your application because it may save you from typing 100 lines of code.
Don’t be affraid to type bad or slow code, just read, try and do things and you’ll get more experienced.
And like I said, you won’t be using GLX (and X itself) much (only when initialising, swapping the buffers and when shutting the program down)
Heck, I’m only using those functions 10 times in a game engine with 16.000 lines of code!
More, some people here told that Nehe tutors wheren’t good enough, the X doc very poor…
NeHe’s tutorials are no good in a way that NeHe’s using far too many useless comments, all in one file, bad programming practices, etc.
But they ARE pretty good to learn OpenGL with
And yes, the X manuals are indeed very poor…
But you shouldn’t give up because of bad documentation.
Just browse lots of code from other people to see how stuff works (but do not copy+paste ).
Hey, you’re a programmer, right?
Show what you can do and code up a spiffy OpenGL accelerated program instead of saying on a forum that you’re affraid about typing bad code
So, i would like to know which is the best.
It seems it’s glx. I understand well. So, i have to see.[/b]
Just try it
(Pfew, I hope that was enough peptalk )