BLT-With-Graphics-Template/tests/src/main.cpp

26 lines
485 B
C++
Raw Normal View History

2023-11-27 23:53:20 -05:00
#include <iostream>
2023-11-28 01:56:10 -05:00
#include <blt/gfx/window.h>
2023-12-16 01:32:25 -05:00
#include <imgui.h>
2023-12-26 21:14:01 -05:00
#include "blt/gfx/imgui/IconsFontAwesome5.h"
2023-11-28 01:56:10 -05:00
void init()
{
}
void update(std::int32_t width, std::int32_t height)
{
2023-12-16 03:19:27 -05:00
ImGui::ShowDemoWindow();
2023-12-26 21:14:01 -05:00
ImGui::Text("%s among %d items", ICON_FA_FILE, 0);
ImGui::Button(ICON_FA_SEARCH " Search");
ImGui::End();
2023-11-28 01:56:10 -05:00
}
2023-11-27 23:53:20 -05:00
int main()
{
2023-11-28 01:56:10 -05:00
blt::gfx::init(blt::gfx::window_data{"My Sexy Window", init, update}.setSyncInterval(1));
blt::gfx::cleanup();
2023-11-27 23:53:20 -05:00
return 0;
}