1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
-
-
- #ifndef _ROOM_MESH_H_
- #define _ROOM_MESH_H_
-
- #include <vector>
-
- #include "Mesh.h"
- #include "system/Shader.h"
-
- struct RoomVertexTR2 {
- int x, y, z;
- int light1, light2;
-
-
-
-
-
-
- unsigned int attributes;
- };
-
- class RoomMesh {
- public:
- RoomMesh(const std::vector<RoomVertexTR2>& vertices,
- const std::vector<IndexedRectangle>& rectangles,
- const std::vector<IndexedRectangle>& triangles);
- void prepare();
- void display(glm::mat4 MVP);
-
- private:
- std::vector<unsigned short> indicesBuff;
- std::vector<glm::vec3> verticesBuff;
- std::vector<unsigned int> texturesBuff;
- ShaderBuffer indices, vertices, uvs;
- };
-
- #endif
|