Moved imgui to last view.
This commit is contained in:
Родитель
2883be5c1a
Коммит
8790649495
|
@ -387,7 +387,7 @@ struct Imgui
|
|||
, m_textureHeight(512)
|
||||
, m_halfTexel(0.0f)
|
||||
, m_nvg(NULL)
|
||||
, m_view(31)
|
||||
, m_view(255)
|
||||
, m_viewWidth(0)
|
||||
, m_viewHeight(0)
|
||||
, m_currentFontIdx(0)
|
||||
|
|
|
@ -136,7 +136,7 @@ ImguiFontHandle imguiGetCurrentFont();
|
|||
ImguiFontHandle imguiCreate(const void* _data = NULL, uint32_t _size = 0, float _fontSize = 15.0f);
|
||||
void imguiDestroy();
|
||||
|
||||
void imguiBeginFrame(int32_t _mx, int32_t _my, uint8_t _button, int32_t _scroll, uint16_t _width, uint16_t _height, char _inputChar = 0, uint8_t _view = 31);
|
||||
void imguiBeginFrame(int32_t _mx, int32_t _my, uint8_t _button, int32_t _scroll, uint16_t _width, uint16_t _height, char _inputChar = 0, uint8_t _view = 255);
|
||||
void imguiEndFrame();
|
||||
|
||||
void imguiDrawText(int _x, int _y, ImguiTextAlign::Enum _align, const char* _text, uint32_t _argb);
|
||||
|
|
|
@ -81,7 +81,7 @@ struct OcornutImguiContext
|
|||
|
||||
void create(const void* _data, uint32_t _size, float _fontSize)
|
||||
{
|
||||
m_viewId = 31;
|
||||
m_viewId = 255;
|
||||
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.DisplaySize = ImVec2(1280.0f, 720.0f);
|
||||
|
|
|
@ -1386,7 +1386,7 @@ namespace bgfx
|
|||
}
|
||||
|
||||
// Init reserved part of view name.
|
||||
for (uint8_t ii = 0; ii < BGFX_CONFIG_MAX_VIEWS; ++ii)
|
||||
for (uint32_t ii = 0; ii < BGFX_CONFIG_MAX_VIEWS; ++ii)
|
||||
{
|
||||
bx::snprintf(s_viewName[ii], BGFX_CONFIG_MAX_VIEW_NAME_RESERVED+1, "%3d ", ii);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче