expose setParameterInt/setParameterFloat4, rename to getScreenSpaceBoundingBox, and expose method for getting renderable bounding box
This commit is contained in:
@@ -1052,6 +1052,12 @@ external void set_priority(
|
||||
int priority,
|
||||
);
|
||||
|
||||
@ffi.Native<Aabb3 Function(ffi.Pointer<TSceneManager>, EntityId)>(isLeaf: true)
|
||||
external Aabb3 SceneManager_getRenderableBoundingBox(
|
||||
ffi.Pointer<TSceneManager> sceneManager,
|
||||
int entity,
|
||||
);
|
||||
|
||||
@ffi.Native<
|
||||
Aabb2 Function(
|
||||
ffi.Pointer<TSceneManager>, ffi.Pointer<TView>, EntityId)>(isLeaf: true)
|
||||
@@ -1213,6 +1219,18 @@ external void MaterialInstance_setDepthCulling(
|
||||
bool enabled,
|
||||
);
|
||||
|
||||
@ffi.Native<
|
||||
ffi.Void Function(ffi.Pointer<TMaterialInstance>, ffi.Pointer<ffi.Char>,
|
||||
ffi.Double, ffi.Double, ffi.Double, ffi.Double)>(isLeaf: true)
|
||||
external void MaterialInstance_setParameterFloat4(
|
||||
ffi.Pointer<TMaterialInstance> materialInstance,
|
||||
ffi.Pointer<ffi.Char> name,
|
||||
double x,
|
||||
double y,
|
||||
double w,
|
||||
double z,
|
||||
);
|
||||
|
||||
@ffi.Native<
|
||||
ffi.Void Function(ffi.Pointer<TMaterialInstance>, ffi.Pointer<ffi.Char>,
|
||||
ffi.Double, ffi.Double)>(isLeaf: true)
|
||||
@@ -1232,6 +1250,15 @@ external void MaterialInstance_setParameterFloat(
|
||||
double value,
|
||||
);
|
||||
|
||||
@ffi.Native<
|
||||
ffi.Void Function(ffi.Pointer<TMaterialInstance>, ffi.Pointer<ffi.Char>,
|
||||
ffi.Int)>(isLeaf: true)
|
||||
external void MaterialInstance_setParameterInt(
|
||||
ffi.Pointer<TMaterialInstance> materialInstance,
|
||||
ffi.Pointer<ffi.Char> name,
|
||||
int value,
|
||||
);
|
||||
|
||||
@ffi.Native<TViewport Function(ffi.Pointer<TView>)>(isLeaf: true)
|
||||
external TViewport View_getViewport(
|
||||
ffi.Pointer<TView> view,
|
||||
@@ -2276,6 +2303,26 @@ final class Aabb2 extends ffi.Struct {
|
||||
external double maxY;
|
||||
}
|
||||
|
||||
final class Aabb3 extends ffi.Struct {
|
||||
@ffi.Float()
|
||||
external double centerX;
|
||||
|
||||
@ffi.Float()
|
||||
external double centerY;
|
||||
|
||||
@ffi.Float()
|
||||
external double centerZ;
|
||||
|
||||
@ffi.Float()
|
||||
external double halfExtentX;
|
||||
|
||||
@ffi.Float()
|
||||
external double halfExtentY;
|
||||
|
||||
@ffi.Float()
|
||||
external double halfExtentZ;
|
||||
}
|
||||
|
||||
final class ResourceBuffer extends ffi.Struct {
|
||||
external ffi.Pointer<ffi.Void> data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user