qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Static Public Member Functions | List of all members
ccGL Class Reference

Shortcuts to OpenGL commands independent on the input type. More...

#include <ccIncludeGL.h>

Static Public Member Functions

static void Vertex3v (QOpenGLFunctions_2_1 *glFunc, const float *v)
 
static void Vertex3v (QOpenGLFunctions_2_1 *glFunc, const double *v)
 
static void Vertex3 (QOpenGLFunctions_2_1 *glFunc, float x, float y, float z)
 
static void Vertex3 (QOpenGLFunctions_2_1 *glFunc, double x, double y, double z)
 
static void Scale (QOpenGLFunctions_2_1 *glFunc, float x, float y, float z)
 
static void Scale (QOpenGLFunctions_2_1 *glFunc, double x, double y, double z)
 
static void Normal3v (QOpenGLFunctions_2_1 *glFunc, const float *v)
 
static void Normal3v (QOpenGLFunctions_2_1 *glFunc, const double *v)
 
static void Rotate (QOpenGLFunctions_2_1 *glFunc, float a, float x, float y, float z)
 
static void Rotate (QOpenGLFunctions_2_1 *glFunc, double a, double x, double y, double z)
 
static void Translate (QOpenGLFunctions_2_1 *glFunc, float x, float y, float z)
 
static void Translate (QOpenGLFunctions_2_1 *glFunc, double x, double y, double z)
 
static void Color3v (QOpenGLFunctions_2_1 *glFunc, const unsigned char *v)
 
static void Color3v (QOpenGLFunctions_2_1 *glFunc, const float *v)
 
static void Color4v (QOpenGLFunctions_2_1 *glFunc, const unsigned char *v)
 
static void Color4v (QOpenGLFunctions_2_1 *glFunc, const float *v)
 
static ccGLMatrixd Frustum (double left, double right, double bottom, double top, double znear, double zfar)
 
static ccGLMatrixd Ortho (double left, double right, double bottom, double top, double nearVal, double farVal)
 
static ccGLMatrixd Ortho (double w, double h, double d)
 
template<typename iType , typename oType >
static bool Project (const Vector3Tpl< iType > &input3D, const oType *modelview, const oType *projection, const int *viewport, Vector3Tpl< oType > &output2D, bool *inFrustum=nullptr)
 
static double MAT (const double *m, int r, int c)
 
static float MAT (const float *m, int r, int c)
 
static double & MAT (double *m, int r, int c)
 
static float & MAT (float *m, int r, int c)
 
template<typename Type >
static bool InvertMatrix (const Type *m, Type *out)
 
template<typename iType , typename oType >
static bool Unproject (const Vector3Tpl< iType > &input2D, const oType *modelview, const oType *projection, const int *viewport, Vector3Tpl< oType > &output3D)
 
static void PickMatrix (double x, double y, double width, double height, int viewport[4], double m[16])
 

Detailed Description

Shortcuts to OpenGL commands independent on the input type.


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