From 9aa0015747962429c9f42bc8d75b2447116747a7 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Mon, 9 Sep 2024 15:20:36 -0500 Subject: Changed rlimgui to be a git submodule --- vendor/rlImGui-main/examples/simple.cpp | 59 --------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 vendor/rlImGui-main/examples/simple.cpp (limited to 'vendor/rlImGui-main/examples/simple.cpp') diff --git a/vendor/rlImGui-main/examples/simple.cpp b/vendor/rlImGui-main/examples/simple.cpp deleted file mode 100644 index 849ecef..0000000 --- a/vendor/rlImGui-main/examples/simple.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************************* -* -* raylib-extras [ImGui] example - Simple Integration -* -* This is a simple ImGui Integration -* It is done using C++ but with C style code -* It can be done in C as well if you use the C ImGui wrapper -* https://github.com/cimgui/cimgui -* -* Copyright (c) 2021 Jeffery Myers -* -********************************************************************************************/ - -#include "raylib.h" -#include "raymath.h" - -#include "imgui.h" -#include "rlImGui.h" - -int main(int argc, char* argv[]) -{ - // Initialization - //-------------------------------------------------------------------------------------- - int screenWidth = 1280; - int screenHeight = 800; - - SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_VSYNC_HINT | FLAG_WINDOW_RESIZABLE); - InitWindow(screenWidth, screenHeight, "raylib-Extras [ImGui] example - simple ImGui Demo"); - SetTargetFPS(144); - rlImGuiSetup(true); - - // Main game loop - while (!WindowShouldClose()) // Detect window close button or ESC key - { - BeginDrawing(); - ClearBackground(DARKGRAY); - - // start ImGui Conent - rlImGuiBegin(); - - // show ImGui Content - bool open = true; - ImGui::ShowDemoWindow(&open); - - // end ImGui Content - rlImGuiEnd(); - - EndDrawing(); - //---------------------------------------------------------------------------------- - } - rlImGuiShutdown(); - - // De-Initialization - //-------------------------------------------------------------------------------------- - CloseWindow(); // Close window and OpenGL context - //-------------------------------------------------------------------------------------- - - return 0; -} \ No newline at end of file -- cgit v1.2.3