#include "DrawCommandWrapper.h" #include "WrapperConverter.h" #include "imguiWrappedHeader.h" unsigned int iggDrawCommandIdxOffset(IggDrawCmd handle) { ImDrawCmd *cmd = reinterpret_cast(handle); return cmd->IdxOffset; } void iggDrawCommandGetVertexOffset(IggDrawCmd handle, unsigned int *count) { ImDrawCmd *cmd = reinterpret_cast(handle); *count = cmd->VtxOffset; } void iggDrawCommandGetElementCount(IggDrawCmd handle, unsigned int *count) { ImDrawCmd *cmd = reinterpret_cast(handle); *count = cmd->ElemCount; } void iggDrawCommandGetClipRect(IggDrawCmd handle, IggVec4 *rect) { ImDrawCmd *cmd = reinterpret_cast(handle); exportValue(*rect, cmd->ClipRect); } void iggDrawCommandGetTextureID(IggDrawCmd handle, IggTextureID *id) { ImDrawCmd *cmd = reinterpret_cast(handle); *id = reinterpret_cast(cmd->TextureId); } IggBool iggDrawCommandHasUserCallback(IggDrawCmd handle) { ImDrawCmd *cmd = reinterpret_cast(handle); return (cmd->UserCallback != 0) ? 1 : 0; } void iggDrawCommandCallUserCallback(IggDrawCmd handle, IggDrawList listHandle) { ImDrawCmd *cmd = reinterpret_cast(handle); ImDrawList *list = reinterpret_cast(listHandle); cmd->UserCallback(list, cmd); }