mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Add EdgeShape:set/getNext/PreviousVertex. ChainShape:setNext/PreviousVertex can now take no arguments to disable ghost vertices.
Resolves issue #1191.
This commit is contained in:
@@ -47,6 +47,14 @@ public:
|
||||
|
||||
virtual ~EdgeShape();
|
||||
|
||||
void setNextVertex(float x, float y);
|
||||
void setNextVertex();
|
||||
bool getNextVertex(float &x, float &y) const;
|
||||
|
||||
void setPreviousVertex(float x, float y);
|
||||
void setPreviousVertex();
|
||||
bool getPreviousVertex(float &x, float &y) const;
|
||||
|
||||
/**
|
||||
* Returns the transformed points of the edge shape.
|
||||
* This function is useful for debug drawing and such.
|
||||
|
||||
Reference in New Issue
Block a user