DarthMike / indielib-crossplatform

IndieLib is a cross-platform Game Graphics engine. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL desktop. **NOT SUPPORTED ANYMORE**
zlib License
61 stars 27 forks source link

Indielib() definition has slightly changed to take into account iOS and SDL #133

Closed DarthMike closed 11 years ago

DarthMike commented 11 years ago

SDL makes some special initialization before main on mobile platforms (iOS, Android), so client SDL code 'seems' to run in it's normal main() entry point, but it's instead called after initialization.

This is a hack/workaround on SDL 2.0 API, but it's minimally harmful. What implies for our library, is that our users MUST user Indielib() instead of any kind of main() they want to use, because of this initialization.

We need to change tests, tutorials to use different definition of Indielib(). It's a simple change: We had int Indielib() {

...code

}

Now we do: Indielib_Main() {

...code

}

DarthMike commented 11 years ago

We should change tutorials in wiki when releasing 0.6