src/scene.c

changeset 64
f18dc427f86f
parent 61
b7954818a6b7
child 65
9c44c55d327a
equal deleted inserted replaced
63:e3cacdd636e4 64:f18dc427f86f
149 glClear(GL_DEPTH_BUFFER_BIT); 149 glClear(GL_DEPTH_BUFFER_BIT);
150 150
151 // Sprites 151 // Sprites
152 // ------- 152 // -------
153 // TODO: implement view matrix for 2D worlds 153 // TODO: implement view matrix for 2D worlds
154 shader = &asc_context.active_window->glctx.shader.sprite.base; 154 shader = &asc_window_active->glctx.shader.sprite.base;
155 glUseProgram(shader->id); 155 glUseProgram(shader->id);
156 glUniformMatrix4fv(shader->projection, 1, 156 glUniformMatrix4fv(shader->projection, 1,
157 GL_FALSE, camera->projection); 157 GL_FALSE, camera->projection);
158 158
159 // render opaque sprites from front to back 159 // render opaque sprites from front to back

mercurial