|
CSD462 Library Documentation
1.0
15-462/15-662: Computer Graphics (Fall 2015)
|
Draws buffered image data as texture. More...
#include <viewport.h>
Public Member Functions | |
| Viewport (void) | |
| Constructor. | |
| ~Viewport (void) | |
| Destructor. | |
| int | bind (char *buffer, size_t w, size_t h) |
| Bind the viewport to a bitmap buffer. More... | |
| void | update (void) |
| Update the viewport. | |
Draws buffered image data as texture.
(Requires OpenGL core profile) The viewport currently draws a textured quad that fills up the context, with no respect to aspect ratio, etc. Need to make it respect certain constrains.
| int CSD462::Viewport::bind | ( | char * | buffer, |
| size_t | w, | ||
| size_t | h | ||
| ) |
Bind the viewport to a bitmap buffer.
| buffer | buffer that holds the bitmap pixels |
| w | width of the bitmap |
| h | height of the bitmap |
1.8.9.1