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