SDEngine
Game Engine
Loading...
Searching...
No Matches
imgui_vla_config.h
Go to the documentation of this file.
1#pragma once
2#include <VLA/Vector.hpp>
3
4#define IM_VEC2_CLASS_EXTRA \
5 constexpr ImVec2(const VLA::Vector2f& v) : x(v[0]), y(v[1]) { \
6 } \
7 operator VLA::Vector2f() const { \
8 return {x, y}; \
9 }
10
11#define IM_VEC4_CLASS_EXTRA \
12 constexpr ImVec4(const VLA::Vector4f& v) : x(v[0]), y(v[1]), z(v[2]), w(v[3]) { \
13 } \
14 operator VLA::Vector4f() const { \
15 return {x, y, z, w}; \
16 }