add renderer abstraction
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
// THIS FILE HAS BEEN AUTO-GENERATED BY THE 'DEAR BINDINGS' GENERATOR.
|
||||
// **DO NOT EDIT DIRECTLY**
|
||||
// https://github.com/dearimgui/dear_bindings
|
||||
|
||||
#include "imgui.h"
|
||||
#include "imgui_impl_glut.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
// Wrap this in a namespace to keep it separate from the C++ API
|
||||
// This define prevents #defines in the header getting defined again (as they are already in the normal header above),
|
||||
// and thus generating redefinition warnings
|
||||
#define DEAR_BINDINGS_INTERNAL_GLUE_CODE
|
||||
namespace cimgui
|
||||
{
|
||||
#include "dcimgui_impl_glut.h"
|
||||
}
|
||||
#undef DEAR_BINDINGS_INTERNAL_GLUE_CODE
|
||||
|
||||
// By-value struct conversions
|
||||
|
||||
static inline cimgui::ImVec2 ConvertFromCPP_ImVec2(const ::ImVec2& src)
|
||||
{
|
||||
cimgui::ImVec2 dest;
|
||||
dest.x = src.x;
|
||||
dest.y = src.y;
|
||||
return dest;
|
||||
}
|
||||
|
||||
static inline ::ImVec2 ConvertToCPP_ImVec2(const cimgui::ImVec2& src)
|
||||
{
|
||||
::ImVec2 dest;
|
||||
dest.x = src.x;
|
||||
dest.y = src.y;
|
||||
return dest;
|
||||
}
|
||||
|
||||
static inline cimgui::ImVec4 ConvertFromCPP_ImVec4(const ::ImVec4& src)
|
||||
{
|
||||
cimgui::ImVec4 dest;
|
||||
dest.x = src.x;
|
||||
dest.y = src.y;
|
||||
dest.z = src.z;
|
||||
dest.w = src.w;
|
||||
return dest;
|
||||
}
|
||||
|
||||
static inline ::ImVec4 ConvertToCPP_ImVec4(const cimgui::ImVec4& src)
|
||||
{
|
||||
::ImVec4 dest;
|
||||
dest.x = src.x;
|
||||
dest.y = src.y;
|
||||
dest.z = src.z;
|
||||
dest.w = src.w;
|
||||
return dest;
|
||||
}
|
||||
|
||||
static inline cimgui::ImTextureRef ConvertFromCPP_ImTextureRef(const ::ImTextureRef& src)
|
||||
{
|
||||
cimgui::ImTextureRef dest;
|
||||
dest._TexData = reinterpret_cast<cimgui::ImTextureData*>(src._TexData);
|
||||
dest._TexID = src._TexID;
|
||||
return dest;
|
||||
}
|
||||
|
||||
static inline ::ImTextureRef ConvertToCPP_ImTextureRef(const cimgui::ImTextureRef& src)
|
||||
{
|
||||
::ImTextureRef dest;
|
||||
dest._TexData = reinterpret_cast<::ImTextureData*>(src._TexData);
|
||||
dest._TexID = src._TexID;
|
||||
return dest;
|
||||
}
|
||||
|
||||
static inline cimgui::ImColor ConvertFromCPP_ImColor(const ::ImColor& src)
|
||||
{
|
||||
cimgui::ImColor dest;
|
||||
dest.Value.x = src.Value.x;
|
||||
dest.Value.y = src.Value.y;
|
||||
dest.Value.z = src.Value.z;
|
||||
dest.Value.w = src.Value.w;
|
||||
return dest;
|
||||
}
|
||||
|
||||
static inline ::ImColor ConvertToCPP_ImColor(const cimgui::ImColor& src)
|
||||
{
|
||||
::ImColor dest;
|
||||
dest.Value.x = src.Value.x;
|
||||
dest.Value.y = src.Value.y;
|
||||
dest.Value.z = src.Value.z;
|
||||
dest.Value.w = src.Value.w;
|
||||
return dest;
|
||||
}
|
||||
|
||||
// Function stubs
|
||||
|
||||
#ifndef IMGUI_DISABLE
|
||||
|
||||
CIMGUI_IMPL_API bool cimgui::cImGui_ImplGLUT_Init(void)
|
||||
{
|
||||
return ::ImGui_ImplGLUT_Init();
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_InstallFuncs(void)
|
||||
{
|
||||
::ImGui_ImplGLUT_InstallFuncs();
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_Shutdown(void)
|
||||
{
|
||||
::ImGui_ImplGLUT_Shutdown();
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_NewFrame(void)
|
||||
{
|
||||
::ImGui_ImplGLUT_NewFrame();
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_ReshapeFunc(int w, int h)
|
||||
{
|
||||
::ImGui_ImplGLUT_ReshapeFunc(w, h);
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_MotionFunc(int x, int y)
|
||||
{
|
||||
::ImGui_ImplGLUT_MotionFunc(x, y);
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_MouseFunc(int button, int state, int x, int y)
|
||||
{
|
||||
::ImGui_ImplGLUT_MouseFunc(button, state, x, y);
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y)
|
||||
{
|
||||
::ImGui_ImplGLUT_MouseWheelFunc(button, dir, x, y);
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_KeyboardFunc(unsigned char c, int x, int y)
|
||||
{
|
||||
::ImGui_ImplGLUT_KeyboardFunc(c, x, y);
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_KeyboardUpFunc(unsigned char c, int x, int y)
|
||||
{
|
||||
::ImGui_ImplGLUT_KeyboardUpFunc(c, x, y);
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_SpecialFunc(int key, int x, int y)
|
||||
{
|
||||
::ImGui_ImplGLUT_SpecialFunc(key, x, y);
|
||||
}
|
||||
|
||||
CIMGUI_IMPL_API void cimgui::cImGui_ImplGLUT_SpecialUpFunc(int key, int x, int y)
|
||||
{
|
||||
::ImGui_ImplGLUT_SpecialUpFunc(key, x, y);
|
||||
}
|
||||
|
||||
#endif // #ifndef IMGUI_DISABLE
|
||||
Reference in New Issue
Block a user