-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
23 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
#pragma once | ||
class CParticlesObject; | ||
class CPS_Instance; | ||
|
||
class PARTICLES_API CParticlesAsync | ||
{ | ||
public: | ||
static void Play(); | ||
static void Wait(); | ||
|
||
static bool Push(CParticlesObject* Obj); | ||
static void Pop(CParticlesObject* Obj); | ||
|
||
static void ForceUpdate(CParticlesObject* Obj); | ||
static void ForceUpdate(CPS_Instance* Obj); | ||
static bool NeedForceUpdate(); | ||
|
||
private: | ||
void UpdateParticle(CParticlesObject* particle) const; | ||
void UpdateParticle(CPS_Instance* particle) const; | ||
static void Start(); | ||
|
||
public: | ||
CParticlesAsync(); | ||
|
||
private: | ||
xr_list<CParticlesObject*> Particles; | ||
volatile bool IsStarted = false; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters