Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
7c71f38c
Commit
7c71f38c
authored
Aug 20, 2016
by
Rustom Jehangir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SDL2: Add SDL2 Mac development files.
parent
51edd95b
Changes
65
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
65 changed files
with
30370 additions
and
0 deletions
+30370
-0
Headers
libs/lib/Frameworks/SDL2.framework/Headers
+1
-0
Resources
libs/lib/Frameworks/SDL2.framework/Resources
+1
-0
SDL2
libs/lib/Frameworks/SDL2.framework/SDL2
+1
-0
SDL.h
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL.h
+132
-0
SDL_assert.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_assert.h
+289
-0
SDL_atomic.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_atomic.h
+268
-0
SDL_audio.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_audio.h
+605
-0
SDL_bits.h
...b/Frameworks/SDL2.framework/Versions/A/Headers/SDL_bits.h
+97
-0
SDL_blendmode.h
...meworks/SDL2.framework/Versions/A/Headers/SDL_blendmode.h
+63
-0
SDL_clipboard.h
...meworks/SDL2.framework/Versions/A/Headers/SDL_clipboard.h
+71
-0
SDL_config.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_config.h
+55
-0
SDL_config_macosx.h
...rks/SDL2.framework/Versions/A/Headers/SDL_config_macosx.h
+188
-0
SDL_copying.h
...rameworks/SDL2.framework/Versions/A/Headers/SDL_copying.h
+20
-0
SDL_cpuinfo.h
...rameworks/SDL2.framework/Versions/A/Headers/SDL_cpuinfo.h
+161
-0
SDL_endian.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_endian.h
+239
-0
SDL_error.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_error.h
+76
-0
SDL_events.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_events.h
+750
-0
SDL_filesystem.h
...eworks/SDL2.framework/Versions/A/Headers/SDL_filesystem.h
+136
-0
SDL_gamecontroller.h
...ks/SDL2.framework/Versions/A/Headers/SDL_gamecontroller.h
+323
-0
SDL_gesture.h
...rameworks/SDL2.framework/Versions/A/Headers/SDL_gesture.h
+87
-0
SDL_haptic.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_haptic.h
+1223
-0
SDL_hints.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_hints.h
+711
-0
SDL_joystick.h
...ameworks/SDL2.framework/Versions/A/Headers/SDL_joystick.h
+273
-0
SDL_keyboard.h
...ameworks/SDL2.framework/Versions/A/Headers/SDL_keyboard.h
+217
-0
SDL_keycode.h
...rameworks/SDL2.framework/Versions/A/Headers/SDL_keycode.h
+341
-0
SDL_loadso.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_loadso.h
+81
-0
SDL_log.h
...ib/Frameworks/SDL2.framework/Versions/A/Headers/SDL_log.h
+211
-0
SDL_main.h
...b/Frameworks/SDL2.framework/Versions/A/Headers/SDL_main.h
+161
-0
SDL_messagebox.h
...eworks/SDL2.framework/Versions/A/Headers/SDL_messagebox.h
+144
-0
SDL_mouse.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_mouse.h
+300
-0
SDL_mutex.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_mutex.h
+251
-0
SDL_name.h
...b/Frameworks/SDL2.framework/Versions/A/Headers/SDL_name.h
+33
-0
SDL_opengl.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_opengl.h
+2176
-0
SDL_opengl_glext.h
...orks/SDL2.framework/Versions/A/Headers/SDL_opengl_glext.h
+11177
-0
SDL_opengles.h
...ameworks/SDL2.framework/Versions/A/Headers/SDL_opengles.h
+38
-0
SDL_opengles2.h
...meworks/SDL2.framework/Versions/A/Headers/SDL_opengles2.h
+50
-0
SDL_opengles2_gl2.h
...rks/SDL2.framework/Versions/A/Headers/SDL_opengles2_gl2.h
+621
-0
SDL_opengles2_gl2ext.h
.../SDL2.framework/Versions/A/Headers/SDL_opengles2_gl2ext.h
+2050
-0
SDL_opengles2_gl2platform.h
....framework/Versions/A/Headers/SDL_opengles2_gl2platform.h
+30
-0
SDL_opengles2_khrplatform.h
....framework/Versions/A/Headers/SDL_opengles2_khrplatform.h
+282
-0
SDL_pixels.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_pixels.h
+454
-0
SDL_platform.h
...ameworks/SDL2.framework/Versions/A/Headers/SDL_platform.h
+181
-0
SDL_power.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_power.h
+75
-0
SDL_quit.h
...b/Frameworks/SDL2.framework/Versions/A/Headers/SDL_quit.h
+58
-0
SDL_rect.h
...b/Frameworks/SDL2.framework/Versions/A/Headers/SDL_rect.h
+148
-0
SDL_render.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_render.h
+880
-0
SDL_revision.h
...ameworks/SDL2.framework/Versions/A/Headers/SDL_revision.h
+2
-0
SDL_rwops.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_rwops.h
+231
-0
SDL_scancode.h
...ameworks/SDL2.framework/Versions/A/Headers/SDL_scancode.h
+401
-0
SDL_shape.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_shape.h
+143
-0
SDL_stdinc.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_stdinc.h
+527
-0
SDL_surface.h
...rameworks/SDL2.framework/Versions/A/Headers/SDL_surface.h
+503
-0
SDL_system.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_system.h
+216
-0
SDL_syswm.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_syswm.h
+301
-0
SDL_thread.h
...Frameworks/SDL2.framework/Versions/A/Headers/SDL_thread.h
+287
-0
SDL_timer.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_timer.h
+115
-0
SDL_touch.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_touch.h
+86
-0
SDL_types.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_types.h
+29
-0
SDL_version.h
...rameworks/SDL2.framework/Versions/A/Headers/SDL_version.h
+162
-0
SDL_video.h
.../Frameworks/SDL2.framework/Versions/A/Headers/SDL_video.h
+1103
-0
begin_code.h
...Frameworks/SDL2.framework/Versions/A/Headers/begin_code.h
+146
-0
close_code.h
...Frameworks/SDL2.framework/Versions/A/Headers/close_code.h
+37
-0
SDL2
libs/lib/Frameworks/SDL2.framework/Versions/A/SDL2
+0
-0
CodeResources
...ks/SDL2.framework/Versions/A/_CodeSignature/CodeResources
+351
-0
Current
libs/lib/Frameworks/SDL2.framework/Versions/Current
+1
-0
No files found.
libs/lib/Frameworks/SDL2.framework/Headers
0 → 120000
View file @
7c71f38c
Versions/Current/Headers
\ No newline at end of file
libs/lib/Frameworks/SDL2.framework/Resources
0 → 120000
View file @
7c71f38c
Versions/Current/Resources
\ No newline at end of file
libs/lib/Frameworks/SDL2.framework/SDL2
0 → 120000
View file @
7c71f38c
Versions/Current/SDL2
\ No newline at end of file
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL.h
0 → 100644
View file @
7c71f38c
/*
Simple DirectMedia Layer
Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
/**
* \file SDL.h
*
* Main include header for the SDL library
*/
#ifndef _SDL_H
#define _SDL_H
#include "SDL_main.h"
#include "SDL_stdinc.h"
#include "SDL_assert.h"
#include "SDL_atomic.h"
#include "SDL_audio.h"
#include "SDL_clipboard.h"
#include "SDL_cpuinfo.h"
#include "SDL_endian.h"
#include "SDL_error.h"
#include "SDL_events.h"
#include "SDL_filesystem.h"
#include "SDL_joystick.h"
#include "SDL_gamecontroller.h"
#include "SDL_haptic.h"
#include "SDL_hints.h"
#include "SDL_loadso.h"
#include "SDL_log.h"
#include "SDL_messagebox.h"
#include "SDL_mutex.h"
#include "SDL_power.h"
#include "SDL_render.h"
#include "SDL_rwops.h"
#include "SDL_system.h"
#include "SDL_thread.h"
#include "SDL_timer.h"
#include "SDL_version.h"
#include "SDL_video.h"
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern
"C"
{
#endif
/* As of version 0.5, SDL is loaded dynamically into the application */
/**
* \name SDL_INIT_*
*
* These are the flags which may be passed to SDL_Init(). You should
* specify the subsystems which you will be using in your application.
*/
/* @{ */
#define SDL_INIT_TIMER 0x00000001
#define SDL_INIT_AUDIO 0x00000010
#define SDL_INIT_VIDEO 0x00000020
/**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */
#define SDL_INIT_JOYSTICK 0x00000200
/**< SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS */
#define SDL_INIT_HAPTIC 0x00001000
#define SDL_INIT_GAMECONTROLLER 0x00002000
/**< SDL_INIT_GAMECONTROLLER implies SDL_INIT_JOYSTICK */
#define SDL_INIT_EVENTS 0x00004000
#define SDL_INIT_NOPARACHUTE 0x00100000
/**< compatibility; this flag is ignored. */
#define SDL_INIT_EVERYTHING ( \
SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | \
SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER \
)
/* @} */
/**
* This function initializes the subsystems specified by \c flags
*/
extern
DECLSPEC
int
SDLCALL
SDL_Init
(
Uint32
flags
);
/**
* This function initializes specific SDL subsystems
*
* Subsystem initialization is ref-counted, you must call
* SDL_QuitSubSystem for each SDL_InitSubSystem to correctly
* shutdown a subsystem manually (or call SDL_Quit to force shutdown).
* If a subsystem is already loaded then this call will
* increase the ref-count and return.
*/
extern
DECLSPEC
int
SDLCALL
SDL_InitSubSystem
(
Uint32
flags
);
/**
* This function cleans up specific SDL subsystems
*/
extern
DECLSPEC
void
SDLCALL
SDL_QuitSubSystem
(
Uint32
flags
);
/**
* This function returns a mask of the specified subsystems which have
* previously been initialized.
*
* If \c flags is 0, it returns a mask of all initialized subsystems.
*/
extern
DECLSPEC
Uint32
SDLCALL
SDL_WasInit
(
Uint32
flags
);
/**
* This function cleans up all initialized subsystems. You should
* call it upon all exit conditions.
*/
extern
DECLSPEC
void
SDLCALL
SDL_Quit
(
void
);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
/* _SDL_H */
/* vi: set ts=4 sw=4 expandtab: */
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL_assert.h
0 → 100644
View file @
7c71f38c
This diff is collapsed.
Click to expand it.
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL_atomic.h
0 → 100644
View file @
7c71f38c
/*
Simple DirectMedia Layer
Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
/**
* \file SDL_atomic.h
*
* Atomic operations.
*
* IMPORTANT:
* If you are not an expert in concurrent lockless programming, you should
* only be using the atomic lock and reference counting functions in this
* file. In all other cases you should be protecting your data structures
* with full mutexes.
*
* The list of "safe" functions to use are:
* SDL_AtomicLock()
* SDL_AtomicUnlock()
* SDL_AtomicIncRef()
* SDL_AtomicDecRef()
*
* Seriously, here be dragons!
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^
*
* You can find out a little more about lockless programming and the
* subtle issues that can arise here:
* http://msdn.microsoft.com/en-us/library/ee418650%28v=vs.85%29.aspx
*
* There's also lots of good information here:
* http://www.1024cores.net/home/lock-free-algorithms
* http://preshing.com/
*
* These operations may or may not actually be implemented using
* processor specific atomic operations. When possible they are
* implemented as true processor specific atomic operations. When that
* is not possible the are implemented using locks that *do* use the
* available atomic operations.
*
* All of the atomic operations that modify memory are full memory barriers.
*/
#ifndef _SDL_atomic_h_
#define _SDL_atomic_h_
#include "SDL_stdinc.h"
#include "SDL_platform.h"
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* \name SDL AtomicLock
*
* The atomic locks are efficient spinlocks using CPU instructions,
* but are vulnerable to starvation and can spin forever if a thread
* holding a lock has been terminated. For this reason you should
* minimize the code executed inside an atomic lock and never do
* expensive things like API or system calls while holding them.
*
* The atomic locks are not safe to lock recursively.
*
* Porting Note:
* The spin lock functions and type are required and can not be
* emulated because they are used in the atomic emulation code.
*/
/* @{ */
typedef
int
SDL_SpinLock
;
/**
* \brief Try to lock a spin lock by setting it to a non-zero value.
*
* \param lock Points to the lock.
*
* \return SDL_TRUE if the lock succeeded, SDL_FALSE if the lock is already held.
*/
extern
DECLSPEC
SDL_bool
SDLCALL
SDL_AtomicTryLock
(
SDL_SpinLock
*
lock
);
/**
* \brief Lock a spin lock by setting it to a non-zero value.
*
* \param lock Points to the lock.
*/
extern
DECLSPEC
void
SDLCALL
SDL_AtomicLock
(
SDL_SpinLock
*
lock
);
/**
* \brief Unlock a spin lock by setting it to 0. Always returns immediately
*
* \param lock Points to the lock.
*/
extern
DECLSPEC
void
SDLCALL
SDL_AtomicUnlock
(
SDL_SpinLock
*
lock
);
/* @} *//* SDL AtomicLock */
/**
* The compiler barrier prevents the compiler from reordering
* reads and writes to globally visible variables across the call.
*/
#if defined(_MSC_VER) && (_MSC_VER > 1200)
void
_ReadWriteBarrier
(
void
);
#pragma intrinsic(_ReadWriteBarrier)
#define SDL_CompilerBarrier() _ReadWriteBarrier()
#elif (defined(__GNUC__) && !defined(__EMSCRIPTEN__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5120))
/* This is correct for all CPUs when using GCC or Solaris Studio 12.1+. */
#define SDL_CompilerBarrier() __asm__ __volatile__ ("" : : : "memory")
#else
#define SDL_CompilerBarrier() \
{ SDL_SpinLock _tmp = 0; SDL_AtomicLock(&_tmp); SDL_AtomicUnlock(&_tmp); }
#endif
/**
* Memory barriers are designed to prevent reads and writes from being
* reordered by the compiler and being seen out of order on multi-core CPUs.
*
* A typical pattern would be for thread A to write some data and a flag,
* and for thread B to read the flag and get the data. In this case you
* would insert a release barrier between writing the data and the flag,
* guaranteeing that the data write completes no later than the flag is
* written, and you would insert an acquire barrier between reading the
* flag and reading the data, to ensure that all the reads associated
* with the flag have completed.
*
* In this pattern you should always see a release barrier paired with
* an acquire barrier and you should gate the data reads/writes with a
* single flag variable.
*
* For more information on these semantics, take a look at the blog post:
* http://preshing.com/20120913/acquire-and-release-semantics
*/
#if defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("lwsync" : : : "memory")
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("lwsync" : : : "memory")
#elif defined(__GNUC__) && defined(__arm__)
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__)
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("dmb ish" : : : "memory")
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("dmb ish" : : : "memory")
#elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
#ifdef __thumb__
/* The mcr instruction isn't available in thumb mode, use real functions */
extern
DECLSPEC
void
SDLCALL
SDL_MemoryBarrierRelease
();
extern
DECLSPEC
void
SDLCALL
SDL_MemoryBarrierAcquire
();
#else
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r"(0) : "memory")
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r"(0) : "memory")
#endif
/* __thumb__ */
#else
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("" : : : "memory")
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("" : : : "memory")
#endif
/* __GNUC__ && __arm__ */
#else
#if (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5120))
/* This is correct for all CPUs on Solaris when using Solaris Studio 12.1+. */
#include <mbarrier.h>
#define SDL_MemoryBarrierRelease() __machine_rel_barrier()
#define SDL_MemoryBarrierAcquire() __machine_acq_barrier()
#else
/* This is correct for the x86 and x64 CPUs, and we'll expand this over time. */
#define SDL_MemoryBarrierRelease() SDL_CompilerBarrier()
#define SDL_MemoryBarrierAcquire() SDL_CompilerBarrier()
#endif
#endif
/**
* \brief A type representing an atomic integer value. It is a struct
* so people don't accidentally use numeric operations on it.
*/
typedef
struct
{
int
value
;
}
SDL_atomic_t
;
/**
* \brief Set an atomic variable to a new value if it is currently an old value.
*
* \return SDL_TRUE if the atomic variable was set, SDL_FALSE otherwise.
*
* \note If you don't know what this function is for, you shouldn't use it!
*/
extern
DECLSPEC
SDL_bool
SDLCALL
SDL_AtomicCAS
(
SDL_atomic_t
*
a
,
int
oldval
,
int
newval
);
/**
* \brief Set an atomic variable to a value.
*
* \return The previous value of the atomic variable.
*/
extern
DECLSPEC
int
SDLCALL
SDL_AtomicSet
(
SDL_atomic_t
*
a
,
int
v
);
/**
* \brief Get the value of an atomic variable
*/
extern
DECLSPEC
int
SDLCALL
SDL_AtomicGet
(
SDL_atomic_t
*
a
);
/**
* \brief Add to an atomic variable.
*
* \return The previous value of the atomic variable.
*
* \note This same style can be used for any number operation
*/
extern
DECLSPEC
int
SDLCALL
SDL_AtomicAdd
(
SDL_atomic_t
*
a
,
int
v
);
/**
* \brief Increment an atomic variable used as a reference count.
*/
#ifndef SDL_AtomicIncRef
#define SDL_AtomicIncRef(a) SDL_AtomicAdd(a, 1)
#endif
/**
* \brief Decrement an atomic variable used as a reference count.
*
* \return SDL_TRUE if the variable reached zero after decrementing,
* SDL_FALSE otherwise
*/
#ifndef SDL_AtomicDecRef
#define SDL_AtomicDecRef(a) (SDL_AtomicAdd(a, -1) == 1)
#endif
/**
* \brief Set a pointer to a new value if it is currently an old value.
*
* \return SDL_TRUE if the pointer was set, SDL_FALSE otherwise.
*
* \note If you don't know what this function is for, you shouldn't use it!
*/
extern
DECLSPEC
SDL_bool
SDLCALL
SDL_AtomicCASPtr
(
void
**
a
,
void
*
oldval
,
void
*
newval
);
/**
* \brief Set a pointer to a value atomically.
*
* \return The previous value of the pointer.
*/
extern
DECLSPEC
void
*
SDLCALL
SDL_AtomicSetPtr
(
void
**
a
,
void
*
v
);
/**
* \brief Get the value of a pointer atomically.
*/
extern
DECLSPEC
void
*
SDLCALL
SDL_AtomicGetPtr
(
void
**
a
);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
/* _SDL_atomic_h_ */
/* vi: set ts=4 sw=4 expandtab: */
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL_audio.h
0 → 100644
View file @
7c71f38c
This diff is collapsed.
Click to expand it.
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL_bits.h
0 → 100644
View file @
7c71f38c
/*
Simple DirectMedia Layer
Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
/**
* \file SDL_bits.h
*
* Functions for fiddling with bits and bitmasks.
*/
#ifndef _SDL_bits_h
#define _SDL_bits_h
#include "SDL_stdinc.h"
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* \file SDL_bits.h
*/
/**
* Get the index of the most significant bit. Result is undefined when called
* with 0. This operation can also be stated as "count leading zeroes" and
* "log base 2".
*
* \return Index of the most significant bit, or -1 if the value is 0.
*/
SDL_FORCE_INLINE
int
SDL_MostSignificantBitIndex32
(
Uint32
x
)
{
#if defined(__GNUC__) && __GNUC__ >= 4
/* Count Leading Zeroes builtin in GCC.
* http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html
*/
if
(
x
==
0
)
{
return
-
1
;
}
return
31
-
__builtin_clz
(
x
);
#else
/* Based off of Bit Twiddling Hacks by Sean Eron Anderson
* <seander@cs.stanford.edu>, released in the public domain.
* http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog
*/
const
Uint32
b
[]
=
{
0x2
,
0xC
,
0xF0
,
0xFF00
,
0xFFFF0000
};
const
int
S
[]
=
{
1
,
2
,
4
,
8
,
16
};
int
msbIndex
=
0
;
int
i
;
if
(
x
==
0
)
{
return
-
1
;
}
for
(
i
=
4
;
i
>=
0
;
i
--
)
{
if
(
x
&
b
[
i
])
{
x
>>=
S
[
i
];
msbIndex
|=
S
[
i
];
}
}
return
msbIndex
;
#endif
}
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
/* _SDL_bits_h */
/* vi: set ts=4 sw=4 expandtab: */
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL_blendmode.h
0 → 100644
View file @
7c71f38c
/*
Simple DirectMedia Layer
Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
/**
* \file SDL_blendmode.h
*
* Header file declaring the SDL_BlendMode enumeration
*/
#ifndef _SDL_blendmode_h
#define _SDL_blendmode_h
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* \brief The blend mode used in SDL_RenderCopy() and drawing operations.
*/
typedef
enum
{
SDL_BLENDMODE_NONE
=
0x00000000
,
/**< no blending
dstRGBA = srcRGBA */
SDL_BLENDMODE_BLEND
=
0x00000001
,
/**< alpha blending
dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
dstA = srcA + (dstA * (1-srcA)) */
SDL_BLENDMODE_ADD
=
0x00000002
,
/**< additive blending
dstRGB = (srcRGB * srcA) + dstRGB
dstA = dstA */
SDL_BLENDMODE_MOD
=
0x00000004
/**< color modulate
dstRGB = srcRGB * dstRGB
dstA = dstA */
}
SDL_BlendMode
;
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
/* _SDL_blendmode_h */
/* vi: set ts=4 sw=4 expandtab: */
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL_clipboard.h
0 → 100644
View file @
7c71f38c
/*
Simple DirectMedia Layer
Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
/**
* \file SDL_clipboard.h
*
* Include file for SDL clipboard handling
*/
#ifndef _SDL_clipboard_h
#define _SDL_clipboard_h
#include "SDL_stdinc.h"
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern
"C"
{
#endif
/* Function prototypes */
/**
* \brief Put UTF-8 text into the clipboard
*
* \sa SDL_GetClipboardText()
*/
extern
DECLSPEC
int
SDLCALL
SDL_SetClipboardText
(
const
char
*
text
);
/**
* \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free()
*
* \sa SDL_SetClipboardText()
*/
extern
DECLSPEC
char
*
SDLCALL
SDL_GetClipboardText
(
void
);
/**
* \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty
*
* \sa SDL_GetClipboardText()
*/
extern
DECLSPEC
SDL_bool
SDLCALL
SDL_HasClipboardText
(
void
);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
/* _SDL_clipboard_h */
/* vi: set ts=4 sw=4 expandtab: */
libs/lib/Frameworks/SDL2.framework/Versions/A/Headers/SDL_config.h
0 → 100644
View file @
7c71f38c
/*
Simple DirectMedia Layer
Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_config_h
#define _SDL_config_h
#include "SDL_platform.h"
/**
* \file SDL_config.h
*/
/* Add any platform that doesn't build using the configure system. */
#ifdef USING_PREMAKE_CONFIG_H
#include "SDL_config_premake.h"
#elif defined(__WIN32__)
#include "SDL_config_windows.h"
#elif defined(__WINRT__)
#include "SDL_config_winrt.h"
#elif defined(__MACOSX__)
#include "SDL_config_macosx.h"
#elif defined(__IPHONEOS__)
#include "SDL_config_iphoneos.h"
#elif defined(__ANDROID__)
#include "SDL_config_android.h"
#elif defined(__PSP__)
#include "SDL_config_psp.h"