本文整理汇总了C++中Landscape::SetTiledShaderMode方法的典型用法代码示例。如果您正苦于以下问题:C++ Landscape::SetTiledShaderMode方法的具体用法?C++ Landscape::SetTiledShaderMode怎么用?C++ Landscape::SetTiledShaderMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Landscape
的用法示例。
在下文中一共展示了Landscape::SetTiledShaderMode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LoadResources
void Test::LoadResources()
{
time = 0.f;
isFinished = false;
skipFrames = 100;
Scene *scene = new Scene();
scene->AddNode(scene->GetRootNode(fullName));
DVASSERT_MSG(scene, "Could not load the scene");
Camera* cam = new Camera();
scene->AddCamera(cam);
Core* core = DAVA::Core::Instance();
float32 aspect = core->GetVirtualScreenHeight() / core->GetVirtualScreenWidth();
cam->Setup(70.f, aspect, 1.f, 5000.f);
cam->SetLeft(Vector3(1, 0, 0));
cam->SetUp(Vector3(0, 0, 1));
scene->SetCurrentCamera(cam);
SafeRelease(cam);
UI3DView *sceneView = new UI3DView(Rect(0, 0, GetSize().x, GetSize().y));
sceneView->SetScene(scene);
AddControl(sceneView);
SafeRelease(sceneView);
Landscape* landscape = GetLandscape();
DVASSERT_MSG(scene, "There is no landscape in a scene");
landscape->SetTiledShaderMode(Landscape::TILED_MODE_TEXTURE);
uint32 textureMemory = TextureHelper::GetSceneTextureMemory(scene, GetFilePath());
testData.SetTextureMemorySize(textureMemory);
File* file = File::Create(fullName, File::OPEN | File::READ);
DVASSERT_MSG(file, "Could not open file scene file");
testData.SetSceneFileSize(file->GetSize());
SafeRelease(file);
PreparePath();
PrepareFpsStat();
PrepareCameraAnimation();
ZeroCurFpsStat();
MoveToNextPoint();
SafeRelease(scene);
}