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

Method Post

common/render_shaders_blendmap.go:373–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371}
372
373func (s *blendmapShader) Post() {
374 s.flush()
375 s.lastTexture = nil
376 s.lastTexturePack = nil
377
378 // Cleanup
379 engo.Gl.DisableVertexAttribArray(s.inPosition)
380 engo.Gl.DisableVertexAttribArray(s.inTexCoords)
381 engo.Gl.DisableVertexAttribArray(s.inColor)
382
383 engo.Gl.BindTexture(engo.Gl.TEXTURE_2D, nil)
384 engo.Gl.BindBuffer(engo.Gl.ARRAY_BUFFER, nil)
385 engo.Gl.BindBuffer(engo.Gl.ELEMENT_ARRAY_BUFFER, nil)
386
387 engo.Gl.Disable(engo.Gl.BLEND)
388}
389
390func (s *blendmapShader) flush() {
391 // If we haven't rendered anything yet, no point in flushing.

Callers

nothing calls this directly

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected