MyGUI
3.2.1
|
00001 /* 00002 * This source file is part of MyGUI. For the latest info, see http://mygui.info/ 00003 * Distributed under the MIT License 00004 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) 00005 */ 00006 00007 #ifndef __MYGUI_RENDER_TARGET_INFO_H__ 00008 #define __MYGUI_RENDER_TARGET_INFO_H__ 00009 00010 #include "MyGUI_Prerequest.h" 00011 00012 namespace MyGUI 00013 { 00014 00015 struct MYGUI_EXPORT RenderTargetInfo 00016 { 00017 public: 00018 RenderTargetInfo() : 00019 maximumDepth(0), 00020 pixScaleX(1), 00021 pixScaleY(1), 00022 hOffset(0), 00023 vOffset(0), 00024 aspectCoef(1), 00025 leftOffset(0), 00026 topOffset(0) 00027 { 00028 } 00029 00030 void setOffset(int _left, int _top) const 00031 { 00032 leftOffset = _left; 00033 topOffset = _top; 00034 } 00035 00036 public: 00037 float maximumDepth; 00038 float pixScaleX; 00039 float pixScaleY; 00040 float hOffset; 00041 float vOffset; 00042 float aspectCoef; 00043 00044 mutable int leftOffset; 00045 mutable int topOffset; 00046 }; 00047 00048 00049 } // namespace MyGUI 00050 00051 #endif // __MYGUI_RENDER_TARGET_INFO_H__