|
@@ -8,6 +8,9 @@
|
|
*/
|
|
*/
|
|
#include <app.h>
|
|
#include <app.h>
|
|
#include <graphics.h>
|
|
#include <graphics.h>
|
|
|
|
+#include <imgui.h>
|
|
|
|
+#include <imgui_sdl.h>
|
|
|
|
+#include <imgui_impl_sdl.h>
|
|
|
|
|
|
void application::parseParameters(int argc, char *argv[])
|
|
void application::parseParameters(int argc, char *argv[])
|
|
{
|
|
{
|
|
@@ -24,6 +27,9 @@ void application::input()
|
|
SDL_Event event;
|
|
SDL_Event event;
|
|
while(SDL_PollEvent(&event))
|
|
while(SDL_PollEvent(&event))
|
|
{
|
|
{
|
|
|
|
+ //ImGui_ImplSDL2_ProcessEvent(&event);
|
|
|
|
+ //ImGuiIO &io = ImGui::GetIO();
|
|
|
|
+
|
|
switch(event.type)
|
|
switch(event.type)
|
|
{
|
|
{
|
|
case SDL_QUIT:
|
|
case SDL_QUIT:
|
|
@@ -50,6 +56,7 @@ void application::render()
|
|
graphics::clearScreen(0xFF056263);
|
|
graphics::clearScreen(0xFF056263);
|
|
graphics::draw::fillCircle(200, 200, 40, 0xFFFFFFFF);
|
|
graphics::draw::fillCircle(200, 200, 40, 0xFFFFFFFF);
|
|
graphics::draw::text(10, 10, graphics::makeColour(255, 12, 98), "Hello world!");
|
|
graphics::draw::text(10, 10, graphics::makeColour(255, 12, 98), "Hello world!");
|
|
|
|
+
|
|
graphics::renderFrame();
|
|
graphics::renderFrame();
|
|
}
|
|
}
|
|
|
|
|