mirror of https://github.com/auygun/kaliber.git
Fix for compiler warnings
This commit is contained in:
parent
b8e7957d91
commit
8b47314e72
|
@ -38,7 +38,7 @@ class Engine : public PlatformObserver {
|
||||||
using CreateImageCB = std::function<std::unique_ptr<Image>()>;
|
using CreateImageCB = std::function<std::unique_ptr<Image>()>;
|
||||||
|
|
||||||
Engine(Platform* platform);
|
Engine(Platform* platform);
|
||||||
~Engine();
|
~Engine() noexcept override;
|
||||||
|
|
||||||
static Engine& Get();
|
static Engine& Get();
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ void ImguiBackend::Render() {
|
||||||
ImGui::Render();
|
ImGui::Render();
|
||||||
|
|
||||||
ImDrawData* draw_data = ImGui::GetDrawData();
|
ImDrawData* draw_data = ImGui::GetDrawData();
|
||||||
if (draw_data->CmdListsCount < -0)
|
if (draw_data->CmdListsCount <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float L = draw_data->DisplayPos.x;
|
float L = draw_data->DisplayPos.x;
|
||||||
|
|
|
@ -7,6 +7,8 @@ class InputEvent;
|
||||||
|
|
||||||
class PlatformObserver {
|
class PlatformObserver {
|
||||||
public:
|
public:
|
||||||
|
virtual ~PlatformObserver() = default;
|
||||||
|
|
||||||
virtual void OnWindowCreated() = 0;
|
virtual void OnWindowCreated() = 0;
|
||||||
virtual void OnWindowDestroyed() = 0;
|
virtual void OnWindowDestroyed() = 0;
|
||||||
virtual void OnWindowResized(int width, int height) = 0;
|
virtual void OnWindowResized(int width, int height) = 0;
|
||||||
|
|
Loading…
Reference in New Issue