mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Chore] (BackendInfo.cpp|GL_Getter.cpp): Some text changes.
This commit is contained in:
@@ -30,8 +30,7 @@ namespace MG_GL::Getter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LogMGInfo() {
|
void LogMGInfo() {
|
||||||
std::string MGName = MG_GL::Getter::GetMGName()+
|
std::string MGName = MG_GL::Getter::GetMGName() + " (MobileGL Core)";
|
||||||
", MobileGL (" + MG_GL::Getter::GetBackendName() + ")";
|
|
||||||
|
|
||||||
std::string MGVersion = std::to_string(MG_Global::MG::VersionMajor) + "."
|
std::string MGVersion = std::to_string(MG_Global::MG::VersionMajor) + "."
|
||||||
+ std::to_string(MG_Global::MG::VersionMinor) + "."
|
+ std::to_string(MG_Global::MG::VersionMinor) + "."
|
||||||
@@ -44,6 +43,8 @@ namespace MG_GL::Getter {
|
|||||||
+ std::to_string(MG_Global::GL::GLVersionMinor) + "."
|
+ std::to_string(MG_Global::GL::GLVersionMinor) + "."
|
||||||
+ std::to_string(MG_Global::GL::GLVersionRevision);
|
+ std::to_string(MG_Global::GL::GLVersionRevision);
|
||||||
|
|
||||||
|
std::string backendName = MG_GL::Getter::GetBackendName();
|
||||||
|
|
||||||
std::string backendVersion;
|
std::string backendVersion;
|
||||||
#if BACKEND_TYPE == BACKEND_VULKAN
|
#if BACKEND_TYPE == BACKEND_VULKAN
|
||||||
VkApplicationInfo appInfo = {};
|
VkApplicationInfo appInfo = {};
|
||||||
@@ -76,6 +77,8 @@ namespace MG_GL::Getter {
|
|||||||
|
|
||||||
backendVersion = "Vulkan " + std::to_string(major) + "." +
|
backendVersion = "Vulkan " + std::to_string(major) + "." +
|
||||||
std::to_string(minor)+"." + std::to_string(patch);
|
std::to_string(minor)+"." + std::to_string(patch);
|
||||||
|
#elif BACKEND_TYPE == BACKEND_GLES
|
||||||
|
backendVersion = std::string((const char*)::GLES::glGetString(GL_VERSION));
|
||||||
#else
|
#else
|
||||||
backendVersion = "<Unknown Backend>";
|
backendVersion = "<Unknown Backend>";
|
||||||
#endif
|
#endif
|
||||||
@@ -83,7 +86,8 @@ namespace MG_GL::Getter {
|
|||||||
MG_Util::Debug::LogI("MobileGL Renderer Info:");
|
MG_Util::Debug::LogI("MobileGL Renderer Info:");
|
||||||
MG_Util::Debug::LogI("----%s:", MGName.c_str());
|
MG_Util::Debug::LogI("----%s:", MGName.c_str());
|
||||||
MG_Util::Debug::LogI("--------MobileGL Version: %s", MGVersion.c_str());
|
MG_Util::Debug::LogI("--------MobileGL Version: %s", MGVersion.c_str());
|
||||||
MG_Util::Debug::LogI("--------Implemented OpenGL Version: %s", GLVersion.c_str());
|
MG_Util::Debug::LogI("--------Target OpenGL Implementation Version: %s", GLVersion.c_str());
|
||||||
|
MG_Util::Debug::LogI("--------Backend: %s", backendName.c_str());
|
||||||
MG_Util::Debug::LogI("--------Backend Version: %s", backendVersion.c_str());
|
MG_Util::Debug::LogI("--------Backend Version: %s", backendVersion.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -22,8 +22,8 @@ namespace MG_GL::GL {
|
|||||||
versionStr == std::to_string(MG_Global::GL::GLVersionMajor) + "."
|
versionStr == std::to_string(MG_Global::GL::GLVersionMajor) + "."
|
||||||
+ std::to_string(MG_Global::GL::GLVersionMinor) + "."
|
+ std::to_string(MG_Global::GL::GLVersionMinor) + "."
|
||||||
+ std::to_string(MG_Global::GL::GLVersionRevision)
|
+ std::to_string(MG_Global::GL::GLVersionRevision)
|
||||||
+ " "+ MG_GL::Getter::GetMGName()+
|
+ " "+ MG_GL::Getter::GetMGName() +
|
||||||
", MobileGL (" + MG_GL::Getter::GetBackendName() + ") ";
|
", MobileGL Core, " + MG_GL::Getter::GetBackendName() + " Backend";
|
||||||
versionStr += std::to_string(MG_Global::MG::VersionMajor) + "."
|
versionStr += std::to_string(MG_Global::MG::VersionMajor) + "."
|
||||||
+ std::to_string(MG_Global::MG::VersionMinor) + "."
|
+ std::to_string(MG_Global::MG::VersionMinor) + "."
|
||||||
+ std::to_string(MG_Global::MG::VersionRevision);
|
+ std::to_string(MG_Global::MG::VersionRevision);
|
||||||
@@ -44,7 +44,7 @@ namespace MG_GL::GL {
|
|||||||
}
|
}
|
||||||
return (const GLubyte *)rendererString.c_str();
|
return (const GLubyte *)rendererString.c_str();
|
||||||
*/
|
*/
|
||||||
return (const GLubyte *) "MobileGL";
|
return (const GLubyte *)(MG_GL::Getter::GetMGName() + "(MobileGL Core) Renderer").c_str();
|
||||||
}
|
}
|
||||||
case GL_SHADING_LANGUAGE_VERSION:
|
case GL_SHADING_LANGUAGE_VERSION:
|
||||||
return (const GLubyte *) "4.50 MobileGL with glslang";
|
return (const GLubyte *) "4.50 MobileGL with glslang";
|
||||||
|
|||||||
Reference in New Issue
Block a user