-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb2d8e8
commit 033c6c4
Showing
13 changed files
with
147 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
[requires] | ||
benchmark/1.8.3 | ||
gtest/1.14.0 | ||
sfml/2.6.1 | ||
|
||
[generators] | ||
CMakeDeps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// Created by nathan on 7/3/24. | ||
// | ||
|
||
#ifndef UNLOGIC_GLAREAEX_H | ||
#define UNLOGIC_GLAREAEX_H | ||
|
||
#include <gtkmm.h> | ||
#include "graphic/RenderTarget.h" | ||
|
||
namespace unlogic | ||
{ | ||
class GlAreaEx : public Gtk::GLArea, public mf::RenderTarget | ||
{ | ||
public: | ||
mf::Vector2u GetSize() const override | ||
{ | ||
return {(unsigned)this->get_width(), (unsigned)this->get_height()}; | ||
} | ||
}; | ||
} // unlogic | ||
|
||
#endif //UNLOGIC_GLAREAEX_H |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
#ifndef UNLOGIC_MATH_H | ||
#define UNLOGIC_MATH_H | ||
|
||
#include "graphic/Color.h" | ||
|
||
namespace mf | ||
{ | ||
template<typename T> | ||
struct Vector | ||
{ | ||
T x; | ||
T y; | ||
|
||
Vector(T x, T y) : x(x), y(y) {} | ||
}; | ||
|
||
typedef Vector<float> Vector2f; | ||
typedef Vector<double> Vector2d; | ||
typedef Vector<int> Vector2i; | ||
typedef Vector<unsigned> Vector2u; | ||
|
||
struct Vertex | ||
{ | ||
Vector2f position; | ||
Color color; | ||
|
||
Vertex(Vector2f position, Color color = Color::Red) : position(std::move(position)), color(std::move(color)) {} | ||
}; | ||
} | ||
|
||
#endif //UNLOGIC_MATH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters