MCPcopy Create free account
hub / github.com/esengine/esengine / bind

Method bind

packages/engine/src/renderer/viewport.rs:129–131  ·  view source on GitHub ↗

Make this render target current (bind its context).

(&self)

Source from the content-addressed store, hash-verified

127
128 /// Make this render target current (bind its context).
129 pub fn bind(&self) {
130 self.gl.viewport(0, 0, self.width as i32, self.height as i32);
131 }
132
133 /// Set camera parameters.
134 pub fn set_camera(&mut self, x: f32, y: f32, zoom: f32, rotation: f32) {

Callers 15

__wbg_get_importsFunction · 0.45
onInitializeMethod · 0.45
onInitializeMethod · 0.45
initializeMethod · 0.45
DebugManagerClass · 0.45
onInitializeMethod · 0.45
updateConfigMethod · 0.45
playMethod · 0.45
pauseMethod · 0.45
stepMethod · 0.45
updateNodesMethod · 0.45
tickLoopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected