Compare commits
2
Commits
1c17d3b398
...
01a90fdef7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01a90fdef7 | ||
|
|
c5c76f0033 |
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
# vim:filetype=python
|
# vim:filetype=python
|
||||||
|
|
||||||
env = Environment(LIBS = ['GL'])
|
env = Environment(LIBS = ['GL'], CXXFLAGS = ['-Wall'])
|
||||||
|
|
||||||
env.Program('driver', Glob('*.cc'))
|
env.Program('driver', Glob('*.cc'))
|
||||||
@@ -122,7 +122,7 @@ WFObj::~WFObj()
|
|||||||
|
|
||||||
void WFObj::clear()
|
void WFObj::clear()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < sizeof(m_vertices)/sizeof(m_vertices[0]); i++)
|
for (size_t i = 0; i < sizeof(m_vertices)/sizeof(m_vertices[0]); i++)
|
||||||
m_vertices[i].clear();
|
m_vertices[i].clear();
|
||||||
m_faces.clear();
|
m_faces.clear();
|
||||||
m_materials.clear();
|
m_materials.clear();
|
||||||
|
|||||||
@@ -92,9 +92,9 @@ protected:
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VertexRef() : vertex(0), texture(0), normal(0) {}
|
VertexRef() : vertex(0), texture(0), normal(0) {}
|
||||||
int vertex;
|
size_t vertex;
|
||||||
int texture;
|
size_t texture;
|
||||||
int normal;
|
size_t normal;
|
||||||
bool operator<(const VertexRef & other) const;
|
bool operator<(const VertexRef & other) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user