scg3  0.6
scg::OGLConfig Struct Reference

OpenGL configuration, may be set by user before calling Viewer::init(). More...

#include "Viewer.h"

Public Member Functions

 OGLConfig ()
 
 OGLConfig (int versionMajor0, int versionMinor0, GLboolean forwardCompatible0, OGLProfile profile0, glm::vec4 clearColor0)
 

Public Attributes

int versionMajor
 
int versionMinor
 
GLboolean forwardCompatible
 
OGLProfile profile
 
glm::vec4 clearColor
 

Detailed Description

OpenGL configuration, may be set by user before calling Viewer::init().

Default parameters:

  • OpenGL 3.2
  • forward-compatible context
  • core profile
  • bright gray background color

Definition at line 61 of file Viewer.h.

Constructor & Destructor Documentation

◆ OGLConfig() [1/2]

scg::OGLConfig::OGLConfig ( )
inline

Definition at line 63 of file Viewer.h.

◆ OGLConfig() [2/2]

scg::OGLConfig::OGLConfig ( int  versionMajor0,
int  versionMinor0,
GLboolean  forwardCompatible0,
OGLProfile  profile0,
glm::vec4  clearColor0 
)
inline

Definition at line 68 of file Viewer.h.

Member Data Documentation

◆ clearColor

glm::vec4 scg::OGLConfig::clearColor

Definition at line 77 of file Viewer.h.

◆ forwardCompatible

GLboolean scg::OGLConfig::forwardCompatible

Definition at line 75 of file Viewer.h.

◆ profile

OGLProfile scg::OGLConfig::profile

Definition at line 76 of file Viewer.h.

◆ versionMajor

int scg::OGLConfig::versionMajor

Definition at line 74 of file Viewer.h.

◆ versionMinor

int scg::OGLConfig::versionMinor

Definition at line 74 of file Viewer.h.


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