Skip to content

Commit

Permalink
Prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
harveynw committed Dec 2, 2023
1 parent 3c3afa1 commit fa00ec7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tinyrender/code/usage_object_examples.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// OBJ file
auto obj = std::make_shared<engine::Mesh>("path/to/file.obj");
auto obj = std::make_shared<tinyrender::Mesh>("path/to/file.obj");

// Basic geometry
auto cube = std::make_shared<engine::Cube>();
auto pyramid = std::make_shared<engine::Pyramid>(glm::vec3 center, float height, float width);
auto triangle = std::make_shared<engine::Triangle>(glm::vec3 a, glm::vec3 b, glm::vec3 c);
auto quad = std::make_shared<engine::Quad>(glm::vec3 a, glm::vec3 b, glm::vec3 c, glm::vec3 d);
auto cube = std::make_shared<tinyrender::Cube>();
auto pyramid = std::make_shared<tinyrender::Pyramid>(glm::vec3 center, float height, float width);
auto triangle = std::make_shared<tinyrender::Triangle>(glm::vec3 a, glm::vec3 b, glm::vec3 c);
auto quad = std::make_shared<tinyrender::Quad>(glm::vec3 a, glm::vec3 b, glm::vec3 c, glm::vec3 d);

// Wave Simulation
auto waveSim = std::make_shared<engine::WaveSim>(float height, float width);
auto waveSim = std::make_shared<tinyrender::WaveSim>(float height, float width);

// Voxel rendering
auto voxels = std::make_shared<engine::Voxels>();
auto voxels = std::make_shared<tinyrender::Voxels>();

0 comments on commit fa00ec7

Please sign in to comment.