Programming under MorphOS
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    I know this probably should be placed under developer forum, but I'm not sure which one would be best.
    I've downloaded SDK and SDL components, and pick up some reference books on OpenGL (I already know at little about C).
    What other resources would the members of this forum recommend to help familiarize myself with the OS and writing code under it?
    "Never attribute to malice what can more readily explained by incompetence"
  • »29.05.10 - 21:16
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 534 from 2003/2/25
    From: France
    Search for RKM amiga. This is the official documentation from Commodore era.

    Install some autodoc tool as well.

    You can also have a look here : http://czeko.free.fr/ACSD

    About 3500 amiga C sources.
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »29.05.10 - 21:28
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2326 from 2003/2/24
    1st question is what are you planning to do ?

    Your mentioned SDL and GL, which would suggesst you plan porting some games, you won't need much MorphOS-specific knowledge for those.

    If you want to do some real MorphOS apps with a GUI and such, you have to learn "MUI, MUI yes MUI :-)" (current topic on #mui)
  • »29.05.10 - 22:15
    Profile
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    MUI (the GUI toolkit) & Amiga programming, OK I looked up both of those. I'm also interested in 2D and 3D graphics functions (under Ambient or Scalos) provided by Open GL and other OS components.
    "Never attribute to malice what can more readily explained by incompetence"
  • »30.05.10 - 02:01
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jcmarcos
    Posts: 1178 from 2003/3/13
    From: Pinto, Madrid ...
    Quote:

    Tcheko wrote:

    have a look here : http://czeko.free.fr/ACSD
    About 3500 amiga C sources.


    What the...! Where did it came from? I've never seen sucha thing in my life!
  • »31.05.10 - 07:15
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 534 from 2003/2/25
    From: France
    Quote:


    jcmarcos wrote:
    Quote:

    Tcheko wrote:

    have a look here : http://czeko.free.fr/ACSD
    About 3500 amiga C sources.


    What the...! Where did it came from? I've never seen sucha thing in my life!


    It came from my pocket. Never seen such thing as well and was bored digging the web for amiga code sources. That's why i hacked it. Buggish but working for what I expect it to be.

    You can even submit your own code to the base. Feel free to add some.
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »01.06.10 - 05:55
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    DiskDoctor
    Posts: 306 from 2009/4/17
    From: Rzeszow, place...
    @Jim

    Try to check out Python language also. It's pretty simple and has MUI interface classes by Yomgui. Unfortunately documentation of PyMUI is next to nothing so I really have to wait myself until I got plenty of spare time to play with it (vacation?)

    Python is simplest and most convenient language IMHO.
    Was: Mac Mini PPC running MorphOS 2.4
    Now: Amiga Forever 2010 with AmiKit and AmigaSYS
    Not used: Icaros Desktop 1.2 (reason: no wifi)
    Planned soon: an OS4 system
    Shortly then: a MOS notebook (wifi is a must-have)
  • »02.06.10 - 06:33
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    DiskDoctor
    Posts: 306 from 2009/4/17
    From: Rzeszow, place...
    @Jim

    I can also recommend CUBIC IDE. Said to be best C IDE for MorphOS. I was intending to use it with Python, but my Mac suddenly crashed and I gotta sort this out, when I got time.
    Was: Mac Mini PPC running MorphOS 2.4
    Now: Amiga Forever 2010 with AmiKit and AmigaSYS
    Not used: Icaros Desktop 1.2 (reason: no wifi)
    Planned soon: an OS4 system
    Shortly then: a MOS notebook (wifi is a must-have)
  • »02.06.10 - 19:16
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Python is simplest and most convenient language IMHO.

    Whitespace dependent syntax rules it out completely. ;-)
  • »02.06.10 - 19:57
    Profile Visit Website
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    That particular debate seems to have proponents on both sides.
    "Never attribute to malice what can more readily explained by incompetence"
  • »02.06.10 - 21:52
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Jupp3
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland
    As you specifically mentioned OpenGL, I would advice againist depending too much on NeHe tutorials (which is the first hit you get when googling for "OpenGL tutorial" and is way too often the first page people wanting to learn OpenGL are directed at) - it concentrates WAY too much on immediate mode (glBegin()... glEnd() etc.) which is deprecated functionality (will be removed from future OpenGL version, but works just ok on tinygl anyway) and is the slowest and in most cases generally the worst way to draw.

    Don't get me wrong, you CAN learn the basics there, but the concentration on immediate mode is "all wrong"

    As an alternative to immediate mode, it's almost always better to use vertex arrays, which are way more practical for most usecases, and faster too.

    Of course VBO is the fastest way to draw, but tinygl doesn't currently support it. But luckily vertex arrays and vbo are really similar, so upgrading vertex array code to use VBO is usually not a big issue (while immediate mode approach is completely different from vertex arrays)
  • »03.06.10 - 19:39
    Profile Visit Website
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    Thanks Jupp3. Since MorphOS is the only Amiga like OS I've seen supporting OpenGL, I wanted to explore using it. I'll keep your points on the disadvantages of immediate mode in mind when I look into this.

    BTW - I ordered a copy of the OpenGL Superbible (looks like a decent reference title).

    A question - How do I find out what OpenGL functions are NOT supported under MorphOS?

    [ Edited by Jim on 2010/6/4 2:32 ]
    "Never attribute to malice what can more readily explained by incompetence"
  • »03.06.10 - 20:36
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 186 from 2003/10/23
    Quote:


    Jim wrote:

    A question - How do I find out what OpenGL functions are NOT supported under MorphOS?

    [ Edited by Jim on 2010/6/4 2:32 ]


    download the tinygl sdk and look into the tinygl/docs folder
    I'm nerdy in the extreme
    And whiter than sour cream

    White&Nerdy 2006 Al Yankovic
  • »04.06.10 - 09:12
    Profile
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    Quote:


    raistlin77it wrote:
    Quote:



    download the tinygl sdk and look into the tinygl/docs folder



    Great! Now I have the references I need to start working with some simple conversions (to become more familiar with OpenGL under MorphOS).
    Thanks.
    "Never attribute to malice what can more readily explained by incompetence"
  • »04.06.10 - 23:21
    Profile