src/scene.c

changeset 256
60014484121c
parent 233
bda74199223f
equal deleted inserted replaced
255:0e0a0bf4f7e4 256:60014484121c
208 scene->camera.viewport.pos.y, 208 scene->camera.viewport.pos.y,
209 scene->camera.viewport.size.width, 209 scene->camera.viewport.size.width,
210 scene->camera.viewport.size.height 210 scene->camera.viewport.size.height
211 ); 211 );
212 glEnable(GL_SCISSOR_TEST); 212 glEnable(GL_SCISSOR_TEST);
213 const asc_col4f col = scene->camera.clear_color; 213 const asc_color col = scene->camera.clear_color;
214 glClearColor(col.red, col.green, col.blue, col.alpha); 214 glClearColor(col.red, col.green, col.blue, col.alpha);
215 glClear(GL_COLOR_BUFFER_BIT); 215 glClear(GL_COLOR_BUFFER_BIT);
216 glDisable(GL_SCISSOR_TEST); 216 glDisable(GL_SCISSOR_TEST);
217 } 217 }
218 218

mercurial