renderTexture method

void renderTexture(
  1. WebGLTexture? texture, {
  2. Float32List? matrix,
  3. bool isFBO = false,
})

Implementation

void renderTexture(WebGLTexture? texture, {Float32List? matrix, bool isFBO = false}){
  late final Buffer _vertexBuffer;

  if(isFBO) {
    _vertexBuffer = vertexBuffer4FBO;
  } else {
    _vertexBuffer = vertexBuffer;
  }

  drawTexture(texture: texture, vertexBuffer: _vertexBuffer, matrix: matrix);
}