Skip to content

Commit

Permalink
Ver.1.10.0-beta
Browse files Browse the repository at this point in the history
- Optimizaciones en las rutinas de renderizado, en especial en las de fondos de tiles las cuales, de media, son un 30% más eficientes.
- Corregido el error que causaba un renderizado erróneo de en los fondos de tiles si estos se usaban de múltiples viewports y alguno se colocaba en las coordenadas 0,0.
- Modificadas las rutinas de apertura de los streams de música. Ahora si no se está utilizando un archivo de empaquetado de datos, no se realizará la precarga en RAM del archivo, realizando el stream directamente desde el sistema de archivos.
  • Loading branch information
knightfox75 committed Jul 29, 2022
1 parent f13f0f9 commit 7690942
Show file tree
Hide file tree
Showing 157 changed files with 1,189 additions and 680 deletions.
13 changes: 13 additions & 0 deletions Docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
N'gine Changelog
--------------------------------------------------------------------------------

2022-07-29 Ver.1.10.0-beta
--------------------------------------------------------------------------------
- Optimizaciones en las rutinas de renderizado, en especial en las de fondos
de tiles las cuales, de media, son un 30% m�s eficientes.
- Corregido el error que causaba un renderizado err�neo de en los fondos de
tiles si estos se usaban de m�ltiples viewports y alguno se colocaba en las
coordenadas 0,0.
- Modificadas las rutinas de apertura de los streams de m�sica. Ahora si no se
est� utilizando un archivo de empaquetado de datos, no se realizar� la
precarga en RAM del archivo, realizando el stream directamente desde el
sistema de archivos.


2022-05-22 Ver.1.9.0-stable
--------------------------------------------------------------------------------
- A�adido el m�todo GetApplicationFocus(); a la clase NGN_System, el cual
Expand Down
File renamed without changes.
File renamed without changes.
Empty file.
2 changes: 2 additions & 0 deletions Examples/05_text_layers/debug_log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[2022-05-27 13:09:50] N'gine version 1.9.1-beta started successfully!
[2022-05-27 13:09:56] Execution terminated.
2 changes: 2 additions & 0 deletions Examples/09_sound/debug_log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[2022-07-28 18:59:33] N'gine version 1.10.0-beta started successfully!
[2022-07-28 18:59:40] Execution terminated.
2 changes: 2 additions & 0 deletions Examples/11_camera/debug_log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[2022-06-07 12:52:57] N'gine version 1.10.0-wip_0x01 started successfully!
[2022-06-07 12:53:18] Execution terminated.
4 changes: 2 additions & 2 deletions Examples/16_multiple_viewports/debug_log.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[2022-05-22 14:59:39] N'gine version 1.9.0-stable started successfully!
[2022-05-22 14:59:42] Execution terminated.
[2022-07-28 17:23:57] N'gine version 1.10.0-beta started successfully!
[2022-07-28 17:24:14] Execution terminated.
Empty file.
Empty file.
Empty file added Examples/23_mask/debug_log.txt
Empty file.
2 changes: 2 additions & 0 deletions Examples/24_surface_to_raw/debug_log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[2022-06-07 12:50:53] N'gine version 1.10.0-wip_0x01 started successfully!
[2022-06-07 12:51:04] Execution terminated.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion Library/linux/include/ngn.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Archivo principal de la libreria
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_audio_clip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Clips de audio
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_camera.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Camara virtual en 2D
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_canvas.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Canvas - Capa de dibujo
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_collisions.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Sistema de colisiones
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
6 changes: 3 additions & 3 deletions Library/linux/include/ngn_defines.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Definiciones de prototipos
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -59,9 +59,9 @@

/*** Version de N'gine ***/
static const int32_t NGN_VERSION_MAJOR = 1; // Version mayor
static const int32_t NGN_VERSION_MINOR = 9; // Version menor
static const int32_t NGN_VERSION_MINOR = 10; // Version menor
static const int32_t NGN_VERSION_PATCH = 0; // Version parche
static const std::string NGN_VERSION_METADATA = "stable"; // Version metadatos
static const std::string NGN_VERSION_METADATA = "beta"; // Version metadatos

