MCPcopy Create free account
hub / github.com/beefytech/Beef / Gfx_CreateRenderTarget

Function Gfx_CreateRenderTarget

BeefySysLib/BeefySysLib.cpp:447–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445///
446
447BF_EXPORT TextureSegment* BF_CALLTYPE Gfx_CreateRenderTarget(int width, int height, int destAlpha)
448{
449 Texture* texture = gBFApp->mRenderDevice->CreateRenderTarget(width, height, destAlpha != 0);
450 texture->mResetClear = true;
451
452 TextureSegment* aTextureSegment = new TextureSegment();
453 aTextureSegment->InitFromTexture(texture);
454 return aTextureSegment;
455}
456
457BF_EXPORT TextureSegment* BF_CALLTYPE Gfx_CreateDynTexture(int width, int height)
458{

Callers

nothing calls this directly

Calls 2

InitFromTextureMethod · 0.80
CreateRenderTargetMethod · 0.45

Tested by

no test coverage detected