flat assembler
Message board for the users of flat assembler.

Index > Linux > Graphics on Linux

Author
Thread Post new topic Reply to topic
F45M



Joined: 22 Nov 2006
Posts: 16
F45M 16 Dec 2006, 07:07
Does any body have an example, info or pointer to as such
that will show me how to write graphics programs on Linux using
system calls and no library or even X server for that ?

thanks in advance
Post 16 Dec 2006, 07:07
View user's profile Send private message Reply with quote
quasar



Joined: 09 Oct 2005
Posts: 16
quasar 16 Dec 2006, 08:29
No X? Only using a framebuffer, but then you are limited to console. Look for programs like fbi for example code.
Post 16 Dec 2006, 08:29
View user's profile Send private message Reply with quote
F45M



Joined: 22 Nov 2006
Posts: 16
F45M 16 Dec 2006, 08:42
Quote:

Look for programs like fbi for example code.


I Googled for fbi but to no avail.

Can someone help me ?
Post 16 Dec 2006, 08:42
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 16 Dec 2006, 17:14
You may want to look at http://asm.sourceforge.net/articles/fb.html (targets NASM, but should show the basic approach pretty well).
Post 16 Dec 2006, 17:14
View user's profile Send private message Visit poster's website Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 28 Dec 2006, 09:10
The Allegro library has excellent support for Frame Buffer device !
Post 28 Dec 2006, 09:10
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 01 Jan 2007, 04:41
it does, but F45M did not want to use any libraries.
Post 01 Jan 2007, 04:41
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 01 Jan 2007, 09:42
i bet it would be some writing to /dev/something
Post 01 Jan 2007, 09:42
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
gunblade



Joined: 19 Feb 2004
Posts: 209
gunblade 17 Jan 2007, 23:10
Yeah, you could simply do writing to the /dev/fb0 device, which is provided by the kernel driver for your framebuffer device (that's if the driver has been compiled into the kernel, different distros have different configurations for the kernel, some will include loads, some will have less drivers. You could always recompile the kernel to make sure that the driver was included, theres plenty of guides on the internet to tell you how.) And then you would have to find some kind of documentation for the framebuffer device provided by the kernel, such as what format the data put into /dev/fb0 should be, 8bpp, 16bpp, etc..

It is deffinetly possible to implement graphics without X nor any library, (X even comes in a frame-buffer compatible version, which instead of using it's own display drivers, just sits on top of the framebuffer, that could always be a place to look for example code on writting to the framebuffer device.) It'll just take some time and some research into the implementation of the framebuffer.
Post 17 Jan 2007, 23:10
View user's profile Send private message Reply with quote
andreism



Joined: 10 Feb 2007
Posts: 9
Location: Russia, Moscow
andreism 10 Feb 2007, 13:48
F45M wrote:
Quote:

Look for programs like fbi for example code.


I Googled for fbi but to no avail.

Can someone help me ?

It's called FBUI:

http://home.comcast.net/~fbui/index.html
Post 10 Feb 2007, 13:48
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.