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