Skip to content

Commit

Permalink
v1.14.0-stable
Browse files Browse the repository at this point in the history
detectadas de las librerias SDL2, SDL_ttf, SFML y LodePNG.
- Actualizada la versión de SFML a la versión 3.0.0.
- Corregido un bug en el método de renderizado de sprites, el cual causava que en plataformas ARM de 32bits los sprites con su centro en coordenadas negativas no se renderizaban como es debido.
- Añadido soporte para usar N'gine en Raspberry PI OS (Rapbian). Se han actualizado todos los templates, herramientas y ejemplos para su uso en esta plataforma.
- Incluidos dos scripts de instalación de las librerías necesarias para Linux Mint y Raspberry OS. Atención! El uso de estos scripts instalara en el sistema las librerías usadas para compilar y usar esta versión de N'gine y sus proyectos, sobrescribiendo las versiones que se encuentren instaladas en el sistema.
  • Loading branch information
knightfox75 committed Apr 29, 2023
1 parent 9b8537c commit 86052cb
Show file tree
Hide file tree
Showing 512 changed files with 9,958 additions and 2,015 deletions.
20 changes: 20 additions & 0 deletions Docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@
N'gine Changelog
--------------------------------------------------------------------------------


2023-04-29 Ver.1.14.0-stable
--------------------------------------------------------------------------------
- Actualizado el m�todo GetVersion() de la clase NGN_System, el cual ahora
devuelve adem�s de la versi�n actual de N'gine, las versiones detectadas
de las librerias SDL2, SDL_ttf, SFML y LodePNG.
- Actualizada la versi�n de SFML a la versi�n 3.0.0.
- Corregido un bug en el m�todo de renderizado de sprites, el cual causava
que en plataformas ARM de 32bits los sprites con su centro en coordenadas
negativas no se renderizaban como es debido.
- A�adido soporte para usar N'gine en Raspberry PI OS (Rapbian). Se han
actualizado todos los templates, herramientas y ejemplos para su uso en esta
plataforma.
- Incluidos dos scripts de instalaci�n de las librer�as necesarias para Linux
Mint y Raspberry OS. Atenci�n! El uso de estos scripts instalara en el
sistema las librer�as usadas para compilar y usar esta versi�n de N'gine
y sus proyectos, sobrescribiendo las versiones que se encuentren instaladas
en el sistema.


2023-04-03 Ver.1.13.0-stable
--------------------------------------------------------------------------------
- Actualizado el template de proyectos avanzados.
Expand Down
37 changes: 0 additions & 37 deletions Examples/01_texture_loading/LICENSE.sfml.txt

This file was deleted.

