sphore 0.0.1
SPH openGL rendering engine
|
00001 /******************************************************************** 00002 * sphore - SPH Opengl Rendering Engine 00003 * 00004 * This file is (or was) part of sphore. 00005 * sphore comes with ABSOLUTELY NO WARRANTY. 00006 * This is free software; and you are welcome to redistribute 00007 * it under the terms of the GNU General Public License 00008 * (see LICENSE file for details) and the provision that 00009 * this notice remains intact. If you modify this file, please 00010 * note section 2a) of the GPLv2 states that: 00011 * 00012 * a) You must cause the modified files to carry prominent notices 00013 * stating that you changed the files and the date of any change. 00014 * 00015 * Copyright (C) 2011 James Wetter. All rights reserved. 00016 * Contact: wetter.j@gmail.com 00017 * 00018 ********************************************************************/ 00019 00020 00026 #ifndef DEVICE_H 00027 #define DEVICE_H 00028 #include "sphore.h" 00029 #include <stdlib.h> 00030 #include <GL/gl.h> 00031 00035 typedef struct _device device_t; 00036 00040 device_t *device_create (SREdeviceType type, unsigned int width, 00041 unsigned int height); 00042 00043 void device_destroy (device_t * dev); 00044 00054 void device_update_size (device_t * dev, int width, int height); 00055 00059 SREdeviceType device_get_type (device_t * dev); 00060 00061 void 00062 device_get_size (device_t * dev, unsigned int *width, unsigned int *height); 00063 00064 void 00065 device_set_size (device_t * dev, unsigned int width, unsigned int height); 00066 00067 void device_draw_to_texture (device_t * dev); 00068 00069 void device_draw_to_window (device_t * dev); 00070 00071 #endif