mirror of
https://github.com/pret/pokeplatinum.git
synced 2024-11-23 05:49:44 +00:00
Rename SPL_Emit functions
This commit is contained in:
parent
0041b6dc5f
commit
b0d4cd4a89
@ -62,7 +62,7 @@ SPLEmitter *SPLManager_CreateEmitterWithCallback(SPLManager *mgr, int resourceID
|
||||
SPLEmitter *SPLManager_CreateEmitterWithCallbackEx(SPLManager *mgr, int resourceID, VecFx32 *pos, void *param, SPLEmitterCallbackEx initCallback);
|
||||
void SPLManager_DeleteEmitter(SPLManager *mgr, SPLEmitter *emtr);
|
||||
void SPLManager_DeleteAllEmitters(SPLManager *mgr);
|
||||
void SPL_Emit(SPLManager *mgr, SPLEmitter *emtr);
|
||||
void SPL_EmitAt(SPLManager *mgr, SPLEmitter *emtr, VecFx32 *pos);
|
||||
void SPLManager_Emit(SPLManager *mgr, SPLEmitter *emtr);
|
||||
void SPLManager_EmitAt(SPLManager *mgr, SPLEmitter *emtr, VecFx32 *pos);
|
||||
|
||||
#endif // SPL_MANAGER_H
|
||||
|
@ -311,26 +311,18 @@ void SPLManager_Draw(SPLManager *mgr, const MtxFx43 *viewMatrix)
|
||||
|
||||
mgr->renderState.viewMatrix = viewMatrix;
|
||||
if (mgr->polygonID.drawOrder == SPL_DRAW_ORDER_REVERSE) {
|
||||
SPLEmitter *emtr = mgr->activeEmitters.first;
|
||||
|
||||
while (emtr != NULL) {
|
||||
for (SPLEmitter *emtr = mgr->activeEmitters.first; emtr != NULL; emtr = emtr->next) {
|
||||
mgr->renderState.emitter = emtr;
|
||||
if (!emtr->state.renderingDisabled) {
|
||||
SPLManager_DoDraw(mgr);
|
||||
}
|
||||
|
||||
emtr = emtr->next;
|
||||
}
|
||||
} else {
|
||||
SPLEmitter *emtr = mgr->activeEmitters.last;
|
||||
|
||||
while (emtr != NULL) {
|
||||
for (SPLEmitter *emtr = mgr->activeEmitters.last; emtr != NULL; emtr = emtr->prev) {
|
||||
mgr->renderState.emitter = emtr;
|
||||
if (!emtr->state.renderingDisabled) {
|
||||
SPLManager_DoDraw(mgr);
|
||||
}
|
||||
|
||||
emtr = emtr->prev;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -423,12 +415,12 @@ void SPLManager_DeleteAllEmitters(SPLManager *mgr)
|
||||
}
|
||||
}
|
||||
|
||||
void SPL_Emit(SPLManager *mgr, SPLEmitter *emtr)
|
||||
void SPLManager_Emit(SPLManager *mgr, SPLEmitter *emtr)
|
||||
{
|
||||
SPLEmitter_Emit(emtr, &mgr->inactiveParticles);
|
||||
}
|
||||
|
||||
void SPL_EmitAt(SPLManager *mgr, SPLEmitter *emtr, VecFx32 *pos)
|
||||
void SPLManager_EmitAt(SPLManager *mgr, SPLEmitter *emtr, VecFx32 *pos)
|
||||
{
|
||||
emtr->position.x = pos->x + emtr->resource->header->emitterBasePos.x;
|
||||
emtr->position.y = pos->y + emtr->resource->header->emitterBasePos.y;
|
||||
|
Loading…
Reference in New Issue
Block a user