83 changes: 74 additions & 9 deletions Examples/01_texture_loading/Texture_Loading.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Texture_Loading" />
<Option title="Texture Loading" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="WIN - Debug">
<Option platforms="Windows;" />
<Option output="./Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option output="./Demo_Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-m64" />
<Add option="-g" />
<Add option="-DOS_WINDOWS" />
<Add option="-DMODE_DEBUG" />
Expand All @@ -21,6 +22,7 @@
<Add directory="$(CODEBLOCKS)/Libs/sfml/include" />
</Compiler>
<Linker>
<Add option="-m64" />
<Add library="mingw32" />
<Add library="ngn_d" />
<Add library="SDL2main" />
Expand All @@ -35,12 +37,13 @@
</Target>
<Target title="WIN - Release">
<Option platforms="Windows;" />
<Option output="./Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option output="./Demo_Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/win_release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
<Add option="-m64" />
<Add option="-DOS_WINDOWS" />
<Add option="-DMODE_RELEASE" />
<Add directory="$(CODEBLOCKS)/Libs/ngn/include" />
Expand All @@ -49,6 +52,7 @@
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-m64" />
<Add library="mingw32" />
<Add library="ngn" />
<Add library="SDL2main" />
Expand All @@ -63,11 +67,12 @@
</Target>
<Target title="LINUX - Debug">
<Option platforms="Unix;" />
<Option output="./Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option output="./Demo_Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-m64" />
<Add option="-g" />
<Add option="-DOS_LINUX" />
<Add option="-DMODE_DEBUG" />
Expand All @@ -76,6 +81,9 @@
<Add directory="/usr/include" />
</Compiler>
<Linker>
<Add option="-m64" />
<Add option="-Wl,-rpath,libs/x86_64-linux-gnu/" />
<Add option="-Wl,--disable-new-dtags" />
<Add library="ngn_d" />
<Add library="SDL2" />
<Add library="SDL2_ttf" />
Expand All @@ -88,12 +96,13 @@
</Target>
<Target title="LINUX - Release">
<Option platforms="Unix;" />
<Option output="./Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option output="./Demo_Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/linux_release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
<Add option="-m64" />
<Add option="-DOS_LINUX" />
<Add option="-DMODE_RELEASE" />
<Add directory="/usr/include/NGN" />
Expand All @@ -102,6 +111,66 @@
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-m64" />
<Add option="-Wl,-rpath,libs/x86_64-linux-gnu/" />
<Add option="-Wl,--disable-new-dtags" />
<Add library="ngn" />
<Add library="SDL2" />
<Add library="SDL2_ttf" />
<Add library="sfml-audio" />
<Add library="sfml-system" />
<Add directory="/usr/lib/NGN" />
<Add directory="/usr/include/SDL2" />
<Add directory="/usr/include" />
</Linker>
</Target>
<Target title="RASPBIAN - Debug">
<Option platforms="Unix;" />
<Option output="./Demo_Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/raspbian_debug/" />
<Option type="5" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Og" />
<Add option="-g" />
<Add option="-DOS_LINUX" />
<Add option="-DMODE_DEBUG" />
<Add directory="/usr/include/NGN" />
<Add directory="/usr/include/SDL2" />
<Add directory="/usr/include" />
</Compiler>
<Linker>
<Add option="-Wl,-rpath,libs/arm-linux-gnueabihf/" />
<Add option="-Wl,--disable-new-dtags" />
<Add library="ngn_d" />
<Add library="SDL2" />
<Add library="SDL2_ttf" />
<Add library="sfml-audio" />
<Add library="sfml-system" />
<Add directory="/usr/lib/NGN" />
<Add directory="/usr/include/SDL2" />
<Add directory="/usr/include" />
</Linker>
</Target>
<Target title="RASPBIAN - Release">
<Option platforms="Unix;" />
<Option output="./Demo_Texture_Loading" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/raspbian_release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O3" />
<Add option="-DOS_LINUX" />
<Add option="-DMODE_RELEASE" />
<Add directory="/usr/include/NGN" />
<Add directory="/usr/include/SDL2" />
<Add directory="/usr/include" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-Wl,-rpath,libs/arm-linux-gnueabihf/" />
<Add option="-Wl,--disable-new-dtags" />
<Add library="ngn" />
<Add library="SDL2" />
<Add library="SDL2_ttf" />
Expand All @@ -116,11 +185,7 @@
<Compiler>
<Add option="-Wall" />
<Add option="-std=c++17" />
<Add option="-m64" />
</Compiler>
<Linker>
<Add option="-m64" />
</Linker>
<Unit filename="resource/resource.rc">
<Option compilerVar="WINDRES" />
</Unit>
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions Examples/01_texture_loading/licences/LICENSE.sfml.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright (C) 2007-2023 Laurent Gomila - [email protected]

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
12 changes: 9 additions & 3 deletions Examples/01_texture_loading/source/demo/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
https://nightfoxandco.com
[email protected]
Requiere N'gine 1.13.0-stable o superior
Requiere N'gine 1.14.0-stable o superior
(c) 2016 - 2023 by Cesar Rincon "NightFox"
https://nightfoxandco.com
Expand All @@ -21,7 +21,7 @@
Requiere SDL2_TTF (2.20.2) - 64-bits
http://www.libsdl.org/download-2.0.php
Requiere SFML (2.5.1) - 64-bits
Requiere SFML (3.0.0) - 64-bits
http://www.sfml-dev.org/
Requiere LodePNG (20220717)
Expand Down Expand Up @@ -95,9 +95,15 @@ bool Demo::Awake() {
#endif
ngn->graphics->Update();

// Usa el archivo empaquetado de datos si es la version release
#if defined (MODE_RELEASE)
if(!ngn->load->SetPackage("data.pkg", "0123456789ABCDEF")) return false;
#endif

// Muestra la version de la libreria en la consola
#if defined (MODE_DEBUG)
ngn->log->Message(ngn->system->GetVersion() + " started successfully!");
ngn->log->Message("Versions check:\n" + ngn->system->GetVersion());
ngn->log->Message("N'gine started successfully!");
#endif

// Inicializacion completada con exito
Expand Down
4 changes: 2 additions & 2 deletions Examples/01_texture_loading/source/demo/demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
https://nightfoxandco.com
[email protected]
Requiere N'gine 1.13.0-stable o superior
Requiere N'gine 1.14.0-stable o superior
(c) 2016 - 2023 by Cesar Rincon "NightFox"
https://nightfoxandco.com
Expand All @@ -21,7 +21,7 @@
Requiere SDL2_TTF (2.20.2) - 64-bits
http://www.libsdl.org/download-2.0.php
Requiere SFML (2.5.1) - 64-bits
Requiere SFML (3.0.0) - 64-bits
http://www.sfml-dev.org/
Requiere LodePNG (20220717)
Expand Down
4 changes: 2 additions & 2 deletions Examples/01_texture_loading/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
https://nightfoxandco.com
[email protected]
Requiere N'gine 1.13.0-stable o superior
Requiere N'gine 1.14.0-stable o superior
(c) 2016 - 2023 by Cesar Rincon "NightFox"
https://nightfoxandco.com
Expand All @@ -20,7 +20,7 @@
Requiere SDL2_TTF (2.20.2) - 64-bits
http://www.libsdl.org/download-2.0.php
Requiere SFML (2.5.1) - 64-bits
Requiere SFML (3.0.0) - 64-bits
http://www.sfml-dev.org/
Requiere LodePNG (20220717)
Expand Down
37 changes: 0 additions & 37 deletions Examples/02_move_textures/LICENSE.sfml.txt

This file was deleted.

Loading

0 comments on commit 86052cb

Please sign in to comment.