aboutsummaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index c484b0d..9b2f673 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -79,14 +79,16 @@ static void scene_main(Renderer<FrameBuffer>& renderer, const Matrix4& final_tra
Scene scene{
{{{0.f, 0.f, rad * dist}, {1.f, 0.f, 0.f, 0.f}, {1.f, 1.f, 1.f}}},
{
- // {
- // Mesh::plane(),
- // {
- // Vector3(0.f, 0.f, 0.f),
- // {1.f, 0.f, 0.f, 0.f},
- // Vector3(rad, rad, rad),
- // }
- // },
+#if 0
+ {
+ Mesh::plane(),
+ {
+ Vector3(0.f, 0.f, 0.f),
+ {1.f, 0.f, 0.f, 0.f},
+ Vector3(rad, rad, rad),
+ }
+ },
+#else
{
engine::parse_object("../assets/suzanne.obj"),
{
@@ -95,6 +97,7 @@ static void scene_main(Renderer<FrameBuffer>& renderer, const Matrix4& final_tra
Vector3(rad, rad, rad),
}
},
+#endif
}
};
float mul_angle = 0.f;
@@ -133,7 +136,7 @@ static void scene_main(Renderer<FrameBuffer>& renderer, const Matrix4& final_tra
static int main_term() {
// init
- setlocale(LC_ALL, "");
+ std::setlocale(LC_ALL, "");
initscr();
cbreak();
noecho();