|
class | Axes |
| Class to render axis lines in OpenGL. All axis have the same color. Length is both positive and negative direction. More...
|
|
class | Color |
| Color class used in vertex arrays and a layout of 4 x GLfloat. More...
|
|
class | Cone |
| Class to render a cone in OpenGL. Height of the cone is along the Z-axis where the tip is at (0, 0, 0). More...
|
|
class | Cube |
| Class to render a cube with 6 different colored faces and normals for reflection. Center of the cube is in (0,0,0). More...
|
|
class | Cylinder |
| Class to render a cylinder in OpenGL. Has a single color. The height of the cone is along the Z-axis where the tip is at (0, 0, 0). More...
|
|
class | DemoRenderer |
|
class | DemoScene |
|
class | Disk |
| Class to render a circle in OpenGL. More...
|
|
class | Dynamic |
| Dynamic object . More...
|
|
class | Helper |
| Keeps track of color. More...
|
|
class | Layers |
| Creates and holds the layers of the loaded drawings. More...
|
|
class | Line |
| Class to render a line in OpenGL. More...
|
|
class | Matrix |
| A 4x4 matrix class used in arrays and has a layout of 16x GLfloat. More...
|
|
class | NipscanRenderer |
|
class | NipscanScene |
|
class | Normals |
| Class to render Normals from another vertex array. More...
|
|
class | Rectangle |
| Class to render a rectangle in OpenGL. The height of the cone is along the Z-axis where the tip is at (0, 0, 0). More...
|
|
class | SceneInterface |
| Base class for the interface. More...
|
|
class | SceneServer |
| Server for color palettes used in images for coloring on basis of index. More...
|
|
class | SceneServerPropertyPage |
|
class | ScopedCulling |
| Class to enable culling in a particular scope only. More...
|
|
class | ScopedMatrix |
| Pushes and pops a matrix for the scope it is in. More...
|
|
class | ShaderProgram |
| Shader program having a default vertex and fragment shader. More...
|
|
class | Sphere |
| Class to render a sphere in OpenGL. The center of the sphere is in (0,0,0). Has a single color. More...
|
|
class | Tube |
| Class to render a cylinder in OpenGL. Height of the cone is along the Z-axis where the tip is at (0, 0, 0). More...
|
|
class | TVertexArray |
| OpenGL base class and wrapper template for vertex arrays. Automates most of the things needed for primitive objects. More...
|
|
class | VertexArray |
| OpenGL base class and wrapper for vertex arrays. More...
|
|
class | VertexArrayBase |
| Base class for vertex-array derived classes. More...
|
|
|
typedef std::array< GLfloat, 16 > | matrix4x4f |
| Type which corresponds with a GLSL type and used to implement Vertex structures.
|
|
typedef std::array< GLfloat, 2 > | vector2f |
| Type which corresponds with a GLSL type and used to implement Vertex structures.
|
|
typedef std::array< GLfloat, 3 > | vector3f |
| Type which corresponds with a GLSL type and used to implement Vertex structures.
|
|
typedef std::array< GLfloat, 4 > | vector4f |
| Type which corresponds with a GLSL type and used to implement Vertex structures.
|
|
typedef std::array< GLdouble, 16 > | matrix4x4d |
| Type which corresponds with a GLSL type and used to implement Vertex structures.
|
|
typedef std::array< GLdouble, 3 > | vector3d |
| Type which corresponds with a GLSL type and used to implement Vertex structures.
|
|
typedef std::array< GLdouble, 4 > | vector4d |
| Type which corresponds with a GLSL type and used to implement Vertex structures.
|
|
typedef QFlags< ECullingFlag > | CullingState |
| Type to contain bitmapped culling settings.
|
|
|
QDebug | operator<< (QDebug dbg, const Color &color) |
|
_XGL_FUNC void | setCullingState (QOpenGLFunctions *funcs, CullingState state, CullingState current={cfIgnore}) |
|
_XGL_FUNC QMatrix4x4 | getPerspectiveMatrix (float fov_y, float aspect, float near_z, float far_z) |
| createPerspectiveMatrix Generates a perspective projection matrix using QMatrix4x4. This function calculates the perspective projection matrix, which is used to transform 3D coordinates into 2D clip space. This transformation is essential for rendering 3D scenes correctly on a 2D screen. The matrix is designed to simulate the effect of perspective, where objects appear smaller the farther away they are.
|
|
_XGL_FUNC matrix4x4f | getPerspectiveMatrixF (GLfloat fovY, GLfloat aspect, GLfloat nearZ, GLfloat farZ) |
| Gets the perspective matrix similar to GLU gluPerspective() function.
|
|
_XGL_FUNC std::pair< GLsizei, std::string_view > | getTypeInfo (GLenum type) |
| Gets the C++ type and GLSL type as a string, and the size in bytes of the given enumeration type.
|
|
template<typename T > |
constexpr GLenum | getTypeEnum () |
| Converts the template type into an OpenGL type value like GL_INT, GL_FLOAT, Double.
|
|
template<size_t N = 3, typename T = GLfloat> |
std::array< T, N > | array (QVector3D vect, T value=1) |
| Template function to get an 'std::array' type from a Vector3D. This function is to pass a 3D vector where 4 or more values are required in an OpenGL function.
|
|
_XGL_FUNC QMatrix4x4 | getRotationMatrix (const QVector3D &v1, const QVector3D &v2) |
| Gets a 4x4 matrix from to vectors. When the 'v1' vector is mapped using the matrix, the 'v2' vector is retrieved.
|
|
_XGL_FUNC Matrix44 | toMatrix44 (const QMatrix4x4 &mtx) |
| Converts the given Qt 4x4 matrix into a sf::Matrix44.
|
|
_XGL_FUNC QMatrix4x4 | toQMatrix4x4 (const Matrix44 &mtx) |
| Converts the given sf::Matrix44 into a Qt 4x4 matrix.
|
|
_XGL_FUNC QImage | getTransparentImage (const QImage &src_image, int alpha) |
| Turms the given image into a transparent one.
|
|
template<typename VertexType , typename FieldType > |
void | setVertexAttribPointer (QOpenGLShaderProgram *sp, GLuint attr_loc, size_t offset) |
| Makes a call to glVertexAttribPointer() and to glEnableVertexAttribArray() smartly.
|
|
_XGL_FUNC bool | checkDrawMode (GLenum mode, size_t vertice_count, const std::string &src) |
| Checks is the necessary vertices are enough and in range.
|
|