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

FN_multi_function_common_contexts.h « functions « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b689ab08d57b3ac91ce0ac88ac2cf58b3f3706b (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
41
42
43
44
45
#ifndef __FN_MULTI_FUNCTION_COMMON_CONTEXTS_H__
#define __FN_MULTI_FUNCTION_COMMON_CONTEXTS_H__

#include <mutex>

#include "FN_attributes_ref.h"
#include "FN_multi_function_context.h"

#include "BLI_float3.h"
#include "BLI_map.h"

namespace FN {

using BLI::Map;

struct VertexPositionArray {
  ArrayRef<BLI::float3> positions;
};

struct SceneTimeContext {
  float time;
};

struct ParticleAttributesContext {
  AttributesRef attributes;
};

struct EmitterTimeInfoContext {
  float duration;
  float begin;
  float end;
  int step;
};

struct EventFilterEndTimeContext {
  float end_time;
};

struct EventFilterDurationsContext {
  ArrayRef<float> durations;
};

}  // namespace FN

#endif /* __FN_MULTI_FUNCTION_COMMON_CONTEXTS_H__ */