remove ui namespace which is not really used, move CameraData in camera_modes.h to avoid the inclusion of canva.h
This commit is contained in:
@@ -28,9 +28,9 @@ void NodeColorWheel::init_controls()
|
||||
|
||||
void NodeColorWheel::loaded()
|
||||
{
|
||||
m_circle.create<64>(.5, .4, ui::Circle::kUVMapping::Tube);
|
||||
m_circle.create<64>(.5, .4, Circle::kUVMapping::Tube);
|
||||
m_cur_hue.create<16>(.05, 0.04);
|
||||
m_cur_quad.create<16>(.04, 0.03, ui::Circle::kUVMapping::Tube);
|
||||
m_cur_quad.create<16>(.04, 0.03, Circle::kUVMapping::Tube);
|
||||
|
||||
float quad_scale = glm::sin(glm::radians(45.f)) * 0.8f;
|
||||
m_quad.create<1>(quad_scale, quad_scale);
|
||||
@@ -61,8 +61,6 @@ void NodeColorWheel::loaded()
|
||||
|
||||
void NodeColorWheel::draw()
|
||||
{
|
||||
using namespace ui;
|
||||
|
||||
glDisable(GL_BLEND);
|
||||
ShaderManager::use(kShader::ColorHue);
|
||||
ShaderManager::u_mat4(kShaderUniform::MVP, m_mvp * glm::eulerAngleZ(glm::radians(-90.f)));
|
||||
|
||||
Reference in New Issue
Block a user