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:315
Material getMaterial()
Definition: Particle.cpp:324
kmyGfx::LegacyParticleDef * _def
Definition: Particle.h:14
LegacyParticleDef getFirstChild()
Definition: Particle.cpp:306
LegacyParticleDef(kmyGfx::LegacyParticleDef *ptr)
Definition: Particle.cpp:299
Definition: Particle.h:23
LegacyParticleRoot(kmyGfx::LegacyParticleRoot *ptr)
Definition: Particle.cpp:272
LegacyParticleDef getFirstDef()
Definition: Particle.cpp:279
void save()
Definition: Particle.cpp:286
kmyGfx::LegacyParticleRoot * _root
Definition: Particle.h:25
Definition: Material.h:6
Definition: Particle.h:32
void setVisibility(bool flg)
Definition: Particle.cpp:126
static void ParticleInitialize(int maxInstanceCount, int maxSquareCount)
Definition: Particle.cpp:23
void setPickupID(u16 id)
Definition: Particle.cpp:112
void saveWithThumbnail(array< byte > ^img, int sz, int width, int height)
Definition: Particle.cpp:201
void start(SharpKmyMath::Matrix4 mtx, f32 prewarm)
Definition: Particle.cpp:53
void pause(bool flg)
Definition: Particle.cpp:73
bool isEndPlaying()
Definition: Particle.cpp:191
void stopEmission()
Definition: Particle.cpp:64
void getBound(SharpKmyMath::Vector3 %min, SharpKmyMath::Vector3 %max)
Definition: Particle.cpp:140
SharpKmyPhysics::PhysicsObject getPhysicsObject()
Definition: Particle.cpp:233
void draw(SharpKmyGfx::Render^ tgt)
Definition: Particle.cpp:97
static void ParticleFinalize()
Definition: Particle.cpp:31
void stopPickup(bool flg)
Definition: Particle.cpp:119
f32 getMaxLifeTime()
Definition: Particle.cpp:172
ParticleInstance(System::String^ path, unsigned int displayID)
Definition: Particle.cpp:38
void setTarget(SharpKmyMath::Vector3 tgt)
Definition: Particle.cpp:245
void getBoundOne(SharpKmyMath::Vector3 %min, SharpKmyMath::Vector3 %max)
Definition: Particle.cpp:156
void setDisplayID(unsigned int id)
Definition: Particle.cpp:133
void setPosture(SharpKmyMath::Matrix4 mtx)
Definition: Particle.cpp:82
void Release()
Definition: Particle.cpp:102
kmyGfx::ParticleInstance * obj
Definition: Particle.h:34
bool getUseDirection()
Definition: Particle.cpp:180
LegacyParticleRoot getLegacyRoot()
Definition: Particle.cpp:254
Definition: Particle.h:64
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