From 301470331b8a8f81195e083d2291923efa1c3fde Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 16 Apr 2024 02:28:11 -0400 Subject: [PATCH] multisampling --- .idea/codeStyles/codeStyleConfig.xml | 5 +++++ CMakeLists.txt | 2 +- lib/BLT-With-Graphics-Template | 2 +- src/main.cpp | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .idea/codeStyles/codeStyleConfig.xml diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..2ef8645 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 108687a..a009e0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(graphs VERSION 0.0.6) +project(graphs VERSION 0.0.7) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/lib/BLT-With-Graphics-Template b/lib/BLT-With-Graphics-Template index 8943558..cd7c34c 160000 --- a/lib/BLT-With-Graphics-Template +++ b/lib/BLT-With-Graphics-Template @@ -1 +1 @@ -Subproject commit 894355810995472652b83b9f18345d0c8c9fc3d2 +Subproject commit cd7c34cb1616b8496acbf69042f0ab92cfbfca83 diff --git a/src/main.cpp b/src/main.cpp index 90e9f0d..2a2b9ed 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,6 +33,7 @@ void init() global_matrices.create_internals(); resources.load_resources(); renderer_2d.create(); + } float x = 50, y = 50; @@ -57,6 +58,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}, 1.0f, blt::vec2{500, 500}, 50.0f); + renderer_2d.drawPoint(blt::vec4{0, 1, 1, 1}, 1.0f, blt::vec2{800, 500}, 256.0f); camera.update(); camera.update_view(global_matrices);