create_geometry_ffi function

  1. @Native<Void Function(Pointer<Void>, Pointer<Float>, Int, Pointer<Uint16>, Int, Int, Pointer<Char>, Pointer<NativeFunction<Void Function(EntityId)>>)>(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Float>, ffi.Int, ffi.Pointer<ffi.Uint16>, ffi.Int, ffi.Int, ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.NativeFunction<ffi.Void Function(EntityId)>>)>()
void create_geometry_ffi(
  1. Pointer<Void> viewer,
  2. Pointer<Float> vertices,
  3. int numVertices,
  4. Pointer<Uint16> indices,
  5. int numIndices,
  6. int primitiveType,
  7. Pointer<Char> materialPath,
  8. Pointer<NativeFunction<Void Function(EntityId)>> callback,
)

Implementation

@ffi.Native<
    ffi.Void Function(
        ffi.Pointer<ffi.Void>,
        ffi.Pointer<ffi.Float>,
        ffi.Int,
        ffi.Pointer<ffi.Uint16>,
        ffi.Int,
        ffi.Int,
        ffi.Pointer<ffi.Char>,
        ffi.Pointer<ffi.NativeFunction<ffi.Void Function(EntityId)>>)>()
external void create_geometry_ffi(
  ffi.Pointer<ffi.Void> viewer,
  ffi.Pointer<ffi.Float> vertices,
  int numVertices,
  ffi.Pointer<ffi.Uint16> indices,
  int numIndices,
  int primitiveType,
  ffi.Pointer<ffi.Char> materialPath,
  ffi.Pointer<ffi.NativeFunction<ffi.Void Function(EntityId)>> callback,
);