1 #ifndef CSD462_VIEWPORT_H
2 #define CSD462_VIEWPORT_H
35 int bind(
char *buffer,
size_t w,
size_t h );
56 GLuint compile_shaders(
void );
58 GLuint make_buffer( GLenum target,
60 const void *buffer_data );
62 GLuint make_texture_rgb(
void* pixel_buffer,
64 unsigned int height );
66 GLuint make_texture_rgba(
void* pixel_buffer,
68 unsigned int height );
70 void update_texture_rgb( GLuint textureID,
73 unsigned int height );
75 void update_texture_rgba( GLuint textureID,
78 unsigned int height );
83 #endif // CSD462_VIEWPORT_H
Viewport(void)
Constructor.
Definition: viewport.cpp:8
void update(void)
Update the viewport.
Definition: viewport.cpp:69
Draws buffered image data as texture.
Definition: viewport.h:14
~Viewport(void)
Destructor.
Definition: viewport.cpp:48
int bind(char *buffer, size_t w, size_t h)
Bind the viewport to a bitmap buffer.
Definition: viewport.cpp:58