Changeset 301c90a in opengl-game for IMGUI


Ignore:
Timestamp:
Mar 13, 2021, 10:37:06 PM (3 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
d255d52
Parents:
187b0f5
Message:

Implement the start of a generic UI system built on top of IMGUI, which can reposition elements when the screen is resized, and use it in VulkanGame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • IMGUI/imconfig.h

    r187b0f5 r301c90a  
    108108}
    109109*/
     110
     111#include <glm/glm.hpp>
     112
     113#define IM_VEC2_CLASS_EXTRA                                                 \
     114        ImVec2(const glm::vec2& f) { x = f.x; y = f.y; }                       \
     115        operator glm::vec2() const { return glm::vec2(x,y); }
Note: See TracChangeset for help on using the changeset viewer.