filename | src/drivers/video_nsgl.h |
changeset | 786:8f6ece92500e |
prev | 736:a02d1475ccfd |
author | nkeynes |
date | Tue Jan 06 02:03:36 2009 +0000 (15 years ago) |
branch | lxdream-mem |
permissions | -rw-r--r-- |
last change | Back out the CALL_ptr change (need to handle relocation from end-of-cache to front in overflow situations) |
view | annotate | diff | log | raw |
1 /**
2 * $Id$
3 *
4 * Cocoa (NSOpenGL) video driver
5 *
6 * Copyright (c) 2005 Nathan Keynes.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 */
19 #ifndef lxdream_video_nsgl_H
20 #define lxdream_video_nsgl_H 1
22 #include <AppKit/NSView.h>
23 #include "display.h"
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 /**
30 * Initialize the display driver by setting the appropriate methods
31 * for NSGL support
32 */
33 gboolean video_nsgl_init_driver( NSView *view, display_driver_t driver );
35 /**
36 * Shutdown GLX support and release all resources.
37 */
38 void video_nsgl_shutdown();
40 /**
41 * Standard front/back buffer swap
42 */
43 void video_nsgl_swap_buffers();
45 /**
46 * Update the NSGL context after a window change
47 */
48 void video_nsgl_update();
50 #ifdef __cplusplus
51 }
52 #endif
54 #endif /* !video_nsgl_H */
.