Definition at line 26 of file program.h.
◆ Program()
GUI::RealSpace::Program::Program |
( |
| ) |
|
◆ init()
void GUI::RealSpace::Program::init |
( |
| ) |
|
|
private |
Definition at line 43 of file program.cpp.
50 addShaderFromSourceFile(QOpenGLShader::Vertex,
":/shaders/vertex_shader.vert");
52 throw std::runtime_error(
"Vertex shader not loaded");
55 addShaderFromSourceFile(QOpenGLShader::Fragment,
":/shaders/fragment_shader.frag");
57 throw std::runtime_error(
"Fragment shader not loaded");
59 bindAttributeLocation(
"vertex", 0);
60 bindAttributeLocation(
"normal", 1);
61 bindAttributeLocation(
"axiscolor", 2);
71 ambient = uniformLocation(
"ambient");
72 eye = uniformLocation(
"eye");
73 locAxis = uniformLocation(
"axis");
References ambient, doInit, eye, locAxis, locColor, locLightPos1, locMatModel, locMatObject, and locMatProj.
Referenced by GUI::RealSpace::Canvas::paintGL().
◆ needsInit()
void GUI::RealSpace::Program::needsInit |
( |
| ) |
|
|
private |
◆ set() [1/3]
void GUI::RealSpace::Program::set |
( |
Camera const & |
camera | ) |
|
|
private |
Definition at line 77 of file program.cpp.
83 setUniformValue(
eye, camera.getPos().eye);
static constexpr float AMBIENT
References AMBIENT, ambient, GUI::RealSpace::Camera::Position::eye, eye, GUI::RealSpace::Camera::getPos(), GUI::RealSpace::Camera::lightPosRotated1, locLightPos1, locMatModel, locMatProj, GUI::RealSpace::Camera::matModel, and GUI::RealSpace::Camera::matProj.
Referenced by GUI::RealSpace::Canvas::draw(), and GUI::RealSpace::Canvas::paintGL().
◆ set() [2/3]
void GUI::RealSpace::Program::set |
( |
QColor const & |
color | ) |
|
|
private |
◆ set() [3/3]
void GUI::RealSpace::Program::set |
( |
QMatrix4x4 const & |
mat | ) |
|
|
private |
◆ setAxis()
void GUI::RealSpace::Program::setAxis |
( |
bool const & |
axis_ | ) |
|
|
private |
◆ setMatModel()
void GUI::RealSpace::Program::setMatModel |
( |
QMatrix4x4 const & |
mat | ) |
|
|
private |
◆ Canvas
◆ ambient
int GUI::RealSpace::Program::ambient |
|
private |
◆ doInit
bool GUI::RealSpace::Program::doInit |
|
private |
◆ eye
int GUI::RealSpace::Program::eye |
|
private |
◆ locAxis
int GUI::RealSpace::Program::locAxis |
|
private |
◆ locColor
int GUI::RealSpace::Program::locColor |
|
private |
◆ locLightPos1
int GUI::RealSpace::Program::locLightPos1 |
|
private |
◆ locMatModel
int GUI::RealSpace::Program::locMatModel |
|
private |
◆ locMatObject
int GUI::RealSpace::Program::locMatObject |
|
private |
◆ locMatProj
int GUI::RealSpace::Program::locMatProj |
|
private |
The documentation for this class was generated from the following files:
- /home/build/builds/o5h8MZZm/0/mlz/bornagain/GUI/ba3d/view/program.h
- /home/build/builds/o5h8MZZm/0/mlz/bornagain/GUI/ba3d/view/program.cpp