imgui

FORK: Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
git clone https://git.neptards.moe/neptards/imgui.git
Log | Files | Refs

imgui_impl_allegro5.h (1608B)


      1 // dear imgui: Renderer + Platform Backend for Allegro 5
      2 // (Info: Allegro 5 is a cross-platform general purpose library for handling windows, inputs, graphics, etc.)
      3 
      4 // Implemented features:
      5 //  [X] Renderer: User texture binding. Use 'ALLEGRO_BITMAP*' as ImTextureID. Read the FAQ about ImTextureID!
      6 //  [X] Platform: Clipboard support (from Allegro 5.1.12)
      7 //  [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'.
      8 // Issues:
      9 //  [ ] Renderer: The renderer is suboptimal as we need to unindex our buffers and convert vertices manually.
     10 //  [ ] Platform: Missing gamepad support.
     11 
     12 // You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
     13 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
     14 // Read online: https://github.com/ocornut/imgui/tree/master/docs
     15 
     16 #pragma once
     17 #include "imgui.h"      // IMGUI_IMPL_API
     18 
     19 struct ALLEGRO_DISPLAY;
     20 union ALLEGRO_EVENT;
     21 
     22 IMGUI_IMPL_API bool     ImGui_ImplAllegro5_Init(ALLEGRO_DISPLAY* display);
     23 IMGUI_IMPL_API void     ImGui_ImplAllegro5_Shutdown();
     24 IMGUI_IMPL_API void     ImGui_ImplAllegro5_NewFrame();
     25 IMGUI_IMPL_API void     ImGui_ImplAllegro5_RenderDrawData(ImDrawData* draw_data);
     26 IMGUI_IMPL_API bool     ImGui_ImplAllegro5_ProcessEvent(ALLEGRO_EVENT* event);
     27 
     28 // Use if you want to reset your rendering device without losing Dear ImGui state.
     29 IMGUI_IMPL_API bool     ImGui_ImplAllegro5_CreateDeviceObjects();
     30 IMGUI_IMPL_API void     ImGui_ImplAllegro5_InvalidateDeviceObjects();