| 809 | } |
| 810 | |
| 811 | void attachTexture(GLenum texTarget, GLuint texId, |
| 812 | GLenum attachment = GL_COLOR_ATTACHMENT0, int mipLevel = 0, |
| 813 | int zSlice = 0) { |
| 814 | bindRenderPath(); |
| 815 | check_gl_error(__FILE__, __LINE__); |
| 816 | |
| 817 | glFramebufferTexture2D(GL_FRAMEBUFFER, attachment, texTarget, texId, |
| 818 | mipLevel); |
| 819 | |
| 820 | checkStatus(__FILE__, __LINE__, false); |
| 821 | |
| 822 | unbindRenderPath(); |
| 823 | } |
| 824 | |
| 825 | bool initialize(unsigned width, unsigned height, fboConfig &rConfigFBO, |
| 826 | fboData &rActiveFBO) { |
nothing calls this directly
no outgoing calls
no test coverage detected