Rename SPL_Emit functions

This commit is contained in:
Fexty12573 2024-08-03 17:20:42 +02:00
parent 0041b6dc5f
commit b0d4cd4a89
2 changed files with 6 additions and 14 deletions

View File

@ -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

View File

@ -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;