Compare commits
2 Commits
5872ea945c
...
b7863d6429
Author | SHA1 | Date |
---|---|---|
Brett | b7863d6429 | |
Brett | b739e7057e |
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(graphs VERSION 0.0.4)
|
||||
project(graphs VERSION 0.0.6)
|
||||
|
||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d40b917c32c6c135c3a2f939ee9436d85d94bd64
|
||||
Subproject commit 894355810995472652b83b9f18345d0c8c9fc3d2
|
|
@ -54,9 +54,9 @@ void update(std::int32_t width, std::int32_t height)
|
|||
if (y > 256)
|
||||
sy *= -1;
|
||||
|
||||
renderer_2d.drawLine(blt::vec4{1, 0, 1, 1}, blt::vec2{x,y}, blt::vec2{500, 500}, 5.0f);
|
||||
renderer_2d.drawLine(blt::vec4{1, 0, 0, 1}, blt::vec2{0,150}, blt::vec2{240, 0}, 12.0f);
|
||||
renderer_2d.drawPoint(blt::vec4{0, 1, 0, 1}, blt::vec2{500, 500}, 50.0f);
|
||||
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);
|
||||
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue