Add Font BoundingBox calculation
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
namespace Copium
|
||||
{
|
||||
struct BoundingBox
|
||||
{
|
||||
union
|
||||
{
|
||||
struct { float l; float b; float r; float t; };
|
||||
struct { glm::vec2 lb; glm::vec2 rt; };
|
||||
struct { glm::vec4 lbrt; };
|
||||
};
|
||||
BoundingBox();
|
||||
BoundingBox(float all);
|
||||
BoundingBox(float l, float b, float r, float t);
|
||||
BoundingBox(glm::vec2 lb, glm::vec2 rt);
|
||||
|
||||
glm::vec2 GetSize() const;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user