Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Void Testbed::Create()
- {
- Resource::Manager* resourceManager = Resource::Manager::Singleton;
- Scene::Manager* sceneManager = Scene::Manager::Singleton;
- mModel = resourceManager->GetModel("Primitives/Cube");
- // Create a node and attach the model to it
- mNode = sceneManager->CreateNode();
- mNode->Attachment = mModel.Handle;
- // Reset our timer
- mTimer.Reset();
- }
- Void Testbed::Update()
- {
- Float time = mTimer.Elapsed(Timer::Seconds);
- // Generate the transforms and constant buffer data
- //Aligned Float4x4 world = Identity(); //To4x4(RotationZ(time * (1 + key->Held('D')))); //To4x4(RotationZ(fmod(ttime * 1.0f, 1.0f) * Pi * 2.0f));
- mNode->Position.xy = Float2(1.0f * cosf(time), 1.0f * sinf(time));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement