| 320 | } |
| 321 | |
| 322 | static bgfx_texture_handle_t textureGet(int texture_type, void* parm, void* ud) { |
| 323 | if (auto renderTarget = RenderTarget::getCurrent()) { |
| 324 | if (texture_type == TEXTURE_BACKGROUND) { |
| 325 | return {renderTarget->getTexture()->getHandle().idx}; |
| 326 | } |
| 327 | if (texture_type == TEXTURE_DEPTH) { |
| 328 | return {renderTarget->getDepthTexture()->getHandle().idx}; |
| 329 | } |
| 330 | } |
| 331 | return BGFX_INVALID_HANDLE; |
| 332 | } |
| 333 | |
| 334 | static int textureLoad(const char* name, int srgb, void* ud) { |
| 335 | DORA_UNUSED_PARAM(srgb); |
nothing calls this directly
no test coverage detected