Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Untitled
Tuesday, May 8th, 2012 at 12:30:37pm MDT 

  1. #include <irrlicht.h>
  2. using namespace irr;
  3. int main(void) {
  4.  
  5.     IrrlichtDevice *device = createDevice( // creation device
  6.         video::EDT_SOFTWARE,                      // l'API est OpenGL
  7.         core::dimension2d<u32>(800,600),   // taille de la fenetre 800x600
  8.         32, false, true, false, 0);
  9.  
  10.    video::IVideoDriver* driver =
  11.         device->getVideoDriver();                    // creation driver
  12.    scene::ISceneManager *sceneManager =
  13.         device->getSceneManager ();                  // creation scene manager
  14.  
  15.     sceneManager->addCameraSceneNode (0,             // ajout camera fixe
  16.         core::vector3df (0,0,0),
  17.         core::vector3df (5,0,0));
  18.  
  19.     while (device->run()) {                          // la boucle de rendu
  20.         driver->beginScene(                          // demarre le rendu
  21.             true,                                    // clear back-buffer
  22.             true,                                    // clear z-buffer
  23.             irr::video::SColor(255,255,255,255));    // fond blanc
  24.         sceneManager->drawAll ();                    // calcule le rendu
  25.         driver->endScene ();                         // affiche le rendu
  26.     }
  27.  
  28.     device->drop ();                                 // liberation de la memoire
  29.     return 0;
  30. }

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

fantasy-obligation