aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fabo@debian.org>2011-10-21 22:05:34 +0300
committerFathi Boudra <fabo@debian.org>2011-10-21 22:05:34 +0300
commitbfe04a829c6f877865abce6aaae7caa2ef039765 (patch)
tree95c924d9ff64a85294e9c28c4b0d2044bb3bcf63
parent33e4aee565b667d2a13902525ca95b8cd300c3c3 (diff)
downloadirrlicht-gles-bfe04a829c6f877865abce6aaae7caa2ef039765.tar.gz
use OGLES2 driver by default if possible
-rw-r--r--examples/01.HelloWorld/main.cpp2
-rw-r--r--examples/21.Quake3Explorer/main.cpp4
-rw-r--r--examples/Demo/CMainMenu.cpp2
3 files changed, 5 insertions, 3 deletions
diff --git a/examples/01.HelloWorld/main.cpp b/examples/01.HelloWorld/main.cpp
index 31776ef..d5e5867 100644
--- a/examples/01.HelloWorld/main.cpp
+++ b/examples/01.HelloWorld/main.cpp
@@ -122,7 +122,7 @@ int main()
dimensions, etc.
*/
IrrlichtDevice *device =
- createDevice( video::EDT_OGLES1, dimension2d<u32>(640, 480), 16,
+ createDevice( video::EDT_OGLES2, dimension2d<u32>(640, 480), 16,
false, false, false, 0);
if (!device)
diff --git a/examples/21.Quake3Explorer/main.cpp b/examples/21.Quake3Explorer/main.cpp
index 2f5eaf6..598198d 100644
--- a/examples/21.Quake3Explorer/main.cpp
+++ b/examples/21.Quake3Explorer/main.cpp
@@ -80,7 +80,7 @@ void GameData::setDefault ()
#if defined ( _IRR_WINDOWS_ )
deviceParam.DriverType = EDT_DIRECT3D9;
#else
- deviceParam.DriverType = EDT_OPENGL;
+ deviceParam.DriverType = EDT_OGLES2;
#endif
deviceParam.WindowSize.Width = 800;
deviceParam.WindowSize.Height = 600;
@@ -683,7 +683,7 @@ void CQuake3EventHandler::CreateGUI()
gui.VideoDriver->addItem(L"Direct3D 9.0c", EDT_DIRECT3D9 );
gui.VideoDriver->addItem(L"Direct3D 8.1", EDT_DIRECT3D8 );
gui.VideoDriver->addItem(L"OpenGL 1.5", EDT_OPENGL);
- gui.VideoDriver->addItem(L"Software Renderer", EDT_OGLES1);
+ gui.VideoDriver->addItem(L"OpenGL ES 2.0", EDT_OGLES2);
gui.VideoDriver->addItem(L"Burning's Video (TM) Thomas Alten", EDT_BURNINGSVIDEO);
gui.VideoDriver->setSelected ( gui.VideoDriver->getIndexForItemData ( Game->deviceParam.DriverType ) );
gui.VideoDriver->setToolTipText ( L"Use a VideoDriver" );
diff --git a/examples/Demo/CMainMenu.cpp b/examples/Demo/CMainMenu.cpp
index b66d42b..6c0ee65 100644
--- a/examples/Demo/CMainMenu.cpp
+++ b/examples/Demo/CMainMenu.cpp
@@ -17,6 +17,8 @@ bool CMainMenu::run(bool& outFullscreen, bool& outMusic, bool& outShadows,
video::E_DRIVER_TYPE& outDriver)
{
video::E_DRIVER_TYPE driverType = video::EDT_BURNINGSVIDEO;
+ driverType = video::EDT_OGLES2;
+ if (!IrrlichtDevice::isDriverSupported(video::EDT_OGLES2))
driverType = video::EDT_OPENGL;
if (!IrrlichtDevice::isDriverSupported(video::EDT_OPENGL))
driverType = video::EDT_DIRECT3D9;