nkeynes@663: /** nkeynes@663: * $Id$ nkeynes@663: * nkeynes@663: * Cocoa (NSOpenGL) video driver nkeynes@663: * nkeynes@663: * Copyright (c) 2005 Nathan Keynes. nkeynes@663: * nkeynes@663: * This program is free software; you can redistribute it and/or modify nkeynes@663: * it under the terms of the GNU General Public License as published by nkeynes@663: * the Free Software Foundation; either version 2 of the License, or nkeynes@663: * (at your option) any later version. nkeynes@663: * nkeynes@663: * This program is distributed in the hope that it will be useful, nkeynes@663: * but WITHOUT ANY WARRANTY; without even the implied warranty of nkeynes@663: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nkeynes@663: * GNU General Public License for more details. nkeynes@663: */ nkeynes@663: nkeynes@736: #ifndef lxdream_video_nsgl_H nkeynes@736: #define lxdream_video_nsgl_H 1 nkeynes@663: nkeynes@663: #include nkeynes@663: #include "display.h" nkeynes@663: nkeynes@736: #ifdef __cplusplus nkeynes@736: extern "C" { nkeynes@736: #endif nkeynes@736: nkeynes@663: /** nkeynes@663: * Initialize the display driver by setting the appropriate methods nkeynes@663: * for NSGL support nkeynes@663: */ nkeynes@663: gboolean video_nsgl_init_driver( NSView *view, display_driver_t driver ); nkeynes@663: nkeynes@663: /** nkeynes@663: * Shutdown GLX support and release all resources. nkeynes@663: */ nkeynes@663: void video_nsgl_shutdown(); nkeynes@663: nkeynes@681: /** nkeynes@681: * Standard front/back buffer swap nkeynes@681: */ nkeynes@681: void video_nsgl_swap_buffers(); nkeynes@663: nkeynes@736: #ifdef __cplusplus nkeynes@736: } nkeynes@736: #endif nkeynes@736: nkeynes@663: #endif /* !video_nsgl_H */