MCPcopy Create free account
hub / github.com/axmolengine/axmol / draw

Method draw

core/3d/BillBoard.cpp:237–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void BillBoard::draw(Renderer* renderer, const Mat4& /*transform*/, uint32_t flags)
238{
239 // FIXME: frustum culling here
240 flags |= Node::FLAGS_RENDER_AS_3D;
241 _trianglesCommand.init(0, _texture, _blendFunc, _polyInfo.triangles, _modelViewTransform, flags);
242 setMVPMatrixUniform(); // update uniform
243 renderer->addCommand(&_trianglesCommand);
244}
245
246void BillBoard::setMode(Mode mode)
247{

Callers 1

visitMethod · 0.95

Calls 2

initMethod · 0.45
addCommandMethod · 0.45

Tested by

no test coverage detected