Initial integration of Mixer, Views and Source classes.

First tests with user interface and Mixing View
This commit is contained in:
brunoherbelin
2020-04-19 00:49:55 +02:00
parent c7a69c1ac8
commit 4f5a71970d
29 changed files with 1211 additions and 630 deletions

25
Mesh.h
View File

@@ -16,21 +16,34 @@
class Mesh : public Primitive {
public:
Mesh(const std::string& path, const std::string& texture = "");
~Mesh();
Mesh(const std::string& ply_path, const std::string& tex_path = "");
void init () override;
void draw (glm::mat4 modelview, glm::mat4 projection) override;
void accept (Visitor& v) override;
inline std::string getResource() const { return resource_; }
inline std::string getTexture() const { return texturefilename_; }
inline std::string meshPath() const { return mesh_resource_; }
inline std::string texturePath() const { return texture_resource_; }
protected:
std::string resource_;
std::string texturefilename_;
std::string mesh_resource_;
std::string texture_resource_;
uint textureindex_;
};
class Frame : public Node
{
Mesh *border_;
Mesh *icon_;
Mesh *shadow_;
public:
Frame();
void draw (glm::mat4 modelview, glm::mat4 projection) override;
glm::vec4 color;
};
#endif // MESH_H