[nostalgia] Move geo types to Ox

This commit is contained in:
2023-05-30 20:33:06 -05:00
parent 4e0ce57594
commit 03a1a8abca
34 changed files with 147 additions and 973 deletions

View File

@@ -1,13 +1,13 @@
/*
* Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved.
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
*/
#pragma once
#include <ox/event/signal.hpp>
#include <ox/std/string.hpp>
#include <ox/std/vec.hpp>
#include <nostalgia/geo/vec.hpp>
#include <nostalgia/core/context.hpp>
#include "imguiuitl.hpp"
@@ -17,7 +17,7 @@ namespace nostalgia::studio {
class Popup {
private:
geo::Vec2 m_size;
ox::Vec2 m_size;
ox::String m_title;
public:
// emits path parameter
@@ -35,7 +35,7 @@ class Popup {
virtual void draw(core::Context *ctx) noexcept = 0;
protected:
constexpr void setSize(geo::Size sz) noexcept {
constexpr void setSize(ox::Size sz) noexcept {
m_size = {static_cast<float>(sz.width), static_cast<float>(sz.height)};
}
@@ -59,4 +59,4 @@ class Popup {
};
}
}

View File

@@ -1,13 +1,11 @@
/*
* Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved.
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
*/
#include <algorithm>
#include <imgui.h>
#include <nostalgia/geo/bounds.hpp>
#include "projectexplorer.hpp"
namespace nostalgia {