#include <engine_base.h>
Public Member Functions | |
| void | initialize (SDL_Surface *&surf) |
| Initialize the Engine. | |
| void | finalize () |
| Finalize the Engine. | |
Public Attributes | |
| int | video_res_h |
| Horizontal resolution. | |
| int | video_res_w |
| Vertical resolution. | |
| int | video_bpp |
| Screen depth (bits per pixel). | |
| int | video_fullscreen |
| Enable or disable the full screen video mode. | |
| int | input_joy_enabled |
| Enable or disable joysticks. | |
| SDL_Joystick * | joystick |
| Attribute to use when working with a joystick. | |
| int | input_show_cursor |
| Show or hide the mouse cursor. | |
| int | audio_frequency |
| Sound frequency. | |
| int | audio_buffer |
| Sound buffer. | |
| int | audio_mode |
| Sound playback mode. | |
| int | machine_target |
| Target hardware. | |
This class provides the methodes and attributes to initialize the engine and work with its components.
Definition at line 43 of file engine_base.h.
|
|
Finalize the Engine. This must be done before closing the app or the game to finalize all the susystems of the toolkit. Definition at line 107 of file engine_base.cpp. References machine_target, NGT_MACHINE_GENERIC, and NGT_MACHINE_GP2X. |
|
|
Initialize the Engine. This must be done before using any other function of the engine. Definition at line 11 of file engine_base.cpp. References audio_buffer, audio_frequency, audio_mode, input_joy_enabled, joystick, machine_target, NGT_MACHINE_GENERIC, NGT_MACHINE_GP2X, video_bpp, video_fullscreen, video_res_h, and video_res_w. |
|
|
Sound buffer.
Sets the size of the buffer used by SDL_Mixer. Definition at line 91 of file engine_base.h. Referenced by initialize(). |
|
|
Sound frequency.
Sets the frequency for the sound system (SDL_Mixer). Definition at line 85 of file engine_base.h. Referenced by initialize(). |
|
|
Sound playback mode.
Sets the playback mode used by SDL_Mixer. Definition at line 97 of file engine_base.h. Referenced by initialize(). |
|
|
Enable or disable joysticks.
Enables or disables the joystick support.
Definition at line 65 of file engine_base.h. Referenced by initialize(). |
|
|
Show or hide the mouse cursor.
Show or hide the mouse cursor in the screen.
Definition at line 77 of file engine_base.h. |
|
|
Attribute to use when working with a joystick.
Definition at line 68 of file engine_base.h. Referenced by initialize(). |
|
|
Target hardware.
Specify the machine (hardware) in which the application/game is designed for.
Definition at line 108 of file engine_base.h. Referenced by finalize(), and initialize(). |
|
|
Screen depth (bits per pixel).
Definition at line 51 of file engine_base.h. Referenced by initialize(). |
|
|
Enable or disable the full screen video mode.
Definition at line 53 of file engine_base.h. Referenced by initialize(). |
|
|
Horizontal resolution.
Definition at line 47 of file engine_base.h. Referenced by initialize(). |
|
|
Vertical resolution.
Definition at line 49 of file engine_base.h. Referenced by initialize(). |
1.4.4