MCPcopy Create free account
hub / github.com/defold/defold / Init

Method Init

engine/render/src/render/render.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void StencilTestParams::Init() {
84 m_Front.m_Func = dmGraphics::COMPARE_FUNC_ALWAYS;
85 m_Front.m_OpSFail = dmGraphics::STENCIL_OP_KEEP;
86 m_Front.m_OpDPFail = dmGraphics::STENCIL_OP_KEEP;
87 m_Front.m_OpDPPass = dmGraphics::STENCIL_OP_KEEP;
88 m_Back.m_Func = dmGraphics::COMPARE_FUNC_ALWAYS;
89 m_Back.m_OpSFail = dmGraphics::STENCIL_OP_KEEP;
90 m_Back.m_OpDPFail = dmGraphics::STENCIL_OP_KEEP;
91 m_Back.m_OpDPPass = dmGraphics::STENCIL_OP_KEEP;
92 m_Ref = 0;
93 m_RefMask = 0xff;
94 m_BufferMask = 0xff;
95 m_ColorBufferMask = 0xf;
96 m_ClearBuffer = 0;
97 m_SeparateFaceStates = 0;
98 }
99
100 RenderObject::RenderObject()
101 {

Callers 3

TestDrawStateDispatchFunction · 0.45
DrawTextParamsMethod · 0.45

Calls 1

identityFunction · 0.85

Tested by 2

TestDrawStateDispatchFunction · 0.36