JUCE API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
juce::OpenGLVersion Struct Reference

Holds version information about a particular OpenGL API. More...

Public Member Functions

 OpenGLVersion ()=default
 Default constructor, both fields are initialised to 0.
 
 OpenGLVersion (int majorIn)
 Initialises the major field only.
 
 OpenGLVersion (int majorIn, int minorIn)
 Initialises the major and minor fields.
 
bool operator== (const OpenGLVersion &) const
 
bool operator!= (const OpenGLVersion &) const
 
bool operator< (const OpenGLVersion &) const
 
bool operator<= (const OpenGLVersion &) const
 
bool operator> (const OpenGLVersion &) const
 
bool operator>= (const OpenGLVersion &) const
 

Public Attributes

int major = 0
 Major version, i.e. the "4" in "4.3".
 
int minor = 0
 Minor version, i.e. the "3" in "4.3".
 

Detailed Description

Holds version information about a particular OpenGL API.

Constructor & Destructor Documentation

◆ OpenGLVersion() [1/3]

juce::OpenGLVersion::OpenGLVersion ( )
default

Default constructor, both fields are initialised to 0.

◆ OpenGLVersion() [2/3]

juce::OpenGLVersion::OpenGLVersion ( int  majorIn)
inlineexplicit

Initialises the major field only.

◆ OpenGLVersion() [3/3]

juce::OpenGLVersion::OpenGLVersion ( int  majorIn,
int  minorIn 
)
inline

Initialises the major and minor fields.

Member Function Documentation

◆ operator==()

bool juce::OpenGLVersion::operator== ( const OpenGLVersion &  ) const

◆ operator!=()

bool juce::OpenGLVersion::operator!= ( const OpenGLVersion &  ) const

◆ operator<()

bool juce::OpenGLVersion::operator< ( const OpenGLVersion &  ) const

◆ operator<=()

bool juce::OpenGLVersion::operator<= ( const OpenGLVersion &  ) const

◆ operator>()

bool juce::OpenGLVersion::operator> ( const OpenGLVersion &  ) const

◆ operator>=()

bool juce::OpenGLVersion::operator>= ( const OpenGLVersion &  ) const

Member Data Documentation

◆ major

int juce::OpenGLVersion::major = 0

Major version, i.e. the "4" in "4.3".

◆ minor

int juce::OpenGLVersion::minor = 0

Minor version, i.e. the "3" in "4.3".


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