Skip to content
Snippets Groups Projects
Select Git revision
  • 658d2f6b858246e720f08047946871b87baf6ea5
  • master default protected
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.19
  • 1.0.18
  • 1.0.17
  • 1.0.16
  • 1.0.15
  • 1.0.14
  • 1.0.13
  • 1.0.12
  • 1.0.10
  • 1.0.9
  • 1.0.8
22 results

Home.js

Blame
  • Forked from KSZK / DevTeam / kszkepzes / old / kszkepzes-frontend
    Source project has a limited visibility.
    ObjGeometry.h 661 B
    #ifndef BRAVE2_OBJGEOMETRY_H
    #define BRAVE2_OBJGEOMETRY_H
    
    
    #include "../utils/math.h"
    #include "../objects/Object.h"
    #include "../utils/OBJReader.h"
    
    
    // This class assumes that the mesh is made up entirely of triangles
    // this is important for the GetVertexDataByUV function
    class ObjGeometry : public Geometry {
        std::string objPath;
        OBJReader objReader;
    
    public:
        //TODO read every data from OBJ file
        ObjGeometry(const std::string &objPath);
    
        void Initialize();
    
        void Draw() override;
    
        // Assumes that the mesh is made up of triangles
        VertexData GetVertexDataByUV(float u, float v) override;
    };
    
    
    #endif //BRAVE2_OBJGEOMETRY_H