/*** Definiciones generales ***/
static const int32_t NGN_DEFAULT_VALUE = 0x7FFFFFFF; // Valor de "defecto"
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_disk.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Funciones de acceso al disco
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_filesystem.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Funciones del sistema de archivos
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_graphics.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Gestion del Renderer de SDL
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_image.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Funciones para la manipulacion de imagenes en RAW
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_input.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Meotodos de entrada
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
5 changes: 4 additions & 1 deletion Library/linux/include/ngn_load.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Funciones de carga de archivos
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -131,6 +131,9 @@ class NGN_Load {
// Establece un archivo empaquetado como el origen de datos
bool SetPackage(std::string pkg_file, std::string key = "");

// Devuelve si se esta usando actualmente un archivo de empaquetado de datos
bool PackageEnabled();


// Private
private:
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_log.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Funciones de mensages de depuracion
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_math.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Funciones matematicas
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_music_clip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Clips de musica
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
15 changes: 14 additions & 1 deletion Library/linux/include/ngn_render.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Gestion del Renderer de SDL
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -108,6 +108,19 @@ class NGN_Render {
bool render2texture; // Flag de render to texture
NGN_Texture* rend2text; // Textura de destino del render

/*** Metodos para el dibujado de fondos de tiles ***/
void TiledBgTiles(NGN_TiledBg* bg);
void TiledBgTransform(NGN_TiledBg* bg);

/*** Propiedades comunes ***/
SDL_RendererFlip _flip; // Estado del flip
SDL_Point* _center; // Centro de la rotacion
int32_t _x, _y; // Coordenadas
int32_t _width, _height; // Medidas
double _rotation; // Rotacion
SDL_Rect _source, _destination; // Areas de origen y destino del render
int32_t _alpha; // Nivel del alpha

};


Expand Down
6 changes: 3 additions & 3 deletions Library/linux/include/ngn_sound.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Sonido
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -152,7 +152,7 @@ class NGN_Sound {

// Abre una musica para streaming (Sobrecarga 1)
NGN_MusicClip* OpenMusic(
const char* filepath, // Archivo de audio
std::string filepath, // Archivo de audio
bool auto_start = true, // Reproduccion automatica
int32_t volume = 100, // Volumen
bool loop = true, // Loop ?
Expand All @@ -161,7 +161,7 @@ class NGN_Sound {

// Abre una musica para streaming (Sobrecarga 2)
NGN_MusicClip* OpenMusic(
const char* filepath, // Archivo de audio
std::string filepath, // Archivo de audio
int32_t loop_start, // Inicio del loop (milisegundos)
int32_t loop_end = NGN_DEFAULT_VALUE, // Fin del loop (milisegundos)
bool auto_start = true, // Reproduccion automatica
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_sprite.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Sprites
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_system.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Funciones de sistema
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_text_layer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Text Layer - Capa de texto con soporte TTF
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_texture.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Fondos con texturas
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
11 changes: 9 additions & 2 deletions Library/linux/include/ngn_tiledbg.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Fondos Tileados
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -77,6 +77,9 @@ class NGN_TiledBg {
float width; // Tamaño
float height;

uint32_t tile_size; // Tamaño del tile
Size2I32 map_size; // Tamaño del mapa de tiles

Vector2 center; // Centro del fondo para su rotacion

double rotation; // Rotacion del fondo
Expand All @@ -92,8 +95,12 @@ class NGN_TiledBg {
// Tamaño del backbuffer
Size2I32 bb_size;

// Posicion en el ultimo frame
// Ubicacion en el ultimo frame
Vector2 last_position;
int8_t last_viewport;

// Modo de render en el ultimo frame
bool tile_mode;

// Posiciona el fondo
void Position(float position_x, float position_y);
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_toolbox.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
TOOL BOX - Caja de herramientas
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
Binary file modified Library/linux/lib/libngn.a
Binary file not shown.
Binary file modified Library/linux/lib/libngn_d.a
Binary file not shown.
Empty file.
2 changes: 1 addition & 1 deletion Library/windows/include/ngn.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Archivo principal de la libreria
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_audio_clip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Clips de audio
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_camera.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Camara virtual en 2D
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_canvas.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Canvas - Capa de dibujo
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_collisions.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Sistema de colisiones
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
6 changes: 3 additions & 3 deletions Library/windows/include/ngn_defines.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 1.9.0-stable ***
*** Version 1.10.0-beta ***
Definiciones de prototipos
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -59,9 +59,9 @@

/*** Version de N'gine ***/
static const int32_t NGN_VERSION_MAJOR = 1; // Version mayor
static const int32_t NGN_VERSION_MINOR = 9; // Version menor
static const int32_t NGN_VERSION_MINOR = 10; // Version menor
static const int32_t NGN_VERSION_PATCH = 0; // Version parche
static const std::string NGN_VERSION_METADATA = "stable"; // Version metadatos
static const std::string NGN_VERSION_METADATA = "beta"; // Version metadatos

/*** Definiciones generales ***/
static const int32_t NGN_DEFAULT_VALUE = 0x7FFFFFFF; // Valor de "defecto"
Expand Down
Loading

0 comments on commit 7690942

Please sign in to comment.