Skip to content
/ sol_gui Public

Simple wrapper for imgui to create a standalone app.

License

Notifications You must be signed in to change notification settings

Szahu/sol_gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sol_gui

A simple wrapper for imgui using SDL3 and OpenGL implementations.

Example Setup

Run this to download the code and dependancies:

git clone https://github.com/Szahu/sol_gui.git
git submodule update --init --recursive

Example CMakeLists.txt:

cmake_minimum_required(VERSION 3.22)

project(test_app)

add_subdirectory(sol_gui)

add_executable(${PROJECT_NAME} main.cc)
target_link_libraries(${PROJECT_NAME} PUBLIC sol_gui)
include_directories(sol_gui/include)

Then to build (The first time you build the code you must copy the SDL3.dll into executable's folder!):

mkdir build
cd build
cmake ..
cmake --build .

Example of main.cc:

#include "sol_gui.h"

int main(int argc, char** argv) {

    RunSolApplication({600, 400, "window title"}, [] () {
        bool show_demo = true;
        ImGui::ShowDemoWindow(&show_demo);
    });

    return 0;
}

About

Simple wrapper for imgui to create a standalone app.

Topics

Resources

License

Stars

Watchers

Forks