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

Function CameraStackPush

engine/gamesys/src/gamesys/components/comp_camera.cpp:129–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128
129 static void CameraStackPush(CameraWorld* world, CameraComponent* camera)
130 {
131 // Remove from stack in case the camera is already in the stack
132 CameraStackRemove(world, camera);
133
134 if (world->m_CameraStack.Full())
135 {
136 world->m_CameraStack.OffsetCapacity(1);
137 }
138 world->m_CameraStack.Push(camera);
139 }
140
141 dmGameObject::CreateResult CompCameraCreate(const dmGameObject::ComponentCreateParams& params)
142 {

Callers 2

CompCameraCreateFunction · 0.85
CompCameraOnMessageFunction · 0.85

Calls 4

CameraStackRemoveFunction · 0.85
FullMethod · 0.45
OffsetCapacityMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected