PageRenderTime 18ms CodeModel.GetById 13ms RepoModel.GetById 2ms app.codeStats 0ms

/src/gl_fbo.hpp

https://bitbucket.org/maghoff/radiosity
C++ Header | 23 lines | 16 code | 7 blank | 0 comment | 0 complexity | 53785def878605a2733367da618950ee MD5 | raw file
  1. #ifndef SIMPLEMODEL_GL_FBO_HPP
  2. #define SIMPLEMODEL_GL_FBO_HPP
  3. #include <boost/noncopyable.hpp>
  4. class gl_fbo : public boost::noncopyable {
  5. unsigned id;
  6. unsigned depthbuffer;
  7. void init();
  8. public:
  9. gl_fbo();
  10. gl_fbo(int width, int height);
  11. ~gl_fbo();
  12. void set_size(int width, int height);
  13. unsigned get_id() const;
  14. void render_to(unsigned);
  15. };
  16. #endif