Terminus
indextriple.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 namespace terminus
6 {
7 
14 {
15 public:
16  IndexTriple(std::string positionSpec, std::string textureSpec, std::string normalSpec);
17  ~IndexTriple();
18 
19  int positionIndex() const;
20  int textureIndex() const;
21  int normalIndex() const;
22  bool validTexture() const;
23  bool validNormal() const;
24 
29  bool operator<(const IndexTriple & compareTriple) const;
30 
35  bool operator==(const IndexTriple & compareTriple) const;
36 
37 protected:
41 
44 };
45 
46 } //terminus
int normalIndex() const
Definition: indextriple.cpp:52
bool operator==(const IndexTriple &compareTriple) const
Returns true, if the compared attributes position, texture and normal have the same value between the...
Definition: indextriple.cpp:35
bool m_validTexture
Definition: indextriple.h:42
int m_normalIndex
Definition: indextriple.h:40
bool m_validNormal
Definition: indextriple.h:43
The IndexTriple class is used as a temporary geometry data storage, while parsing ...
Definition: indextriple.h:13
int m_textureIndex
Definition: indextriple.h:39
int m_positionIndex
Definition: indextriple.h:38
~IndexTriple()
Definition: indextriple.cpp:24
IndexTriple(std::string positionSpec, std::string textureSpec, std::string normalSpec)
Definition: indextriple.cpp:10
int positionIndex() const
Definition: indextriple.cpp:42
bool validTexture() const
Definition: indextriple.cpp:57
int textureIndex() const
Definition: indextriple.cpp:47
Definition: eventhandler.cpp:18
bool validNormal() const
Definition: indextriple.cpp:62
bool operator<(const IndexTriple &compareTriple) const
Returns true, if one of the attributes position, texture, or normal of the comparedTriple is larger...
Definition: indextriple.cpp:28