Ocular Engine
PLYElementListParser.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_GRAPHICS_MESH_RESOURCE_LOADER_PLY_ELEMENT_LIST_PARSER__H__
19 #define __H__OCULAR_GRAPHICS_MESH_RESOURCE_LOADER_PLY_ELEMENT_LIST_PARSER__H__
20 
21 #include "PLYParser.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Graphics
36  {
41  {
42  public:
43 
45  virtual ~PLYElementListParser();
46 
47  virtual bool parse(std::string const& line, std::vector<Vertex>& vertices, std::vector<uint32_t>& indices, uint32_t& currVert, uint32_t& currIndex, Math::Vector3f& min, Math::Vector3f& max, bool isASCII = true) override;
48 
49  protected:
50 
51  private:
52 
53  void addEdgeFace(std::vector<uint32_t>& indices, uint32_t& currIndex) const;
54  void addTriangleFace(std::vector<uint32_t>& indices, uint32_t& currIndex) const;
55  void addQuadFace(std::vector<uint32_t>& indices, uint32_t& currIndex) const;
56 
57  uint32_t m_IndexBuffer[4];
58  };
59  }
63 }
68 //------------------------------------------------------------------------------------------
69 
70 #endif
Definition: PLYParser.hpp:45
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
virtual bool parse(std::string const &line, std::vector< Vertex > &vertices, std::vector< uint32_t > &indices, uint32_t &currVert, uint32_t &currIndex, Math::Vector3f &min, Math::Vector3f &max, bool isASCII=true) override
Definition: PLYElementListParser.cpp:48
Definition: PLYElementListParser.hpp:40