Skip to content

Instantly share code, notes, and snippets.

@SeppahBaws
Created May 30, 2022 20:58
Show Gist options
  • Save SeppahBaws/4aae32ef2fd55b34e98ee50624be090e to your computer and use it in GitHub Desktop.
Save SeppahBaws/4aae32ef2fd55b34e98ee50624be090e to your computer and use it in GitHub Desktop.
Creating a scene in my Vulkan renderer
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