ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
GLInfo.cpp File Reference
#include "CloudViewer.h"
Include dependency graph for GLInfo.cpp:

Go to the source code of this file.

Macros

#define CLOUDVIEWER_CHECK_PROFILESTR(p)
 
#define CLOUDVIEWER_REPORT_GL_STRING(n)   reportGlStringFunc(n, #n)
 

Functions

void GLFWErrorCallback (int error, const char *description)
 
void TryGLVersion (int major, int minor, bool forwardCompat, bool setProfile, int profileId)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ CLOUDVIEWER_CHECK_PROFILESTR

#define CLOUDVIEWER_CHECK_PROFILESTR (   p)
Value:
if (profileId == p) { \
profileStr = #p; \
}

◆ CLOUDVIEWER_REPORT_GL_STRING

#define CLOUDVIEWER_REPORT_GL_STRING (   n)    reportGlStringFunc(n, #n)

Function Documentation

◆ GLFWErrorCallback()

void GLFWErrorCallback ( int  error,
const char *  description 
)

Definition at line 10 of file GLInfo.cpp.

References LogWarning.

Referenced by TryGLVersion().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 94 of file GLInfo.cpp.

References TryGLVersion().

◆ TryGLVersion()

void TryGLVersion ( int  major,
int  minor,
bool  forwardCompat,
bool  setProfile,
int  profileId 
)