xenoborg/alpha/source/gl_drv.h
blueshogun96@gmail.com e140504ee8
2012-01-05 00:09:50 +00:00

19 lines
No EOL
476 B
C

#pragma once
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glext.h>
#include <gl\wglext.h>
/* OpenGL based routines */
int enable_ogldrv( struct window_t* wnd );
void disable_ogldrv();
void ogl_clear_colour_buffer();
void ogl_clear_depth_buffer();
void ogl_clear_stencil_buffer();
void ogl_swap_buffers();
void ogl_draw_to_fb32( int x, int y, uint32_t colour );
uint32_t ogl_read_from_fb32( int x, int y );
void ogl_update_fb();
void* ogl_get_fb();