Added isFulscreen method.
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@1384 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
e80e0dc385
commit
a831468612
@ -159,6 +159,10 @@ namespace irr
|
||||
/** \return True if window is minimized. */
|
||||
virtual bool isWindowMinimized() const = 0;
|
||||
|
||||
//! Checks if the Irrlicht window is running in fullscreen mode
|
||||
/** \return True if window is fullscreen. */
|
||||
virtual bool isFullscreen() const = 0;
|
||||
|
||||
//! Notifies the device that it should close itself.
|
||||
/** IrrlichtDevice::run() will always return false after closeDevice() was called. */
|
||||
virtual void closeDevice() = 0;
|
||||
|
@ -234,6 +234,12 @@ void CIrrDeviceStub::setInputReceivingSceneManager(scene::ISceneManager* sceneMa
|
||||
}
|
||||
|
||||
|
||||
//! Checks if the window is running in fullscreen mode
|
||||
bool CIrrDeviceStub::isFullscreen() const
|
||||
{
|
||||
return CreationParams.Fullscreen;
|
||||
}
|
||||
|
||||
|
||||
} // end namespace irr
|
||||
|
||||
|
@ -73,12 +73,10 @@ namespace irr
|
||||
//! \return Returns a pointer to the mouse cursor control interface.
|
||||
virtual gui::ICursorControl* getCursorControl();
|
||||
|
||||
//! \return Returns a pointer to a list with all video modes supported
|
||||
//! by the gfx adapter.
|
||||
//! Returns a pointer to a list with all video modes supported by the gfx adapter.
|
||||
virtual video::IVideoModeList* getVideoModeList();
|
||||
|
||||
//! \return Returns a pointer to the ITimer object. With it the
|
||||
//! current Time can be received.
|
||||
//! Returns a pointer to the ITimer object. With it the current Time can be received.
|
||||
virtual ITimer* getTimer();
|
||||
|
||||
//! Returns the version of the engine.
|
||||
@ -90,24 +88,27 @@ namespace irr
|
||||
//! Sets a new event receiver to receive events
|
||||
virtual void setEventReceiver(IEventReceiver* receiver);
|
||||
|
||||
//! Returns poinhter to the current event receiver. Returns 0 if there is none.
|
||||
//! Returns pointer to the current event receiver. Returns 0 if there is none.
|
||||
virtual IEventReceiver* getEventReceiver();
|
||||
|
||||
//! Sets the input receiving scene manager.
|
||||
/** If set to null, the main scene manager (returned by GetSceneManager()) will receive the input */
|
||||
virtual void setInputReceivingSceneManager(scene::ISceneManager* sceneManager);
|
||||
|
||||
//! \return Returns a pointer to the logger.
|
||||
//! Returns a pointer to the logger.
|
||||
virtual ILogger* getLogger();
|
||||
|
||||
//! Returns the operation system opertator object.
|
||||
virtual IOSOperator* getOSOperator();
|
||||
|
||||
//! Checks if the window is running in fullscreen mode.
|
||||
virtual bool isFullscreen() const;
|
||||
|
||||
protected:
|
||||
|
||||
void createGUIAndScene();
|
||||
|
||||
//! checks version of sdk and prints warning if there might be a problem
|
||||
//! checks version of SDK and prints warning if there might be a problem
|
||||
bool checkVersion(const char* version);
|
||||
|
||||
video::IVideoDriver* VideoDriver;
|
||||
|
@ -279,7 +279,7 @@ namespace irr
|
||||
//! constructor
|
||||
CIrrDeviceWin32::CIrrDeviceWin32(const SIrrlichtCreationParameters& params)
|
||||
: CIrrDeviceStub(params), HWnd(0), ChangedToFullScreen(false),
|
||||
FullScreen(CreationParams.Fullscreen), IsNonNTWindows(false), Resized(false),
|
||||
IsNonNTWindows(false), Resized(false),
|
||||
ExternalWindow(false), Win32CursorControl(0)
|
||||
{
|
||||
|
||||
@ -916,7 +916,7 @@ void CIrrDeviceWin32::OnResized()
|
||||
//! Sets if the window should be resizeable in windowed mode.
|
||||
void CIrrDeviceWin32::setResizeAble(bool resize)
|
||||
{
|
||||
if (ExternalWindow || !getVideoDriver() || FullScreen)
|
||||
if (ExternalWindow || !getVideoDriver() || CreationParams.Fullscreen)
|
||||
return;
|
||||
|
||||
LONG style = WS_POPUP;
|
||||
|
@ -246,7 +246,6 @@ namespace irr
|
||||
HWND HWnd;
|
||||
|
||||
bool ChangedToFullScreen;
|
||||
bool FullScreen;
|
||||
bool IsNonNTWindows;
|
||||
bool Resized;
|
||||
bool ExternalWindow;
|
||||
|
Loading…
x
Reference in New Issue
Block a user