Commit 9f810245 authored by hybrid's avatar hybrid

Test was using wrong size of screen

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4300 dfc29bdd-3216-0410-991c-e03cc46cb475
parent af7b86ea
tests/media/Direct3D 9.0-ucpsphere.png

9.56 KB | W: | H:

tests/media/Direct3D 9.0-ucpsphere.png

1.97 KB | W: | H:

tests/media/Direct3D 9.0-ucpsphere.png
tests/media/Direct3D 9.0-ucpsphere.png
tests/media/Direct3D 9.0-ucpsphere.png
tests/media/Direct3D 9.0-ucpsphere.png
  • 2-up
  • Swipe
  • Onion skin
tests/media/OpenGL-ucpsphere.png

11.2 KB | W: | H:

tests/media/OpenGL-ucpsphere.png

2.34 KB | W: | H:

tests/media/OpenGL-ucpsphere.png
tests/media/OpenGL-ucpsphere.png
tests/media/OpenGL-ucpsphere.png
tests/media/OpenGL-ucpsphere.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -4,7 +4,7 @@ using namespace irr; ...@@ -4,7 +4,7 @@ using namespace irr;
static bool withSphere(video::E_DRIVER_TYPE type) static bool withSphere(video::E_DRIVER_TYPE type)
{ {
IrrlichtDevice* device = createDevice(type, core::dimension2d<u32>(640, 480)); IrrlichtDevice* device = createDevice(type, core::dimension2d<u32>(160, 120));
if (device == 0) if (device == 0)
return true; return true;
...@@ -20,13 +20,12 @@ static bool withSphere(video::E_DRIVER_TYPE type) ...@@ -20,13 +20,12 @@ static bool withSphere(video::E_DRIVER_TYPE type)
{ {
sphere->setPosition(core::vector3df(0,10,0)); sphere->setPosition(core::vector3df(0,10,0));
sphere->setMaterialFlag(video::EMF_BACK_FACE_CULLING, false); sphere->setMaterialFlag(video::EMF_BACK_FACE_CULLING, false);
// sphere->setMaterialFlag(video::EMF_WIREFRAME, true);
} }
sphere = smgr->addMeshSceneNode(smgr->addHillPlaneMesh("mesh", core::dimension2df(10,10), core::dimension2du(10,10))); sphere = smgr->addMeshSceneNode(smgr->addHillPlaneMesh("mesh", core::dimension2df(10,10), core::dimension2du(10,10)));
sphere->setPosition(core::vector3df(0,10,0)); sphere->setPosition(core::vector3df(0,10,0));
smgr->addCameraSceneNode(0, core::vector3df(-25,30,25), core::vector3df()); smgr->addCameraSceneNode(0, core::vector3df(-25,30,20), core::vector3df());
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix); driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
driver->setMaterial(video::IdentityMaterial); driver->setMaterial(video::IdentityMaterial);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment