Texture_setImage function

  1. @Native<Bool Function(Pointer<TEngine>, Pointer<TTexture>, Uint32, Pointer<Uint8>, Size, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32)>(ffi.Pointer<TEngine>, ffi.Pointer<TTexture>, ffi.Uint32, ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32)>(isLeaf: true)
bool Texture_setImage(
  1. Pointer<TEngine> tEngine,
  2. Pointer<TTexture> tTexture,
  3. int level,
  4. Pointer<Uint8> data,
  5. int size,
  6. int x_offset,
  7. int y_offset,
  8. int z_offset,
  9. int width,
  10. int height,
  11. int depth,
  12. int bufferFormat,
  13. int pixelDataType,
)

Implementation

@ffi.Native<
    ffi.Bool Function(
        ffi.Pointer<TEngine>,
        ffi.Pointer<TTexture>,
        ffi.Uint32,
        ffi.Pointer<ffi.Uint8>,
        ffi.Size,
        ffi.Uint32,
        ffi.Uint32,
        ffi.Uint32,
        ffi.Uint32,
        ffi.Uint32,
        ffi.Uint32,
        ffi.Uint32,
        ffi.Uint32)>(isLeaf: true)
external bool Texture_setImage(
  ffi.Pointer<TEngine> tEngine,
  ffi.Pointer<TTexture> tTexture,
  int level,
  ffi.Pointer<ffi.Uint8> data,
  int size,
  int x_offset,
  int y_offset,
  int z_offset,
  int width,
  int height,
  int depth,
  int bufferFormat,
  int pixelDataType,
);