src/video/cocoa/SDL_cocoavideo.h
author Sam Lantinga
Tue, 08 Feb 2011 16:50:51 -0800
changeset 5229 c015d3e63631
parent 4925 514f811a4887
child 5262 b530ef003506
permissions -rw-r--r--
Fixed setting the texture unit, still doesn't work.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 #include "SDL_config.h"
    23 
    24 #ifndef _SDL_cocoavideo_h
    25 #define _SDL_cocoavideo_h
    26 
    27 #include "SDL_opengl.h"
    28 
    29 #include <ApplicationServices/ApplicationServices.h>
    30 #include <Cocoa/Cocoa.h>
    31 
    32 #include "SDL_keysym.h"
    33 #include "../SDL_sysvideo.h"
    34 
    35 #include "SDL_cocoaclipboard.h"
    36 #include "SDL_cocoaevents.h"
    37 #include "SDL_cocoakeyboard.h"
    38 #include "SDL_cocoamodes.h"
    39 #include "SDL_cocoamouse.h"
    40 #include "SDL_cocoaopengl.h"
    41 #include "SDL_cocoawindow.h"
    42 
    43 #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
    44 #if __LP64__
    45 typedef long NSInteger;
    46 typedef unsigned long NSUInteger;
    47 #else
    48 typedef int NSInteger;
    49 typedef unsigned int NSUInteger;
    50 #endif
    51 #endif
    52 
    53 /* Private display data */
    54 
    55 @class SDLTranslatorResponder;
    56 
    57 typedef struct SDL_VideoData
    58 {
    59     SInt32 osversion;
    60     unsigned int modifierFlags;
    61     void *key_layout;
    62     SDLTranslatorResponder *fieldEdit;
    63     NSInteger clipboard_count;
    64     Uint32 screensaver_activity;
    65 } SDL_VideoData;
    66 
    67 #endif /* _SDL_cocoavideo_h */
    68 
    69 /* vi: set ts=4 sw=4 expandtab: */