FlutterOpenGLFfi class

FFI bindings to Flutter_OpenGL

Constructors

FlutterOpenGLFfi(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
FlutterOpenGLFfi.fromLookup(Pointer<T> lookup<T extends NativeType>(String symbolName))
The symbols are looked up with lookup.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addBoolUniform(String name, bool val) bool
addFloatUniform(String name, double val) bool
  • add FLOAT
  • addIntUniform(String name, int val) bool
  • add INT
  • addMat2Uniform(String name, List<double> val) bool
  • add MAT2
  • addMat3Uniform(String name, List<double> val) bool
  • add MAT3
  • addMat4Uniform(String name, List<double> val) bool
  • add MAT4
  • addSampler2DUniform(String name, int width, int height, Uint8List val) bool
    addShaderToyUniforms() → void
    addVec2Uniform(String name, List<double> val) bool
  • add VEC2
  • addVec3Uniform(String name, List<double> val) bool
  • add VEC3
  • addVec4Uniform(String name, List<double> val) bool
  • add VEC4
  • getFps() double
    getFragmentShader() String
    getTextureSize() Size
    getVertexShader() String
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    removeUniform(String name) bool
    rendererStatus() bool
    replaceSampler2DUniform(String name, int width, int height, Uint8List val) bool
    setBoolUniform(String name, bool val) bool
    setClearColor(int clearR, int clearG, int clearB, int clearA) → void
    setFloatUniform(String name, double val) bool
  • set FLOAT
  • setIntUniform(String name, int val) bool
  • set INT
  • setMat2Uniform(String name, List<double> val) bool
  • set MAT2
  • setMat3Uniform(String name, List<double> val) bool
  • set MAT3
  • setMat4Uniform(String name, List<double> val) bool
  • set MAT4
  • setMousePosition(Offset startingPos, Offset pos, PointerEventType eventType, Size twSize) → void
    setSampler2DUniform(String name, Uint8List val) bool
  • set SAMPLER2D
  • setShader(bool isContinuous, String vertexShader, String fragmentShader) String
    setShaderToy(String fragmentShader) String
    setVec2Uniform(String name, List<double> val) bool
  • set VEC2
  • setVec3Uniform(String name, List<double> val) bool
  • set VEC3
  • setVec4Uniform(String name, List<double> val) bool
  • set VEC4
  • startCaptureOnSampler2D(String name, String completeFilePath) bool
  • Start capturing
  • startThread() → void
    stopCapture() bool
  • Stop capturing
  • stopThread() → void
    toString() String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited