LibrePCB Developers Documentation
OpenGlObject Class Referenceabstract

Represents one 3D object in an OpenGL 3D model. More...

#include <openglobject.h>

+ Inheritance diagram for OpenGlObject:
+ Collaboration diagram for OpenGlObject:

Public Member Functions

 OpenGlObject () noexcept=default
 
 OpenGlObject (const OpenGlObject &other) noexcept=default
 
virtual ~OpenGlObject () noexcept=default
 
virtual void draw (QOpenGLFunctions &gl, QOpenGLShaderProgram &program) noexcept=0
 

Detailed Description

Represents one 3D object in an OpenGL 3D model.

Constructor & Destructor Documentation

◆ OpenGlObject() [1/2]

OpenGlObject ( )
defaultnoexcept

◆ OpenGlObject() [2/2]

OpenGlObject ( const OpenGlObject other)
defaultnoexcept

◆ ~OpenGlObject()

virtual ~OpenGlObject ( )
virtualdefaultnoexcept

Member Function Documentation

◆ draw()

virtual void draw ( QOpenGLFunctions &  gl,
QOpenGLShaderProgram &  program 
)
pure virtualnoexcept

Implemented in OpenGlTriangleObject.


The documentation for this class was generated from the following file: