Welcome, Guest. Please login or register.

Author Topic: Cross Platform Programming  (Read 2532 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline trekiejTopic starter

Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline SysAdmin

  • News posting Auto Agent
  • Hero Member
  • *****
  • Join Date: Aug 2009
  • Posts: 1393
    • Show only replies by SysAdmin
    • http://www.a-eon.com
Re: Cross Platform Programming
« Reply #15 on: May 14, 2013, 10:12:25 AM »
Any Hollywood programmers here? Could Hollywood be used to code something more complex like LightWave 3D 5.x for example or is that beyond what it can do? I don't know so just asking.
Posts on this account before August 4th, 2012 don\'t belong to me.
 

Offline OlafS3

Re: Cross Platform Programming
« Reply #16 on: May 14, 2013, 10:13:52 AM »
it is certainly too slow for highend graphic applications. I do not think the results would be very fun. But perhaps others with more Hollywood experience can say more about it.
« Last Edit: May 14, 2013, 10:18:42 AM by OlafS3 »
 

Offline trekiejTopic starter

Re: Cross Platform Programming
« Reply #17 on: May 14, 2013, 10:22:23 AM »
We need a Hollywood Application list.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Cross Platform Programming
« Reply #18 on: May 14, 2013, 10:39:03 AM »
https://www.youtube.com/watch?v=BKiftizQoNY
I noticed in this demo that there is multiple layers.
How is this?
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline OlafS3

Re: Cross Platform Programming
« Reply #19 on: May 14, 2013, 10:43:52 AM »
nice demo. But demos are all coded in assembler and not in a high level language. I do not know if that is possible (supported) by any of the languages. But a really good effect.
 

Offline OlafS3

Re: Cross Platform Programming
« Reply #20 on: May 14, 2013, 10:56:16 AM »
Quote from: trekiej;734878
https://www.youtube.com/watch?v=BKiftizQoNY
I noticed in this demo that there is multiple layers.
How is this?


there is a thread about this topic:
http://www.lemonamiga.com/forum/viewtopic.php?p=28957&sid=70fb69a1f6a2d05a5b2c01a05cc477ea
 

Offline woof

  • Jr. Member
  • **
  • Join Date: Feb 2003
  • Posts: 94
    • Show only replies by woof
    • http://uae.is.free.fr
Re: Cross Platform Programming
« Reply #21 on: May 14, 2013, 01:31:57 PM »
@Olaf

Could you say more about amiblitz 3D support via stormmesa?
Perhaps post a basic example listing?

Does amiblitz support   .library calls?  so allowing to use microbe3d.library that is (imho) more efficient

Alain Thellier
 

Offline OlafS3

Re: Cross Platform Programming
« Reply #22 on: May 14, 2013, 02:31:07 PM »
I am not a expert (yet) but i know that there is a example that is using stormmesa and it is full supported

« Last Edit: May 14, 2013, 02:36:22 PM by OlafS3 »
 

Offline OlafS3

Re: Cross Platform Programming
« Reply #23 on: May 14, 2013, 03:28:41 PM »
I found a explanation from "Wanderer" Thilo Köhler that MESA is full integrated

Source-Code (screenshot) from example 3d_cube

 

Offline trekiejTopic starter

Re: Cross Platform Programming
« Reply #24 on: May 14, 2013, 06:03:15 PM »
How is amiblitz with gui programming?
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline billt

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 910
    • Show only replies by billt
    • http://www.billtoner.net
Re: Cross Platform Programming
« Reply #25 on: May 14, 2013, 06:17:21 PM »
Quote from: trekiej;734849
Outside of Hollywood, how could some one make software that can be relatively easy to port from platform to platform?


Use an OS-agnostic APU like SDL, QT, GTK, WxWidgets, etc. in C, C++, etc. If we had Java JVM, that could be another option.

My favorite is WxWidgets, as one of the mian goals wiht it is to make an app appear and behave as an OS-native one. Other of these APIs may look foreign on your OS of choice, such as a QT app always looking like a QT app, regardless of what OS it is running on. WxWidgets apps intend to look like MS Windows app on MS Windows, or look like an OSX app on OSX, etc... I'm really hoping we get a WxWidets port to AmigaOS and -alikes. If only I had free time...

Quote
Is there any reason why software can not be made for Amiga os anymore?


No. I just bought Stormc4 a few days ago...
Bill T
All Glory to the Hypnotoad!
 

Offline trekiejTopic starter

Re: Cross Platform Programming
« Reply #26 on: May 14, 2013, 06:45:22 PM »
made or bought :D
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: Cross Platform Programming
« Reply #27 on: May 14, 2013, 06:49:23 PM »
You have to design your code to be portable. Take a look at BasiliskII for example, it was designed with portability in mind. Split the parts that are platform specific, you'll probably gain readability too. Many linux apps are just "hardcoded" posix apps not easily portable to non posix systems (that's why Cygwin exists for Linux and ixemul for Amiga). Take as an example SheepShaver, the latest maintainer posixified all the code making it non-portable to non-posix platforms.

If you decide to learn C amiga is a good platform for that too, the most important part is that you learn to use pointers properly, otherwise there's no much sense in using C.

If you decide to develop games you could use SDL library, it won't be fun to use on miggies. You can create your own functions for drawing sprites, backgrounds... and once SDL works then you can try to make an OCS/AGA/CGX version (it won't be easy but will be more effective than embedding SDL calls everywhere in your code).

If you decide to create an app try to split the logic part from the GUI and the storage one. You may have to rewrite small parts of storage part for taking care of endianness and you will have to rewrite GUI part for sure but it's not such a big problem, there are usually tools for that.

On Amiga systems the GUI of choice would be MUI as it's supported on all systems and for other OSes you can choose GTK, QT... keep in mind that these alien GUIs run awfully on Amiga if they run at all.
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline trekiejTopic starter

Re: Cross Platform Programming
« Reply #28 on: May 14, 2013, 07:12:14 PM »
Great.
I have studied C and C++ and got into using pointers.
I have a blog on pointers, not much is there.

I see for the most part what you are saying about organising your code for portability.
I would like to bring more programmers to the Amiga. The ability to bring code from other platforms seems to be a must these days.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Cross Platform Programming
« Reply #29 from previous page: May 14, 2013, 08:04:20 PM »
Would Amigans be willing to buy software for a dollar or 99 cents?
Amiga 2000 Forever :)
Welcome to the Planar System.