mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Initial integration of Mixer, Views and Source classes.
First tests with user interface and Mixing View
This commit is contained in:
25
Mesh.h
25
Mesh.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user