mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Hopefully fixed issue #898, and cleaned up code for love.graphics.getRendererInfo.
This commit is contained in:
@@ -99,16 +99,6 @@ bool Graphics::getConstant(Support in, const char *&out)
|
||||
return support.find(in, out);
|
||||
}
|
||||
|
||||
bool Graphics::getConstant(const char *in, RendererInfo &out)
|
||||
{
|
||||
return rendererInfo.find(in, out);
|
||||
}
|
||||
|
||||
bool Graphics::getConstant(RendererInfo in, const char *&out)
|
||||
{
|
||||
return rendererInfo.find(in, out);
|
||||
}
|
||||
|
||||
bool Graphics::getConstant(const char *in, SystemLimit &out)
|
||||
{
|
||||
return systemLimits.find(in, out);
|
||||
@@ -192,16 +182,6 @@ StringMap<Graphics::Support, Graphics::SUPPORT_MAX_ENUM>::Entry Graphics::suppor
|
||||
|
||||
StringMap<Graphics::Support, Graphics::SUPPORT_MAX_ENUM> Graphics::support(Graphics::supportEntries, sizeof(Graphics::supportEntries));
|
||||
|
||||
StringMap<Graphics::RendererInfo, Graphics::RENDERER_INFO_MAX_ENUM>::Entry Graphics::rendererInfoEntries[] =
|
||||
{
|
||||
{ "name", Graphics::RENDERER_INFO_NAME },
|
||||
{ "version", Graphics::RENDERER_INFO_VERSION },
|
||||
{ "vendor", Graphics::RENDERER_INFO_VENDOR },
|
||||
{ "device", Graphics::RENDERER_INFO_DEVICE },
|
||||
};
|
||||
|
||||
StringMap<Graphics::RendererInfo, Graphics::RENDERER_INFO_MAX_ENUM> Graphics::rendererInfo(Graphics::rendererInfoEntries, sizeof(Graphics::rendererInfoEntries));
|
||||
|
||||
StringMap<Graphics::SystemLimit, Graphics::LIMIT_MAX_ENUM>::Entry Graphics::systemLimitEntries[] =
|
||||
{
|
||||
{"pointsize", Graphics::LIMIT_POINT_SIZE},
|
||||
|
||||
Reference in New Issue
Block a user