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 681:1755a126b109
prev663:553bb7d6befa
next736:a02d1475ccfd
author nkeynes
date Sun Jul 06 03:17:32 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Add descriptive (localized) label to config entries for UI use
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@663
    19
#ifndef video_nsgl_H
nkeynes@663
    20
#define video_nsgl_H
nkeynes@663
    21
nkeynes@663
    22
#include <AppKit/NSView.h>
nkeynes@663
    23
#include "display.h"
nkeynes@663
    24
nkeynes@663
    25
/**
nkeynes@663
    26
 * Initialize the display driver by setting the appropriate methods
nkeynes@663
    27
 * for NSGL support
nkeynes@663
    28
 */
nkeynes@663
    29
gboolean video_nsgl_init_driver( NSView *view, display_driver_t driver );
nkeynes@663
    30
nkeynes@663
    31
/**
nkeynes@663
    32
 * Shutdown GLX support and release all resources.
nkeynes@663
    33
 */
nkeynes@663
    34
void video_nsgl_shutdown();
nkeynes@663
    35
nkeynes@681
    36
/**
nkeynes@681
    37
 * Standard front/back buffer swap
nkeynes@681
    38
 */
nkeynes@681
    39
void video_nsgl_swap_buffers();
nkeynes@663
    40
nkeynes@663
    41
#endif /* !video_nsgl_H */
.