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

14 lines
256 B
C++

#include "DeviceInfoGL.h"
#include "platform/CCGL.h"
CC_BACKEND_BEGIN
bool DeviceInfoGL::init()
{
glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &_maxAttributes);
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &_maxTextureSize);
return true;
}
CC_BACKEND_END