SCM Library
Spherical Cube Map rendering library
 All Classes Files Functions Variables Friends Pages
Public Member Functions | List of all members
scm_frame Class Reference

An scm_frame abstracts the OpenGL framebuffer object. More...

#include <scm-frame.hpp>

Public Member Functions

 scm_frame (GLsizei, GLsizei)
 Create a new OpenGL framebuffer object with color and depth textures. More...
 
 ~scm_frame ()
 Delete the framebuffer object and its textures.
 
void bind_frame () const
 Bind the framebuffer object as render target.
 
void bind_color () const
 Bind the color texture.
 
void bind_depth () const
 Bind the depth texture.
 

Detailed Description

An scm_frame abstracts the OpenGL framebuffer object.

Constructor & Destructor Documentation

scm_frame::scm_frame ( GLsizei  w,
GLsizei  h 
)

Create a new OpenGL framebuffer object with color and depth textures.

Parameters
wwidth in pixels
hheight in pixels

The documentation for this class was generated from the following files: