Created
May 30, 2022 20:58
-
-
Save SeppahBaws/4aae32ef2fd55b34e98ee50624be090e to your computer and use it in GitHub Desktop.
Creating a scene in my Vulkan renderer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scene* scene = new Scene(); | |
| Entity player = scene->CreateEntity("Player"); | |
| player.AddComponent<TransformComponent>( | |
| { 0.0f, 0.0f, 0.0f, }, // Position | |
| { 0.0f, 90.0f, 0.0f }, // Rotation | |
| { 1.0f, 1.0f, 1.0f } // Scale | |
| ); | |
| player.AddComponent<ModelComponent>("resources/Models/Player.fbx"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment