Logo
Particle.h
1#pragma once
2
3#include "gfx/Particle.h"
4#include "io/FS.h"
5#include "plugin/Plugin.h"
6
7#include "gfx/Particle/LegacyParticle.h"
8
9namespace SharpKmyGfx
10{
11 public ref class LegacyParticleDef
12 {
13 public:
14 kmyGfx::LegacyParticleDef* _def = nullptr;
15 LegacyParticleDef(kmyGfx::LegacyParticleDef* ptr);
17
20 };
21
22 public ref class LegacyParticleRoot
23 {
24 public:
25 kmyGfx::LegacyParticleRoot* _root = nullptr;
26 LegacyParticleRoot(kmyGfx::LegacyParticleRoot* ptr);
27 void save();
29 };
30
31 public ref class ParticleInstance
32 {
33 void ctorCore(System::String^ path, unsigned int displayID, bool useEfkTransformSetting);
34 public:
35 kmyGfx::ParticleInstance *obj;
37
38 ParticleInstance(System::String^ path, unsigned int displayID);
39 ParticleInstance(System::String^ path, unsigned int displayID, bool useEfkTransformSetting);
40 ~ParticleInstance(){ SAFE_REMOVE_REF(obj); }
41 void start(SharpKmyMath::Matrix4 mtx, f32 prewarm);
42 void stopEmission();
43 void stopEmission(bool immediate);
44 //[[deplicated("use setTranslate/setRotate")]]
46 void draw(SharpKmyGfx::Render^ tgt);
47 void Release();
48 void setPickupID(u16 id);
49 void stopPickup(bool flg);
50 void pause(bool flg);
51 void setVisibility(bool flg);
52 void setDisplayID(unsigned int id);
55 f32 getMaxLifeTime();
56 bool getUseDirection();
57 bool isEndPlaying();
58 void saveWithThumbnail(array<byte> ^img, int sz, int width, int height);
61 void setColor(SharpKmyGfx::Color color);
62
64
65 static void ParticleInitialize(int maxInstanceCount, int maxSquareCount);
66 static void ParticleFinalize();
67 };
68
69 public ref class ParticleRoot
70 {
71 public:
72 static void preReimport(System::String^ path);
73 static void postReimport(System::String^ path);
74 };
75
76
77}
Definition: Color.h:6
Definition: Particle.h:12
LegacyParticleDef getNextSibling()
Definition: Particle.cpp:350
Material getMaterial()
Definition: Particle.cpp:359
kmyGfx::LegacyParticleDef * _def
Definition: Particle.h:14
LegacyParticleDef getFirstChild()
Definition: Particle.cpp:341
LegacyParticleDef(kmyGfx::LegacyParticleDef *ptr)
Definition: Particle.cpp:334
Definition: Particle.h:23
LegacyParticleRoot(kmyGfx::LegacyParticleRoot *ptr)
Definition: Particle.cpp:307
LegacyParticleDef getFirstDef()
Definition: Particle.cpp:314
void save()
Definition: Particle.cpp:321
kmyGfx::LegacyParticleRoot * _root
Definition: Particle.h:25
Definition: Material.h:6
Definition: Particle.h:32
void setVisibility(bool flg)
Definition: Particle.cpp:152
~ParticleInstance()
Definition: Particle.h:40
static void ParticleInitialize(int maxInstanceCount, int maxSquareCount)
Definition: Particle.cpp:23
void setPickupID(u16 id)
Definition: Particle.cpp:138
void saveWithThumbnail(array< byte > ^img, int sz, int width, int height)
Definition: Particle.cpp:227
void start(SharpKmyMath::Matrix4 mtx, f32 prewarm)
Definition: Particle.cpp:67
void pause(bool flg)
Definition: Particle.cpp:99
bool isEndPlaying()
Definition: Particle.cpp:217
void stopEmission()
Definition: Particle.cpp:78
bool useEfkTransform
Definition: Particle.h:36
void getBound(SharpKmyMath::Vector3 %min, SharpKmyMath::Vector3 %max)
Definition: Particle.cpp:166
SharpKmyPhysics::PhysicsObject getPhysicsObject()
Definition: Particle.cpp:259
void draw(SharpKmyGfx::Render^ tgt)
Definition: Particle.cpp:123
static void ParticleFinalize()
Definition: Particle.cpp:31
void stopPickup(bool flg)
Definition: Particle.cpp:145
f32 getMaxLifeTime()
Definition: Particle.cpp:198
ParticleInstance(System::String^ path, unsigned int displayID)
Definition: Particle.cpp:38
void setTarget(SharpKmyMath::Vector3 tgt)
Definition: Particle.cpp:271
void getBoundOne(SharpKmyMath::Vector3 %min, SharpKmyMath::Vector3 %max)
Definition: Particle.cpp:182
void setDisplayID(unsigned int id)
Definition: Particle.cpp:159
void setPosture(SharpKmyMath::Matrix4 mtx)
Definition: Particle.cpp:108
void Release()
Definition: Particle.cpp:128
kmyGfx::ParticleInstance * obj
Definition: Particle.h:35
void ctorCore(System::String^ path, unsigned int displayID, bool useEfkTransformSetting)
Definition: Particle.cpp:48
bool getUseDirection()
Definition: Particle.cpp:206
void setColor(SharpKmyGfx::Color color)
Definition: Particle.cpp:280
LegacyParticleRoot getLegacyRoot()
Definition: Particle.cpp:289
Definition: Particle.h:70
static void postReimport(System::String^ path)
Definition: Particle.cpp:15
static void preReimport(System::String^ path)
Definition: Particle.cpp:6
Definition: Render.h:32
Definition: Matrix4.h:12
Definition: PhysicsObject.h:17
Definition: Asset.h:4
Definition: Vector3.h:7