Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
imgui-SFML.h
✓ #include <imgui-SFML.h>
Initialize ImGui with SFML, render a simple window.
#include <SFML/Graphics.hpp>
#include <imgui-SFML.h>
#include <imgui.h>
int main() {
sf::RenderWindow window(sf::VideoMode(800, 600), "ImGui + SFML");
ImGui::SFML::Init(window);
sf::Clock deltaClock;
while (window.isOpen()) {
sf::Event event;
while (window.pollEvent(event)) {
ImGui::SFML::ProcessEvent(event);
if (event.type == sf::Event::Closed)
window.close();
}
ImGui::SFML::Update(window, deltaClock.restart());
ImGui::Begin("Hello");
ImGui::Text("Hello, world!");
ImGui::End();
window.clear();
ImGui::SFML::Render(window);
window.display();
}
ImGui::SFML::Shutdown();
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.