\r
//! Maximum number of texture an SMaterial can have, up to 8 are supported by Irrlicht.\r
#define _IRR_MATERIAL_MAX_TEXTURES_ 4\r
-#define _IRR_COMPILE_WITH_GUI_\r
\r
#ifdef _WIN32\r
#define IRRCALLCONV __stdcall\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIButton.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUISkin.h"\r
#include "IGUIEnvironment.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_BUTTON_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIButton.h"\r
#include "IGUISpriteBank.h"\r
#include "ITexture.h"\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif // __C_GUI_BUTTON_H_INCLUDED__\r
-\r
\r
#include "CGUICheckBox.h"\r
\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUISkin.h"\r
#include "IGUIEnvironment.h"\r
#include "IVideoDriver.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_CHECKBOX_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUICheckBox.h"\r
\r
namespace irr\r
} // end namespace irr\r
\r
#endif // __C_GUI_CHECKBOX_H_INCLUDED__\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIComboBox.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUIEnvironment.h"\r
#include "IVideoDriver.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_COMBO_BOX_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIComboBox.h"\r
#include "IGUIStaticText.h"\r
#include "irrString.h"\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif // __C_GUI_COMBO_BOX_H_INCLUDED__\r
-\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIEditBox.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUISkin.h"\r
#include "IGUIEnvironment.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_EDIT_BOX_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIEditBox.h"\r
#include "irrArray.h"\r
#include "IOSOperator.h"\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
#endif // __C_GUI_EDIT_BOX_H_INCLUDED__\r
-\r
\r
#include "CGUIEnvironment.h"\r
\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IVideoDriver.h"\r
\r
#include "CGUISkin.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_ENVIRONMENT_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIEnvironment.h"\r
#include "IGUIElement.h"\r
#include "irrArray.h"\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif // __C_GUI_ENVIRONMENT_H_INCLUDED__\r
-\r
-\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIFileOpenDialog.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUISkin.h"\r
#include "IGUIEnvironment.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
#define __C_GUI_FILE_OPEN_DIALOG_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIFileOpenDialog.h"\r
#include "IGUIButton.h"\r
#include "IGUIListBox.h"\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif // __C_GUI_FILE_OPEN_DIALOG_H_INCLUDED__\r
-\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIFont.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "os.h"\r
#include "coreutil.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_FONT_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIFontBitmap.h"\r
#include "irrString.h"\r
#include "IReadFile.h"\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif // __C_GUI_FONT_H_INCLUDED__\r
-\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIImage.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUISkin.h"\r
#include "IGUIEnvironment.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_IMAGE_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIImage.h"\r
\r
namespace irr\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif // __C_GUI_IMAGE_H_INCLUDED__\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIListBox.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "CGUIListBox.h"\r
#include "IGUISkin.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_LIST_BOX_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIListBox.h"\r
#include "irrArray.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIScrollBar.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUISkin.h"\r
#include "IGUIEnvironment.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_SCROLL_BAR_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIScrollBar.h"\r
#include "IGUIButton.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif\r
-\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUISkin.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUIFont.h"\r
#include "IGUISpriteBank.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_SKIN_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUISkin.h"\r
#include "irrString.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif\r
-\r
-\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUISpriteBank.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUIEnvironment.h"\r
#include "IVideoDriver.h"\r
\r
} // namespace gui\r
} // namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
#define __C_GUI_SPRITE_BANK_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUISpriteBank.h"\r
\r
namespace irr\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif // __C_GUI_SPRITE_BANK_H_INCLUDED__\r
-\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUIStaticText.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "IGUISkin.h"\r
#include "IGUIEnvironment.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_STATIC_TEXT_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUIStaticText.h"\r
#include "irrArray.h"\r
\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif\r
-\r
// For conditions of distribution and use, see copyright notice in irrlicht.h\r
\r
#include "CGUITabControl.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
\r
#include "CGUIButton.h"\r
#include "IGUISkin.h"\r
\r
} // end namespace irr\r
} // end namespace gui\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#define __C_GUI_TAB_CONTROL_H_INCLUDED__\r
\r
#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUITabControl.h"\r
#include "irrArray.h"\r
#include "IGUISkin.h"\r
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif\r
-\r
\r
void CIrrDeviceStub::createGUIAndScene()\r
{\r
- #ifdef _IRR_COMPILE_WITH_GUI_\r
// create gui environment\r
GUIEnvironment = gui::createGUIEnvironment(FileSystem, VideoDriver, Operator);\r
- #endif\r
\r
// create Scene manager\r
SceneManager = scene::createSceneManager(VideoDriver, FileSystem, CursorControl, GUIEnvironment);\r