Browse Source

latest wiki
minor

dmuratshin 10 years ago
parent
commit
52a644275c
2 changed files with 4 additions and 14 deletions
  1. BIN
      doc/wiki.zip
  2. 4 14
      examples/HelloWorld/src/entry_point.cpp

BIN
doc/wiki.zip


+ 4 - 14
examples/HelloWorld/src/entry_point.cpp

@@ -9,11 +9,11 @@ You could start from example.cpp and example.h it has main functions being calle
 #include "DebugActor.h"
 
 #include "example.h"
-#include "STDMaterial.h"
+
 
 using namespace oxygine;
 
-//STDRenderer* renderer = 0;
+
 //called each frame
 int mainloop()
 {
@@ -25,15 +25,9 @@ int mainloop()
     if (core::beginRendering())
     {
         Color clearColor(32, 32, 32, 255);
-        Rect  viewport(Point(0, 0), core::getDisplaySize());
-
-        //initialize projection and view matrix
-        Matrix proj;
-        Matrix::orthoLH(proj, (float)viewport.getWidth(), (float)viewport.getHeight(), 0, 1);
-        Matrix view = makeViewMatrix(viewport.getWidth(), viewport.getHeight());
-
+        Rect viewport(Point(0, 0), core::getDisplaySize());
         //render all actors. Actor::render would be called also for all children
-        getStage()->render(&clearColor, viewport, view, proj);
+        getStage()->render(clearColor, viewport);
 
         core::swapDisplayBuffers();
     }
@@ -66,13 +60,9 @@ void run()
     example_preinit();
     core::init(&desc);
 
-    //renderer = new STDRenderer;
-    //STDMaterial::instance = new STDMaterial(renderer);
-    //Material::defaultMaterial = STDMaterial::instance;
 
     //create Stage. Stage is a root node
     Stage::instance = new Stage(true);
-    Stage::instance->_material = STDMaterial::instance;
     Point size = core::getDisplaySize();
     getStage()->setSize(size);