1.4 KiB
Tutorial
@tableofcontents
Base:
To understand some choise, I designe this software to acces on all system (that provide openGL interface). But on some embended interface, we have only openGL-es ==> then I limit all the design on OpenGL-ES (need to think to change this maybe)
All is based on the heritage of the single class: gale::Application.
For your fist application you just need to declare an application and create the smallest main that ever exit:
Application declatration:
We declare the application:
class MainApplication : public gale::Application {
// application implementation here ...
}
We create application on the main() @snippet basic.cpp gale_declare_main
At this point I need to explain one point on Android:
Android have an internal state engine that can create multiple aplication, then GALE can call a second time the main() if needed...
Then never forget to not use global value and singleton. We provide other mechanism to do it. (for exemple, you can acces at you Application intance everywhere you are).
Compleate Sample:
@snippet basic.cpp gale_sample_all