Exemple #1
0
 public static Offset <BlendShapeFrame> CreateBlendShapeFrame(FlatBufferBuilder builder,
                                                              float weight = 0,
                                                              VectorOffset deltaVerticesOffset = default(VectorOffset),
                                                              VectorOffset deltaNormalsOffset  = default(VectorOffset),
                                                              VectorOffset deltaTangentsOffset = default(VectorOffset))
 {
     builder.StartObject(4);
     BlendShapeFrame.AddDeltaTangents(builder, deltaTangentsOffset);
     BlendShapeFrame.AddDeltaNormals(builder, deltaNormalsOffset);
     BlendShapeFrame.AddDeltaVertices(builder, deltaVerticesOffset);
     BlendShapeFrame.AddWeight(builder, weight);
     return(BlendShapeFrame.EndBlendShapeFrame(builder));
 }
Exemple #2
0
 public static BlendShapeFrame GetRootAsBlendShapeFrame(ByteBuffer _bb, BlendShapeFrame obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }
Exemple #3
0
 public BlendShapeFrame GetFrames(BlendShapeFrame obj, int j)
 {
     int o = __offset(6); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null);
 }