SimpleGL  1.1.0
A framework for platform independent rendering
Public Member Functions | Public Attributes | List of all members
sgl::GLVersion Struct Reference

Structure for saving the OpenGL version. More...

#include <backend_gl.hpp>

Public Member Functions

 GLVersion ()
 Default constructor. More...
 
 GLVersion (int major, int minor)
 Constructor for initializing major and minor version. More...
 
bool operator< (const GLVersion &other)
 Overloaded less than operator. More...
 
bool operator<= (const GLVersion &other)
 Overloaded less than or equal to operator. More...
 
bool operator== (const GLVersion &other)
 Overloaded equal to operator. More...
 
bool operator!= (const GLVersion &other)
 Overloaded unequal to operator. More...
 
bool operator>= (const GLVersion &other)
 Overloaded greater than or equal to operator. More...
 
bool operator> (const GLVersion &other)
 Overloaded greater than operator. More...
 

Public Attributes

const int major
 Constant for the major version. More...
 
const int minor
 Constant for the minor version. More...
 

Detailed Description

Structure for saving the OpenGL version.

Definition at line 22 of file backend_gl.hpp.

Constructor & Destructor Documentation

sgl::GLVersion::GLVersion ( )

Default constructor.

Definition at line 21 of file backend_gl.cpp.

sgl::GLVersion::GLVersion ( int  major,
int  minor 
)

Constructor for initializing major and minor version.

Definition at line 26 of file backend_gl.cpp.

Member Function Documentation

bool sgl::GLVersion::operator!= ( const GLVersion other)

Overloaded unequal to operator.

Parameters
otherThe other version.

Definition at line 43 of file backend_gl.cpp.

bool sgl::GLVersion::operator< ( const GLVersion other)

Overloaded less than operator.

Parameters
otherThe other version.

Definition at line 31 of file backend_gl.cpp.

bool sgl::GLVersion::operator<= ( const GLVersion other)

Overloaded less than or equal to operator.

Parameters
otherThe other version.

Definition at line 35 of file backend_gl.cpp.

bool sgl::GLVersion::operator== ( const GLVersion other)

Overloaded equal to operator.

Parameters
otherThe other version.

Definition at line 39 of file backend_gl.cpp.

bool sgl::GLVersion::operator> ( const GLVersion other)

Overloaded greater than operator.

Parameters
otherThe other version.

Definition at line 51 of file backend_gl.cpp.

bool sgl::GLVersion::operator>= ( const GLVersion other)

Overloaded greater than or equal to operator.

Parameters
otherThe other version.

Definition at line 47 of file backend_gl.cpp.

Member Data Documentation

const int sgl::GLVersion::major

Constant for the major version.

Definition at line 25 of file backend_gl.hpp.

const int sgl::GLVersion::minor

Constant for the minor version.

Definition at line 28 of file backend_gl.hpp.


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