Guest User

Untitled

a guest
Jun 22nd, 2015
227
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void draw_scene(video::IVideoDriver* driver, scene::ISceneManager* smgr,
  2. Camera& camera, Client& client, LocalPlayer* player, Hud& hud,
  3. Mapper& mapper, gui::IGUIEnvironment* guienv,
  4. std::vector<aabb3f> hilightboxes, const v2u32& screensize,
  5. video::SColor skycolor, bool show_hud, bool show_minimap)
  6. {
  7. TimeTaker timer("smgr");
  8.  
  9. bool draw_wield_tool = (show_hud &&
  10. (player->hud_flags & HUD_FLAG_WIELDITEM_VISIBLE) &&
  11. camera.getCameraMode() < CAMERA_MODE_THIRD );
  12.  
  13. bool draw_crosshair = ((player->hud_flags & HUD_FLAG_CROSSHAIR_VISIBLE) &&
  14. (camera.getCameraMode() != CAMERA_MODE_THIRD_FRONT));
  15.  
  16.  
  17. smgr->drawAll();
  18.  
  19. draw_plain(camera, show_hud, hud, hilightboxes, driver,
  20. draw_wield_tool, client, guienv);
  21.  
  22. /*
  23. Post effects
  24. */
  25. {
  26. client.getEnv().getClientMap().renderPostFx(camera.getCameraMode());
  27. }
  28.  
  29. //TODO how to make those 3d too
  30. if (show_hud)
  31. {
  32. if (draw_crosshair)
  33. hud.drawCrosshair();
  34. hud.drawHotbar(client.getPlayerItem());
  35. hud.drawLuaElements(camera.getOffset());
  36. if (show_minimap)
  37. mapper.drawMinimap();
  38. }
  39.  
  40. guienv->drawAll();
  41.  
  42. timer.stop(true);
  43. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×