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

@@ -30,7 +30,6 @@ void cameraEntityAdded(const ecsid_t id) {
cam->perspective.fov = glm_rad(90.0f);
cam->nearClip = 0.1f;
cam->farClip = 1000.0f;
cam->clearColor = COLOR_CORNFLOWER_BLUE;
}
void cameraPush(const ecsid_t id) {
@@ -67,7 +66,7 @@ void cameraPush(const ecsid_t id) {
);
}
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
mat4 pv;
glm_mat4_mul(projection, view, pv);
@@ -76,21 +75,13 @@ void cameraPush(const ecsid_t id) {
glLoadIdentity();
glLoadMatrixf((const GLfloat*)pv);
glClearColor(
cam->clearColor.r / 255.0f,
cam->clearColor.g / 255.0f,
cam->clearColor.b / 255.0f,
cam->clearColor.a / 255.0f
);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
#endif
}
void cameraPop(void) {
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
glPopMatrix();
#endif
}