bindTexture method

  1. @override
void bindTexture([
  1. Texture? texture
])
override

Binds a texture. Pass in nothing or null to reset the texture to either nothing or the platform default.

Implementation

@override
void bindTexture([Texture? texture]) => glBindTexture(
    GL_TEXTURE_2D, texture is _OGLTexture ? texture._textureHandle : 0);