From c37e24c8c958fb31a298e5fd4a0c4edd33001751 Mon Sep 17 00:00:00 2001 From: hybrid Date: Mon, 1 Oct 2007 08:59:15 +0000 Subject: [PATCH] Fixed logo position and image extension recognition. Added supported formats to window text. git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@1015 dfc29bdd-3216-0410-991c-e03cc46cb475 --- examples/09.Meshviewer/main.cpp | 9 ++++++--- media/config.xml | 10 +++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/examples/09.Meshviewer/main.cpp b/examples/09.Meshviewer/main.cpp index ec67711a..93c7d19b 100644 --- a/examples/09.Meshviewer/main.cpp +++ b/examples/09.Meshviewer/main.cpp @@ -76,10 +76,13 @@ void loadModel(const c8* fn) // if a texture is loaded apply it to the current model.. if ( extension == ".jpg" || - extension == ".png" || - extension == ".tga" || extension == ".pcx" || + extension == ".png" || + extension == ".ppm" || + extension == ".pgm" || + extension == ".pbm" || extension == ".psd" || + extension == ".tga" || extension == ".bmp" ) { @@ -664,7 +667,7 @@ int main() // load the irrlicht engine logo IGUIImage *img = env->addImage(driver->getTexture("irrlichtlogo2.png"), - core::position2d(10, driver->getScreenSize().Height - 64)); + core::position2d(10, driver->getScreenSize().Height - 128)); // lock the logo's edges to the bottom left corner of the screen img->setAlignment(EGUIA_UPPERLEFT, EGUIA_UPPERLEFT, EGUIA_LOWERRIGHT, EGUIA_LOWERRIGHT); diff --git a/media/config.xml b/media/config.xml index bbdabcad..89ac724f 100644 --- a/media/config.xml +++ b/media/config.xml @@ -1,14 +1,16 @@ - + Welcome to the Mesh Viewer of the "Irrlicht Engine"!. This program is able to load and display all 3D geometry and models the Irrlicht Engine can. Controls: Left mouse to rotate, right mouse to move, both buttons to zoom. Escape to Stop FPS Camera Supported formats are: +- Irrlicht scene and mesh formats (.irr, .irrmesh, .xml) - 3D Studio (.3ds) -- COLLADA (.dae, .xml) +- Blitz3D (.b3d) +- COLLADA 1.2/1.3 (.dae, .xml) - Cartography shop 4 (.csm) - DirectX (.x) - DeleD (.dmf) @@ -16,10 +18,12 @@ Supported formats are: - Milkshape (.ms3d) - My3D (.my3D) - OCT (.oct) +- Ogre3d (.mesh) - Pulsar LMTools (.lmts) - Quake 3 levels (.bsp) - Quake 2 models (.md2) +- Stereolithography format (.stl) Please note that this program is also a demo of the user interface capabilities of the engine, so for example the combo box in the toolbar has no function. - \ No newline at end of file +