INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
glframebuffer.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2007-2009 Tom Burdick <thomas.burdick@gmail.com> 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef HYDRO_GLU_GLFRAMEBUFFER_H 00012 #define HYDRO_GLU_GLFRAMEBUFFER_H 00013 00014 00015 00016 #include "exceptions.h" 00017 00018 #include <map> 00019 00020 #include <GL/glew.h> 00021 #include <GL/gl.h> 00022 00023 #include "glerrorutil.h" 00024 #include "gltexture.h" 00025 00026 #include <IceUtil/Shared.h> 00027 #include <IceUtil/Handle.h> 00028 00029 namespace hydroglu 00030 { 00031 class GLFrameBuffer; 00032 00037 typedef IceUtil::Handle<GLFrameBuffer> GLFrameBufferPtr; 00038 00092 class GLFrameBuffer : public virtual IceUtil::Shared 00093 { 00094 public: 00095 GLFrameBuffer(std::string name); 00096 ~GLFrameBuffer(); 00097 00098 void attachTexture(GLTexturePtr texture, GLenum attachment); 00099 GLTexturePtr getTexture(GLenum attachment) const; 00100 00101 void bind() const; 00102 void unbind() const; 00103 00104 private: 00105 std::string name_; 00106 GLuint handle_; 00107 std::map<GLenum, GLTexturePtr> textures_; 00108 GLint maxBuffers_; 00109 }; 00110 00111 } 00112 00113 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)