Инструмент трансформации

This commit is contained in:
2023-04-04 16:46:50 +03:00
committed by re.kovalev
parent 329bea7124
commit 5981f9011f
4 changed files with 168 additions and 0 deletions

27
include/TRS.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef TRS_H
#define TRS_H
#define T_SENSITIVITY 0.001f
#include "Scene.h"
// Интерфейс инструмента
class TRS
{
public:
void render(GLuint64 selectedID, ShaderProgram &shaderProgram, UBO &material_buffer); // Рендер инструмента нужного типа для выбранного объекта
virtual void process(GLuint64 selectedID, GLuint etc, const glm::vec4& dpos) = 0; // Взаимодействие с инструментом
protected:
void init_etc(); // Инициализирует дополнительную информацию модели
Scene tool; // Модель
};
// Инструмент трансформации
class Transform : public TRS
{
public:
Transform();
virtual void process(GLuint64 selectedID, GLuint etc, const glm::vec4& dpos); // Взаимодействие с инструментом
};
#endif // TRS_H