MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / PushViewport

Method PushViewport

Source/Graphics/graphics.cpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void Graphics::PushViewport() {
202 ViewportDims dims;
203 for (int i = 0; i < 4; ++i) {
204 dims.entries[i] = viewport_dim[i];
205 }
206 viewport_dims_stack.push(dims);
207}
208
209void Graphics::PopViewport() {
210 LOG_ASSERT(!viewport_dims_stack.empty());

Callers 10

RenderCubeMapMethod · 0.80
BakeTerrainTextureMethod · 0.80
DrawMethod · 0.80
CreateHistogramFunction · 0.80
ApplyPostEffectsFunction · 0.80
DrawSceneMethod · 0.80
UpdateShadowCacheFunction · 0.80
GetShadowableTrisFunction · 0.80
UpdateShadowCascadesFunction · 0.80
DebugLoopMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected