Cocos2d-x  4.0.0
Public Member Functions | List of all members
DeviceInfoGL Class Reference

Used to query features and implementation limits. More...

Inherits DeviceInfo.

Public Member Functions

virtual bool init () override
 Gather features and implementation limits.
 
virtual const char * getVendor () const override
 Get vendor device name.
 
virtual const char * getRenderer () const override
 Get the full name of the vendor device.
 
virtual const char * getVersion () const override
 Get version name.
 
virtual const char * getExtension () const override
 get OpenGL ES extensions.
 
virtual bool checkForFeatureSupported (FeatureType feature) override
 Check if feature supported by OpenGL ES.
 
- Public Member Functions inherited from DeviceInfo
int getMaxTextureSize () const
 Get maximum texture size.
 
int getMaxAttributes () const
 Get maximum attribute counts.
 
int getMaxTextureUnits () const
 Get maximum texture unit.
 
int getMaxSamplesAllowed () const
 Get maximum sampler count.
 

Detailed Description

Used to query features and implementation limits.

Member Function Documentation

virtual const char* getVendor ( ) const
overridevirtual

Get vendor device name.

Returns
Vendor device name.

Implements DeviceInfo.

virtual const char* getRenderer ( ) const
overridevirtual

Get the full name of the vendor device.

Returns
The full name of the vendor device.

Implements DeviceInfo.

virtual const char* getVersion ( ) const
overridevirtual

Get version name.

Returns
Version name.

Implements DeviceInfo.

virtual const char* getExtension ( ) const
overridevirtual

get OpenGL ES extensions.

Returns
Extension supported by OpenGL ES.

Implements DeviceInfo.

virtual bool checkForFeatureSupported ( FeatureType  feature)
overridevirtual

Check if feature supported by OpenGL ES.

Parameters
featureSpecify feature to be query.
Returns
true if the feature is supported, false otherwise.

Implements DeviceInfo.


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