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

Method PopViewport

Source/Graphics/graphics.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void Graphics::PopViewport() {
210 LOG_ASSERT(!viewport_dims_stack.empty());
211 ViewportDims dims = viewport_dims_stack.top();
212 viewport_dims_stack.pop();
213 for (int i = 0; i < 4; ++i) {
214 viewport_dim[i] = dims.entries[i];
215 }
216 glScissor(viewport_dim[0], viewport_dim[1], viewport_dim[2], viewport_dim[3]);
217 glViewport(viewport_dim[0], viewport_dim[1], viewport_dim[2], viewport_dim[3]);
218}
219
220void Graphics::setBlend(const bool new_blend) {
221 GLState& gl_state_ = shadow_state_.gl_state_;

Callers 9

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

Calls 3

topMethod · 0.80
emptyMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected