2016-03-10 03:47:37 +00:00
|
|
|
#ifndef __URDE_CGUICAMERA_HPP__
|
|
|
|
#define __URDE_CGUICAMERA_HPP__
|
|
|
|
|
|
|
|
#include "CGuiWidget.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2016-03-12 04:58:56 +00:00
|
|
|
class CGuiCamera : public CGuiWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum class Projection
|
|
|
|
{
|
|
|
|
Perspective,
|
|
|
|
Orthographic
|
|
|
|
};
|
|
|
|
private:
|
|
|
|
Projection xf8_proj;
|
|
|
|
public:
|
|
|
|
CGuiCamera(const CGuiWidgetParms& parms, float, float, float, float, float, float);
|
|
|
|
CGuiCamera(const CGuiWidgetParms& parms, float fov, float aspect, float znear, float zfar);
|
|
|
|
static CGuiCamera* Create(CGuiFrame* frame, CInputStream& in, bool flag);
|
|
|
|
};
|
2016-03-10 03:47:37 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CGUICAMERA_HPP__
|