aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz/crappisspuke.cpp
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-03 23:40:48 +1000
committerDavid Walter Seikel2014-05-03 23:40:48 +1000
commit160c161b57595fdae637936c50a162d193f1a982 (patch)
tree4400c1a5e91e402e9af612fecec61aed152d2e30 /src/extantz/crappisspuke.cpp
parentWhite space clean ups from uncrustify. (diff)
downloadSledjHamr-160c161b57595fdae637936c50a162d193f1a982.zip
SledjHamr-160c161b57595fdae637936c50a162d193f1a982.tar.gz
SledjHamr-160c161b57595fdae637936c50a162d193f1a982.tar.bz2
SledjHamr-160c161b57595fdae637936c50a162d193f1a982.tar.xz
More shuffling of gld -> ourGlobals and related cleanups.
Diffstat (limited to 'src/extantz/crappisspuke.cpp')
-rw-r--r--src/extantz/crappisspuke.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/extantz/crappisspuke.cpp b/src/extantz/crappisspuke.cpp
index 04cebca..fca6f35 100644
--- a/src/extantz/crappisspuke.cpp
+++ b/src/extantz/crappisspuke.cpp
@@ -18,8 +18,9 @@ u32 then;
18extern "C" { 18extern "C" {
19#endif 19#endif
20 20
21EAPI int startIrr(GLData *gld) 21EAPI int startIrr(globals *ourGlobals)
22{ 22{
23 GLData *gld = &ourGlobals->gld;
23 SIrrlichtCreationParameters params; 24 SIrrlichtCreationParameters params;
24#if USE_IRR 25#if USE_IRR
25 IrrlichtDevice *device; 26 IrrlichtDevice *device;
@@ -92,7 +93,7 @@ etc. of course.
92*/ 93*/
93 94
94 95
95 sfc = ecore_evas_window_get(gld->ee); 96 sfc = ecore_evas_window_get(ourGlobals->ee);
96 // This is the way Raster wants me to do things, but these functions are not actually available. Pffft 97 // This is the way Raster wants me to do things, but these functions are not actually available. Pffft
97// ctx = gl->glGetCurrentContext(); 98// ctx = gl->glGetCurrentContext();
98// display = gl->glGetCurrentDisplay(); 99// display = gl->glGetCurrentDisplay();
@@ -229,8 +230,9 @@ etc. of course.
229 return 1; 230 return 1;
230} 231}
231 232
232EAPI void drawIrr_start(GLData *gld) 233EAPI void drawIrr_start(globals *ourGlobals)
233{ 234{
235 GLData *gld = &ourGlobals->gld;
234 if (gld->useIrr) 236 if (gld->useIrr)
235 { 237 {
236 IrrlichtDevice *device = gld->device; 238 IrrlichtDevice *device = gld->device;
@@ -267,16 +269,18 @@ EAPI void drawIrr_start(GLData *gld)
267 } 269 }
268} 270}
269 271
270EAPI void drawIrr_end(GLData *gld) 272EAPI void drawIrr_end(globals *ourGlobals)
271{ 273{
274 GLData *gld = &ourGlobals->gld;
272 IVideoDriver *driver = gld->driver; 275 IVideoDriver *driver = gld->driver;
273 276
274 if (gld->useIrr) 277 if (gld->useIrr)
275 driver->endScene(); 278 driver->endScene();
276} 279}
277 280
278EAPI void finishIrr(GLData *gld) 281EAPI void finishIrr(globals *ourGlobals)
279{ 282{
283 GLData *gld = &ourGlobals->gld;
280 IrrlichtDevice *device = gld->device; 284 IrrlichtDevice *device = gld->device;
281 285
282 /* 286 /*