flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Linux > very simple example creating a window/displaying graphics?

Author
Thread Post new topic Reply to topic
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
very simple example creating a window/displaying graphics?
Hi guys, is there a very simple way to
display a window and/or display in fullscreen on linux?

A simple fullscreen video mode with linear memory access would do, i'd like to continue FASM graphic function development on linux.

Programs do it every time like gimp, gmplayer, ...
Post 02 Nov 2011, 21:25
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
linking in what i found already
sdl output in fasm?
Post 03 Nov 2011, 15:33
View user's profile Send private message Visit poster's website Reply with quote
randall



Joined: 03 Dec 2011
Posts: 152
Location: Poland
Hi,

This is a simple example of my SDL application (Linux x86_64).

Hope it helps.


Description:
Download
Filename: skeleton.asm
Filesize: 11.05 KB
Downloaded: 112 Time(s)

Post 03 Dec 2011, 18:15
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4641
Location: Argentina
randall, have you attempted using fasm built-in ELF support? If you didn't check examples\elfexe\dynamic to see what I mean, and if you did then please tell us what went wrong.
Post 03 Dec 2011, 18:45
View user's profile Send private message Reply with quote
randall



Joined: 03 Dec 2011
Posts: 152
Location: Poland

LocoDelAssembly wrote:
randall, have you attempted using fasm built-in ELF support? If you didn't check examples\elfexe\dynamic to see what I mean, and if you did then please tell us what went wrong.



Yes I did check dynamic examples and this method works perfecly fine for me.
I just like to have all my code in one file. I didn't like elf.inc and import64.inc dependencies. That's all.

Also loading functions with dlopen/dlsym is much more space efficient.
I am preparing myself for 4k demoscene competition so I have to be as space efficient as possible.
Post 03 Dec 2011, 19:12
View user's profile Send private message Visit poster's website Reply with quote
bitshifter



Joined: 04 Dec 2007
Posts: 753
Location: Massachusetts, USA
I would suggest the Quake2 engine sources (version 3.21)
They have software rendering support for both x11 and vga.
Direct framebuffer access is what we want right?
Post 05 Dec 2011, 16:12
View user's profile Send private message Reply with quote
randall



Joined: 03 Dec 2011
Posts: 152
Location: Poland
Well, have you seen my code?
I have direct framebuffer access via SDL 1.2
Post 05 Dec 2011, 17:30
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
simple universal graphical display on linux
Hi guys, Answering my own question, just letting you know that i have picked XCB as universal linux display solution for graphics (instead of sdl)

http://xcb.freedesktop.org/tutorial/
http://www.x.org/releases/X11R7.6/doc/libxcb/tutorial/index.html
https://en.wikipedia.org/wiki/XCB
sources
http://xcb.freedesktop.org/dist/
Post 26 Nov 2015, 14:33
View user's profile Send private message Visit poster's website 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.