axmol/cocos/renderer/backend/DeviceInfo.h

27 lines
467 B
C++

#pragma once
#include <string>
#include "Macros.h"
#include "base/CCRef.h"
CC_BACKEND_BEGIN
class DeviceInfo : public Ref
{
public:
virtual bool init() = 0;
inline int getMaxTextureSize() const { return _maxTextureSize; }
inline int getMaxAttributes() const { return _maxAttributes; }
protected:
DeviceInfo() = default;
virtual ~DeviceInfo() = default;
int _maxAttributes = 0;
int _maxTextureSize = 0;
};
CC_BACKEND_END