00001 /* 00002 RenderStack Support library for OpenGL 3+ 00003 Copyright (C) 2010 Timo Suoranta 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00020 #ifndef RS_WINDOW_H 00021 #define RS_WINDOW_H 00022 00023 #include "renderstack/rs.h" 00024 #include "renderstack/rs_rectangle.h" 00025 00026 00028 struct rs_window 00029 { 00030 struct rs_rectangle client_area; 00031 struct rs_rectangle window_frame; 00032 int fullscreen; 00033 int hide_mouse; 00034 int red_size; 00035 int green_size; 00036 int blue_size; 00037 int alpha_size; 00038 int buffer_size; 00039 int depth_size; 00040 int stencil_size; 00041 int msaa_sample_count; 00042 int swap_control; 00043 int srgb_capable; 00044 00045 struct rs_platform_window platform; 00046 }; 00047 00048 RS_BEGIN_EXTERN_C 00049 00050 void rs_window_fullscreen (int *width, int *height); 00051 int rs_window_create (struct rs_window *window); 00052 void rs_window_destroy (struct rs_window *window); 00053 void rs_window_show (struct rs_window *window); 00054 void rs_window_hide (struct rs_window *window); 00055 void rs_window_swap_buffers (struct rs_window *window); 00056 void rs_window_reshape (struct rs_window *window); 00057 int rs_window_make_current (struct rs_window *window); 00058 00059 RS_END_EXTERN_C 00060 00061 #endif