src/video/uikit/SDL_uikitopengles.h
author Holmes Futrell <hfutrell@umail.ucsb.edu>
Thu, 17 Jul 2008 22:32:16 +0000
branchgsoc2008_iphone
changeset 2350 eb828d6c3efb
child 2403 e9a1eed243c9
permissions -rw-r--r--
SDL_uikitopengles is responsible for OpenGLES related functions in the UIKit video driver. The main thing to note is UIKit_GL_CreateContext which creates an instance of the SDL_uikitopenglview class, an OpenGL ES View. Most the real functionality is in SDL_uikitopenglview.
hfutrell@2350
     1
/*
hfutrell@2350
     2
 *  SDL_uikitopengles.h
hfutrell@2350
     3
 *  iPodSDL
hfutrell@2350
     4
 *
hfutrell@2350
     5
 *  Created by Holmes Futrell on 5/29/08.
hfutrell@2350
     6
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
hfutrell@2350
     7
 *
hfutrell@2350
     8
 */
hfutrell@2350
     9
hfutrell@2350
    10
#include "SDL_config.h"
hfutrell@2350
    11
hfutrell@2350
    12
#ifndef _SDL_uikitopengles
hfutrell@2350
    13
#define _SDL_uikitopengles
hfutrell@2350
    14
hfutrell@2350
    15
#include "SDL_uikitvideo.h"
hfutrell@2350
    16
hfutrell@2350
    17
extern int UIKit_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
hfutrell@2350
    18
extern void UIKit_GL_SwapWindow(_THIS, SDL_Window * window);
hfutrell@2350
    19
extern SDL_GLContext UIKit_GL_CreateContext(_THIS, SDL_Window * window);
hfutrell@2350
    20
extern void UIKit_GL_DeleteContext(_THIS, SDL_GLContext context);
hfutrell@2350
    21
extern void *UIKit_GL_GetProcAddress(_THIS, const char *proc);
hfutrell@2350
    22
extern int UIKit_GL_LoadLibrary(_THIS, const char *path);
hfutrell@2350
    23
#endif