#include <IDrawable.h>
|
| virtual void | SetContext (QOpenGLContext *contextPtr)=0 |
| |
| virtual void | DrawGl (QOpenGLShaderProgram &program)=0 |
| |
| virtual void | Draw (QPainter &painter)=0 |
| |
Basic drawable object interface
Definition at line 24 of file IDrawable.h.
◆ Draw()
| virtual void imt3dview::IDrawable::Draw |
( |
QPainter & |
painter | ) |
|
|
pure virtual |
Draw the shape using painter.
◆ DrawGl()
| virtual void imt3dview::IDrawable::DrawGl |
( |
QOpenGLShaderProgram & |
program | ) |
|
|
pure virtual |
Draw the shape using the given shader program and available OpenGL functions.
◆ SetContext()
| virtual void imt3dview::IDrawable::SetContext |
( |
QOpenGLContext * |
contextPtr | ) |
|
|
pure virtual |
Set used OpenGL context for the drawing.