/usr/include/gtkglextmm-1.2/gtkmm/gl/init.h is in libgtkglextmm-x11-1.2-dev 1.2.0-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | // -*- C++ -*-
/* gtkglextmm - C++ Wrapper for GtkGLExt
* Copyright (C) 2002-2003 Naofumi Yasufuku
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
#ifndef _GTKMM_GL_INIT_H
#define _GTKMM_GL_INIT_H
namespace Gtk
{
namespace GL
{
/** Initialize gtkglextmm library.
*
* This function does the same work as Gdk::GL::init() with only
* a single change: It does not terminate the program if the library can't be
* initialized. Instead it returns <tt>false</tt> on failure.
*
* This way the application can fall back to some other means of communication
* with the user - for example a curses or command line interface.
*
* @param argc Reference of the <tt>argc</tt> parameter of your
* <tt>main()</tt> function. Changed if any arguments were
* handled.
* @param argv Reference of the <tt>argv</tt> parameter of
* <tt>main()</tt>. Any parameters understood by Gtk::GL::init()
* are stripped before return.
* @return <tt>true</tt> if the library has been successfully initialized,
* <tt>false</tt> otherwise.
*/
bool init_check(int& argc, char**& argv);
/** Initialize gtkglextmm library.
*
* This function does the same work as Gdk::GL::init() with only
* a single change: It does not terminate the program if the library can't be
* initialized. Instead it returns <tt>false</tt> on failure.
*
* This way the application can fall back to some other means of communication
* with the user - for example a curses or command line interface.
*
* @param argc Address of the <tt>argc</tt> parameter of your
* <tt>main()</tt> function. Changed if any arguments were
* handled.
* @param argv Address of the <tt>argv</tt> parameter of
* <tt>main()</tt>. Any parameters understood by Gtk::GL::init()
* are stripped before return.
* @return <tt>true</tt> if the library has been successfully initialized,
* <tt>false</tt> otherwise.
*/
bool init_check(int* argc, char*** argv);
/** Initialize gtkglextmm library.
*
* Call this function before using any other gtkglextmm functions in your
* applications. It will initialize everything needed to operate the library
* and parses some standard command line options. @a argc and
* @a argv are adjusted accordingly so your own code will
* never see those standard arguments.
*
* This function will terminate your program if it was unable to initialize
* the library for some reason. If you want your program to fall back to a
* textual interface you want to call Gtk::GL::init_check() instead.
*
* @param argc Reference of the <tt>argc</tt> parameter of your
* <tt>main()</tt> function. Changed if any arguments were
* handled.
* @param argv Reference of the <tt>argv</tt> parameter of
* <tt>main()</tt>. Any parameters understood by Gtk::GL::init()
* are stripped before return.
*/
void init(int& argc, char**& argv);
/** Initialize gtkglextmm library.
*
* Call this function before using any other gtkglextmm functions in your
* applications. It will initialize everything needed to operate the library
* and parses some standard command line options. @a argc and
* @a argv are adjusted accordingly so your own code will
* never see those standard arguments.
*
* This function will terminate your program if it was unable to initialize
* the library for some reason. If you want your program to fall back to a
* textual interface you want to call Gtk::GL::init_check() instead.
*
* @param argc Address of the <tt>argc</tt> parameter of your
* <tt>main()</tt> function. Changed if any arguments were
* handled.
* @param argv Address of the <tt>argv</tt> parameter of
* <tt>main()</tt>. Any parameters understood by Gtk::GL::init()
* are stripped before return.
*/
void init(int* argc, char*** argv);
} // namespace GL
} // namespace Gtk
#endif // _GTKMM_GL_INIT_H
|