Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ikplugin_api.h « intern « ikplugin « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9af0802731d36372cd881ef6296498455dc36f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright 2001-2002 NaN Holding BV. All rights reserved. */

/** \file
 * \ingroup ikplugin
 */

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

struct Depsgraph;
struct Object;
struct Scene;
struct bPoseChannel;

struct IKPlugin {
  void (*initialize_tree_func)(struct Depsgraph *depsgraph,
                               struct Scene *scene,
                               struct Object *ob,
                               float ctime);
  void (*execute_tree_func)(struct Depsgraph *depsgraph,
                            struct Scene *scene,
                            struct Object *ob,
                            struct bPoseChannel *pchan,
                            float ctime);
  void (*release_tree_func)(struct Scene *scene, struct Object *ob, float ctime);
  void (*remove_armature_func)(struct bPose *pose);
  void (*clear_cache)(struct bPose *pose);
  void (*update_param)(struct bPose *pose);
  void (*test_constraint)(struct Object *ob, struct bConstraint *cons);
};

typedef struct IKPlugin IKPlugin;

#ifdef __cplusplus
}
#endif