aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/extantz/crappisspuke.cpp
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-20 12:31:03 +1000
committerDavid Walter Seikel2013-01-20 12:31:03 +1000
commite70ef920d1f9d5b21c93e1ded5fb320174489458 (patch)
tree5654a836b14b25b8326724efd01815b673ddada4 /ClientHamr/extantz/crappisspuke.cpp
parentWhitespace clean up. (diff)
downloadSledjHamr-e70ef920d1f9d5b21c93e1ded5fb320174489458.zip
SledjHamr-e70ef920d1f9d5b21c93e1ded5fb320174489458.tar.gz
SledjHamr-e70ef920d1f9d5b21c93e1ded5fb320174489458.tar.bz2
SledjHamr-e70ef920d1f9d5b21c93e1ded5fb320174489458.tar.xz
Stabilise the GL image with respect to window resizes. Still needs some clean up.
Diffstat (limited to 'ClientHamr/extantz/crappisspuke.cpp')
-rw-r--r--ClientHamr/extantz/crappisspuke.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ClientHamr/extantz/crappisspuke.cpp b/ClientHamr/extantz/crappisspuke.cpp
index 47a6353..90cbbed 100644
--- a/ClientHamr/extantz/crappisspuke.cpp
+++ b/ClientHamr/extantz/crappisspuke.cpp
@@ -116,6 +116,11 @@ EAPI int startIrr(GLData *gld)
116 driver = device->getVideoDriver(); gld->driver = driver; 116 driver = device->getVideoDriver(); gld->driver = driver;
117 smgr = device->getSceneManager(); gld->smgr = smgr; 117 smgr = device->getSceneManager(); gld->smgr = smgr;
118 118
119 device->setResizable(true);
120 driver->OnResize(dimension2d<u32>(gld->sfc_w, gld->sfc_h));
121 // Just gives me a blank screen. grrrr
122// driver->setViewPort(rect<s32>(0, 0, gld->sfc_w, gld->sfc_h));
123
119 // set ambient light 124 // set ambient light
120 smgr->setAmbientLight (video::SColorf(0x00c0c0c0)); 125 smgr->setAmbientLight (video::SColorf(0x00c0c0c0));
121 126
@@ -202,6 +207,7 @@ EAPI void drawIrr_start(GLData *gld)
202 call everything is presented on the screen. 207 call everything is presented on the screen.
203 */ 208 */
204 driver->beginScene(true, true, SColor(255, 100, 101, 140), videoData, NULL); // This does the context change, then clearBuffers() 209 driver->beginScene(true, true, SColor(255, 100, 101, 140), videoData, NULL); // This does the context change, then clearBuffers()
210
205 smgr->drawAll(); 211 smgr->drawAll();
206 } 212 }
207} 213}