X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGame.cpp;h=a64803fe605e762101920485f6adcb21eafd69e5;hb=617a36f729718c59c2f886fd4a1d145388e7c8bc;hp=524009d2500b504846f927c4223147d5fba8fe47;hpb=735daf95aba0eef54d151daae01285f0959825d0;p=lugaru.git diff --git a/Source/Game.cpp b/Source/Game.cpp index 524009d..a64803f 100644 --- a/Source/Game.cpp +++ b/Source/Game.cpp @@ -3,7 +3,6 @@ #include "SDL_thread.h" extern int mainmenu; -extern OPENAL_SAMPLE *samp[100]; extern int channels[100]; extern "C" void PlaySoundEx(int channel, OPENAL_SAMPLE *sptr, OPENAL_DSPUNIT *dsp, signed char startpaused); @@ -355,3 +354,12 @@ int Game::thread(void *data) { (pt->game->*(pt->method))(); } } + +void Game::DrawGL() { + if ( stereomode == stereoNone ) { + DrawGLScene(stereoCenter); + } else { + DrawGLScene(stereoLeft); + DrawGLScene(stereoRight); + } +}