flat assembler
Message board for the users of flat assembler.
Index
> Linux > Sample window without using any "API" |
Author |
|
LocoDelAssembly 20 Sep 2006, 05:59
zsnes Windows version doesn't use any API??? I can't believe that, it should at least call CreateWindow once to create a WS_POPUP Window and then render on it using DirectDraw (through API call too), or maybe using a DIBSection (but I think it uses DirectDraw). Check the DDRAW example inside FASM package.
|
|||
20 Sep 2006, 05:59 |
|
f0dder 20 Sep 2006, 06:02
loco: flat assembler > Linux > Sample window without using any "API"
Anyway, you *will* need an API call of one form or another to set graphics mode - linux int80 is an API call too. |
|||
20 Sep 2006, 06:02 |
|
gunblade 20 Sep 2006, 09:04
I'm afraid pretty much all your choices for GUI in linux are API-based.
Choices you have: Xlib - About as low as you can go, still means using an external library though (libX11) GTK - Much easier to code in, also an external library. And there's even some examples of how to use it in fasm at http://www.flatassembler.net/examples.php. (libGTK) SDL - Not too hard, but more for graphics/animations/games, you can also use OpenGL through SDL. (libSDL) OpenGL - As far as I can remember, you can use the opengl library directly. (libGL) There are probably more, but these are the main ones, and any others will also probably be some kind of library just like these. The only way you could make a window without using an external library (but still requiring you to use syscall for the write function), would be to "talk" with the X server directly. You need to create a socket, then connect to /tmp/.X11-unix/X0, then you can write to it what you want, but its very cryptic, and information on the protocol might be hard to find. If you want to see what it looks like, do an strace on a GUI program, and look for the write() calls. |
|||
20 Sep 2006, 09:04 |
|
LocoDelAssembly 20 Sep 2006, 13:03
Quote:
Hahahahaha, sorry, 0259 AM when I posted that, I didn't note that this is the Linux forum |
|||
20 Sep 2006, 13:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.