| 564 | } // namespace |
| 565 | |
| 566 | bool BGFXDora::init(const bgfx::PlatformData& data) { |
| 567 | bgfx::Init init{}; |
| 568 | #if BX_PLATFORM_LINUX |
| 569 | if (data.context) { |
| 570 | init.type = bgfx::RendererType::OpenGLES; |
| 571 | } |
| 572 | #endif // BX_PLATFORM_LINUX |
| 573 | bx::memCopy(&init.platformData, &data, sizeof(bgfx::PlatformData)); |
| 574 | return bgfx::init(init); |
| 575 | } |
| 576 | |
| 577 | BGFXDora::~BGFXDora() { |
| 578 | bgfx::shutdown(); |