display_internal.h
Go to the documentation of this file.
00001 /* This file is part of the Pangolin Project.
00002  * http://github.com/stevenlovegrove/Pangolin
00003  *
00004  * Copyright (c) 2011 Steven Lovegrove
00005  *
00006  * Permission is hereby granted, free of charge, to any person
00007  * obtaining a copy of this software and associated documentation
00008  * files (the "Software"), to deal in the Software without
00009  * restriction, including without limitation the rights to use,
00010  * copy, modify, merge, publish, distribute, sublicense, and/or sell
00011  * copies of the Software, and to permit persons to whom the
00012  * Software is furnished to do so, subject to the following
00013  * conditions:
00014  *
00015  * The above copyright notice and this permission notice shall be
00016  * included in all copies or substantial portions of the Software.
00017  *
00018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00019  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
00020  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00021  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
00022  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
00023  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00024  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00025  * OTHER DEALINGS IN THE SOFTWARE.
00026  */
00027 
00028 #ifndef PANGOLIN_DISPLAY_INTERNAL_H
00029 #define PANGOLIN_DISPLAY_INTERNAL_H
00030 
00031 #include "platform.h"
00032 #include "display.h"
00033 #include <boost/ptr_container/ptr_unordered_map.hpp>
00034 
00035 #ifdef HAVE_CVARS
00036 #include <GLConsole/GLConsole.h>
00037 #endif // HAVE_CVARS
00038 
00039 namespace pangolin
00040 {
00041 
00042 struct PangolinGl
00043 {
00044     PangolinGl();
00045 
00046     // Base container for displays
00047     View base;
00048 
00049     // Named views which are managed by pangolin (i.e. created / deleted by pangolin)
00050     boost::ptr_unordered_map<const std::string,View> named_managed_views;
00051 
00052     // Global keypress hooks
00053     std::map<int,boost::function<void(void)> > keypress_hooks;
00054 
00055     // Manage fullscreen (ToggleFullscreen is quite new)
00056     bool is_double_buffered;
00057     bool is_fullscreen;
00058     GLint windowed_size[2];
00059 
00060     // State relating to interactivity
00061     bool quit;
00062     int had_input;
00063     int has_resized;
00064     int mouse_state;
00065     View* activeDisplay;
00066 
00067 #ifdef HAVE_CVARS
00068     GLConsole console;
00069 #endif // HAVE_CVARS
00070 
00071 };
00072 
00073 }
00074 
00075 #endif // PANGOLIN_DISPLAY_INTERNAL_H
00076 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


pangolin_wrapper
Author(s): Todor Stoyanov
autogenerated on Wed Feb 13 2013 14:03:25