diff options
Diffstat (limited to '')
-rw-r--r-- | src/extantz/crappisspuke.cpp | 14 |
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; | |||
18 | extern "C" { | 18 | extern "C" { |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | EAPI int startIrr(GLData *gld) | 21 | EAPI 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 | ||
232 | EAPI void drawIrr_start(GLData *gld) | 233 | EAPI 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 | ||
270 | EAPI void drawIrr_end(GLData *gld) | 272 | EAPI 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 | ||
278 | EAPI void finishIrr(GLData *gld) | 281 | EAPI 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 | /* |