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 public:
34 kmyGfx::ParticleInstance *obj;
35
36 ParticleInstance(System::String^ path, unsigned int displayID);
37 void start(SharpKmyMath::Matrix4 mtx, f32 prewarm);
38 void stopEmission();
39 [[deplicated("use setTranslate/setRotate")]]
41 void draw(SharpKmyGfx::Render^ tgt);
42 void Release();
43 void setPickupID(u16 id);
44 void stopPickup(bool flg);
45 void pause(bool flg);
46 void setVisibility(bool flg);
47 void setDisplayID(unsigned int id);
50 f32 getMaxLifeTime();
51 bool getUseDirection();
52 bool isEndPlaying();
53 void saveWithThumbnail(array<byte> ^img, int sz, int width, int height);
56
58
59 static void ParticleInitialize(int maxInstanceCount, int maxSquareCount);
60 static void ParticleFinalize();
61 };
62
63 public ref class ParticleRoot
64 {
65 public:
66 static void preReimport(System::String^ path);
67 static void postReimport(System::String^ path);
68 };
69
70
71}
Definition: Particle.h:12
LegacyParticleDef getNextSibling()
Definition: Particle.cpp:259
Material getMaterial()
Definition: Particle.cpp:266
kmyGfx::LegacyParticleDef * _def
Definition: Particle.h:14
LegacyParticleDef getFirstChild()
Definition: Particle.cpp:252
LegacyParticleDef(kmyGfx::LegacyParticleDef *ptr)
Definition: Particle.cpp:247
Definition: Particle.h:23
LegacyParticleRoot(kmyGfx::LegacyParticleRoot *ptr)
Definition: Particle.cpp:226
LegacyParticleDef getFirstDef()
Definition: Particle.cpp:231
void save()
Definition: Particle.cpp:236
kmyGfx::LegacyParticleRoot * _root
Definition: Particle.h:25
Definition: Material.h:26
Definition: Particle.h:32
void setVisibility(bool flg)
Definition: Particle.cpp:102
static void ParticleInitialize(int maxInstanceCount, int maxSquareCount)
Definition: Particle.cpp:19
void setPickupID(u16 id)
Definition: Particle.cpp:92
void saveWithThumbnail(array< byte > ^img, int sz, int width, int height)
Definition: Particle.cpp:163
void start(SharpKmyMath::Matrix4 mtx, f32 prewarm)
Definition: Particle.cpp:43
void pause(bool flg)
Definition: Particle.cpp:59
bool isEndPlaying()
Definition: Particle.cpp:155
void stopEmission()
Definition: Particle.cpp:52
void getBound(SharpKmyMath::Vector3 %min, SharpKmyMath::Vector3 %max)
Definition: Particle.cpp:112
SharpKmyPhysics::PhysicsObject getPhysicsObject()
Definition: Particle.cpp:193
void draw(SharpKmyGfx::Render^ tgt)
Definition: Particle.cpp:79
static void ParticleFinalize()
Definition: Particle.cpp:25
void stopPickup(bool flg)
Definition: Particle.cpp:97
f32 getMaxLifeTime()
Definition: Particle.cpp:140
ParticleInstance(System::String^ path, unsigned int displayID)
Definition: Particle.cpp:30
void setTarget(SharpKmyMath::Vector3 tgt)
Definition: Particle.cpp:203
void getBoundOne(SharpKmyMath::Vector3 %min, SharpKmyMath::Vector3 %max)
Definition: Particle.cpp:126
void setDisplayID(unsigned int id)
Definition: Particle.cpp:107
void setPosture(SharpKmyMath::Matrix4 mtx)
Definition: Particle.cpp:66
void Release()
Definition: Particle.cpp:84
kmyGfx::ParticleInstance * obj
Definition: Particle.h:34
bool getUseDirection()
Definition: Particle.cpp:146
LegacyParticleRoot getLegacyRoot()
Definition: Particle.cpp:210
Definition: Particle.h:64
static void postReimport(System::String^ path)
Definition: Particle.cpp:13
static void preReimport(System::String^ path)
Definition: Particle.cpp:6
Definition: Render.h:32
Definition: Matrix4.h:10
Definition: PhysicsObject.h:17
Definition: Billboard.cpp:4
Definition: Vector3.h:8