flat assembler
Message board for the users of flat assembler.

Index > Main > Is this posible(graphic & game dev question)

Author
Thread Post new topic Reply to topic
Embrance



Joined: 14 Mar 2004
Posts: 116
Location: Greece
Embrance
Is it possible to make some routines that would load & display an image on the screen and be platform independent?

What i want to do:
Load an image file
Display image file
Be able to click and select it,and then by pointing with the mouse for it to move there.

My first concern is how to load & display the image and it SHOULD be platform independent so it would work on Linux & Win as well.
Also,I;d like to ask,how hard would it be to make some basic drawing routines(like CreateBox position.y,position.x,fillcolour)

I want to make something like a strategy game demo. Just for experimenting.
Post 23 Feb 2007, 11:41
View user's profile Send private message MSN Messenger ICQ Number Reply with quote
Chewy509



Joined: 19 Jun 2003
Posts: 297
Location: Bris-vegas, Australia
Chewy509
To make something platform independent eg able to run on Windows, Linux/*nix, QNX etc will require the use of 3rd party toolkits and libraries OR you code your own wrapper libraries around the native APIs for the OSes.

For OS related stuff, then libc should give you enough functionality, and for graphics OpenGL would be a good choice. OpenAL should be sufficient for audio as it's available on quite a few platforms.

If you don't mind using more generic high level libraries, then SDL (http://www.libsdl.org/) would cover all your needs as it already has all the basic primitives available for gfx, sound, etc.

For generic GUI applications, then something like GTK+ or QT would prove adequate.
Post 26 Feb 2007, 01:19
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


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.