0

I've read some tutorial about Marmalade Framework. You know... it's totally awesome :) For example:

// Creating an Image from a Web Based Image File:
CIwGameFile* image_file = new CIwGameFile();
image_file->Open( "http://site...../icon.gif", false, true );
image_file->Close();

// Now we will create a sprite to display our downloaded web image:
CIwGameBitmapSprite* test_sprite = new CIwGameBitmapSprite();
test_sprite->setImage( image );
test_sprite->setDestSize( image->getWidth(), image->getHeight() );

WHY?? Why the first methods have uppercase (Open, Close) name and the second ones in lowercase (setImage, getWidth)? Is there any common sense when they do that? Or Marmalade has SO aweful syntax in whole library?

JavaRunner
  • 2,455
  • 5
  • 38
  • 52

2 Answers2

2

IwGame uses first letter lower case for setters and getters

Mat
  • 306
  • 1
  • 2
  • 12
  • 1
    I just don't like upper camel case :))) I wish Marmalade has lower camel case haha :)) It's so hard to work with the lower camel case and the upper camel case in one project (if I use lwGame with Marmalade). – JavaRunner Feb 25 '13 at 19:48
1

Marmalade uses Upper Camel case for all of it's methods (as far as I've seen). The methods you are talking about is not Marmalade's own API methods. These are IwGame engine's methods. Marmalade has no control on this.

0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184