Posted By

ghiboz on 07/19/11


Tagged

OGRE Gorilla


Versions (?)

3d Text


 / Published in: C++
 

  1. Gorilla::ScreenRenderable* screen = mSilverback->createScreenRenderable(Ogre::Vector2(0.01,0.01), "dejavu");
  2. m3DLayer = screen->createLayer(0);
  3. m3DLayer->createMarkupText(24, 0, 0, "This is some text on a quad in the 3D world. Wooooo!");
  4. Gorilla::Rectangle* rect = m3DLayer->createRectangle(10, 10, 100, 100);
  5. rect->background_image("coco");
  6.  
  7. mNode = mSceneMgr->getRootSceneNode()->createChildSceneNode(Ogre::Vector3(0,1.5,0));
  8. mNode->attachObject(screen);

Report this snippet  

You need to login to post a comment.