Advertisement

Platform Independant Programming Library?

Started by July 04, 2000 11:31 PM
5 comments, last by gimp 24 years, 5 months ago
Ok, I''ve been screwing with PI coding concepts for a few days now and well, I want to get back to my game now Does anyone know of a C++ platform independant programming library, one that abstracts the ''bits'' of the OS that differ in implementation? Open source, so i can just rip out the bits I need...? I''m sure this has been done before by others.... Many Thanks gimp
Chris Brodie

I don''t know of any class libraries, but there are some things I''ve done that make it tremendously easy to port apps. OpenGL for the graphics takes care of most of that end. I try to use POSIX api''s whenever possible(mostly multithreading) as its available on most non-Windows platforms, and what I''ve needed was easy to write wrappers for on Windows(pretty much equivalent functionality available in most cases, that and a few quick #ifdef WIN32 ). Course BSD style sockets for networking are available on most platforms(again, tweaks mostly neccessary for Windows, gee, I''m noticing a trend...).


I''ve never used Allegro, but it does a whole lot more things that you would need, available on Win/DOS/Linux and a few others. It does graphics, sound, input, and maybe some other things. Its not C++, but it seems pretty well designed from what I hear.


Advertisement
Check out ClanLib.

- Muzzafarath

Mad House Software
The Field Marshals
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
You can check SDL
It''s a very nice platform independant game oriented API.

I''ll use it
Version 1.1.3 is available



-* So many things to do, so little time to spend. *-
-* So many things to do, so little time to spend. *-
If it''s games you want, you have to check out Allegro. It''s an excellent multi-platform open source graphics/sound/input/everything else library. Here''s an example of it''s portability: to convert my entire 5000 line game from DJGPP to linux, i simply add END_OF_MAIN() below my main() function.
You can check out it''s homepage here.



Martee
Magnum Games
http://MagnumGames.8m.com
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Thanks guys...

I had tried out Allegro before... It seemed a little outdated and sort of an all or nothing deal, not along the lines of me just ripping out the subsystem I wanted. It also had no threading support, my promary reason for looking right now... I looked at it linux input handler and couldn''t work out what they were doing differently..

I''ll check out those other two...

I was also recommended OpenAL and OpenML, neither of which I can find anything useful about...

thanks again
Chris Brodie
Advertisement
Here is one I found listed in the "Your Announcements" forum:

quote:
There is a new release of Crystal Space 0.15r002. This version is still beta but I''m very confident about its stability and usefulness. Crystal Space is an Open Source 3D Engine for Linux, Windows, OS/2, BeOS, Macintosh, DOS, FreeBSD, SGI, Solaris, NextStep, OpenStep, ... It can use OpenGL, Glide, Direct3D, or software rendering. It features volumetric fog, portals, octrees, bsp-trees, ROAM terrain engine, 3D models with dynamic LOD, frame based and skeletal animation, halos, dynamic and static colored lights with shadows, scripting, ...

Check out http://crystal.linuxgames.com


It''s of course graphics only, but it sounds good. Haven''t checked it out though.

B e S
"It’s da bomb, baby"
BeSIt's Da BOMB Baby!!!. o O ~ A little nonsense now and then,is relished by the wisest men~ O o .-- Willy Wonka

This topic is closed to new replies.

Advertisement