Develop and Download Open Source Software

Browse Subversion Repository

Contents of /sdl_win/SDL_win.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 279 - (show annotations) (download) (as text)
Wed Mar 12 05:28:19 2008 UTC (16 years, 1 month ago) by satofumi
File MIME type: text/x-chdr
File size: 1982 byte(s)
adjust tab index
1 #ifndef SDL_WIN_H
2 #define SDL_WIN_H
3
4 /*!
5 \file
6 \brief SDL_thread.h ‚Ě Windows ŽŔ‘•‚Ě”˛ˆ
7
8 $Id$
9
10 SDL - Simple DirectMedia Layer
11 Copyright (C) 1997-2004 Sam Lantinga
12
13 This library is free software; you can redistribute it and/or
14 modify it under the terms of the GNU Library General Public
15 License as published by the Free Software Foundation; either
16 version 2 of the License, or (at your option) any later version.
17
18 This library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Library General Public License for more details.
22
23 You should have received a copy of the GNU Library General Public
24 License along with this library; if not, write to the Free
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27 Sam Lantinga
28 slouken@libsdl.org
29 */
30
31 typedef char Sint8;
32 typedef unsigned char Uint8;
33 typedef short Sint16;
34 typedef unsigned short Uint16;
35 typedef unsigned int Uint32;
36
37 typedef struct SDL_Rect {
38 Sint16 x, y;
39 Uint16 w, h;
40 } SDL_Rect;
41
42 typedef struct SDL_Color {
43 Uint8 r;
44 Uint8 g;
45 Uint8 b;
46 Uint8 unused;
47 } SDL_Color;
48
49 extern int SDL_Init(Uint32 flags);
50 extern void SDL_Quit(void);
51 extern void SDL_Delay(Uint32 msec);
52 extern Uint32 SDL_GetTicks(void);
53 extern const char* SDL_GetError(void);
54
55
56 struct SDL_mutex;
57 typedef struct SDL_mutex SDL_mutex;
58
59 struct SDL_Semaphore;
60 typedef struct SDL_Semaphore SDL_Semaphore;
61
62 extern SDL_mutex* SDL_CreateMutex(void);
63 extern void SDL_DestroyMutex(SDL_mutex* mutex);
64 extern void SDL_LockMutex(SDL_mutex* mutex);
65 extern void SDL_UnlockMutex(SDL_mutex* mutex);
66
67 struct SDL_Thread;
68 typedef struct SDL_Thread SDL_Thread;
69
70 extern SDL_Thread* SDL_CreateThread(int (*fn)(void *), void *data);
71 extern void SDL_WaitThread(SDL_Thread *thread, int *status);
72 extern void SDL_KillThread(SDL_Thread *thread);
73
74 #endif /* !SDL_WIN_H */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26