FastUIDraw
Public Member Functions | List of all members
fastuidraw::gl::ContextProperties Class Reference

A ContextProperties provides an interface to query GL/GLES version and extensions. More...

#include <gl_context_properties.hpp>

Inheritance diagram for fastuidraw::gl::ContextProperties:
Inheritance graph
[legend]

Public Member Functions

 ContextProperties (bool make_ready=false)
 
bool has_extension (c_string ext) const
 
bool is_es (void) const
 
int major_version (void) const
 
int minor_version (void) const
 
vecN< int, 2 > version (void) const
 

Detailed Description

A ContextProperties provides an interface to query GL/GLES version and extensions.

Definition at line 40 of file gl_context_properties.hpp.

Constructor & Destructor Documentation

◆ ContextProperties()

fastuidraw::gl::ContextProperties::ContextProperties ( bool  make_ready = false)
explicit

Ctor.

Parameters
make_readyif true, query GL context at ctor (instead of lazily) to generate GL context information

Member Function Documentation

◆ has_extension()

bool fastuidraw::gl::ContextProperties::has_extension ( c_string  ext) const

Returns true if the context supports the named extension.

◆ is_es()

bool fastuidraw::gl::ContextProperties::is_es ( void  ) const

Returns true if the context is OpenGL ES, returns value if the context is OpenGL.

◆ major_version()

int fastuidraw::gl::ContextProperties::major_version ( void  ) const
inline

Returns the GL major version, equivalent to

version()[0]

Definition at line 68 of file gl_context_properties.hpp.

◆ minor_version()

int fastuidraw::gl::ContextProperties::minor_version ( void  ) const
inline

Returns the GL minor version, equivalent to

version()[1]

Definition at line 80 of file gl_context_properties.hpp.

◆ version()

vecN<int, 2> fastuidraw::gl::ContextProperties::version ( void  ) const

Return the GL/GLES version of the GL context with the major version in [0] and the minor version in [1].


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