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

Method updateBuffers

core/2d/DrawNode.cpp:253–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void DrawNode::updateBuffers()
254{
255 if (_trianglesDirty)
256 {
257 _trianglesDirty = false;
258 udpateCommand(_customCommandTriangle, _triangles);
259 }
260
261 if (_pointsDirty)
262 {
263 _pointsDirty = false;
264 udpateCommand(_customCommandPoint, _points);
265 }
266
267 if (_linesDirty)
268 {
269 _linesDirty = false;
270 udpateCommand(_customCommandLine, _lines);
271 }
272}
273
274void DrawNode::drawPoint(const Vec2& position,
275 const float pointSize,

Callers

nothing calls this directly

Calls 1

udpateCommandFunction · 0.85

Tested by

no test coverage detected