update generated bindings
This commit is contained in:
@@ -552,6 +552,12 @@ external void View_setFrontFaceWindingInverted(
|
|||||||
bool inverted,
|
bool inverted,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ffi.Native<ffi.Void Function(ffi.Pointer<TView>, ffi.Pointer<TFogOptions>)>(isLeaf: true)
|
||||||
|
external void View_setFogOptions(
|
||||||
|
ffi.Pointer<TView> tView,
|
||||||
|
ffi.Pointer<TFogOptions> tFogOptions,
|
||||||
|
);
|
||||||
|
|
||||||
@ffi.Native<
|
@ffi.Native<
|
||||||
ffi.Void Function(ffi.Pointer<TView>, ffi.Uint32, ffi.Uint32, ffi.Uint32,
|
ffi.Void Function(ffi.Pointer<TView>, ffi.Uint32, ffi.Uint32, ffi.Uint32,
|
||||||
PickCallback)>(isLeaf: true)
|
PickCallback)>(isLeaf: true)
|
||||||
@@ -3668,6 +3674,43 @@ final class TViewport extends ffi.Struct {
|
|||||||
external int height;
|
external int height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Copied from FogOptions in View.h
|
||||||
|
final class TFogOptions extends ffi.Struct {
|
||||||
|
@ffi.Float()
|
||||||
|
external double distance;
|
||||||
|
|
||||||
|
@ffi.Float()
|
||||||
|
external double cutOffDistance;
|
||||||
|
|
||||||
|
@ffi.Float()
|
||||||
|
external double maximumOpacity;
|
||||||
|
|
||||||
|
@ffi.Float()
|
||||||
|
external double height;
|
||||||
|
|
||||||
|
@ffi.Float()
|
||||||
|
external double heightFalloff;
|
||||||
|
|
||||||
|
external double3 linearColor;
|
||||||
|
|
||||||
|
@ffi.Float()
|
||||||
|
external double density;
|
||||||
|
|
||||||
|
@ffi.Float()
|
||||||
|
external double inScatteringStart;
|
||||||
|
|
||||||
|
@ffi.Float()
|
||||||
|
external double inScatteringSize;
|
||||||
|
|
||||||
|
@ffi.Bool()
|
||||||
|
external bool fogColorFromIbl;
|
||||||
|
|
||||||
|
external ffi.Pointer<TTexture> skyColor;
|
||||||
|
|
||||||
|
@ffi.Bool()
|
||||||
|
external bool enabled;
|
||||||
|
}
|
||||||
|
|
||||||
sealed class TToneMapping {
|
sealed class TToneMapping {
|
||||||
static const ACES = 0;
|
static const ACES = 0;
|
||||||
static const FILMIC = 1;
|
static const FILMIC = 1;
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ sealed class Struct extends NativeType {
|
|||||||
final Pointer _address;
|
final Pointer _address;
|
||||||
|
|
||||||
Struct(this._address);
|
Struct(this._address);
|
||||||
|
|
||||||
static create<T extends Struct>() {
|
static create<T extends Struct>() {
|
||||||
switch (T) {
|
switch (T) {
|
||||||
case double4x4:
|
case double4x4:
|
||||||
@@ -269,7 +269,7 @@ sealed class Struct extends NativeType {
|
|||||||
return double4x4(arr1, arr2, arr3, arr4, ptr) as T;
|
return double4x4(arr1, arr2, arr3, arr4, ptr) as T;
|
||||||
}
|
}
|
||||||
throw Exception();
|
throw Exception();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension StructPointer<T extends Struct> on T {
|
extension StructPointer<T extends Struct> on T {
|
||||||
@@ -2883,10 +2883,9 @@ void View_setFrontFaceWindingInverted(
|
|||||||
|
|
||||||
void View_setFogOptions(
|
void View_setFogOptions(
|
||||||
self.Pointer<TView> tView,
|
self.Pointer<TView> tView,
|
||||||
TFogOptions tFogOptions,
|
self.Pointer<TFogOptions> tFogOptions,
|
||||||
) {
|
) {
|
||||||
final tFogOptionsPtr = tFogOptions._address;
|
final result = _lib._View_setFogOptions(tView.cast(), tFogOptions.cast());
|
||||||
final result = _lib._View_setFogOptions(tView.cast(), tFogOptionsPtr.cast());
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6348,6 +6347,7 @@ extension TFogOptionsExt on Pointer<TFogOptions> {
|
|||||||
var height = _lib.getValue(this + 12, "float").toDartDouble;
|
var height = _lib.getValue(this + 12, "float").toDartDouble;
|
||||||
var heightFalloff = _lib.getValue(this + 16, "float").toDartDouble;
|
var heightFalloff = _lib.getValue(this + 16, "float").toDartDouble;
|
||||||
var linearColor = _lib.getValue(this + 20, "*").toDartInt;
|
var linearColor = _lib.getValue(this + 20, "*").toDartInt;
|
||||||
|
final linearColorPtr = Pointer<double3>(linearColor);
|
||||||
var density = _lib.getValue(this + 44, "float").toDartDouble;
|
var density = _lib.getValue(this + 44, "float").toDartDouble;
|
||||||
var inScatteringStart = _lib.getValue(this + 48, "float").toDartDouble;
|
var inScatteringStart = _lib.getValue(this + 48, "float").toDartDouble;
|
||||||
var inScatteringSize = _lib.getValue(this + 52, "float").toDartDouble;
|
var inScatteringSize = _lib.getValue(this + 52, "float").toDartDouble;
|
||||||
@@ -6361,13 +6361,13 @@ extension TFogOptionsExt on Pointer<TFogOptions> {
|
|||||||
maximumOpacity,
|
maximumOpacity,
|
||||||
height,
|
height,
|
||||||
heightFalloff,
|
heightFalloff,
|
||||||
linearColor,
|
linearColorPtr.toDart(),
|
||||||
density,
|
density,
|
||||||
inScatteringStart,
|
inScatteringStart,
|
||||||
inScatteringSize,
|
inScatteringSize,
|
||||||
fogColorFromIbl,
|
fogColorFromIbl == 1,
|
||||||
skyColor.cast(),
|
skyColor.cast(),
|
||||||
enabled,
|
enabled == 1,
|
||||||
this);
|
this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6377,13 +6377,15 @@ extension TFogOptionsExt on Pointer<TFogOptions> {
|
|||||||
_lib.setValue(this + 8, dartType.maximumOpacity.toJS, "float");
|
_lib.setValue(this + 8, dartType.maximumOpacity.toJS, "float");
|
||||||
_lib.setValue(this + 12, dartType.height.toJS, "float");
|
_lib.setValue(this + 12, dartType.height.toJS, "float");
|
||||||
_lib.setValue(this + 16, dartType.heightFalloff.toJS, "float");
|
_lib.setValue(this + 16, dartType.heightFalloff.toJS, "float");
|
||||||
_lib.setValue(this + 20, dartType.linearColor.toJS, "*");
|
_lib.setValue(this + 20, dartType.linearColor.x.toJS, "double");
|
||||||
|
_lib.setValue(this + 28, dartType.linearColor.y.toJS, "double");
|
||||||
|
_lib.setValue(this + 36, dartType.linearColor.z.toJS, "double");
|
||||||
_lib.setValue(this + 44, dartType.density.toJS, "float");
|
_lib.setValue(this + 44, dartType.density.toJS, "float");
|
||||||
_lib.setValue(this + 48, dartType.inScatteringStart.toJS, "float");
|
_lib.setValue(this + 48, dartType.inScatteringStart.toJS, "float");
|
||||||
_lib.setValue(this + 52, dartType.inScatteringSize.toJS, "float");
|
_lib.setValue(this + 52, dartType.inScatteringSize.toJS, "float");
|
||||||
_lib.setValue(this + 56, dartType.fogColorFromIbl.toJS, "i8");
|
_lib.setValue(this + 56, dartType.fogColorFromIbl ? 1.toJS : 0.toJS, "i8");
|
||||||
_lib.setValue(this + 57, dartType.skyColor.addr.toJS, "*");
|
_lib.setValue(this + 57, dartType.skyColor.addr.toJS, "*");
|
||||||
_lib.setValue(this + 61, dartType.enabled.toJS, "i8");
|
_lib.setValue(this + 61, dartType.enabled ? 1.toJS : 0.toJS, "i8");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user