mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Disallow concave shapes as geometry.
This commit is contained in:
@@ -57,14 +57,6 @@ public:
|
||||
Geometry &operator=(const Geometry &other);
|
||||
virtual ~Geometry();
|
||||
|
||||
/**
|
||||
* Returns number of vertices in the *polygon* defining the geometry.
|
||||
**/
|
||||
size_t getNumVertices() const
|
||||
{
|
||||
return polygon.size();
|
||||
}
|
||||
|
||||
const vertex &getVertex(size_t i) const;
|
||||
void setVertex(size_t i, const vertex &v);
|
||||
|
||||
@@ -81,7 +73,7 @@ public:
|
||||
/**
|
||||
* Returns the size of the vertex array.
|
||||
**/
|
||||
size_t getVertexArraySize() const
|
||||
size_t getVertexCount() const
|
||||
{
|
||||
return vertexCount;
|
||||
}
|
||||
@@ -100,10 +92,6 @@ public:
|
||||
};
|
||||
|
||||
private:
|
||||
void triangulate();
|
||||
|
||||
std::vector<vertex> polygon;
|
||||
|
||||
vertex *vertexArray;
|
||||
size_t vertexCount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user