Removed DUSK_ prefix

This commit is contained in:
2025-08-23 10:13:49 -05:00
parent 1bf6fe6eaf
commit 1dfde00317
28 changed files with 148 additions and 101 deletions

View File

@@ -37,7 +37,7 @@ void textureInit(
);
#endif
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
glGenTextures(1, &texture->id);
glBindTexture(GL_TEXTURE_2D, texture->id);
glTexImage2D(
@@ -58,7 +58,7 @@ void textureBind(const texture_t *texture) {
if(TEXTURE_BOUND == texture) return;
if(texture == NULL) {
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
glDisable(GL_TEXTURE_2D);
#endif
TEXTURE_BOUND = NULL;
@@ -74,7 +74,7 @@ void textureBind(const texture_t *texture) {
"Texture width and height must be greater than 0"
);
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture->id);
#endif
@@ -85,7 +85,7 @@ void textureDispose(texture_t *texture) {
assertNotNull(texture, "Texture cannot be NULL");
assertTrue(texture->id != 0, "Texture ID must not be 0");
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
glDeleteTextures(1, &texture->id);
#endif
}