axmol/cocos/renderer/backend/opengl/DeviceInfoGL.h

27 lines
631 B
C
Raw Normal View History

2019-03-14 15:59:51 +08:00
#pragma once
#include "../DeviceInfo.h"
CC_BACKEND_BEGIN
class DeviceInfoGL: public DeviceInfo
{
public:
DeviceInfoGL() = default;
2019-03-14 16:13:38 +08:00
virtual ~DeviceInfoGL() = default;
2019-03-14 15:59:51 +08:00
virtual bool init() override;
virtual const char* getVendor() const override;
virtual const char* getRenderer() const override;
virtual const char* getVersion() const override;
virtual const char* getExtension() const override;
virtual bool checkForFeatureSupported(FeatureType feature) override;
2019-03-14 15:59:51 +08:00
private:
bool checkForGLExtension(const std::string &searchName) const;
std::string _glExtensions;
2019-03-14 15:59:51 +08:00
};
CC_BACKEND_END