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

Method setTexture

common/render_shaders_default.go:289–294  ·  view source on GitHub ↗

setTexture resets all last* values from basicShader to a new default value (255)

(texture *gl.Texture)

Source from the content-addressed store, hash-verified

287
288// setTexture resets all last* values from basicShader to a new default value (255)
289func (s *basicShader) setTexture(texture *gl.Texture) {
290 s.lastTexture = texture
291 s.lastMinFilter = 255
292 s.lastMagFilter = 255
293 s.lastRepeating = 255
294}
295
296func (s *basicShader) flush() {
297 // If we haven't rendered anything yet, no point in flushing.

Callers 3

SetupMethod · 0.95
DrawMethod · 0.95
PostMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected