Skip to content

stanthesoupking/ImGui-Shade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dear ImGUI Shade Bindings

Shade bindings for the widely used Dear ImGui.

The included ImGui source files are from version 1.77, you may wish to replace these with a newer version. However I cannot guarantee everything will work properly if you do so.

Installation

Simply copy the src and include directories into an existing Shade project.

Usage

To use, you should call the following methods in your application:

#include "imgui.h"
#include "imgui_impl_shade.hpp"

void YourApplication::init()
{
    // Setup Dear ImGui context
    IMGUI_CHECKVERSION();
    ImGui::CreateContext();

    // Setup Dear ImGui style
    ImGui::StyleColorsDark();
    // ImGui::StyleColorsClassic();

    ImGui_ImplShade_Init(this);
}

void YourApplication::destroy()
{
    // Cleanup Dear ImGui
    ImGui_ImplShade_Shutdown();
    ImGui::DestroyContext();
}

void YourApplication::render()
{
    // Start the Dear ImGui frame
    ImGui_ImplShade_NewFrame();
    ImGui::NewFrame();

    // Show demo window
    ImGui::ShowDemoWindow();

    // Render
    ImGui::Render();
    ImGui_ImplShade_RenderDrawData(ImGui::GetDrawData());
}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published