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

Function Gfx_AllocTris

BeefySysLib/BeefySysLib.cpp:659–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657static DefaultVertex3D* gCurAllocVertices = NULL;
658
659BF_EXPORT void BF_CALLTYPE Gfx_AllocTris(TextureSegment* textureSegment, int vtxCount)
660{
661 gCurTextureSegment = textureSegment;
662 DrawLayer* drawLayer = gBFApp->mRenderDevice->mCurDrawLayer;
663 drawLayer->SetTexture(0, textureSegment->mTexture);
664 gCurAllocVertices = (DefaultVertex3D*)gBFApp->mRenderDevice->mCurDrawLayer->AllocTris(vtxCount);
665}
666
667BF_EXPORT void BF_CALLTYPE Gfx_SetDrawVertex(int idx, float x, float y, float z, float u, float v, uint32 color)
668{

Callers

nothing calls this directly

Calls 2

AllocTrisMethod · 0.80
SetTextureMethod · 0.45

Tested by

no test coverage detected