MCPcopy Create free account
hub / github.com/ZDoom/Raze / SetupFrame

Method SetupFrame

source/core/rendering/hw_models.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110//===========================================================================
111
112int FHWModelRenderer::SetupFrame(FModel* model, unsigned int frame1, unsigned int frame2, unsigned int size, const TArray<VSMatrix>& bones, int boneStartIndex)
113{
114 auto mdbuff = static_cast<FModelVertexBuffer*>(model->GetVertexBuffer(GetType()));
115 state.SetVertexBuffer(mdbuff->vertexBuffer(), frame1, frame2);
116 if (mdbuff->indexBuffer()) state.SetIndexBuffer(mdbuff->indexBuffer());
117 return 0;
118}
119

Callers 1

DrawSpriteMethod · 0.45

Calls 5

GetVertexBufferMethod · 0.80
vertexBufferMethod · 0.80
indexBufferMethod · 0.80
SetIndexBufferMethod · 0.80
SetVertexBufferMethod · 0.45

Tested by

no test coverage detected