mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-11-19 06:15:58 +00:00
win32 compile and project fixes, made tool UI more clear
This commit is contained in:
@@ -66,7 +66,6 @@ static void addGfxCmdScissor(int x, int y, int w, int h)
|
||||
cmd.rect.h = (short)h;
|
||||
}
|
||||
|
||||
/*
|
||||
static void addGfxCmdRect(int x, int y, int w, int h, unsigned int color)
|
||||
{
|
||||
if (g_gfxCmdQueueSize >= GFXCMD_QUEUE_SIZE)
|
||||
@@ -81,7 +80,6 @@ static void addGfxCmdRect(int x, int y, int w, int h, unsigned int color)
|
||||
cmd.rect.h = (short)h;
|
||||
cmd.rect.r = 0;
|
||||
}
|
||||
*/
|
||||
|
||||
static void addGfxCmdRoundedRect(int x, int y, int w, int h, int r, unsigned int color)
|
||||
{
|
||||
@@ -627,6 +625,17 @@ void imguiSeparator()
|
||||
g_state.widgetY -= DEFAULT_SPACING*3;
|
||||
}
|
||||
|
||||
void imguiSeparatorLine()
|
||||
{
|
||||
int x = g_state.widgetX;
|
||||
int y = g_state.widgetY - DEFAULT_SPACING*2;
|
||||
int w = g_state.widgetW;
|
||||
int h = 1;
|
||||
g_state.widgetY -= DEFAULT_SPACING*4;
|
||||
|
||||
addGfxCmdRect(x, y, w, h, imguiRGBA(255,255,255,32));
|
||||
}
|
||||
|
||||
void imguiDrawText(int x, int y, int align, const char* text, unsigned int color)
|
||||
{
|
||||
addGfxCmdText(x, y, align, text, color);
|
||||
|
||||
Reference in New Issue
Block a user