From b7863d642996c1edf6bbbb2d3c52b3043380954c Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 14 Apr 2024 17:37:08 -0400 Subject: [PATCH] flip z index --- CMakeLists.txt | 2 +- src/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fb3629..108687a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(graphs VERSION 0.0.5) +project(graphs VERSION 0.0.6) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/src/main.cpp b/src/main.cpp index e23ac1a..90e9f0d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,7 +56,7 @@ void update(std::int32_t width, std::int32_t height) renderer_2d.drawLine(blt::vec4{1, 0, 1, 1}, 0.0f, blt::vec2{x,y}, blt::vec2{500, 500}, 5.0f); renderer_2d.drawLine(blt::vec4{1, 0, 0, 1}, 0.0f, blt::vec2{0,150}, blt::vec2{240, 0}, 12.0f); - renderer_2d.drawPoint(blt::vec4{0, 1, 0, 1}, -0.4f, blt::vec2{500, 500}, 50.0f); + renderer_2d.drawPoint(blt::vec4{0, 1, 0, 1}, 1.0f, blt::vec2{500, 500}, 50.0f); camera.update(); camera.update_view(global_matrices); @@ -67,7 +67,7 @@ void update(std::int32_t width, std::int32_t height) int main(int argc, const char** argv) { - blt::gfx::init(blt::gfx::window_data{"My Sexy Window", init, update}.setSyncInterval(1)); + blt::gfx::init(blt::gfx::window_data{"My Sexy Window", init, update, 1440, 720}.setSyncInterval(1)); global_matrices.cleanup(); resources.cleanup(); renderer_2d.cleanup();