| 464 | } |
| 465 | |
| 466 | BF_EXPORT TextureSegment* BF_CALLTYPE Gfx_LoadTexture(const char* fileName, int flags) |
| 467 | { |
| 468 | Texture* texture = gBFApp->mRenderDevice->LoadTexture(fileName, flags); |
| 469 | if (texture == NULL) |
| 470 | return NULL; |
| 471 | |
| 472 | TextureSegment* aTextureSegment = new TextureSegment(); |
| 473 | aTextureSegment->InitFromTexture(texture); |
| 474 | return aTextureSegment; |
| 475 | } |
| 476 | |
| 477 | BF_EXPORT void BF_CALLTYPE Gfx_Texture_SetBits(TextureSegment* textureSegment, int destX, int destY, int destWidth, int destHeight, int srcPitch, uint32* bits) |
| 478 | { |
nothing calls this directly
no test coverage detected