This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| es:orx:tutorials:aplicación_standard [2012/03/05 15:58 (14 years ago)] – [Sumario] zera | es:orx:tutorials:aplicación_standard [2020/08/20 04:14 (5 years ago)] (current) – Old content sausage | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Tutorial de Independiente ====== | ||
| - | |||
| - | |||
| - | ===== Sumario ===== | ||
| - | |||
| - | This is our first basic C++ tutorial. It also shows how to write a stand alone executable using orx and how to use the localization module ('' | ||
| - | |||
| - | As we are **NOT** using the default executable anymore for this tutorial, its code will be directly compiled into the executable and not into an external library.\\ | ||
| - | |||
| - | This implies that we will **NOT** have the default hardcoded behavior we had in the previous tutorials: | ||
| - | * F11 will not affect vertical sync toggler | ||
| - | * Escape won't automatically exit | ||
| - | * F12 won't capture a screenshot | ||
| - | * Backspace won't reload configuration files | ||
| - | * the [Main] section in the config file won't be used to load a plugin (" | ||
| - | |||
| - | A program based directly on orx ((ie. without the help of orx's launcher)), by default, will also **NOT** exit if it receives the orxSYSTEM_EVENT_CLOSE event.\\ | ||
| - | To do so, we will either have to use the helper '' | ||
| - | |||
| - | See previous [[main# | ||
| - | |||
| - | As we're on our own here, we need to write the main function and initialize orx manually.\\ | ||
| - | The good thing is that we can then specify which modules we want to use, and deactivates display or any other module at will, if needed. | ||
| - | |||
| - | If we still want a semi-automated initialization of orx, we can use the '' | ||
| - | This tutorial will cover the use of orx with this helper function, but you can decide not to use it if its behavior doesn' | ||
| - | |||
| - | This helper function will take care of initializing everything correctly and exiting properly.\\ | ||
| - | It will also make sure the clock module is constantly ticked (as it's part of orx's core) and that we exit if the orxSYSTEM_EVENT_CLOSE event is sent.\\ | ||
| - | This event is sent when closing the windows, for example, but it can also be sent under your own criteria (escape key pressed, for example). | ||
| - | |||
| - | This code is also a basic C++ example to show how to use orx without having to write C code.\\ | ||
| - | This tutorial could have been architectured in a better way (cutting it into pieces with headers files, for example) but we wanted to keep a single file per *basic* tutorial. | ||
| - | |||
| - | This stand alone executable also creates a console (as does the default orx executable), | ||
| - | In order to achieve that, you only need to provide an argc/argv style parameter list that contains the executable name.\\ | ||
| - | If you don't, the default loaded config file will be orx.ini instead of being based on our executable name (ie. 10_StandAlone.ini). | ||
| - | |||
| - | For [[wp> | ||
| - | |||
| - | This tutorial simply display orx's logo and a localized legend. Press space or click left mouse button to cycle through all the availables languages for the legend' | ||
| - | |||
| - | Some explanations about core elements that you can find in this tutorial: | ||
| - | |||
| - | * '' | ||
| - | |||
| - | * '' | ||
| - | |||
| - | * '' | ||
| - | ===== Detalles ===== | ||
| - | |||
| - | |||
| - | ===== Recursos ===== | ||
| - | |||