Skip to content

Commit

Permalink
Refactor: Routines named Rend_ParticleClear<texture-class>Textures re…
Browse files Browse the repository at this point in the history
…named to

Rend_ParticleRelease<texture-class>Textures to follow naming conventions used
elsewhere.
  • Loading branch information
danij-deng committed Jul 16, 2011
1 parent 809d9f3 commit 8a7e80a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/portable/include/rend_particle.h
Expand Up @@ -40,15 +40,15 @@ void Rend_ParticleRegister(void);
* for a minimal resource set needed for particle rendering.
*/
void Rend_ParticleLoadSystemTextures(void);
void Rend_ParticleClearSystemTextures(void);
void Rend_ParticleReleaseSystemTextures(void);

/**
* Load any custom particle textures. They are loaded from the
* highres texture directory and are named "ParticleNN.(tga|png|pcx)".
* The first is "Particle00". (based on Leesz' textured particles mod)
*/
void Rend_ParticleLoadExtraTextures(void);
void Rend_ParticleClearExtraTextures(void);
void Rend_ParticleReleaseExtraTextures(void);

void Rend_ParticleInitForNewFrame(void);
void Rend_ParticleMarkInSectorVisible(sector_t* sector);
Expand Down
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/gl_texmanager.c
Expand Up @@ -1379,7 +1379,7 @@ void GL_ClearSystemTextures(void)
Materials_DeleteGLTextures(MN_SYSTEM_NAME);
UI_ClearTextures();

Rend_ParticleClearSystemTextures();
Rend_ParticleReleaseSystemTextures();
R_DestroySystemTextures();
}

Expand All @@ -1406,7 +1406,7 @@ void GL_ClearRuntimeTextures(void)
GL_ReleaseGLTexturesByNamespace(TN_FLAREMAPS);
GL_DeleteRawImages();

Rend_ParticleClearExtraTextures();
Rend_ParticleReleaseExtraTextures();
}

void GL_ClearTextureMemory(void)
Expand Down
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/rend_particle.c
Expand Up @@ -203,13 +203,13 @@ void Rend_ParticleLoadExtraTextures(void)
}
}

void Rend_ParticleClearSystemTextures(void)
void Rend_ParticleReleaseSystemTextures(void)
{
glDeleteTextures(1, (const GLuint*) &pointTex);
pointTex = 0;
}

void Rend_ParticleClearExtraTextures(void)
void Rend_ParticleReleaseExtraTextures(void)
{
glDeleteTextures(NUM_TEX_NAMES, (const GLuint*) ptctexname);
memset(ptctexname, 0, sizeof(ptctexname));
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/sys_sdl_window.c
Expand Up @@ -739,7 +739,7 @@ extern boolean usingFog;
gx.UpdateState(DD_RENDER_RESTART_PRE);

R_UnloadVectorGraphics();
Rend_ParticleClearExtraTextures();
Rend_ParticleReleaseExtraTextures();
GL_ClearSystemTextures();
}

Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/win32/src/sys_window.c
Expand Up @@ -1202,7 +1202,7 @@ extern boolean usingFog;
gx.UpdateState(DD_RENDER_RESTART_PRE);

R_UnloadVectorGraphics();
Rend_ParticleClearExtraTextures();
Rend_ParticleReleaseExtraTextures();
GL_ClearSystemTextures();

wglMakeCurrent(NULL, NULL);
Expand Down

0 comments on commit 8a7e80a

Please sign in to comment.