Skip to content

Commit

Permalink
N'gine 0.5.0-a
Browse files Browse the repository at this point in the history
Major update to 0.5.0-a pre-release.
  • Loading branch information
knightfox75 committed Feb 3, 2018
1 parent b768c3d commit 6f8f262
Show file tree
Hide file tree
Showing 172 changed files with 1,549 additions and 669 deletions.
23 changes: 23 additions & 0 deletions Docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@
N'gine Changelog
--------------------------------------------------------------------------------

2018-02-02 Ver.0.5.0-a
--------------------------------------------------------------------------------
- Actualizados los templates de la librer�a.
- Ahora se deshabilita el protector de pantalla de forma autom�tica al
iniciarse.
- Se ha modificado el orden de los par�metros del m�todo NGN_Graphics::Init();
para mayor facilidad de uso.
- La opci�n VSYNC se deshabilita de manera autom�tica si el refresco del
monitor es inferior a 60hz;
- Se ha reescrito el m�todo para el cambio de modo de pantalla, pudiendo
escoger ahora entre modo ventana, ventana a pantalla completa y
pantalla completa. Esto evita el dibujado de elementos fuera de lugar
en modo pantalla completa en algunas tarjetas gr�ficas. Se recomienda el
uso de modo "SCR_WINDOW_FULL" (modo ventana completa) en Linux.
- El par�metro window_name en el m�todo NGN_Graphics::Init(); es ahora del
tipo string y se almacena en la propiedad window_caption;
- A�adido el m�todo NGN_Graphics::SetViewportClip(); el cual permite definir
el �rea visible de la pantalla.
- A�adido el m�todo NGN_Graphics::ShowMouse() para mostrar y ocultar el
cursor del rat�n cuando estamos en el foco de la aplicaci�n.



