mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 09:47:58 +03:00
30 lines
756 B
C
30 lines
756 B
C
![]() |
#pragma once
|
||
|
#include <d3d11.h>
|
||
|
#include <SimpleMath.h>
|
||
|
#include "phd_global.h"
|
||
|
namespace T5M {
|
||
|
namespace Effects {
|
||
|
namespace Spark {
|
||
|
struct SparkParticle {
|
||
|
DirectX::SimpleMath::Vector3 pos;
|
||
|
DirectX::SimpleMath::Vector3 velocity;
|
||
|
DirectX::SimpleMath::Vector4 sourceColor;
|
||
|
DirectX::SimpleMath::Vector4 destinationColor;
|
||
|
DirectX::SimpleMath::Vector4 color;
|
||
|
int room;
|
||
|
float gravity;
|
||
|
float friction;
|
||
|
float age;
|
||
|
float life;
|
||
|
float width;
|
||
|
float height;
|
||
|
bool active;
|
||
|
};
|
||
|
|
||
|
extern std::array<SparkParticle,64> SparkParticles;
|
||
|
void UpdateSparkParticles();
|
||
|
SparkParticle& getFreeSparkParticle();
|
||
|
void TriggerFlareSparkParticles(PHD_VECTOR* pos, PHD_VECTOR* vel, CVECTOR* color,int room);
|
||
|
}
|
||
|
}
|
||
|
}
|