Classes | |
class | Audio |
Class that manages the audio system. More... | |
struct | Rect |
Basic type to define an area. More... | |
class | Core |
Class that manages the base system. More... | |
class | Font |
Class to store one font. More... | |
class | Graphics |
Class that manages the video system. More... | |
class | Input |
Class that manages the input system. More... | |
class | Script |
Class that manages the scripts system. More... | |
class | Sound |
Class to store one sound. More... | |
class | Sprite |
Class to store one sprite animated. More... | |
class | Surface |
Class to store an image. More... | |
Namespaces | |
namespace | Keys |
Listing of keys of the keyboard. | |
namespace | Teclas |
Listing of keys of the keyboard. | |
Typedefs | |
typedef signed char | sbyte |
typedef signed short int | sword |
typedef signed long int | sdword |
typedef unsigned char | byte |
typedef unsigned short int | word |
typedef unsigned long int | dword |
Variables | |
const UINT | AUDIO_ERROR_UNDEF = 500 |
const UINT | AUDIO_ERROR_OPEN = 501 |
const UINT | AUDIO_ERROR_QUERYSPEC = 502 |
const UINT | AUDIO_ERROR_NOTEQU = 503 |
const UINT | AUDIO_ERROR_ALLOCATE = 504 |
const UINT | AUDIO_ERROR_PLAYSOUND = 505 |
const UINT | AUDIO_ERROR_SETVOLUME = 506 |
const UINT | AUDIO_ERROR_SETPAN = 507 |
const UINT | AUDIO_ERROR_FADEINSOUND = 508 |
const int | DEFAULT_FREQUENCY22 = 22050 |
const int | DEFAULT_FREQUENCY44 = 44100 |
const word | DEFAULT_FORMAT = AUDIO_S16 |
const int | DEFAULT_NUM_CHANNELS = 2 |
const int | DEFAULT_CHUNKSIZE = 4096 |
const int | MAX_VOLUME = 128 |
const int | MIN_VOLUME = 0 |
const byte | PAN_SILENCE = 0 |
const byte | PAN_LOUD = 255 |
const int | INFINITE_LOOPS = -1 |
const int | PLAY_ONCE = 0 |
const int | RANDOM_CHANNEL = -1 |
const UINT | EVERYTHING_ALL_RIGHT = 0 |
const int | FAIL = -1 |
const int | STR_EQU = 0 |
const UINT | CORE_ERROR_SDLINIT = 1 |
const UINT | FONT_ERROR_UNDEF = 700 |
const UINT | FONT_ERROR_OPEN = 701 |
const UINT | GRAPHICS_ERROR_UNDEF = 100 |
const UINT | GRAPHICS_ERROR_VIDEOMODEOK = 101 |
const UINT | GRAPHICS_ERROR_SETVIDEOMODE = 102 |
const UINT | GRAPHICS_ERROR_UPDATE = 103 |
const UINT | GRAPHICS_ERROR_BLITSURFACE = 104 |
const UINT | GRAPHICS_ERROR_COPYSCREEN = 105 |
const UINT | GRAPHICS_ERROR_FILLRECT = 106 |
const UINT | GRAPHICS_ERROR_TTFINIT = 107 |
const UINT | GRAPHICS_ERROR_RENDERTEXT = 108 |
const UINT | INPUT_ERROR_UNDEF = 400 |
const UINT | INPUT_ERROR_GETKEYSTATE = 401 |
const int | LEFT_BUTTON = 1 |
const int | MIDDLE_BUTTON = 2 |
const int | RIGHT_BUTTON = 3 |
const int | WHEEL_UP = 4 |
const int | WHEEL_DOWN = 5 |
const UINT | SCRIPT_ERROR_UNDEF = 800 |
const UINT | SCRIPT_ERROR_LUAOPEN = 801 |
const UINT | SOUND_ERROR_UNDEF = 600 |
const UINT | SOUND_ERROR_LOAD = 601 |
const UINT | SOUND_ERROR_SETVOLUME = 602 |
const int | NO_CHANNEL = -1 |
const UINT | SPRITE_ERROR_UNDEF = 300 |
const UINT | SPRITE_ERROR_FOPEN = 301 |
const UINT | SPRITE_ERROR_READHEADER = 302 |
const UINT | SPRITE_ERROR_WRONGFID = 303 |
const UINT | SPRITE_ERROR_WRITEHEADER = 304 |
const UINT | SURFACE_ERROR_UNDEF = 200 |
const UINT | SURFACE_ERROR_CREATESURF = 201 |
const UINT | SURFACE_ERROR_SETCOLORKEY = 202 |
const UINT | SURFACE_ERROR_DISPLAYFORMAT = 203 |
const UINT | SURFACE_ERROR_FILLRECT = 204 |
const UINT | SURFACE_ERROR_RWFROMFILE = 205 |
const UINT | SURFACE_ERROR_UNKOWNFORMAT = 206 |
const UINT | SURFACE_ERROR_LOADINGFILE = 207 |
const UINT | SURFACE_ERROR_SAVINGFILE = 208 |
const UINT | SURFACE_ERROR_COPY = 209 |
const UINT | SURFACE_ERROR_PASTE = 210 |
The namespace Yukino is the main and only container of classes of the library. These are divided in two different types, classes that handle some determined system, and classes that serve to store images or sounds.
+ Classes to handle some system: Core, Script, Audio, Input, Graphics.
+ Classes to store data: Surface, Sprite, Sound, Font.
typedef signed char Yukino::sbyte |
Entero con signo de 8 bits (Sint8).
typedef signed short int Yukino::sword |
Entero con signo de 16 bits (Sint16).
typedef signed long int Yukino::sdword |
Entero con signo de 32 bits (Sint32).
typedef unsigned char Yukino::byte |
Entero sin signo de 8 bits (Uint8).
typedef unsigned short int Yukino::word |
Entero sin signo de 16 bits (Uint16).
typedef unsigned long int Yukino::dword |
Entero sin signo de 32 bits (Uint32).
const UINT Yukino::AUDIO_ERROR_UNDEF = 500 |
Error indefinido en las funciones de Audio.
const UINT Yukino::AUDIO_ERROR_OPEN = 501 |
Error al abrir los canales de audio.
const UINT Yukino::AUDIO_ERROR_QUERYSPEC = 502 |
Error al preguntar las propiedades del audio.
const UINT Yukino::AUDIO_ERROR_NOTEQU = 503 |
Error las propiedades finales del audio no son las deseadas.
const UINT Yukino::AUDIO_ERROR_ALLOCATE = 504 |
Error al intentar reservar nuevos canales de audio.
const UINT Yukino::AUDIO_ERROR_PLAYSOUND = 505 |
Error al reproducir un sonido.
const UINT Yukino::AUDIO_ERROR_SETVOLUME = 506 |
Error al cambiar el volumen del audio.
const UINT Yukino::AUDIO_ERROR_SETPAN = 507 |
Error al cambiar el panning de un canal.
const UINT Yukino::AUDIO_ERROR_FADEINSOUND = 508 |
Error al hacer un fade in de un sonido.
const int Yukino::DEFAULT_FREQUENCY22 = 22050 |
Frecuencia de 22050 Hz.
const int Yukino::DEFAULT_FREQUENCY44 = 44100 |
Frecuencia de 44100 Hz.
const word Yukino::DEFAULT_FORMAT = AUDIO_S16 |
Formato de audio por defecto.
const int Yukino::DEFAULT_NUM_CHANNELS = 2 |
Número de canales por defecto.
const int Yukino::DEFAULT_CHUNKSIZE = 4096 |
Tamaño por defecto del buffer de audio.
const int Yukino::MAX_VOLUME = 128 |
Volumen máximo.
const int Yukino::MIN_VOLUME = 0 |
Volumen mínimo.
const byte Yukino::PAN_SILENCE = 0 |
Panning mínimo.
const byte Yukino::PAN_LOUD = 255 |
Panning máximo.
const int Yukino::INFINITE_LOOPS = -1 |
Para reproducir un sonido infinitas veces.
const int Yukino::PLAY_ONCE = 0 |
Para reproducir un sonido una sola vez.
const int Yukino::RANDOM_CHANNEL = -1 |
Para reproducir un sonido en una canal aleatorio.
const UINT Yukino::EVERYTHING_ALL_RIGHT = 0 |
Si una función lo devuelve, es que todo ha ido bien.
const int Yukino::FAIL = -1 |
Simboliza el fallo en casi todas las funciones de la SDL.
const int Yukino::STR_EQU = 0 |
Simboliza que dos cadenas son iguales en la función strcmp.
const UINT Yukino::CORE_ERROR_SDLINIT = 1 |
Error al inicializar la librería SDL.
const UINT Yukino::FONT_ERROR_UNDEF = 700 |
Error indefinido en las funciones de Font.
const UINT Yukino::FONT_ERROR_OPEN = 701 |
Error indefinido en las funciones de Font.
const UINT Yukino::GRAPHICS_ERROR_UNDEF = 100 |
Error indefinido en las funciones de Graphics.
const UINT Yukino::GRAPHICS_ERROR_VIDEOMODEOK = 101 |
Error al comprobar si esta soportada la resolución de video.
const UINT Yukino::GRAPHICS_ERROR_SETVIDEOMODE = 102 |
Error al cambiar de resolución la pantalla.
const UINT Yukino::GRAPHICS_ERROR_UPDATE = 103 |
Error al actualizar el buffer de pantalla.
const UINT Yukino::GRAPHICS_ERROR_BLITSURFACE = 104 |
Error al pegar una superficie en el buffer de pantalla.
const UINT Yukino::GRAPHICS_ERROR_COPYSCREEN = 105 |
Error al copiar una región del buffer de pantalla.
const UINT Yukino::GRAPHICS_ERROR_FILLRECT = 106 |
Error al rellenar una región del buffer de pantalla.
const UINT Yukino::GRAPHICS_ERROR_TTFINIT = 107 |
Error al iniciar el sistema base para las fuentes TTF.
const UINT Yukino::GRAPHICS_ERROR_RENDERTEXT = 108 |
Error obtener el texto renderizado de la fuente.
const UINT Yukino::INPUT_ERROR_UNDEF = 400 |
Error indefinido en las funciones de Input.
const UINT Yukino::INPUT_ERROR_GETKEYSTATE = 401 |
Error al obtener el estado de las teclas.
const int Yukino::LEFT_BUTTON = 1 |
Botón izquierdo del ratón.
const int Yukino::MIDDLE_BUTTON = 2 |
Botón central del ratón.
const int Yukino::RIGHT_BUTTON = 3 |
Botón derecho del ratón.
const int Yukino::WHEEL_UP = 4 |
La rueda del ratón se mueve hacia arriba.
const int Yukino::WHEEL_DOWN = 5 |
La rueda del ratón se mueve hacia abajo.
const UINT Yukino::SCRIPT_ERROR_UNDEF = 800 |
Error indefinido en las funciones de Script.
const UINT Yukino::SCRIPT_ERROR_LUAOPEN = 801 |
Error al iniciar el LUA.
const UINT Yukino::SOUND_ERROR_UNDEF = 600 |
Error indefinido en las funciones de Sound.
const UINT Yukino::SOUND_ERROR_LOAD = 601 |
Error al cargar un sonido desde un fichero.
const UINT Yukino::SOUND_ERROR_SETVOLUME = 602 |
Error al cambiar el volumen de un sonido.
const int Yukino::NO_CHANNEL = -1 |
Indicador de que no hay ningún canal usado por el sonido.
const UINT Yukino::SPRITE_ERROR_UNDEF = 300 |
Error indefinido en las funciones de Sprite.
const UINT Yukino::SPRITE_ERROR_FOPEN = 301 |
Error al abrir el fichero de sprite.
const UINT Yukino::SPRITE_ERROR_READHEADER = 302 |
Error al leer la cabecera del fichero de sprite.
const UINT Yukino::SPRITE_ERROR_WRONGFID = 303 |
Error por leer un fichero que no es de sprite.
const UINT Yukino::SPRITE_ERROR_WRITEHEADER = 304 |
Error al escribir la cabecera del fichero de sprite.
const UINT Yukino::SURFACE_ERROR_UNDEF = 200 |
Error indefinido en las funciones de Surface.
const UINT Yukino::SURFACE_ERROR_CREATESURF = 201 |
Error al crear una superficie vacía.
const UINT Yukino::SURFACE_ERROR_SETCOLORKEY = 202 |
Error al establecer el color clave para las transparencias.
const UINT Yukino::SURFACE_ERROR_DISPLAYFORMAT = 203 |
Error al convertir la superficie al formato del buffer de pantalla.
const UINT Yukino::SURFACE_ERROR_FILLRECT = 204 |
Error al rellenar una región con un color.
const UINT Yukino::SURFACE_ERROR_RWFROMFILE = 205 |
Error al leer un fichero con una imagen.
const UINT Yukino::SURFACE_ERROR_UNKOWNFORMAT = 206 |
Error de formato de fichero desconocido.
const UINT Yukino::SURFACE_ERROR_LOADINGFILE = 207 |
Error al tratar de cargar en la superficie los datos de la imagen.
const UINT Yukino::SURFACE_ERROR_SAVINGFILE = 208 |
Error al tratar de salvar una superficie en un fichero.
const UINT Yukino::SURFACE_ERROR_COPY = 209 |
Error al copiar una superficie a otra.
const UINT Yukino::SURFACE_ERROR_PASTE = 210 |
Error al pegar una superficie en otra.