src/video/cocoa/SDL_cocoaopengl.h
author Sam Lantinga
Tue, 08 Feb 2011 16:50:51 -0800
changeset 5229 c015d3e63631
parent 3697 f7b03b6838cb
child 5249 7a963be087ef
permissions -rw-r--r--
Fixed setting the texture unit, still doesn't work.
slouken@1936
     1
/*
slouken@1936
     2
    SDL - Simple DirectMedia Layer
slouken@3697
     3
    Copyright (C) 1997-2010 Sam Lantinga
slouken@1936
     4
slouken@1936
     5
    This library is free software; you can redistribute it and/or
slouken@1936
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1936
     7
    License as published by the Free Software Foundation; either
slouken@1936
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1936
     9
slouken@1936
    10
    This library is distributed in the hope that it will be useful,
slouken@1936
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1936
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1936
    13
    Lesser General Public License for more details.
slouken@1936
    14
slouken@1936
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1936
    16
    License along with this library; if not, write to the Free Software
slouken@1936
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1936
    18
slouken@1936
    19
    Sam Lantinga
slouken@1936
    20
    slouken@libsdl.org
slouken@1936
    21
*/
slouken@1936
    22
#include "SDL_config.h"
slouken@1936
    23
slouken@1936
    24
#ifndef _SDL_cocoaopengl_h
slouken@1936
    25
#define _SDL_cocoaopengl_h
slouken@1936
    26
slouken@1952
    27
#if SDL_VIDEO_OPENGL_CGL
slouken@1936
    28
slouken@1936
    29
struct SDL_GLDriverData
slouken@1936
    30
{
slouken@1936
    31
    int initialized;
slouken@1936
    32
};
slouken@1936
    33
slouken@1936
    34
/* OpenGL functions */
slouken@1936
    35
extern int Cocoa_GL_LoadLibrary(_THIS, const char *path);
slouken@1936
    36
extern void *Cocoa_GL_GetProcAddress(_THIS, const char *proc);
slouken@3057
    37
extern void Cocoa_GL_UnloadLibrary(_THIS);
slouken@1936
    38
extern SDL_GLContext Cocoa_GL_CreateContext(_THIS, SDL_Window * window);
slouken@1936
    39
extern int Cocoa_GL_MakeCurrent(_THIS, SDL_Window * window,
slouken@1936
    40
                                SDL_GLContext context);
slouken@1936
    41
extern int Cocoa_GL_SetSwapInterval(_THIS, int interval);
slouken@1936
    42
extern int Cocoa_GL_GetSwapInterval(_THIS);
slouken@1936
    43
extern void Cocoa_GL_SwapWindow(_THIS, SDL_Window * window);
slouken@1936
    44
extern void Cocoa_GL_DeleteContext(_THIS, SDL_GLContext context);
slouken@1936
    45
slouken@1952
    46
#endif /* SDL_VIDEO_OPENGL_CGL */
slouken@1936
    47
slouken@1936
    48
#endif /* _SDL_cocoaopengl_h */
slouken@1936
    49
slouken@1936
    50
/* vi: set ts=4 sw=4 expandtab: */