Инструмент трансформации
This commit is contained in:
27
include/TRS.h
Normal file
27
include/TRS.h
Normal 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
|
||||
Reference in New Issue
Block a user