create_geometry function

  1. @Native<EntityId Function(Pointer<Void>, Pointer<Float>, Int, Pointer<Uint16>, Int, Int, Pointer<Char>)>(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Float>, ffi.Int, ffi.Pointer<ffi.Uint16>, ffi.Int, ffi.Int, ffi.Pointer<ffi.Char>)>(symbol: '_create_geometry', assetId: 'thermion_dart')
int create_geometry(
  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,
)

Implementation

@ffi.Native<
        EntityId Function(
            ffi.Pointer<ffi.Void>,
            ffi.Pointer<ffi.Float>,
            ffi.Int,
            ffi.Pointer<ffi.Uint16>,
            ffi.Int,
            ffi.Int,
            ffi.Pointer<ffi.Char>)>(
    symbol: '_create_geometry', assetId: 'thermion_dart')
external int create_geometry(
  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,
);