diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 7636bf1..085a54e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -15,24 +15,12 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -45,33 +33,33 @@
-
-
+
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
@@ -80,8 +68,8 @@
-
-
+
+
@@ -97,14 +85,32 @@
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -112,18 +118,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -133,9 +129,6 @@
- GLSL
- WGL_CONTEXT_MA
- glui
Cannot create
glXCreate
glXCreateContex
@@ -163,6 +156,9 @@
new wp::image
new wp::object
mater
+ do_decompres
+ nier_
+ IShaderConstantSetCallBack
@@ -172,7 +168,6 @@
@@ -261,7 +257,35 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -333,53 +357,55 @@
+
+
-
+
-
+
-
-
-
+
+
+
-
+
+
-
-
+
+
-
@@ -411,26 +437,17 @@
309
+
+ file://$PROJECT_DIR$/wallpaperengine/fs/fileResolver.cpp
+ 90
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -449,7 +466,6 @@
-
@@ -457,61 +473,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
@@ -519,7 +489,6 @@
-
@@ -527,7 +496,6 @@
-
@@ -535,7 +503,6 @@
-
@@ -543,17 +510,6 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -561,7 +517,6 @@
-
@@ -569,9 +524,6 @@
-
-
-
@@ -579,9 +531,6 @@
-
-
-
@@ -589,49 +538,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -639,7 +554,6 @@
-
@@ -647,7 +561,6 @@
-
@@ -655,51 +568,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
@@ -707,9 +584,6 @@
-
-
-
@@ -717,33 +591,14 @@
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
@@ -751,7 +606,6 @@
-
@@ -759,6 +613,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -771,10 +691,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -787,62 +723,29 @@
-
+
-
-
+
+
+
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58913aa..73ed07f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,6 @@ find_package(Irrlicht REQUIRED)
include_directories(${X11_INCLUDE_DIR} ${IRRLICHT_INCLUDE_DIR} .)
-add_executable(wallengine main.cpp common.h nier_test.cpp wallpaperengine/shaders/compiler.h wallpaperengine/shaders/compiler.cpp nier_test.h wallpaperengine/project.cpp wallpaperengine/project.h wallpaperengine/scene.cpp wallpaperengine/scene.h wallpaperengine/object.cpp wallpaperengine/object.h wallpaperengine/camera.cpp wallpaperengine/camera.h wallpaperengine/core.cpp wallpaperengine/core.h wallpaperengine/image.cpp wallpaperengine/image.h wallpaperengine/object3d.cpp wallpaperengine/object3d.h wallpaperengine/effect.cpp wallpaperengine/effect.h wallpaperengine/fs/fileResolver.cpp wallpaperengine/fs/fileResolver.h wallpaperengine/irrlicht.cpp wallpaperengine/irrlicht.h wallpaperengine/config.cpp wallpaperengine/config.h wallpaperengine/video/renderer.cpp wallpaperengine/video/renderer.h wallpaperengine/video/node.cpp wallpaperengine/video/node.h wallpaperengine/video/material.cpp wallpaperengine/video/material.h wallpaperengine/texture.cpp wallpaperengine/texture.h)
+add_executable(wallengine main.cpp common.h wallpaperengine/shaders/compiler.h wallpaperengine/shaders/compiler.cpp wallpaperengine/project.cpp wallpaperengine/project.h wallpaperengine/scene.cpp wallpaperengine/scene.h wallpaperengine/object.cpp wallpaperengine/object.h wallpaperengine/camera.cpp wallpaperengine/camera.h wallpaperengine/core.cpp wallpaperengine/core.h wallpaperengine/image.cpp wallpaperengine/image.h wallpaperengine/object3d.cpp wallpaperengine/object3d.h wallpaperengine/effect.cpp wallpaperengine/effect.h wallpaperengine/fs/fileResolver.cpp wallpaperengine/fs/fileResolver.h wallpaperengine/irrlicht.cpp wallpaperengine/irrlicht.h wallpaperengine/config.cpp wallpaperengine/config.h wallpaperengine/video/renderer.cpp wallpaperengine/video/renderer.h wallpaperengine/video/node.cpp wallpaperengine/video/node.h wallpaperengine/video/material.cpp wallpaperengine/video/material.h wallpaperengine/texture.cpp wallpaperengine/texture.h)
target_link_libraries(wallengine ${X11_LIBRARIES} ${X11_Xxf86vm_LIB} ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES} ${ZLIB_LIBRARIES} ${IRRLICHT_LIBRARY})
\ No newline at end of file
diff --git a/common.h b/common.h
deleted file mode 100644
index d94ca4f..0000000
--- a/common.h
+++ /dev/null
@@ -1,12 +0,0 @@
-//
-// Created by almamu on 27/06/18.
-//
-
-#ifndef TEMP_COMMON_H
-#define TEMP_COMMON_H
-
-extern int WinID;
-extern irr::video::IVideoDriver* driver;
-extern irr::IrrlichtDevice* device;
-
-#endif //TEMP_COMMON_H
diff --git a/main.cpp b/main.cpp
index 9d817c6..5e57ff9 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2,31 +2,62 @@
#include
#include
#include
-#include
-#include "nier_test.h"
+#include
+#include
+
+#include "wallpaperengine/shaders/compiler.h"
+#include "wallpaperengine/project.h"
#include "wallpaperengine/irrlicht.h"
int WinID = 0;
-
-int game_test_main();
-
-int main(int argc, char* argv[])
-{
- // parse the integer if it exists
- if (argc >= 1)
- {
- std::stringstream ss;
- ss << std::hex << argv[1];
- ss >> WinID;
- }
-
- printf("Initializing X11 to %d\n", WinID);
-
- return game_test_main ();
-}
-
irr::SIrrlichtCreationParameters _irr_params;
+irr::f32 g_AnimationSpeed = 0.1f;
+irr::f32 g_Scale = 2.5f;
+irr::f32 g_ScrollSpeed = 0.0f;
+irr::f32 g_Direction = 0.0f;
+irr::f32 g_Strength = 0.07f;
+irr::f32 g_SpecularPower = 1.0f;
+irr::f32 g_SpecularStrength = 1.0f;
+irr::f32 g_SpecularColor [3] = {1.0f, 1.0f, 1.0f};
+irr::f32 g_Texture1Resolution [4] = {1.0f, 1.0f, 1.0f, 1.0f};
+irr::f32 g_Texture0 = 0;
+irr::f32 g_Texture1 = 1;
+irr::f32 g_Texture2 = 2;
+irr::f32 g_Time = 0;
+
+class MyShaderCallback : public irr::video::IShaderConstantSetCallBack
+{
+ virtual void OnSetConstants (irr::video::IMaterialRendererServices* services, int32_t userData)
+ {
+ irr::video::IVideoDriver* driver = services->getVideoDriver ();
+
+ irr::core::matrix4 worldViewProj;
+ worldViewProj = driver->getTransform(irr::video::ETS_PROJECTION);
+ worldViewProj *= driver->getTransform(irr::video::ETS_VIEW);
+ worldViewProj *= driver->getTransform(irr::video::ETS_WORLD);
+
+ services->setVertexShaderConstant ("g_AnimationSpeed", &g_AnimationSpeed, 1);
+ services->setVertexShaderConstant ("g_Scale", &g_Scale, 1);
+ services->setVertexShaderConstant ("g_ScrollSpeed", &g_ScrollSpeed, 1);
+ services->setVertexShaderConstant ("g_Direction", &g_Direction, 1);
+ services->setVertexShaderConstant ("g_Time", &g_Time, 1);
+ services->setVertexShaderConstant ("g_ModelViewProjectionMatrix", worldViewProj.pointer(), 16);
+ services->setVertexShaderConstant ("g_Texture0Resolution", g_Texture1Resolution, 4);
+ services->setVertexShaderConstant ("g_Texture1Resolution", g_Texture1Resolution, 4);
+ services->setVertexShaderConstant ("g_Texture2Resolution", g_Texture1Resolution, 4);
+
+ // TODO: Support up to 7 materials (as wallpaper engine)
+ services->setPixelShaderConstant ("g_Strength", &g_Strength, 1);
+ services->setPixelShaderConstant ("g_SpecularPower", &g_SpecularPower, 1);
+ services->setPixelShaderConstant ("g_SpecularStrength", &g_SpecularStrength, 1);
+ services->setPixelShaderConstant ("g_SpecularColor", g_SpecularColor, 3);
+ services->setPixelShaderConstant ("g_Texture0", &g_Texture0, 1);
+ services->setPixelShaderConstant ("g_Texture1", &g_Texture1, 1);
+ services->setPixelShaderConstant ("g_Texture2", &g_Texture2, 1);
+ }
+};
+
int init_irrlicht()
{
// prepare basic configuration for irrlicht
@@ -69,15 +100,68 @@ void preconfigure_wallpaper_engine ()
wp::fs::resolver.changeWorkingDirectory(wp::config::path::base);
}
-int game_test_main ()
+int main(int argc, char* argv[])
{
+ // parse the integer if it exists
+ if (argc >= 1)
+ {
+ std::stringstream ss;
+ ss << std::hex << argv[1];
+ ss >> WinID;
+ }
+
+ printf("Initializing X11 to %d\n", WinID);
+
+
if (init_irrlicht())
{
return 1;
}
preconfigure_wallpaper_engine ();
- nier_test ();
+
+ // do_decompress ();
+ irr::io::path _wp_engine_folder = "/home/almamu/Development/tmp/nier__automata_-_become_as_gods_edition/";
+
+ // set our working directory
+ wp::fs::resolver.changeWorkingDirectory (_wp_engine_folder);
+ wp::project* wp_project = new wp::project ();
+
+ if (wp_project->getScene ()->isOrthogonal() == true)
+ {
+ wp::video::renderer::setupOrthographicCamera (wp_project->getScene ());
+ }
+ else
+ {
+ wp::irrlicht::device->getLogger ()->log ("Non-orthogonal cameras not supported yet!!");
+ return 0;
+ }
+
+ // register nodes
+ wp::video::renderer::queueNode (wp_project->getScene ());
+
+ int32_t lastTime = 0;
+ int32_t minimumTime = 1000 / 90;
+ int32_t currentTime = 0;
+
+ while (wp::irrlicht::device->run () && wp::irrlicht::driver)
+ {
+ // if (device->isWindowActive ())
+ {
+ currentTime = wp::irrlicht::device->getTimer ()->getTime ();
+ g_Time = currentTime / 1000.0f;
+
+ if (currentTime - lastTime > minimumTime)
+ {
+ wp::video::renderer::render ();
+ lastTime = currentTime;
+ }
+ else
+ {
+ wp::irrlicht::device->sleep (1, false);
+ }
+ }
+ }
return 0;
}
\ No newline at end of file
diff --git a/nier_test.cpp b/nier_test.cpp
deleted file mode 100644
index 6259d31..0000000
--- a/nier_test.cpp
+++ /dev/null
@@ -1,186 +0,0 @@
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include "common.h"
-#include "wallpaperengine/shaders/compiler.h"
-#include "wallpaperengine/project.h"
-#include "wallpaperengine/irrlicht.h"
-#include "nier_test.h"
-
-irr::f32 g_AnimationSpeed = 0.1f;
-irr::f32 g_Scale = 2.5f;
-irr::f32 g_ScrollSpeed = 0.0f;
-irr::f32 g_Direction = 0.0f;
-irr::f32 g_Strength = 0.07f;
-irr::f32 g_SpecularPower = 1.0f;
-irr::f32 g_SpecularStrength = 1.0f;
-irr::f32 g_SpecularColor [3] = {1.0f, 1.0f, 1.0f};
-irr::f32 g_Texture1Resolution [4] = {1.0f, 1.0f, 1.0f, 1.0f};
-irr::f32 g_Texture0 = 0;
-irr::f32 g_Texture1 = 1;
-irr::f32 g_Texture2 = 2;
-irr::f32 g_Time = 0;
-
-class MyShaderCallback : public irr::video::IShaderConstantSetCallBack
-{
- virtual void OnSetConstants (irr::video::IMaterialRendererServices* services, int32_t userData)
- {
- irr::video::IVideoDriver* driver = services->getVideoDriver ();
-
- irr::core::matrix4 worldViewProj;
- worldViewProj = driver->getTransform(irr::video::ETS_PROJECTION);
- worldViewProj *= driver->getTransform(irr::video::ETS_VIEW);
- worldViewProj *= driver->getTransform(irr::video::ETS_WORLD);
-
- services->setVertexShaderConstant ("g_AnimationSpeed", &g_AnimationSpeed, 1);
- services->setVertexShaderConstant ("g_Scale", &g_Scale, 1);
- services->setVertexShaderConstant ("g_ScrollSpeed", &g_ScrollSpeed, 1);
- services->setVertexShaderConstant ("g_Direction", &g_Direction, 1);
- services->setVertexShaderConstant ("g_Time", &g_Time, 1);
- services->setVertexShaderConstant ("g_ModelViewProjectionMatrix", worldViewProj.pointer(), 16);
- services->setVertexShaderConstant ("g_Texture0Resolution", g_Texture1Resolution, 4);
- services->setVertexShaderConstant ("g_Texture1Resolution", g_Texture1Resolution, 4);
- services->setVertexShaderConstant ("g_Texture2Resolution", g_Texture1Resolution, 4);
-
- // TODO: Support up to 7 materials (as wallpaper engine)
- services->setPixelShaderConstant ("g_Strength", &g_Strength, 1);
- services->setPixelShaderConstant ("g_SpecularPower", &g_SpecularPower, 1);
- services->setPixelShaderConstant ("g_SpecularStrength", &g_SpecularStrength, 1);
- services->setPixelShaderConstant ("g_SpecularColor", g_SpecularColor, 3);
- services->setPixelShaderConstant ("g_Texture0", &g_Texture0, 1);
- services->setPixelShaderConstant ("g_Texture1", &g_Texture1, 1);
- services->setPixelShaderConstant ("g_Texture2", &g_Texture2, 1);
- }
-};
-
-int nier_test ()
-{
- do_decompress ();
- irr::io::path _wp_engine_folder = "/home/almamu/Development/tmp/nier__automata_-_become_as_gods_edition/";
-
- // set our working directory
- wp::fs::resolver.changeWorkingDirectory (_wp_engine_folder);
- wp::project* wp_project = new wp::project ();
- /*wp::fs::resolver.changeWorkingDirectory (wp::config::path::resources);
-
- irr::io::path _water_example = wp::fs::resolver.resolve ("materials/water-intact.png");
- irr::io::path _mud_example = wp::fs::resolver.resolve ("materials/plant-on-water.png");
- irr::io::path _background_example = wp::fs::resolver.resolve ("materials/top-part.png");
- irr::io::path _waterripple_normal = wp::fs::resolver.resolve ("materials/effects/waterripplenormal.png");
- irr::io::path _waterripple_frag_shader = wp::fs::resolver.resolve ("shaders/effects/waterripple_opengl.frag");
- irr::io::path _waterripple_vert_shader = wp::fs::resolver.resolve ("shaders/effects/waterripple_opengl.vert");
- irr::io::path _white = wp::fs::resolver.resolve ("materials/white.png");
-
- // check for ps and vs support
- if (wp::irrlicht::driver->queryFeature (irr::video::EVDF_PIXEL_SHADER_1_1) == false && wp::irrlicht::driver->queryFeature (irr::video::EVDF_ARB_FRAGMENT_PROGRAM_1) == false)
- {
- wp::irrlicht::device->getLogger ()->log ("WARNING: Pixel shaders disabled because of missing driver/hardware support");
- _waterripple_frag_shader = "";
- }
-
- if (wp::irrlicht::driver->queryFeature (irr::video::EVDF_VERTEX_SHADER_1_1) == false && wp::irrlicht::driver->queryFeature (irr::video::EVDF_ARB_VERTEX_PROGRAM_1) == false)
- {
- wp::irrlicht::device->getLogger ()->log ("WARNING: Vertex shaders disabled because of missing driver/hardware support");
- _waterripple_vert_shader = "";
- }
-
- irr::video::IGPUProgrammingServices* gpuProgrammingServices = wp::irrlicht::driver->getGPUProgrammingServices ();
-
- int32_t materialType1 = 0;
-
- if (gpuProgrammingServices)
- {
- MyShaderCallback* shader = new MyShaderCallback ();
-
- wp::shaders::compiler _vert(_waterripple_vert_shader, wp::shaders::compiler::Type::Type_Vertex);
- wp::shaders::compiler _frag(_waterripple_frag_shader, wp::shaders::compiler::Type::Type_Pixel);
-
- materialType1 = gpuProgrammingServices->addHighLevelShaderMaterial(
- _vert.precompile ().c_str (), "vertexMain", irr::video::EVST_VS_2_0,
- _frag.precompile ().c_str (), "pixelMain", irr::video::EPST_PS_2_0,
- shader, irr::video::EMT_TRANSPARENT_ALPHA_CHANNEL, 0, irr::video::EGSL_DEFAULT
- );
-
- shader->drop ();
- }
-
- // load some basic textures
- irr::video::ITexture* waterTexture = wp::irrlicht::driver->getTexture (_water_example.c_str ());
- irr::video::ITexture* mudTexture = wp::irrlicht::driver->getTexture (_mud_example.c_str ());
- irr::video::ITexture* backgroundExample = wp::irrlicht::driver->getTexture (_background_example.c_str ());
- irr::video::ITexture* waterRippleNormalTexture = wp::irrlicht::driver->getTexture (_waterripple_normal.c_str ());
- irr::video::ITexture* whiteTexture = wp::irrlicht::driver->getTexture (_white.c_str ());
-
- // get scene manager
- irr::scene::ISceneManager* sceneManager = wp::irrlicht::device->getSceneManager ();*/
-
- if (wp_project->getScene ()->isOrthogonal() == true)
- {
- wp::video::renderer::setupOrthographicCamera (
- wp_project->getScene ()->getProjectionWidth (),
- wp_project->getScene ()->getProjectionHeight (),
- wp_project->getScene ()->getCamera ()->getCenter (),
- wp_project->getScene ()->getCamera ()->getEye (),
- wp_project->getScene ()->getCamera ()->getUp ().X,
- wp_project->getScene ()->getCamera ()->getUp ().Y
- );
- }
- else
- {
- wp::irrlicht::device->getLogger ()->log ("Non-orthogonal cameras not supported yet!!");
- return 0;
- }
-
-/* wp::video::material* waterNode = new wp::video::material (irr::core::vector3df (960.0f, 540.0f, 0.0f), wp_project->getScene ());
- wp::video::material* backgroundNode = new wp::video::material (irr::core::vector3df (960.0f, 540.0f, 0.0f), wp_project->getScene ());
- wp::video::material* mudNode = new wp::video::material (irr::core::vector3df (960.0f, 540.0f, 0.0f), wp_project->getScene ());
-
- backgroundNode->getMaterial ().setTexture (0, backgroundExample);
- backgroundNode->setType (irr::video::EMT_TRANSPARENT_ALPHA_CHANNEL);
-
- mudNode->getMaterial ().setTexture (0, mudTexture);
- mudNode->setType (irr::video::EMT_TRANSPARENT_ALPHA_CHANNEL);
-
- waterNode->setFlag (irr::video::EMF_LIGHTING, false);
- waterNode->setFlag (irr::video::EMF_BLEND_OPERATION, true);
-
- waterNode->getMaterial ().setTexture (0, waterTexture);
- waterNode->getMaterial ().setTexture (1, waterRippleNormalTexture);
- waterNode->getMaterial ().setTexture (2, whiteTexture);
- waterNode->setType ( (irr::video::E_MATERIAL_TYPE) materialType1);*/
-
- // register nodes
- wp::video::renderer::queueNode (wp_project->getScene ());
- // wp::video::renderer::queueNode (backgroundNode);
- // wp::video::renderer::queueNode (mudNode);
- // wp::video::renderer::queueNode (waterNode);
-
- int32_t lastTime = 0;
- int32_t minimumTime = 1000 / 90;
- int32_t currentTime = 0;
-
- while (wp::irrlicht::device->run () && wp::irrlicht::driver)
- {
- // if (device->isWindowActive ())
- {
- currentTime = wp::irrlicht::device->getTimer ()->getTime ();
- g_Time = currentTime / 1000.0f;
-
- if (currentTime - lastTime > minimumTime)
- {
- wp::video::renderer::render ();
- lastTime = currentTime;
- }
- else
- {
- wp::irrlicht::device->sleep (1, false);
- }
- }
- }
-
- return 0;
-}
\ No newline at end of file
diff --git a/nier_test.h b/nier_test.h
deleted file mode 100644
index 69aa067..0000000
--- a/nier_test.h
+++ /dev/null
@@ -1,11 +0,0 @@
-//
-// Created by almamu on 4/07/18.
-//
-
-#ifndef WALLENGINE_NIER_TEST_H
-#define WALLENGINE_NIER_TEST_H
-
-void do_decompress ();
-int nier_test ();
-
-#endif //WALLENGINE_NIER_TEST_H
diff --git a/wallpaperengine/video/renderer.cpp b/wallpaperengine/video/renderer.cpp
index 51ba655..4dbbd9e 100644
--- a/wallpaperengine/video/renderer.cpp
+++ b/wallpaperengine/video/renderer.cpp
@@ -10,6 +10,18 @@ namespace wp
s_nodes.push_back (node);
}
+ void renderer::setupOrthographicCamera (wp::scene* scene)
+ {
+ setupOrthographicCamera (
+ scene->getProjectionWidth (),
+ scene->getProjectionHeight (),
+ scene->getCamera ()->getCenter (),
+ scene->getCamera ()->getEye (),
+ scene->getCamera ()->getUp ().X,
+ scene->getCamera ()->getUp ().Y
+ );
+ }
+
void renderer::setupOrthographicCamera (irr::f32 width, irr::f32 height, irr::core::vector3df position, irr::core::vector3df lookat, irr::f32 znear, irr::f32 zfar)
{
irr::core::matrix4 identity; identity.makeIdentity ();
diff --git a/wallpaperengine/video/renderer.h b/wallpaperengine/video/renderer.h
index 29fa737..08a1ff3 100644
--- a/wallpaperengine/video/renderer.h
+++ b/wallpaperengine/video/renderer.h
@@ -4,6 +4,7 @@
#include
#include
+#include
namespace wp
{
@@ -13,6 +14,7 @@ namespace wp
{
public:
static void queueNode (node* node);
+ static void setupOrthographicCamera (wp::scene* scene);
static void setupOrthographicCamera (irr::f32 width, irr::f32 height, irr::core::vector3df position, irr::core::vector3df lookat, irr::f32 znear, irr::f32 zfar);
static void render ();