Beispiel #1
0
};

const pcstr OGREGraphicsObjectCamera::sm_kapszPropertyNames[] =
{
    "FOVy", "ClipDistances", "Position", "LookAt", "PolygonMode", "LockCamera", "PagedGeometry"
};

const Properties::Property OGREGraphicsObjectCamera::sm_kaDefaultProperties[] =
{
    Properties::Property( sm_kapszPropertyNames[ Property_FOVy ],
                          VALUE1( Properties::Values::Float32 ),
                          Properties::Flags::Valid,
                          nullptr, nullptr, nullptr, nullptr,
                          0.0f ),
    Properties::Property( sm_kapszPropertyNames[ Property_ClipDistances ],
                          VALUE1x2( Properties::Values::Float32 ),
                          Properties::Flags::Valid,
                          nullptr, nullptr, nullptr, nullptr,
                          0.0f, 0.0f ),
    Properties::Property( sm_kapszPropertyNames[ Property_Position ],
                          Properties::Values::Vector3,
                          Properties::Flags::Valid,
                          nullptr, nullptr, nullptr, nullptr,
                          Base::Vector3::Zero ),
    Properties::Property( sm_kapszPropertyNames[ Property_LookAt ],
                          Properties::Values::Vector3,
                          Properties::Flags::Valid | Properties::Flags::WriteOnly,
                          nullptr, nullptr, nullptr, nullptr,
                          Base::Vector3::Zero ),
    Properties::Property( sm_kapszPropertyNames[ Property_PolygonMode ],
                          Properties::Values::Enum,
	VALUE4( Properties::Values::String,
	Properties::Values::String,
	Properties::Values::String,
	Properties::Values::Boolean ),
	Properties::Flags::Valid | Properties::Flags::InitOnly |
	Properties::Flags::Multiple,
	"Path", "Type", "Group", "Recursive",
	"", "", "", 0 ),

	Properties::Property( sm_kapszPropertyNames[ Property_WindowName ],
	VALUE1( Properties::Values::String ),
	Properties::Flags::Valid | Properties::Flags::InitOnly,
	NULL, NULL, NULL, NULL,
	"" ),
	Properties::Property( sm_kapszPropertyNames[ Property_Resolution ],
	VALUE1x2( Properties::Values::Int32 ),
	Properties::Flags::Valid,
	NULL, NULL, NULL, NULL,
	1024, 768 ),
	Properties::Property( sm_kapszPropertyNames[ Property_ShadowTextureCount ],
	VALUE1( Properties::Values::Int32 ),
	Properties::Flags::Valid,
	NULL, NULL, NULL, NULL,
	1 ),
	Properties::Property( sm_kapszPropertyNames[ Property_ShadowTextureSize ],
	VALUE1( Properties::Values::Int32 ),
	Properties::Flags::Valid,
	NULL, NULL, NULL, NULL,
	1024 ),
	Properties::Property( sm_kapszPropertyNames[ Property_FullScreen ],
	VALUE1( Properties::Values::Int32 ),
	"PagedGeometry", "PagedGeometryTerrain", "PagedGeometryTerrainOffset"
};

const Properties::Property GraphicsScene::sm_kaDefaultProperties[] =
{
	Properties::Property( sm_kapszPropertyNames[ Property_ResourceLocation ],
	VALUE4( Properties::Values::String,
	Properties::Values::String,
	Properties::Values::String,
	Properties::Values::Boolean ),
	Properties::Flags::Valid | Properties::Flags::Multiple | Properties::Flags::InitOnly,
	"Path", "Type", "Group", "Recursive",
	"", "", "", 0 ),

	Properties::Property( sm_kapszPropertyNames[ Property_DelResourceLocation ],
	VALUE1x2( Properties::Values::String ),
	Properties::Flags::Valid | Properties::Flags::Multiple | Properties::Flags::InitOnly,
	"Path", "Group", NULL, NULL,
	"", "" ),

	Properties::Property( sm_kapszPropertyNames[ Property_AmbientLight ],
	Properties::Values::Color3,
	Properties::Flags::Valid,
	"R", "G", "B", NULL,
	Math::Color3::Black ),
	Properties::Property( sm_kapszPropertyNames[ Property_Shadows ],
	VALUE1x2( Properties::Values::Boolean ),
	Properties::Flags::Valid,
	NULL, NULL, NULL, NULL,
	0, 0 ),
	Properties::Property( sm_kapszPropertyNames[ Property_ShadowColor ],