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

Method init

core/renderer/RenderCommand.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35RenderCommand::~RenderCommand() {}
36
37void RenderCommand::init(float globalZOrder, const ax::Mat4& transform, unsigned int flags)
38{
39 _globalOrder = globalZOrder;
40 if (flags & Node::FLAGS_RENDER_AS_3D)
41 {
42 if (Camera::getVisitingCamera())
43 _depth = Camera::getVisitingCamera()->getDepthInView(transform);
44
45 set3D(true);
46 }
47 else
48 {
49 set3D(false);
50 _depth = 0;
51 }
52}
53
54void RenderCommand::printID()
55{

Callers

nothing calls this directly

Calls 2

set3DFunction · 0.85
getDepthInViewMethod · 0.80

Tested by

no test coverage detected