22 #ifndef KJB_GR_OPENGL_OBJECT
23 #define KJB_GR_OPENGL_OBJECT
25 #ifdef KJB_HAVE_OPENGL
74 explicit Renderbuffer(
GLuint renderbuffer_id);
78 void allocate(
GLenum internal_format, GLsizei width, GLsizei
height);
104 Renderbuffer(
const Renderbuffer&){}
105 Renderbuffer& operator=(
const Renderbuffer&){
return *
this;}
125 class Framebuffer_object
128 Framebuffer_object();
134 explicit Framebuffer_object(
GLuint fbo_id);
139 ~Framebuffer_object();
141 void attach(
const Renderbuffer& renderbuffer,
GLenum target);
143 void attach(
const Texture& texture,
GLenum target);
145 void attach_color(
const Renderbuffer& renderbuffer,
int i = 0);
147 void attach_depth(
const Renderbuffer& renderbuffer);
149 void attach_stencil(
const Renderbuffer& renderbuffer);
152 void attach_color(
const Texture& texture,
int i = 0);
154 void attach_depth(
const Texture& texture);
156 void attach_stencil(
const Texture& texture);
200 Buffer(
const Buffer& ) {};
201 Buffer& operator=(
const Buffer& ) {
return *
this;};
221 void allocate(
GLenum type,
int size, GLvoid* data,
GLenum usage_hint);
237 void copy(
size_t offset,
size_t size, GLvoid* data);
250 void bind(
GLenum type)
const;
257 void unbind(
GLenum type)
const;
272 void allocate_grayscale_color_buffer(::kjb::opengl::Renderbuffer& color,
int width,
int height);
height
Definition: APPgetLargeConnectedEdges.m:33
get the indices of edges in each direction for i
Definition: APPgetLargeConnectedEdges.m:48
Support for error handling exception classes in libKJB.