MCPcopy
hub / github.com/EngoEngine/engo / Post

Method Post

common/render_shaders_default.go:272–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270}
271
272func (s *basicShader) Post() {
273 s.flush()
274 s.setTexture(nil)
275
276 // Cleanup
277 engo.Gl.DisableVertexAttribArray(s.inPosition)
278 engo.Gl.DisableVertexAttribArray(s.inTexCoords)
279 engo.Gl.DisableVertexAttribArray(s.inColor)
280
281 engo.Gl.BindTexture(engo.Gl.TEXTURE_2D, nil)
282 engo.Gl.BindBuffer(engo.Gl.ARRAY_BUFFER, nil)
283 engo.Gl.BindBuffer(engo.Gl.ELEMENT_ARRAY_BUFFER, nil)
284
285 engo.Gl.Disable(engo.Gl.BLEND)
286}
287
288// setTexture resets all last* values from basicShader to a new default value (255)
289func (s *basicShader) setTexture(texture *gl.Texture) {

Callers

nothing calls this directly

Calls 2

flushMethod · 0.95
setTextureMethod · 0.95

Tested by

no test coverage detected