Go to the documentation of this file.
5 #import <Foundation/Foundation.h>
16 #define DJINNI_EXPORT __attribute__((__visibility__("default")))
32 - (void)setVisible:(BOOL)visible;
42 - (void)setSubGeometryMaterial:(nonnull NSString *)subGeometryName
50 - (nullable
BNBMaterial *)getSubGeometryMaterial:(nonnull NSString *)subGeometryName;
62 - (void)setMesh:(nullable
BNBMesh *)mesh;
72 - (void)animationChange:(nonnull NSString *)animation
73 mode:(BNBAnimationMode)mode;
85 - (void)animationSeek:(int64_t)positionNs;
121 - (void)setAnimationTimeOffsetNs:(int64_t)timeNs;
nullable BNBMeshInstance * create()
Fabric method for mesh_instance creating.
int64_t getAnimationTimeOffsetNs()
Returns current animation playback time offset from begin(0).
nonnull NSString * getAnimation()
nullable BNBPhysicsSimulator * getPhysicsSimulator()
int64_t getAnimationDurationNs()
Class, represents material interface.
nullable BNBMesh * getMesh()
BOOL isAnimationPlaying()
True if animation playback was started.
void animationPause()
pause animation playback.
void animationPlay()
Start animation playback.
BNBAnimationMode getAnimationMode()
BOOL isAnimationEnded()
True if animation playback stop.
nullable BNBComponent * asComponent()
nonnull NSArray< BNBMaterial * > * getMaterials()
get materials for each sub geometry
Interface for adjustment physics simulation.
#define DJINNI_EXPORT
class which is the container for meshes and materials and provide interface for animation controlling...
int64_t getAnimationPositionNs()