Commit c00c459b authored by cutealien's avatar cutealien

A few minor project file fixes and make the cursorcontrol example also with...

A few minor project file fixes and make the cursorcontrol example also with driver-selection instead of just using opengl.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3329 dfc29bdd-3216-0410-991c-e03cc46cb475
parent b72110ba
......@@ -4,7 +4,7 @@
Version="9,00"
Name="23.SMeshHandling_vc9"
ProjectGUID="{6AEC2AA2-C9FF-4B7D-B07A-94A9D34B41D7}"
RootNamespace="19.SMeshHandling_vc9"
RootNamespace="23.SMeshHandling_vc9"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
......@@ -140,7 +140,7 @@
/>
<Tool
Name="VCLinkerTool"
OutputFile="..\..\bin\Win32-VisualStudio\19.SMeshHandling.exe"
OutputFile="..\..\bin\Win32-VisualStudio\23.SMeshHandling.exe"
LinkIncremental="1"
AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
GenerateDebugInformation="false"
......
......@@ -3,7 +3,7 @@
ProjectType="Visual C++"
Version="9,00"
Name="24.CursorControl_vc9"
ProjectGUID="{02B67A37-50E1-49db-BECF-905BC029C2FE}"
ProjectGUID="{02B67A37-50E1-49DB-BECF-905BC029C2FE}"
RootNamespace="24.CursorControl_vc9"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
......
......@@ -5,6 +5,7 @@ It can also be used for experiments with the mouse in general.
*/
#include <irrlicht.h>
#include "driverChoice.h"
using namespace irr;
using namespace core;
......@@ -416,11 +417,17 @@ s32 AddIconToSpriteBank( gui::IGUISpriteBank * spriteBank, video::IVideoDriver*
int main()
{
video::E_DRIVER_TYPE driverType = video::EDT_OPENGL;
video::E_DRIVER_TYPE driverType = driverChoiceConsole();
if (driverType==video::EDT_COUNT)
return 1;
IrrlichtDevice * device = createDevice(driverType, dimension2d<u32>(640, 480));
if (device == 0)
return 1; // could not create selected driver.
// It's sometimes of interest to know how the mouse behaves after a resize
device->setResizable(true);
device->setWindowCaption(L"Cursor control - Irrlicht engine tutorial");
video::IVideoDriver* driver = device->getVideoDriver();
IGUIEnvironment* env = device->getGUIEnvironment();
......
......@@ -138,6 +138,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Mesh Converter", "..\tools\
{E08E042A-6C45-411B-92BE-3CC31331019F} = {E08E042A-6C45-411B-92BE-3CC31331019F}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "24.CursorControl_vc9", "24.CursorControl\CursorControl_vc9.vcproj", "{02B67A37-50E1-49DB-BECF-905BC029C2FE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
......@@ -256,6 +258,10 @@ Global
{E72B637E-4AA6-46F3-885F-AC67B4B470ED}.Debug|Win32.Build.0 = Debug|Win32
{E72B637E-4AA6-46F3-885F-AC67B4B470ED}.Release|Win32.ActiveCfg = Release|Win32
{E72B637E-4AA6-46F3-885F-AC67B4B470ED}.Release|Win32.Build.0 = Release|Win32
{02B67A37-50E1-49DB-BECF-905BC029C2FE}.Debug|Win32.ActiveCfg = Debug|Win32
{02B67A37-50E1-49DB-BECF-905BC029C2FE}.Debug|Win32.Build.0 = Debug|Win32
{02B67A37-50E1-49DB-BECF-905BC029C2FE}.Release|Win32.ActiveCfg = Release|Win32
{02B67A37-50E1-49DB-BECF-905BC029C2FE}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment