// // Created by BZLZHH on 2025/3/15. // #include "Includes.h" __attribute__((constructor)) void MG_Initialize() { MG_Util::Debug::LogInit(); MG_Util::Debug::LogI("MobileGL Initializing..."); MG_State::Init(); #if BACKEND_TYPE == BACKEND_GLES MG_GL::BackendLoader::Init(); #endif } __attribute__((destructor)) void MG_Destroy() { MG_Util::Debug::LogI("MobileGL Exiting..."); MG_State::Destroy(); }