mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 09:18:00 +03:00
31 lines
No EOL
826 B
C++
31 lines
No EOL
826 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);
|
|
void TriggerRicochetSpark(GAME_VECTOR* pos, short angle, int num);
|
|
}
|
|
}
|
|
} |