Commit 738954d3 authored by bitplane's avatar bitplane

Renamed setResizeable to setResizable (!)

Tidied the Xcode project some more and fixed compiling. Didn't implement CIrrDeviceOSX::minimizeWindow yet

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2264 dfc29bdd-3216-0410-991c-e03cc46cb475
parent bee75f48
...@@ -2,7 +2,7 @@ Changes in 1.6 ...@@ -2,7 +2,7 @@ Changes in 1.6
- Added SGI RGB file reader by Gary Conway, for loading Silicon Graphics .rgb, .rgba, .sgi, .int and .inta textures - Added SGI RGB file reader by Gary Conway, for loading Silicon Graphics .rgb, .rgba, .sgi, .int and .inta textures
- Renamed setResizeAble to setResizeable - Renamed setResizeAble to setResizable
- Added new device method minimizeWindow which minimizes the window (just as if the minimize button has been clicked). - Added new device method minimizeWindow which minimizes the window (just as if the minimize button has been clicked).
......
This diff is collapsed.
This diff is collapsed.
...@@ -182,21 +182,19 @@ private: ...@@ -182,21 +182,19 @@ private:
bool readHeader(io::IReadFile* file, rgbStruct* rgb) const; bool readHeader(io::IReadFile* file, rgbStruct* rgb) const;
void readRGBrow( u8 *buf, int y, int z, io::IReadFile* file, rgbStruct* rgb) const; void readRGBrow( u8 *buf, int y, int z, io::IReadFile* file, rgbStruct* rgb) const;
void convertLong(u32 *array, long length) const;
void convertShort(u16 *array, long length) const;
void processFile(rgbStruct *rgb, io::IReadFile *file) const; void processFile(rgbStruct *rgb, io::IReadFile *file) const;
bool checkFormat(io::IReadFile *file, rgbStruct *rgb) const; bool checkFormat(io::IReadFile *file, rgbStruct *rgb) const;
bool readOffsetTables(io::IReadFile* file, rgbStruct *rgb) const; bool readOffsetTables(io::IReadFile* file, rgbStruct *rgb) const;
void converttoARGB(u8* in, rgbStruct *rgb) const; void converttoARGB(u8* in, rgbStruct *rgb) const;
#ifndef __BIG_ENDIAN__
void convertLong(u32 *array, long length) const;
void convertShort(u16 *array, long length) const;
#endif
}; };
} // end namespace video } // end namespace video
} // end namespace irr } // end namespace irr
#endif // _IRR_COMPILE_WITH_RGB_LOADER_
#endif #endif // __C_IMAGE_LOADER_RGB_H_INCLUDED__
#endif
...@@ -406,8 +406,8 @@ void CIrrDeviceConsole::closeDevice() ...@@ -406,8 +406,8 @@ void CIrrDeviceConsole::closeDevice()
IsDeviceRunning = false; IsDeviceRunning = false;
} }
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
void CIrrDeviceConsole::setResizeable(bool resize) void CIrrDeviceConsole::setResizable(bool resize)
{ {
// do nothing // do nothing
} }
......
...@@ -75,8 +75,8 @@ namespace irr ...@@ -75,8 +75,8 @@ namespace irr
//! notifies the device that it should close itself //! notifies the device that it should close itself
virtual void closeDevice(); virtual void closeDevice();
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
virtual void setResizeable(bool resize=false); virtual void setResizable(bool resize=false);
//! Minimizes the window. //! Minimizes the window.
virtual void minimizeWindow(); virtual void minimizeWindow();
......
...@@ -1050,8 +1050,8 @@ video::ECOLOR_FORMAT CIrrDeviceLinux::getColorFormat() const ...@@ -1050,8 +1050,8 @@ video::ECOLOR_FORMAT CIrrDeviceLinux::getColorFormat() const
} }
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
void CIrrDeviceLinux::setResizeable(bool resize) void CIrrDeviceLinux::setResizable(bool resize)
{ {
#ifdef _IRR_COMPILE_WITH_X11_ #ifdef _IRR_COMPILE_WITH_X11_
if (CreationParams.DriverType == video::EDT_NULL) if (CreationParams.DriverType == video::EDT_NULL)
......
...@@ -87,8 +87,8 @@ namespace irr ...@@ -87,8 +87,8 @@ namespace irr
//! supported by the gfx adapter. //! supported by the gfx adapter.
video::IVideoModeList* getVideoModeList(); video::IVideoModeList* getVideoModeList();
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
virtual void setResizeable(bool resize=false); virtual void setResizable(bool resize=false);
//! Minimizes the window. //! Minimizes the window.
virtual void minimizeWindow(); virtual void minimizeWindow();
......
...@@ -45,7 +45,7 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param) ...@@ -45,7 +45,7 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
Screen((SDL_Surface*)param.WindowId), SDL_Flags(SDL_HWSURFACE|SDL_ANYFORMAT), Screen((SDL_Surface*)param.WindowId), SDL_Flags(SDL_HWSURFACE|SDL_ANYFORMAT),
MouseX(0), MouseY(0), MouseButtonStates(0), MouseX(0), MouseY(0), MouseButtonStates(0),
Width(param.WindowSize.Width), Height(param.WindowSize.Height), Width(param.WindowSize.Width), Height(param.WindowSize.Height),
Close(0), Resizeable(false), Close(0), Resizable(false),
WindowHasFocus(false), WindowMinimized(false) WindowHasFocus(false), WindowMinimized(false)
{ {
#ifdef _DEBUG #ifdef _DEBUG
...@@ -660,10 +660,10 @@ video::IVideoModeList* CIrrDeviceSDL::getVideoModeList() ...@@ -660,10 +660,10 @@ video::IVideoModeList* CIrrDeviceSDL::getVideoModeList()
} }
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
void CIrrDeviceSDL::setResizeable(bool resize) void CIrrDeviceSDL::setResizable(bool resize)
{ {
if (resize != Resizeable) if (resize != Resizable)
{ {
if (resize) if (resize)
SDL_Flags |= SDL_RESIZABLE; SDL_Flags |= SDL_RESIZABLE;
...@@ -672,7 +672,7 @@ void CIrrDeviceSDL::setResizeable(bool resize) ...@@ -672,7 +672,7 @@ void CIrrDeviceSDL::setResizeable(bool resize)
if (Screen) if (Screen)
SDL_FreeSurface(Screen); SDL_FreeSurface(Screen);
Screen = SDL_SetVideoMode( Width, Height, CreationParams.Bits, SDL_Flags ); Screen = SDL_SetVideoMode( Width, Height, CreationParams.Bits, SDL_Flags );
Resizeable = resize; Resizable = resize;
} }
} }
......
...@@ -64,8 +64,8 @@ namespace irr ...@@ -64,8 +64,8 @@ namespace irr
//! \return Returns a pointer to a list with all video modes supported //! \return Returns a pointer to a list with all video modes supported
video::IVideoModeList* getVideoModeList(); video::IVideoModeList* getVideoModeList();
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
virtual void setResizeable(bool resize=false); virtual void setResizable(bool resize=false);
//! Minimizes the window. //! Minimizes the window.
virtual void minimizeWindow(); virtual void minimizeWindow();
...@@ -185,7 +185,7 @@ namespace irr ...@@ -185,7 +185,7 @@ namespace irr
u32 Width, Height; u32 Width, Height;
bool Close; bool Close;
bool Resizeable; bool Resizable;
bool WindowHasFocus; bool WindowHasFocus;
bool WindowMinimized; bool WindowMinimized;
......
...@@ -892,8 +892,8 @@ void CIrrDeviceWin32::OnResized() ...@@ -892,8 +892,8 @@ void CIrrDeviceWin32::OnResized()
Resized = true; Resized = true;
} }
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
void CIrrDeviceWin32::setResizeable(bool resize) void CIrrDeviceWin32::setResizable(bool resize)
{ {
if (ExternalWindow || !getVideoDriver() || CreationParams.Fullscreen) if (ExternalWindow || !getVideoDriver() || CreationParams.Fullscreen)
return; return;
......
...@@ -66,8 +66,8 @@ namespace irr ...@@ -66,8 +66,8 @@ namespace irr
//! Notifies the device, that it has been resized //! Notifies the device, that it has been resized
void OnResized(); void OnResized();
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
virtual void setResizeable(bool resize=false); virtual void setResizable(bool resize=false);
//! Minimizes the window. //! Minimizes the window.
virtual void minimizeWindow(); virtual void minimizeWindow();
......
...@@ -741,8 +741,8 @@ void CIrrDeviceWinCE::OnResized() ...@@ -741,8 +741,8 @@ void CIrrDeviceWinCE::OnResized()
} }
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
void CIrrDeviceWinCE::setResizeable(bool resize) void CIrrDeviceWinCE::setResizable(bool resize)
{ {
if (ExternalWindow || !getVideoDriver() || CreationParams.Fullscreen) if (ExternalWindow || !getVideoDriver() || CreationParams.Fullscreen)
return; return;
......
...@@ -66,8 +66,8 @@ namespace irr ...@@ -66,8 +66,8 @@ namespace irr
//! Notifies the device, that it has been resized //! Notifies the device, that it has been resized
void OnResized(); void OnResized();
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
virtual void setResizeable(bool resize=false); virtual void setResizable(bool resize=false);
//! Minimizes the window. //! Minimizes the window.
virtual void minimizeWindow(); virtual void minimizeWindow();
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
- (NSSize)windowWillResize:(NSWindow *)window toSize:(NSSize)proposedFrameSize - (NSSize)windowWillResize:(NSWindow *)window toSize:(NSSize)proposedFrameSize
{ {
if (_device->isResizeAble()) if (_device->isResizable())
return proposedFrameSize; return proposedFrameSize;
else else
return [window frame].size; return [window frame].size;
......
...@@ -63,10 +63,13 @@ namespace irr ...@@ -63,10 +63,13 @@ namespace irr
virtual void closeDevice(); virtual void closeDevice();
//! Sets if the window should be resizable in windowed mode. //! Sets if the window should be resizable in windowed mode.
virtual void setResizeAble(bool resize); virtual void setResizable(bool resize);
//! Returns true if the window is resizable, false if not //! Returns true if the window is resizable, false if not
virtual bool isResizeAble() const; virtual bool isResizable() const;
//! Minimizes the window if possible
virtual void minimizeWindow();
//! Activate any joysticks, and generate events for them. //! Activate any joysticks, and generate events for them.
virtual bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo); virtual bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo);
...@@ -76,8 +79,8 @@ namespace irr ...@@ -76,8 +79,8 @@ namespace irr
virtual video::IVideoModeList* getVideoModeList(); virtual video::IVideoModeList* getVideoModeList();
void flush(); void flush();
void setMouseLocation(int x,int y); void setMouseLocation(int x, int y);
void setResize(int width,int height); void setResize(int width, int height);
void setCursorVisible(bool visible); void setCursorVisible(bool visible);
private: private:
......
...@@ -369,7 +369,7 @@ CIrrDeviceMacOSX::CIrrDeviceMacOSX(const SIrrlichtCreationParameters& param) ...@@ -369,7 +369,7 @@ CIrrDeviceMacOSX::CIrrDeviceMacOSX(const SIrrlichtCreationParameters& param)
if (CreationParams.DriverType != video::EDT_NULL) if (CreationParams.DriverType != video::EDT_NULL)
createWindow(); createWindow();
setResizeAble(false); setResizable(false);
CursorControl = new CCursorControl(CreationParams.WindowSize, this); CursorControl = new CCursorControl(CreationParams.WindowSize, this);
createDriver(); createDriver();
...@@ -1085,17 +1085,21 @@ void CIrrDeviceMacOSX::initKeycodes() ...@@ -1085,17 +1085,21 @@ void CIrrDeviceMacOSX::initKeycodes()
//! Sets if the window should be resizeable in windowed mode. //! Sets if the window should be resizable in windowed mode.
void CIrrDeviceMacOSX::setResizeAble(bool resize) void CIrrDeviceMacOSX::setResizable(bool resize)
{ {
IsResizable = resize; IsResizable = resize;
} }
bool CIrrDeviceMacOSX::isResizeAble() const bool CIrrDeviceMacOSX::isResizable() const
{ {
return IsResizable; return IsResizable;
} }
void CIrrDeviceMacOSX::minimizeWindow()
{
// todo: implement
}
bool CIrrDeviceMacOSX::present(video::IImage* surface, void* windowId, core::rect<s32>* src ) bool CIrrDeviceMacOSX::present(video::IImage* surface, void* windowId, core::rect<s32>* src )
{ {
......
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