Cocos2d-x  4.0.0
Public Member Functions | List of all members
DeviceInfo Class Referenceabstract

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

Inherited by DeviceInfoGL, and DeviceInfoMTL.

Public Member Functions

virtual bool init ()=0
 Gather features and implementation limits.
 
virtual const char * getVendor () const =0
 Get vendor device name.
 
virtual const char * getRenderer () const =0
 Get the full name of the vendor device.
 
virtual const char * getVersion () const =0
 Get version name.
 
virtual const char * getExtension () const =0
 get extensions.
 
virtual bool checkForFeatureSupported (FeatureType feature)=0
 Check if feature supported by device.
 
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
pure virtual

Get vendor device name.

Returns
Vendor device name.

Implemented in DeviceInfoMTL, and DeviceInfoGL.

virtual const char* getRenderer ( ) const
pure virtual

Get the full name of the vendor device.

Returns
The full name of the vendor device.

Implemented in DeviceInfoMTL, and DeviceInfoGL.

virtual const char* getVersion ( ) const
pure virtual

Get version name.

Returns
Version name.

Implemented in DeviceInfoMTL, and DeviceInfoGL.

virtual const char* getExtension ( ) const
pure virtual

get extensions.

Returns
Extension supported by device.

Implemented in DeviceInfoMTL, and DeviceInfoGL.

virtual bool checkForFeatureSupported ( FeatureType  feature)
pure virtual

Check if feature supported by device.

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

Implemented in DeviceInfoMTL, and DeviceInfoGL.

int getMaxTextureSize ( ) const
inline

Get maximum texture size.

Returns
Maximum texture size.
int getMaxAttributes ( ) const
inline

Get maximum attribute counts.

Returns
Maximum attribute counts.
int getMaxTextureUnits ( ) const
inline

Get maximum texture unit.

Returns
Maximum texture unit.
int getMaxSamplesAllowed ( ) const
inline

Get maximum sampler count.

Returns
Maximum sampler count.

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