2018-01-17 Ver.0.4.4-a
--------------------------------------------------------------------------------
- Modificado el m�todo CloseMusic(); de la clase NGN_Sound para que, en caso
Expand Down
Binary file modified Docs/user manual.esp/ngn_graphics.h.pdf
Binary file not shown.
8 changes: 4 additions & 4 deletions Examples/camera/camera.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Option compiler="gcc" />
<Build>
<Target title="WIN - Debug">
<Option output="./camera" prefix_auto="1" extension_auto="1" />
<Option output="./_camera" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_debug/" />
<Option type="1" />
<Option compiler="gcc" />
Expand All @@ -31,7 +31,7 @@
</Linker>
</Target>
<Target title="WIN - Release">
<Option output="./camera" prefix_auto="1" extension_auto="1" />
<Option output="./_camera" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_release/" />
<Option type="0" />
<Option compiler="gcc" />
Expand All @@ -56,7 +56,7 @@
</Linker>
</Target>
<Target title="LINUX - Debug">
<Option output="./camera" prefix_auto="1" extension_auto="1" />
<Option output="./_camera" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_debug/" />
<Option type="1" />
<Option compiler="gcc" />
Expand All @@ -78,7 +78,7 @@
</Linker>
</Target>
<Target title="LINUX - Release">
<Option output="./camera" prefix_auto="1" extension_auto="1" />
<Option output="./_camera" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_release/" />
<Option type="1" />
<Option compiler="gcc" />
Expand Down
16 changes: 6 additions & 10 deletions Examples/camera/source/demo/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Camara virtual 2D
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down Expand Up @@ -129,14 +129,10 @@ bool Demo::Awake() {
// Selecciona el modo grafico
if (!ngn->graphics->Init(WINDOW_TITLE, SCR_WIDTH, SCR_HEIGHT)) return false;

// Pantalla completa?
ngn->graphics->full_screen = false;

// Vsync
ngn->graphics->vsync = true;
// Esconde el cursor del raton
ngn->graphics->ShowMouse(false);

// Debug?
SDL_ShowCursor(SDL_DISABLE);
ngn->system->fps_counter = false;

// Fuerza la actualizacion de la pantalla
Expand Down Expand Up @@ -241,14 +237,14 @@ void Demo::CreateStage() {
ngn->camera->PushBackground(1, bg1);
ngn->camera->PushBackground(2, bg2);

// Añade el sprite de la mirilla a la camara para su gestion
ngn->camera->PushSprite(2, aim);

// Genera los pajaros de la capa 0 y registralos en la camara(fondo)
CreateBirds(0, 20, 0.33);
CreateBirds(1, 15, 0.66f);
CreateBirds(2, 10, 1.0f);

// Añade el sprite de la mirilla a la camara para su gestion
ngn->camera->PushSprite(2, aim);

}


Expand Down
2 changes: 1 addition & 1 deletion Examples/camera/source/demo/demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Camara virtual 2D
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion Examples/camera/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Camara virtual 2D
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down
8 changes: 4 additions & 4 deletions Examples/canvas_effects/canvas_effects.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Option compiler="gcc" />
<Build>
<Target title="WIN - Debug">
<Option output="./canvas_effects" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_effects" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_debug/" />
<Option type="1" />
<Option compiler="gcc" />
Expand All @@ -31,7 +31,7 @@
</Linker>
</Target>
<Target title="WIN - Release">
<Option output="./canvas_effects" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_effects" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_release/" />
<Option type="0" />
<Option compiler="gcc" />
Expand All @@ -56,7 +56,7 @@
</Linker>
</Target>
<Target title="LINUX - Debug">
<Option output="./canvas_effects" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_effects" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_debug/" />
<Option type="1" />
<Option compiler="gcc" />
Expand All @@ -78,7 +78,7 @@
</Linker>
</Target>
<Target title="LINUX - Release">
<Option output="./canvas_effects" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_effects" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_release/" />
<Option type="1" />
<Option compiler="gcc" />
Expand Down
10 changes: 3 additions & 7 deletions Examples/canvas_effects/source/demo/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Canvas - Efectos graficos
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down Expand Up @@ -108,14 +108,10 @@ bool Demo::Awake() {
// Selecciona el modo grafico
if (!ngn->graphics->Init(WINDOW_TITLE, SCR_WIDTH, SCR_HEIGHT)) return false;

// Pantalla completa?
ngn->graphics->full_screen = false;

// Vsync
ngn->graphics->vsync = true;
// Esconde el cursor del raton
ngn->graphics->ShowMouse(false);

// Debug?
SDL_ShowCursor(SDL_DISABLE);
ngn->system->fps_counter = false;

// Fuerza la actualizacion de la pantalla
Expand Down
2 changes: 1 addition & 1 deletion Examples/canvas_effects/source/demo/demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Canvas - Efectos graficos
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion Examples/canvas_effects/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Canvas - Efectos graficos
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down
8 changes: 4 additions & 4 deletions Examples/canvas_forms/canvas_forms.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Option compiler="gcc" />
<Build>
<Target title="WIN - Debug">
<Option output="./canvas_forms" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_forms" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_debug/" />
<Option type="1" />
<Option compiler="gcc" />
Expand All @@ -31,7 +31,7 @@
</Linker>
</Target>
<Target title="WIN - Release">
<Option output="./canvas_forms" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_forms" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_release/" />
<Option type="0" />
<Option compiler="gcc" />
Expand All @@ -56,7 +56,7 @@
</Linker>
</Target>
<Target title="LINUX - Debug">
<Option output="./canvas_forms" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_forms" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_debug/" />
<Option type="1" />
<Option compiler="gcc" />
Expand All @@ -78,7 +78,7 @@
</Linker>
</Target>
<Target title="LINUX - Release">
<Option output="./canvas_forms" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_forms" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_release/" />
<Option type="1" />
<Option compiler="gcc" />
Expand Down
10 changes: 3 additions & 7 deletions Examples/canvas_forms/source/demo/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Canvas - Dibujo de formas
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down Expand Up @@ -114,14 +114,10 @@ bool Demo::Awake() {
// Selecciona el modo grafico
if (!ngn->graphics->Init(WINDOW_TITLE, SCR_WIDTH, SCR_HEIGHT)) return false;

// Pantalla completa?
ngn->graphics->full_screen = false;

// Vsync
ngn->graphics->vsync = true;
// Esconde el cursor del raton
ngn->graphics->ShowMouse(false);

// Debug?
SDL_ShowCursor(SDL_DISABLE);
ngn->system->fps_counter = false;

// Fuerza la actualizacion de la pantalla
Expand Down
6 changes: 3 additions & 3 deletions Examples/canvas_forms/source/demo/demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Canvas - Dibujo de formas
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down Expand Up @@ -64,8 +64,8 @@
#include <ngn.h>

/*** Defines ***/
#define VERTEX 8
#define SNAP 8
#define VERTEX 6
#define SNAP 16



Expand Down
2 changes: 1 addition & 1 deletion Examples/canvas_forms/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Canvas - Dibujo de formas
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down
8 changes: 4 additions & 4 deletions Examples/canvas_paint/canvas_paint.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Option compiler="gcc" />
<Build>
<Target title="WIN - Debug">
<Option output="./canvas_paint" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_paint" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_debug/" />
<Option type="1" />
<Option compiler="gcc" />
Expand All @@ -31,7 +31,7 @@
</Linker>
</Target>
<Target title="WIN - Release">
<Option output="./canvas_paint" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_paint" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_release/" />
<Option type="0" />
<Option compiler="gcc" />
Expand All @@ -56,7 +56,7 @@
</Linker>
</Target>
<Target title="LINUX - Debug">
<Option output="./canvas_paint" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_paint" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_debug/" />
<Option type="1" />
<Option compiler="gcc" />
Expand All @@ -78,7 +78,7 @@
</Linker>
</Target>
<Target title="LINUX - Release">
<Option output="./canvas_paint" prefix_auto="1" extension_auto="1" />
<Option output="./_canvas_paint" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_release/" />
<Option type="1" />
<Option compiler="gcc" />
Expand Down
10 changes: 3 additions & 7 deletions Examples/canvas_paint/source/demo/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Uso del canvas (pintura)
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down Expand Up @@ -128,14 +128,10 @@ bool Demo::Awake() {
// Selecciona el modo grafico
if (!ngn->graphics->Init(WINDOW_TITLE, SCR_WIDTH, SCR_HEIGHT)) return false;

// Pantalla completa?
ngn->graphics->full_screen = false;

// Vsync
ngn->graphics->vsync = true;
// Esconde el cursor del raton
ngn->graphics->ShowMouse(false);

// Debug?
SDL_ShowCursor(SDL_DISABLE);
ngn->system->fps_counter = false;

// Fuerza la actualizacion de la pantalla
Expand Down
2 changes: 1 addition & 1 deletion Examples/canvas_paint/source/demo/demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Uso del canvas (pintura)
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion Examples/canvas_paint/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Ejemplo: Uso del canvas (pintura)
Proyecto iniciado el 1 de Febrero del 2016
(cc) 2016 - 2017 by Cesar Rincon "NightFox"
(cc) 2016 - 2018 by Cesar Rincon "NightFox"
http://www.nightfoxandco.com
[email protected]
Expand Down
Loading

0 comments on commit 6f8f262

Please sign in to comment.