views:

207

answers:

5

Hell every body , i am newbie in linux programming ( Not Windows ) .

i want to know how i can using OpenGL on Linux Platform Without X-Window System , can i send OpenGL Graphics Directly to Framebuffer Device ?!

There Is Project Named DirectFB ( Direct FrameBuffer ) . with DirectFB We can do this but DirectFB needs for driver for each hardware and i want to user a graphic card that only have linux driver .

what is your suggestion to Me .

Thanku.

+4  A: 

As you said, you need a driver to do this. 99.9% of all Linux graphics drivers use X11, so unless you have a DirectFB OpenGL driver for your hardware, you are stuck with using X11.

Matias Valdenegro
my video chipset is Intel GM855 , this chipset has normal Linux Driver for X . could it be used with DirectFB
According to http://www.directfb.org/index.php?path=Projects%2FDirectFBGL , no.
Matias Valdenegro
so what can i do ? did u see MyOS X-Less ? http://www.geocities.com/ze_aks/myos.html
Why do you want to not use X11?
Matias Valdenegro
The Main Reason For X-Less Is Speed , I want Use Embedded Version Of Linux Kernel On Embedded Platform . The Linux Kernel with Lot Of Stuff Will Load 3 Sec After Bootloader Start . But If i use X More Seconds will be lost , for example the startx command will take about 10 seconds to load the x Completely .
A: 

I use the SDL (Simple Direct Media Layer) for OpenGL programming in Linux. This site has some nice tutorials to get you set up. One advantage of using SDL is that it will port across platforms, so once you get something running on Linux, it'll transfer right over to Windows so long as you have SDL installed there.

Rich
I know SDL but SDL running in X Window and not only with Framebuffer Device
Got it, I didn't understand you couldn't use X.
Rich
A: 

You can use Mesa for framebuffer-based software rendering.

genpfault
How ?! Is it Hardware Accelerated ?!
@user366250: Nope. *Software* rendering.
genpfault
A: 

I'd like to get this working too.

My use case is a web server rendering OpenGL frames for a client app. I may go with unaccelerated MESA, but that's a fallback option really not a good solution.

If there's ANY specific video card that I can acquire for use without X and still get accellerated frames I'd love to hear about it... ?

darron
A: 

Apparently is possible to have SDL running without X.

Basically, your kernel should have framebuffer support and you could use SDL on top of DirectFB.

These threads are ok:

http://lists.libsdl.org/pipermail/sdl-libsdl.org/2006-October/058305.html

http://forums.libsdl.org/viewtopic.php?t=4079

karlphillip