The Vertex struct is now recognized as POD by C++, also fixed the name to be consistent with other love structs

This commit is contained in:
Alex Szpakowski
2013-09-24 11:09:18 -03:00
parent 8d5ddb9e34
commit 5de43a7207
24 changed files with 127 additions and 129 deletions
+5 -5
View File
@@ -52,7 +52,7 @@ public:
/**
* Creates a new geometry object from a std::vector<vertex>.
**/
Geometry(const std::vector<vertex> &polygon, const std::vector<uint16> &elements, DrawMode mode = DRAW_MODE_FAN);
Geometry(const std::vector<Vertex> &polygon, const std::vector<uint16> &elements, DrawMode mode = DRAW_MODE_FAN);
/**
* Creates a new geometry from (texture) quad information.
@@ -69,13 +69,13 @@ public:
Geometry &operator=(const Geometry &other);
virtual ~Geometry();
const vertex &getVertex(size_t i) const;
void setVertex(size_t i, const vertex &v);
const Vertex &getVertex(size_t i) const;
void setVertex(size_t i, const Vertex &v);
/**
* Returns a pointer to the vertex array.
**/
inline const vertex *getVertexArray() const
inline const Vertex *getVertexArray() const
{
return vertexArray;
}
@@ -126,7 +126,7 @@ public:
private:
vertex *vertexArray;
Vertex *vertexArray;
size_t vertexCount;
uint16 *elementArray;