| 106 | } |
| 107 | |
| 108 | void DrawQuadD(RenderTarget dst, RenderTarget src, ScreenRect* pdstRect, unsigned int shader) |
| 109 | { |
| 110 | glBindFramebuffer(GL_FRAMEBUFFER, dst.fbo); |
| 111 | glUseProgramObjectARB(shader); |
| 112 | glBindTexture(GL_TEXTURE_2D, src.fbo_texture); |
| 113 | glBegin(GL_QUADS); |
| 114 | glTexCoord2d(0.0, 0.0); glVertex2f(pdstRect->fLeft(), pdstRect->fTop()); |
| 115 | glTexCoord2d(1.0, 0.0); glVertex2f(pdstRect->fRight(), pdstRect->fTop()); |
| 116 | glTexCoord2d(1.0, 1.0); glVertex2f(pdstRect->fRight(), pdstRect->fBottom()); |
| 117 | glTexCoord2d(0.0, 1.0); glVertex2f(pdstRect->fLeft(), pdstRect->fBottom()); |
| 118 | glEnd(); |
| 119 | } |
| 120 | |
| 121 | void DrawQuad(RenderTarget dst, unsigned int texture, ScreenRect* psrcRect, ScreenRect* pdstRect, unsigned int shader) |
| 122 | { |