Practical Tools for Simple Design
Loading...
Searching...
No Matches
Drawable.hpp
1
#ifndef CORE_DRAWABLE_HPP
2
#define CORE_DRAWABLE_HPP
3
4
#include "pch.hpp"
// IWYU pragma: export
5
6
#include "Util/Transform.hpp"
7
8
namespace
Core
{
9
struct
Matrices
{
10
glm::mat4 m_Model;
11
glm::mat4 m_Projection;
12
};
13
14
class
Drawable
{
15
public
:
16
virtual
~Drawable
() =
default
;
17
virtual
void
Draw(
const
Core::Matrices
&data) = 0;
18
virtual
glm::vec2 GetSize()
const
= 0;
19
};
20
}
// namespace Core
21
22
#endif
Core::Drawable
Definition
Drawable.hpp:14
Core
Core functionality of the framework
Definition
Context.hpp:10
Core::Matrices
Definition
Drawable.hpp:9
include
Core
Drawable.hpp
Generated by
1.14.0