File ImguiLuaInterface.h

namespace Gsage
class ImguiLuaInterface

Public Static Functions

static void addLuaBindings(sol::state_view &lua)

Add IMGUI bindings to the lua state

Parameters
  • lua: state to enrich with imgui bindings

class ImguiTextBuffer
#include <ImguiLuaInterface.h>

Imgui buffer that can be used by lua

Public Functions

ImguiTextBuffer(int size, const char *initialValue = "")
virtual ~ImguiTextBuffer()
std::string read() const

Read the buffer

char *read()

Read the buffer

bool write(const std::string &value)

Overwrite the buffer.

Parameters
  • value: to write

int size() const

Returns buffer size.

Private Members

char *mBuffer
int mSize