Add XCUI new editor sandbox phase 1
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
namespace XCEngine {
|
||||
namespace UI {
|
||||
|
||||
enum class UITextureHandleKind : std::uint8_t {
|
||||
ImGuiDescriptor = 0,
|
||||
ShaderResourceView
|
||||
};
|
||||
|
||||
struct UIPoint {
|
||||
float x = 0.0f;
|
||||
float y = 0.0f;
|
||||
@@ -46,6 +51,7 @@ struct UITextureHandle {
|
||||
std::uintptr_t nativeHandle = 0;
|
||||
std::uint32_t width = 0;
|
||||
std::uint32_t height = 0;
|
||||
UITextureHandleKind kind = UITextureHandleKind::ImGuiDescriptor;
|
||||
|
||||
constexpr bool IsValid() const {
|
||||
return nativeHandle != 0 && width > 0 && height > 0;
|
||||
|
||||
Reference in New Issue
Block a user