Métodos públicos | |
| bool | Load (char *filename) |
| bool | Save (char *filename) |
| void | SetLanguage (char *language) |
| void | SetCaption (char *caption) |
| void | SetWidth (int width) |
| void | SetHeight (int height) |
| void | SetBits (int bits) |
| void | SetRefreshRate (int refreshrate) |
| void | SetLockFPS (int lockFPS) |
| void | SetFullscren (bool fullscreen) |
| void | SetVSync (bool vsync) |
| void | SetCursorVisible (bool cursorVisible) |
| void | SetSound (bool sound) |
| const char * | GetLanguage () |
| const char * | GetCaption () |
| int | GetWidth () |
| int | GetHeight () |
| int | GetBits () |
| int | GetLockFPS () |
| int | GetRefreshRate () |
| bool | GetFullscreen () |
| bool | GetVSync () |
| bool | GetCursorVisible () |
| bool | GetSound () |
| bool zak::GameConfig::Load | ( | char * | filename | ) |
Permite cargar la configuración a través de un archivo .ini. En caso de que el archivo no exista, intenta crear uno nuevo.
| filename | Nombre del archivo |
| bool zak::GameConfig::Save | ( | char * | filename | ) |
Permite guardar la configuración en un archivo .ini
| filename | Nombre del archivo |
| void zak::GameConfig::SetLanguage | ( | char * | language | ) |
Permite indicar el idioma
| language | Cadena de caracteres que indica el idioma con el que trabajaremos |
| void zak::GameConfig::SetCaption | ( | char * | caption | ) |
Permite indicar el título de la ventana
| caption | Título de la ventana |
| void zak::GameConfig::SetWidth | ( | int | width | ) |
Permite indicar el ancho de la ventana
| width | Ancho de la ventana |
| void zak::GameConfig::SetHeight | ( | int | height | ) |
Permite indicar el alto de la ventana
| height | Alto de la ventana |
| void zak::GameConfig::SetBits | ( | int | bits | ) |
Permite indicar los bits por píxel
| bits | Bits por píxel |
| void zak::GameConfig::SetRefreshRate | ( | int | refreshrate | ) |
Permite indicar la velocidad de refresco
| refreshRate | Velocidad de refresco |
| void zak::GameConfig::SetLockFPS | ( | int | lockFPS | ) |
Permite indicar si deseamos congelar los cuadros por segundo
| lockFPS | Cantidad de cuadros por segundo a los que deseamos que corra la aplicación |
| void zak::GameConfig::SetFullscren | ( | bool | fullscreen | ) |
Permite indicar si deseamos que el juego corra a pantalla completa o no
| fullscreen | Si indicamos true, el juego correrá a pantalla completa. |
| void zak::GameConfig::SetVSync | ( | bool | vsync | ) |
Permite indicar si deseamos activar la sincronización vertical
| vsync | Si indicamos true, activaremos la sincronización vertical |
| void zak::GameConfig::SetCursorVisible | ( | bool | cursorVisible | ) |
Permite indicar si deseamos que el cursor esté visible o no
| cursorVisible | Si indicamos true, veremos el cursor de windows en pantalla |
| void zak::GameConfig::SetSound | ( | bool | sound | ) |
Permite indicar si deseamos activar el sonido
| sound | Si indicamos true, activaremos el sonido. |
| const char* zak::GameConfig::GetLanguage | ( | ) | [inline] |
Devuelve el idioma
| const char* zak::GameConfig::GetCaption | ( | ) | [inline] |
Devuelve el título de la ventana
| int zak::GameConfig::GetWidth | ( | ) | [inline] |
Devuelve el ancho de la ventana
| int zak::GameConfig::GetHeight | ( | ) | [inline] |
Devuelve el alto de la ventana
| int zak::GameConfig::GetBits | ( | ) | [inline] |
Devuelve los bits por píxel
| int zak::GameConfig::GetLockFPS | ( | ) | [inline] |
Devuelve los cuadros por segundo a los que está bloqueado. En caso de devolver cero significa que no estará bloqueado.
| int zak::GameConfig::GetRefreshRate | ( | ) | [inline] |
Devuelve la velocidad de refresco
| bool zak::GameConfig::GetFullscreen | ( | ) | [inline] |
Devuelve si la aplicación corre a pantalla completa o no.
| bool zak::GameConfig::GetVSync | ( | ) | [inline] |
Devuelve si está activada la sincronización vertical
| bool zak::GameConfig::GetCursorVisible | ( | ) | [inline] |
Devuelve si el cursor de windows está visible
| bool zak::GameConfig::GetSound | ( | ) | [inline] |
Devuelve si el sonido está activado
1.5.1-p1