createTexture method

  1. @override
Texture createTexture(
  1. int width,
  2. int height, [
  3. bool mipmap = false,
  4. TextureFormat textureFormat = TextureFormat.rgba,
])
override

Creates a texture for the target platform.

Remember to call deleteTexture to free resources when done.

Implementation

@override
Texture createTexture(int width, int height,
        [bool mipmap = false,
        TextureFormat textureFormat = TextureFormat.rgba]) =>
    _OGLTexture(width, height, mipmap, textureFormat);