├── external
└── sdl-1.2
│ ├── include
│ ├── SDL
│ ├── SDL_name.h
│ ├── SDL_copying.h
│ ├── SDL_getenv.h
│ ├── SDL_types.h
│ └── SDL_byteorder.h
│ ├── src
│ ├── video
│ │ ├── android
│ │ │ ├── SDL_surface.h
│ │ │ ├── SDL_renderer_gl.h
│ │ │ ├── SDL_renderer_sw.h
│ │ │ ├── jniwrapperstuff.h
│ │ │ ├── atan2i.h
│ │ │ └── SDL_renderer_gles.h
│ │ ├── SDL_RLEaccel.c
│ │ ├── default_cursor.h
│ │ ├── qtopia
│ │ │ ├── SDL_sysvideo.cc
│ │ │ ├── SDL_syswm_c.h
│ │ │ ├── SDL_syswm.cc
│ │ │ ├── SDL_sysevents_c.h
│ │ │ ├── SDL_QPEApp.h
│ │ │ └── SDL_sysmouse_c.h
│ │ ├── riscos
│ │ │ ├── SDL_riscosevents.c
│ │ │ ├── SDL_riscosevents_c.h
│ │ │ └── SDL_riscostask.h
│ │ ├── Xext
│ │ │ ├── README
│ │ │ └── extensions
│ │ │ │ ├── Xinerama.h
│ │ │ │ └── xme.h
│ │ ├── quartz
│ │ │ └── SDL_QuartzWM.h
│ │ ├── dc
│ │ │ ├── SDL_dcmouse_c.h
│ │ │ ├── SDL_dcmouse.c
│ │ │ ├── SDL_dcevents_c.h
│ │ │ └── SDL_dcvideo.h
│ │ ├── aalib
│ │ │ ├── SDL_aamouse_c.h
│ │ │ ├── SDL_aamouse.c
│ │ │ └── SDL_aaevents_c.h
│ │ ├── dga
│ │ │ ├── SDL_dgamouse_c.h
│ │ │ ├── SDL_dgaevents_c.h
│ │ │ └── SDL_dgamouse.c
│ │ ├── dummy
│ │ │ ├── SDL_nullmouse_c.h
│ │ │ ├── SDL_nullmouse.c
│ │ │ ├── SDL_nullevents_c.h
│ │ │ ├── SDL_nullvideo.h
│ │ │ └── SDL_nullevents.c
│ │ ├── fbcon
│ │ │ ├── SDL_fbmouse_c.h
│ │ │ ├── SDL_fb3dfx.h
│ │ │ ├── SDL_fbmatrox.h
│ │ │ ├── SDL_fbmouse.c
│ │ │ └── SDL_fbriva.h
│ │ ├── ggi
│ │ │ ├── SDL_ggimouse_c.h
│ │ │ ├── SDL_ggievents_c.h
│ │ │ └── SDL_ggimouse.c
│ │ ├── nds
│ │ │ ├── SDL_ndsmouse_c.h
│ │ │ └── SDL_ndsmouse.c
│ │ ├── svga
│ │ │ ├── SDL_svgamouse_c.h
│ │ │ ├── SDL_svgamouse.c
│ │ │ └── SDL_svgaevents_c.h
│ │ ├── wscons
│ │ │ ├── SDL_wsconsmouse_c.h
│ │ │ ├── SDL_wsconsmouse.c
│ │ │ └── SDL_wsconsevents_c.h
│ │ ├── macrom
│ │ │ └── SDL_romvideo.h
│ │ ├── symbian
│ │ │ └── EKA1
│ │ │ │ └── SDL_epocvideo.h
│ │ ├── directfb
│ │ │ └── SDL_DirectFB_events.h
│ │ ├── x11
│ │ │ ├── SDL_x11events_c.h
│ │ │ ├── SDL_x11dga_c.h
│ │ │ ├── SDL_x11gamma_c.h
│ │ │ └── SDL_x11mouse_c.h
│ │ ├── SDL_leaks.h
│ │ ├── nanox
│ │ │ ├── SDL_nxevents_c.h
│ │ │ ├── SDL_nxwm_c.h
│ │ │ ├── SDL_nxmouse_c.h
│ │ │ ├── SDL_nxmodes_c.h
│ │ │ └── SDL_nximage_c.h
│ │ ├── bwindow
│ │ │ ├── SDL_sysevents_c.h
│ │ │ ├── SDL_syswm_c.h
│ │ │ └── SDL_sysmouse_c.h
│ │ ├── ipod
│ │ │ └── SDL_ipodvideo.h
│ │ ├── SDL_stretch_c.h
│ │ ├── maccommon
│ │ │ ├── SDL_macevents_c.h
│ │ │ └── SDL_macmouse_c.h
│ │ ├── gem
│ │ │ ├── SDL_gemevents_c.h
│ │ │ ├── SDL_gemmouse_c.h
│ │ │ └── SDL_gemwm_c.h
│ │ ├── ataricommon
│ │ │ ├── SDL_atarieddi.S
│ │ │ └── SDL_atarimxalloc_c.h
│ │ ├── vgl
│ │ │ └── SDL_vglmouse_c.h
│ │ ├── blank_cursor.h
│ │ ├── caca
│ │ │ └── SDL_cacaevents_c.h
│ │ ├── picogui
│ │ │ └── SDL_pgevents_c.h
│ │ ├── photon
│ │ │ └── SDL_ph_events_c.h
│ │ ├── SDL_RLEaccel_c.h
│ │ ├── wincommon
│ │ │ ├── SDL_sysmouse_c.h
│ │ │ └── SDL_syswm_c.h
│ │ ├── windib
│ │ │ └── SDL_dibevents_c.h
│ │ └── SDL_yuvfuncs.h
│ ├── main
│ │ ├── macosx
│ │ │ ├── info.nib
│ │ │ ├── SDLMain.nib
│ │ │ │ ├── objects.nib
│ │ │ │ ├── classes.nib
│ │ │ │ └── info.nib
│ │ │ ├── SDLMain.h
│ │ │ └── Info.plist.in
│ │ ├── macos
│ │ │ ├── SDL.r
│ │ │ ├── SDL.shlib.r
│ │ │ ├── SIZE.r
│ │ │ └── exports
│ │ │ │ ├── gendef.pl
│ │ │ │ └── Makefile
│ │ ├── win32
│ │ │ └── version.rc
│ │ ├── dummy
│ │ │ └── SDL_dummy_main.c
│ │ ├── symbian
│ │ │ └── EKA2
│ │ │ │ └── sdllib.cpp
│ │ └── beos
│ │ │ └── SDL_BeApp.h
│ ├── audio
│ │ ├── SDL_mixer_MMX.c
│ │ ├── nas
│ │ │ ├── SDL_nasaudio.c
│ │ │ └── SDL_nasaudio.h
│ │ ├── sun
│ │ │ └── SDL_sunaudio.c
│ │ ├── mint
│ │ │ ├── SDL_mintaudio_dma8.h
│ │ │ ├── SDL_mintaudio_it.S
│ │ │ ├── SDL_mintaudio_stfa.h
│ │ │ └── SDL_mintaudio_xbios.c
│ │ ├── SDL_mixer_MMX.h
│ │ ├── SDL_audiomem.h
│ │ ├── SDL_audiodev_c.h
│ │ ├── android
│ │ │ └── SDL_androidaudio.h
│ │ ├── symbian
│ │ │ └── SDL_epocaudio.h
│ │ ├── baudio
│ │ │ └── SDL_beaudio.h
│ │ ├── nds
│ │ │ └── SDL_ndsaudio.h
│ │ ├── dc
│ │ │ ├── SDL_dcaudio.h
│ │ │ └── aica.h
│ │ ├── dummy
│ │ │ └── SDL_dummyaudio.h
│ │ ├── SDL_mixer_m68k.h
│ │ ├── disk
│ │ │ └── SDL_diskaudio.h
│ │ └── SDL_audio_c.h
│ ├── timer
│ │ ├── macos
│ │ │ ├── FastTimes.c
│ │ │ └── FastTimes.h
│ │ ├── mint
│ │ │ └── SDL_vbltimer_s.h
│ │ └── SDL_systimer.h
│ ├── cdrom
│ │ ├── macos
│ │ │ └── SDL_syscdrom.c
│ │ ├── macosx
│ │ │ ├── SDLOSXCAGuard.c
│ │ │ └── SDLOSXCAGuard.h
│ │ └── dummy
│ │ │ └── SDL_syscdrom.c
│ ├── joystick
│ │ └── darwin
│ │ │ └── SDL_sysjoystick.c
│ ├── hermes
│ │ ├── common.inc
│ │ └── README
│ ├── thread
│ │ ├── win32
│ │ │ ├── win_ce_semaphore.h
│ │ │ └── SDL_systhread_c.h
│ │ ├── dc
│ │ │ ├── SDL_syscond_c.h
│ │ │ ├── SDL_sysmutex_c.h
│ │ │ ├── SDL_syssem_c.h
│ │ │ └── SDL_systhread_c.h
│ │ ├── os2
│ │ │ ├── SDL_syscond_c.h
│ │ │ └── SDL_systhread_c.h
│ │ ├── generic
│ │ │ ├── SDL_sysmutex_c.h
│ │ │ └── SDL_systhread_c.h
│ │ ├── irix
│ │ │ └── SDL_systhread_c.h
│ │ ├── pthread
│ │ │ ├── SDL_systhread_c.h
│ │ │ └── SDL_sysmutex_c.h
│ │ ├── symbian
│ │ │ └── SDL_systhread_c.h
│ │ ├── pth
│ │ │ ├── SDL_sysmutex_c.h
│ │ │ └── SDL_systhread_c.h
│ │ ├── riscos
│ │ │ ├── SDL_systhread_c.h
│ │ │ └── SDL_sysmutex_c.h
│ │ └── beos
│ │ │ └── SDL_systhread_c.h
│ └── SDL_fatal.h
│ ├── CREDITS
│ ├── VisualC
│ └── SDL
│ │ ├── Version.rc
│ │ └── resource.h
│ ├── README-SDL.txt
│ ├── BUGS
│ ├── INSTALL
│ ├── Makefile.minimal
│ ├── README.HG
│ └── TODO
├── android
├── project.properties
├── res
│ ├── drawable
│ │ └── icon.png
│ ├── values
│ │ └── strings.xml
│ └── layout
│ │ └── main.xml
├── jni
│ ├── Application.mk
│ └── Settings.mk
├── build.xml
└── src
│ └── com
│ └── octodev
│ └── cannonball
│ └── Mouse.java
├── res
├── cannonball.rc
├── tilemap.bin
├── tilepatch.bin
├── cannonball.ico
└── overlay
│ ├── main_normal.png
│ └── main_pressed.png
├── src
└── main
│ ├── engine
│ ├── ohud.cpp
│ ├── osmoke.hpp
│ ├── osprite.hpp
│ ├── ologo.hpp
│ └── omusic.hpp
│ ├── frontend
│ ├── menu.cpp
│ └── ttrial.hpp
│ ├── bbox.hpp
│ ├── utils.hpp
│ ├── sdl
│ ├── timer.hpp
│ ├── rendergles_android.hpp
│ ├── rendergl.hpp
│ ├── rendersw.hpp
│ └── renderbase.cpp
│ ├── main.hpp
│ ├── hwvideo
│ ├── hwsprites.hpp
│ └── hwroad.hpp
│ ├── roms.hpp
│ ├── directx
│ └── ffeedback.hpp
│ ├── utils.cpp
│ ├── setup.hpp
│ ├── android_debug.h
│ ├── quad.hpp
│ └── hwaudio
│ └── segapcm.hpp
├── cmake
├── debian.cmake
├── pandora.cmake
├── rpi.cmake
├── mingw.cmake
└── macosx.cmake
├── todo.txt
└── .gitattributes
/external/sdl-1.2/include/SDL:
--------------------------------------------------------------------------------
1 | .
--------------------------------------------------------------------------------
/android/project.properties:
--------------------------------------------------------------------------------
1 | target=android-15
2 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/android/SDL_surface.h:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/android/SDL_renderer_gl.h:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/android/SDL_renderer_sw.h:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/res/cannonball.rc:
--------------------------------------------------------------------------------
1 | IDI_ICON1 ICON DISCARDABLE "cannonball.ico"
--------------------------------------------------------------------------------
/res/tilemap.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/res/tilemap.bin
--------------------------------------------------------------------------------
/res/tilepatch.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/res/tilepatch.bin
--------------------------------------------------------------------------------
/res/cannonball.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/res/cannonball.ico
--------------------------------------------------------------------------------
/external/sdl-1.2/CREDITS:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/CREDITS
--------------------------------------------------------------------------------
/src/main/engine/ohud.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/src/main/engine/ohud.cpp
--------------------------------------------------------------------------------
/res/overlay/main_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/res/overlay/main_normal.png
--------------------------------------------------------------------------------
/src/main/frontend/menu.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/src/main/frontend/menu.cpp
--------------------------------------------------------------------------------
/android/res/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/android/res/drawable/icon.png
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macosx/info.nib:
--------------------------------------------------------------------------------
1 | // This is just a stub file to force automake to create the install directory
2 |
--------------------------------------------------------------------------------
/res/overlay/main_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/res/overlay/main_pressed.png
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macos/SDL.r:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/main/macos/SDL.r
--------------------------------------------------------------------------------
/external/sdl-1.2/VisualC/SDL/Version.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/VisualC/SDL/Version.rc
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/SDL_mixer_MMX.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/audio/SDL_mixer_MMX.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/win32/version.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/main/win32/version.rc
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/SDL_RLEaccel.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/video/SDL_RLEaccel.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macos/SDL.shlib.r:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/main/macos/SDL.shlib.r
--------------------------------------------------------------------------------
/external/sdl-1.2/src/timer/macos/FastTimes.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/timer/macos/FastTimes.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/default_cursor.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/video/default_cursor.h
--------------------------------------------------------------------------------
/android/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | cannonball
4 |
5 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/nas/SDL_nasaudio.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/audio/nas/SDL_nasaudio.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/nas/SDL_nasaudio.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/audio/nas/SDL_nasaudio.h
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/sun/SDL_sunaudio.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/audio/sun/SDL_sunaudio.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/cdrom/macos/SDL_syscdrom.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/cdrom/macos/SDL_syscdrom.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/cdrom/macosx/SDLOSXCAGuard.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/cdrom/macosx/SDLOSXCAGuard.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/cdrom/macosx/SDLOSXCAGuard.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/cdrom/macosx/SDLOSXCAGuard.h
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/qtopia/SDL_sysvideo.cc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/video/qtopia/SDL_sysvideo.cc
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/mint/SDL_mintaudio_dma8.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/audio/mint/SDL_mintaudio_dma8.h
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/mint/SDL_mintaudio_it.S:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/audio/mint/SDL_mintaudio_it.S
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/mint/SDL_mintaudio_stfa.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/audio/mint/SDL_mintaudio_stfa.h
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/riscos/SDL_riscosevents.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/video/riscos/SDL_riscosevents.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/mint/SDL_mintaudio_xbios.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/audio/mint/SDL_mintaudio_xbios.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/joystick/darwin/SDL_sysjoystick.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/joystick/darwin/SDL_sysjoystick.c
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macosx/SDLMain.nib/objects.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timleader/cannonball-android/HEAD/external/sdl-1.2/src/main/macosx/SDLMain.nib/objects.nib
--------------------------------------------------------------------------------
/external/sdl-1.2/src/hermes/common.inc:
--------------------------------------------------------------------------------
1 | ; Some common macros for hermes nasm code
2 |
3 | %macro SDL_FUNC 1
4 | %ifdef HIDDEN_VISIBILITY
5 | GLOBAL %1:function hidden
6 | %else
7 | GLOBAL %1
8 | %endif
9 | %endmacro
10 |
--------------------------------------------------------------------------------
/android/jni/Application.mk:
--------------------------------------------------------------------------------
1 | APP_PROJECT_PATH := $(call my-dir)/..
2 |
3 | APP_ABI := armeabi-v7a
4 | APP_STL := gnustl_static
5 | APP_CFLAGS := -O3 -DNDEBUG -g
6 | APP_PLATFORM := android-15
7 | APP_PIE := false
8 |
9 | include jni/Settings.mk
--------------------------------------------------------------------------------
/external/sdl-1.2/include/SDL_name.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _SDLname_h_
3 | #define _SDLname_h_
4 |
5 | #if defined(__STDC__) || defined(__cplusplus)
6 | #define NeedFunctionPrototypes 1
7 | #endif
8 |
9 | #define SDL_NAME(X) SDL_##X
10 |
11 | #endif /* _SDLname_h_ */
12 |
--------------------------------------------------------------------------------
/android/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/dummy/SDL_dummy_main.c:
--------------------------------------------------------------------------------
1 |
2 | /* Include the SDL main definition header */
3 | #include "SDL_main.h"
4 |
5 | #ifdef main
6 | #undef main
7 | int main(int argc, char *argv[])
8 | {
9 | return(SDL_main(argc, argv));
10 | }
11 | #else
12 | /* Nothing to do on this platform */
13 | #endif
14 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/symbian/EKA2/sdllib.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 |
6 | GLREF_C TInt E32Main()
7 | {
8 | return SDLEnv::SetMain(SDL_main, CSDL::EEnableFocusStop | CSDL::EAllowImageResize,
9 | NULL, SDLEnv::EParamQuery | SDLEnv::EVirtualMouse);
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macosx/SDLMain.nib/classes.nib:
--------------------------------------------------------------------------------
1 | {
2 | IBClasses = (
3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
4 | {
5 | ACTIONS = {makeFullscreen = id; quit = id; };
6 | CLASS = SDLMain;
7 | LANGUAGE = ObjC;
8 | SUPERCLASS = NSObject;
9 | }
10 | );
11 | IBVersion = 1;
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/bbox.hpp:
--------------------------------------------------------------------------------
1 |
2 | #pragma once
3 |
4 | typedef struct
5 | {
6 | int min[2];
7 | int max[2];
8 | } bounding_box_t;
9 |
10 | #define ASSIGN_BOUNDING_BOX(BOX, MIN_X, MIN_Y, MAX_X, MAX_Y) \
11 | BOX.min[0] = MIN_X; BOX.min[1] = MIN_Y; \
12 | BOX.max[0] = MAX_X; BOX.max[1] = MAX_Y;
13 |
14 | #define CHECK_BOUNDING_BOX(BOX, X, Y) \
15 | (BOX.min[0] <= X && BOX.max[0] >= X && \
16 | BOX.min[1] <= Y && BOX.max[1] >= Y)
17 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macos/SIZE.r:
--------------------------------------------------------------------------------
1 |
#include "Processes.r"
resource 'SIZE' (-1) {
reserved,
acceptSuspendResumeEvents,
reserved,
canBackground,
doesActivateOnFGSwitch,
backgroundAndForeground,
getFrontClicks,
ignoreAppDiedEvents,
is32BitCompatible,
isHighLevelEventAware,
onlyLocalHLEvents,
notStationeryAware,
useTextEditServices,
reserved,
reserved,
reserved,
5242880, // 5 megs minimum
5242880 // 5 megs maximum
};
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macosx/SDLMain.nib/info.nib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IBDocumentLocation
6 | 49 97 356 240 0 0 987 746
7 | IBMainMenuLocation
8 | 20 515 195 44 0 46 800 532
9 | IBUserGuides
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macosx/SDLMain.h:
--------------------------------------------------------------------------------
1 | /* SDLMain.m - main entry point for our Cocoa-ized SDL app
2 | Initial Version: Darrell Walisser
3 | Non-NIB-Code & other changes: Max Horn
4 |
5 | Feel free to customize this file to suit your needs
6 | */
7 |
8 | #ifndef _SDLMain_h_
9 | #define _SDLMain_h_
10 |
11 | #import
12 |
13 | @interface SDLMain : NSObject
14 | @end
15 |
16 | #endif /* _SDLMain_h_ */
17 |
--------------------------------------------------------------------------------
/external/sdl-1.2/VisualC/SDL/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Developer Studio generated include file.
3 | // Used by Version.rc
4 | //
5 |
6 | // Next default values for new objects
7 | //
8 | #ifdef APSTUDIO_INVOKED
9 | #ifndef APSTUDIO_READONLY_SYMBOLS
10 | #define _APS_NEXT_RESOURCE_VALUE 101
11 | #define _APS_NEXT_COMMAND_VALUE 40001
12 | #define _APS_NEXT_CONTROL_VALUE 1000
13 | #define _APS_NEXT_SYMED_VALUE 101
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/external/sdl-1.2/README-SDL.txt:
--------------------------------------------------------------------------------
1 |
2 | Please distribute this file with the SDL runtime environment:
3 |
4 | The Simple DirectMedia Layer (SDL for short) is a cross-platfrom library
5 | designed to make it easy to write multi-media software, such as games and
6 | emulators.
7 |
8 | The Simple DirectMedia Layer library source code is available from:
9 | http://www.libsdl.org/
10 |
11 | This library is distributed under the terms of the GNU LGPL license:
12 | http://www.gnu.org/copyleft/lesser.html
13 |
14 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/Xext/README:
--------------------------------------------------------------------------------
1 |
2 | The reason these libraries are built outside of the standard XFree86
3 | tree is so that they can be linked as shared object code directly into
4 | SDL without causing any symbol collisions with code in the application.
5 |
6 | You can't link static library code into shared libraries on non-x86
7 | Linux platforms. Since these libraries haven't become standard yet,
8 | we'll just include them directly.
9 |
10 | These sources are synchronized with XFree86 4.2.1
11 |
--------------------------------------------------------------------------------
/cmake/debian.cmake:
--------------------------------------------------------------------------------
1 | # Default CMake Setup. Used for Debian Builds.
2 |
3 | set(lib_base /usr/include)
4 | set(sdl_root ${lib_base}/SDL)
5 |
6 | include_directories("${sdl_root}")
7 |
8 | link_libraries(cannonball
9 | SDL
10 | SDLmain
11 | )
12 |
13 | # Linking
14 | link_directories(
15 | "${sdl_root}/lib"
16 | )
17 |
18 | # Location for Cannonball to create save files
19 | # Used to auto-generate setup.hpp with various file paths
20 | set(xml_directory ./)
21 | set(sdl_flags "SDL_DOUBLEBUF | SDL_SWSURFACE")
22 |
--------------------------------------------------------------------------------
/cmake/pandora.cmake:
--------------------------------------------------------------------------------
1 | # Default CMake Setup. Used for Pandora Builds.
2 |
3 | set(lib_base /mnt/utmp/codeblocks/usr)
4 | set(sdl_root ${lib_base}/include/SDL)
5 |
6 | include_directories("${sdl_root}")
7 |
8 | link_libraries(cannonball
9 | SDL
10 | )
11 |
12 | # Linking
13 | link_directories(
14 | "${sdl_root}/lib"
15 | )
16 |
17 | add_definitions(-DPANDORA)
18 |
19 | # Location for Cannonball to create save files
20 | # Used to auto-generate setup.hpp with various file paths
21 | set(xml_directory home/)
22 | set(sdl_flags "SDL_HWSURFACE")
--------------------------------------------------------------------------------
/todo.txt:
--------------------------------------------------------------------------------
1 | CANNONBOARD:
2 | X Allow CannonBoard code to be completely compiled out
3 | - Static compile
4 |
5 | WIDESCREEN:
6 | - Fix clouds
7 | X Fix music select tilemap
8 | - Fix sprite entry point at end sequence so they don't pop onto screen
9 |
10 | 60 FPS ENGINE BUGS:
11 | - Fix flickering on end sequences
12 | - Fix road/sprite swap on road join
13 |
14 | ENHANCEMENTS:
15 | X Optional Timer Enhancement
16 | - Fix palette on level completion
17 | - Record best lap times on passing checkpoints
18 |
19 | 3DS ENHANCEMENTS
20 | - Car Handling Options/Cheats
--------------------------------------------------------------------------------
/external/sdl-1.2/BUGS:
--------------------------------------------------------------------------------
1 |
2 | Bugs are now managed in the SDL bug tracker, here:
3 |
4 | http://bugzilla.libsdl.org/
5 |
6 | You may report bugs there, and search to see if a given issue has already
7 | been reported, discussed, and maybe even fixed.
8 |
9 |
10 |
11 | You may also find help at the SDL mailing list. Subscription information:
12 |
13 | http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
14 |
15 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as
16 | bugs discussed on the mailing list may be forgotten or missed.
17 |
18 |
19 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/android/jniwrapperstuff.h:
--------------------------------------------------------------------------------
1 |
2 | /* JNI-C++ wrapper stuff */
3 | #ifndef _JNI_WRAPPER_STUFF_H_
4 | #define _JNI_WRAPPER_STUFF_H_
5 |
6 | #ifndef SDL_JAVA_PACKAGE_PATH
7 | #error You have to define SDL_JAVA_PACKAGE_PATH to your package path with dots replaced with underscores, for example "com_example_SanAngeles"
8 | #endif
9 | #define JAVA_EXPORT_NAME2(name,package) Java_##package##_##name
10 | #define JAVA_EXPORT_NAME1(name,package) JAVA_EXPORT_NAME2(name,package)
11 | #define JAVA_EXPORT_NAME(name) JAVA_EXPORT_NAME1(name,SDL_JAVA_PACKAGE_PATH)
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/cmake/rpi.cmake:
--------------------------------------------------------------------------------
1 | # Default CMake Setup. Used for Raspberry Pi (Raspbian) Builds.
2 |
3 | set(lib_base /usr/include)
4 | set(sdl_root ${lib_base}/SDL)
5 |
6 | include_directories("${sdl_root}")
7 |
8 | link_libraries(cannonball
9 | SDL
10 | SDLmain
11 | )
12 |
13 | # Linking
14 | link_directories(
15 | "${sdl_root}/lib"
16 | )
17 |
18 | add_definitions(-O3 -march=armv6 -mfpu=vfp -mfloat-abi=hard)
19 |
20 | # Location for Cannonball to create save files
21 | # Used to auto-generate setup.hpp with various file paths
22 | set(xml_directory ./)
23 | set(sdl_flags "SDL_DOUBLEBUF | SDL_HWSURFACE")
24 |
25 |
--------------------------------------------------------------------------------
/src/main/utils.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | General C++ Helper Functions
3 |
4 | Copyright Chris White.
5 | See license.txt for more details.
6 | ***************************************************************************/
7 |
8 | #pragma once
9 |
10 | #include
11 | #include "stdint.hpp"
12 |
13 | class Utils
14 | {
15 | public:
16 | static std::string to_string(int i);
17 | static std::string to_string(char c);
18 | static std::string to_hex_string(int i);
19 | static uint32_t from_hex_string(std::string s);
20 |
21 | private:
22 | };
--------------------------------------------------------------------------------
/src/main/sdl/timer.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include
4 |
5 | class Timer
6 | {
7 | private:
8 | //The clock time when the timer started
9 | int startTicks;
10 |
11 | //The ticks stored when the timer was paused
12 | int pausedTicks;
13 |
14 | //The timer status
15 | bool paused;
16 | bool started;
17 |
18 | public:
19 | //Initializes variables
20 | Timer();
21 |
22 | //The various clock actions
23 | void start();
24 | void stop();
25 | void pause();
26 | void unpause();
27 |
28 | //Gets the timer's time
29 | int get_ticks();
30 |
31 | //Checks the status of the timer
32 | bool is_started();
33 | bool is_paused();
34 | };
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/SDL_mixer_MMX.h:
--------------------------------------------------------------------------------
1 | /*
2 | headers for MMX assembler version of SDL_MixAudio
3 | Copyright 2002 Stephane Marchesin (stephane.marchesin@wanadoo.fr)
4 | This code is licensed under the LGPL (see COPYING for details)
5 |
6 | Assumes buffer size in bytes is a multiple of 16
7 | Assumes SDL_MIX_MAXVOLUME = 128
8 | */
9 | #include "SDL_config.h"
10 |
11 | #if defined(SDL_BUGGY_MMX_MIXERS) /* buggy, so we're disabling them. --ryan. */
12 | #if defined(__GNUC__) && defined(__i386__) && defined(SDL_ASSEMBLY_ROUTINES)
13 | void SDL_MixAudio_MMX_S16(char* ,char* ,unsigned int ,int );
14 | void SDL_MixAudio_MMX_S8(char* ,char* ,unsigned int ,int );
15 | #endif
16 | #endif
17 |
18 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/hermes/README:
--------------------------------------------------------------------------------
1 | HERMES 1.2.4 (c)1998 Christian Nentwich (brn) (c.nentwich@cs.ucl.ac.uk)
2 | and quite a few assembler routines (c) Glenn Fielder (gaffer@gaffer.org)
3 |
4 | This library and all the files enclosed in this package are free software
5 | under the terms of the GNU Library General Public License (LGPL). Please
6 | refer to the included file COPYING.LIB for the exact terms.
7 | ----------------------------------------------------------------------------
8 |
9 | This is a stripped down version of HERMES, including only the x86 assembler
10 | converters, for use with Simple DirectMedia Layer.
11 |
12 | The full HERMES library is available at: http://hermes.terminal.at/
13 |
14 |
--------------------------------------------------------------------------------
/src/main/main.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "globals.hpp"
4 |
5 | #ifdef COMPILE_SOUND_CODE
6 | #include "sdl/audio.hpp"
7 | #endif
8 |
9 | namespace cannonball
10 | {
11 | #ifdef COMPILE_SOUND_CODE
12 | extern Audio audio;
13 | #endif
14 |
15 | // Frame counter
16 | extern int frame;
17 |
18 | // Tick Logic. Used when running at non-standard > 30 fps
19 | extern bool tick_frame;
20 |
21 | // Millisecond Time Per Frame
22 | extern double frame_ms;
23 |
24 | // FPS Counter
25 | extern int fps_counter;
26 |
27 | // Engine Master State
28 | extern int state;
29 |
30 | enum
31 | {
32 | STATE_BOOT,
33 | STATE_INIT_MENU,
34 | STATE_MENU,
35 | STATE_INIT_GAME,
36 | STATE_GAME,
37 | STATE_QUIT
38 | };
39 | }
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/win32/win_ce_semaphore.h:
--------------------------------------------------------------------------------
1 | /* win_ce_semaphore.h - header file to go with win_ce_semaphore.c */
2 |
3 | typedef struct _SYNCH_HANDLE_STRUCTURE {
4 | HANDLE hEvent;
5 | HANDLE hMutex;
6 | HANDLE hSemph;
7 | LONG MaxCount;
8 | volatile LONG CurCount;
9 | LPCTSTR lpName;
10 | } SYNCH_HANDLE_STRUCTURE, *SYNCHHANDLE;
11 |
12 | #define SYNCH_HANDLE_SIZE sizeof (SYNCH_HANDLE_STRUCTURE)
13 |
14 | /* Error codes - all must have bit 29 set */
15 | #define SYNCH_ERROR 0X20000000 /* EXERCISE - REFINE THE ERROR NUMBERS */
16 |
17 | extern SYNCHHANDLE CreateSemaphoreCE (LPSECURITY_ATTRIBUTES, LONG, LONG, LPCTSTR);
18 |
19 | extern BOOL ReleaseSemaphoreCE (SYNCHHANDLE, LONG, LPLONG);
20 | extern DWORD WaitForSemaphoreCE (SYNCHHANDLE, DWORD);
21 |
22 | extern BOOL CloseSynchHandle (SYNCHHANDLE);
23 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macosx/Info.plist.in:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleExecutable
8 | @EXECUTABLE_NAME@
9 | CFBundleInfoDictionaryVersion
10 | 6.0
11 | CFBundleName
12 | @PACKAGE@
13 | CFBundlePackageType
14 | APPL
15 | CFBundleShortVersionString
16 | @VERSION@
17 | CFBundleSignature
18 | ????
19 | NSMainNibFile
20 | SDLMain.nib
21 | NSPrincipalClass
22 | NSApplication
23 |
24 |
25 |
--------------------------------------------------------------------------------
/external/sdl-1.2/INSTALL:
--------------------------------------------------------------------------------
1 |
2 | To compile and install SDL:
3 |
4 | 1. Run './configure; make; make install'
5 |
6 | If you are compiling for Windows using gcc, read the FAQ at:
7 | http://www.libsdl.org/faq.php?action=listentries&category=4#42
8 |
9 | If you are compiling using Visual C++ on Win32, you should read
10 | the file VisualC.html
11 |
12 | 2. Look at the example programs in ./test, and check out the HTML
13 | documentation in ./docs to see how to use the SDL library.
14 |
15 | 3. Join the SDL developer mailing list by sending E-mail to
16 | sdl-request@libsdl.org
17 | and put "subscribe" in the subject of the message.
18 |
19 | Or alternatively you can use the web interface:
20 | http://www.libsdl.org/mailing-list.php
21 |
22 | That's it!
23 | Sam Lantinga
24 |
--------------------------------------------------------------------------------
/src/main/hwvideo/hwsprites.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "stdint.hpp"
4 |
5 | class video;
6 |
7 | class hwsprites
8 | {
9 | public:
10 | hwsprites();
11 | ~hwsprites();
12 | void init(const uint8_t*);
13 | void reset();
14 | void set_x_clip(bool);
15 | void swap();
16 | uint8_t read(const uint16_t adr);
17 | void write(const uint16_t adr, const uint16_t data);
18 | void render(const uint8_t);
19 |
20 | private:
21 | // Clip values.
22 | uint16_t x1, x2;
23 |
24 | // 128 sprites, 16 bytes each (0x400)
25 | static const uint16_t SPRITE_RAM_SIZE = 128 * 8;
26 | static const uint32_t SPRITES_LENGTH = 0x100000 >> 2;
27 | static const uint16_t COLOR_BASE = 0x800;
28 |
29 | uint32_t sprites[SPRITES_LENGTH]; // Converted sprites
30 |
31 | // Two halves of RAM
32 | uint16_t ram[SPRITE_RAM_SIZE];
33 | uint16_t ramBuff[SPRITE_RAM_SIZE];
34 | };
35 |
36 |
--------------------------------------------------------------------------------
/android/jni/Settings.mk:
--------------------------------------------------------------------------------
1 |
2 | APP_MODULES := cannonball sdl-1.2
3 |
4 | APP_AVAILABLE_STATIC_LIBS :=
5 | APP_ABI := armeabi
6 |
7 | SDL_JAVA_PACKAGE_PATH := com_octodev_cannonball
8 |
9 | SDL_CURDIR_PATH := com.octodev.cannonball
10 |
11 | SDL_TRACKBALL_KEYUP_DELAY := 1
12 |
13 | SDL_VIDEO_RENDER_RESIZE := 1
14 |
15 | COMPILED_LIBRARIES :=
16 |
17 | APPLICATION_ADDITIONAL_CFLAGS := -finline-functions -O2 -DBUILD_TYPE=LINUX32 -DTARGET_LNX=1 -Werror=strict-aliasing -Werror=cast-align -Werror=pointer-arith -Werror=address
18 | APPLICATION_ADDITIONAL_LDFLAGS :=
19 | APPLICATION_OVERLAPS_SYSTEM_HEADERS := n
20 | APPLICATION_SUBDIRS_BUILD := src/*
21 | APPLICATION_BUILD_EXCLUDE :=
22 | APPLICATION_CUSTOM_BUILD_SCRIPT :=
23 |
24 | SDL_ADDITIONAL_CFLAGS := -DSDL_ANDROID_KEYCODE_MOUSE=UNKNOWN -DSDL_ANDROID_KEYCODE_0=LCTRL -DSDL_ANDROID_KEYCODE_1=LALT -DSDL_ANDROID_KEYCODE_2=SPACE -DSDL_ANDROID_KEYCODE_3=RETURN -DSDL_ANDROID_KEYCODE_4=RETURN
25 | SDL_VERSION := 1.2
26 |
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/Makefile.minimal:
--------------------------------------------------------------------------------
1 | # Makefile to build the SDL library
2 |
3 | INCLUDE = -I./include
4 | CFLAGS = -g -O2 $(INCLUDE)
5 | AR = ar
6 | RANLIB = ranlib
7 |
8 | CONFIG_H = include/SDL_config.h
9 | TARGET = libSDL.a
10 | SOURCES = \
11 | src/*.c \
12 | src/audio/*.c \
13 | src/cdrom/*.c \
14 | src/cpuinfo/*.c \
15 | src/events/*.c \
16 | src/file/*.c \
17 | src/joystick/*.c \
18 | src/stdlib/*.c \
19 | src/thread/*.c \
20 | src/timer/*.c \
21 | src/video/*.c \
22 | src/audio/dummy/*.c \
23 | src/video/dummy/*.c \
24 | src/joystick/dummy/*.c \
25 | src/cdrom/dummy/*.c \
26 | src/thread/generic/*.c \
27 | src/timer/dummy/*.c \
28 | src/loadso/dummy/*.c \
29 |
30 | OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
31 |
32 | all: $(TARGET)
33 |
34 | $(TARGET): $(CONFIG_H) $(OBJECTS)
35 | $(AR) crv $@ $^
36 | $(RANLIB) $@
37 |
38 | $(CONFIG_H):
39 | cp $(CONFIG_H).default $(CONFIG_H)
40 |
41 | clean:
42 | rm -f $(TARGET) $(OBJECTS)
43 |
--------------------------------------------------------------------------------
/external/sdl-1.2/include/SDL_copying.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
23 |
--------------------------------------------------------------------------------
/src/main/roms.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Load OutRun ROM Set.
3 |
4 | Copyright Chris White.
5 | See license.txt for more details.
6 | ***************************************************************************/
7 |
8 | #pragma once
9 |
10 | #include "romloader.hpp"
11 |
12 | class Roms
13 | {
14 | public:
15 | // Western ROMs
16 | RomLoader rom0;
17 | RomLoader rom1;
18 | RomLoader tiles;
19 | RomLoader sprites;
20 | RomLoader road;
21 | RomLoader z80;
22 | RomLoader pcm;
23 |
24 | // Japanese ROMs
25 | RomLoader j_rom0;
26 | RomLoader j_rom1;
27 |
28 | // Paged Roms (Swap between Jap and Western)
29 | RomLoader* rom0p;
30 | RomLoader* rom1p;
31 |
32 | Roms();
33 | ~Roms();
34 | bool load_revb_roms();
35 | bool load_japanese_roms();
36 | bool load_pcm_rom(bool);
37 |
38 | private:
39 | int jap_rom_status;
40 | };
41 |
42 | extern Roms roms;
--------------------------------------------------------------------------------
/external/sdl-1.2/README.HG:
--------------------------------------------------------------------------------
1 |
2 | The latest development version of SDL is available via Mercurial.
3 | Mercurial allows you to get up-to-the-minute fixes and enhancements;
4 | as a developer works on a source tree, you can use "hg" to mirror that
5 | source tree instead of waiting for an official release. Please look
6 | at the Mercurial website ( http://mercurial.selenic.com/ ) for more
7 | information on using hg, where you can also download software for
8 | Mac OS X, Windows, and Unix systems.
9 |
10 | hg clone -u SDL-1.2 http://hg.libsdl.org/SDL
11 |
12 | If you are building SDL with an IDE, you will need to copy the file
13 | include/SDL_config.h.default to include/SDL_config.h before building.
14 |
15 | If you are building SDL via configure, you will need to run autogen.sh
16 | before running configure.
17 |
18 | There is a web interface to the subversion repository at:
19 | http://hg.libsdl.org/SDL/
20 |
21 | There is an RSS feed available at that URL, for those that want to
22 | track commits in real time.
23 |
24 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/dc/SDL_syscond_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/dc/SDL_sysmutex_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/dc/SDL_syssem_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/os2/SDL_syscond_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/generic/SDL_sysmutex_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/dc/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | typedef struct kthread* SYS_ThreadHandle;
25 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/quartz/SDL_QuartzWM.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | struct WMcursor {
24 | NSCursor *nscursor;
25 | };
26 |
27 | void QZ_UpdateCursor(_THIS);
28 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/irix/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | #include
25 |
26 | typedef pid_t SYS_ThreadHandle;
27 |
28 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/pthread/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | #include
25 |
26 | typedef pthread_t SYS_ThreadHandle;
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dc/SDL_dcmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_dcvideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/SDL_audiomem.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #define SDL_AllocAudioMem SDL_malloc
25 | #define SDL_FreeAudioMem SDL_free
26 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/aalib/SDL_aamouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_aavideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dga/SDL_dgamouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_dgavideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dummy/SDL_nullmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_nullvideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/fbcon/SDL_fbmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_fbvideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/ggi/SDL_ggimouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_ggivideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/nds/SDL_ndsmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_ndsvideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/svga/SDL_svgamouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_svgavideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/src/main/directx/ffeedback.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Microsoft DirectX 8 Force Feedback (aka Haptic) Support
3 |
4 | - Currently, SDL does not support haptic devices. So this is Win32 only.
5 |
6 | - DirectX 8 still works on Windows XP, so I'm not attempting to support
7 | a higher version for now.
8 |
9 | Ref: http://msdn.microsoft.com/en-us/library/windows/desktop/ee417563%28v=vs.85%29.aspx
10 |
11 | Copyright Chris White.
12 | See license.txt for more details.
13 | ***************************************************************************/
14 |
15 | #pragma once
16 |
17 | //-----------------------------------------------------------------------------
18 | // Function prototypes
19 | //-----------------------------------------------------------------------------
20 | namespace forcefeedback
21 | {
22 | extern bool init(int max_force, int min_force, int force_duration);
23 | extern void close();
24 | extern int set(int xdirection, int force);
25 | extern bool is_supported();
26 | };
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/wscons/SDL_wsconsmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_wsconsvideo.h"
25 |
26 | /* Functions to be exported */
27 |
--------------------------------------------------------------------------------
/src/main/engine/osmoke.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Smoke & Spray Control.
3 |
4 | Animate the smoke and spray below the Ferrari's wheels.
5 |
6 | Copyright Chris White.
7 | See license.txt for more details.
8 | ***************************************************************************/
9 |
10 | #pragma once
11 |
12 | #include "outrun.hpp"
13 |
14 | class OSmoke
15 | {
16 | public:
17 | // Load smoke sprites for next level?
18 | int8_t load_smoke_data;
19 |
20 | OSmoke(void);
21 | ~OSmoke(void);
22 | void init();
23 | void setup_smoke_sprite(bool);
24 | void draw_ferrari_smoke(oentry*);
25 | void draw(oentry*);
26 |
27 | private:
28 | // Ferrari wheel smoke type on road
29 | uint16_t smoke_type_onroad;
30 |
31 | // Ferrari wheel smoke type off road
32 | uint16_t smoke_type_offroad;
33 |
34 | // Ferrari wheel smoke type after car collision
35 | uint16_t smoke_type_slip;
36 |
37 | void tick_smoke_anim(oentry*, int8_t, uint32_t);
38 | };
39 |
40 | extern OSmoke osmoke;
--------------------------------------------------------------------------------
/external/sdl-1.2/TODO:
--------------------------------------------------------------------------------
1 |
2 | Wish list for the 1.3 development branch:
3 | http://bugzilla.libsdl.org/
4 |
5 | * Add mousewheel events (new unified event architecture?)
6 | * DirectInput joystick support needs to be implemented
7 | * Be able to enumerate and select available audio and video drivers
8 | * Fullscreen video mode support for Mac OS X
9 | * Explicit vertical retrace wait (maybe separate from SDL_Flip?)
10 | * Shaped windows, windows without borders
11 | * Multiple windows, multiple display support
12 | * SDL_INIT_EVENTTHREAD on Windows and MacOS?
13 | * Add a timestamp to events
14 | * Add audio input API
15 | * Add hardware accelerated scaled blit
16 | * Add hardware accelerated alpha blits
17 | * Redesign blitting architecture to allow blit plugins
18 |
19 | In the jump from 1.2 to 1.3, we should change the SDL_Rect members to
20 | int and evaluate all the rest of the datatypes. This is the only place
21 | we should do it though, since the 1.2 series should not break binary
22 | compatibility in this way.
23 |
24 | Requests:
25 | * PCM and CDROM volume control (deprecated, but possible)
26 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/generic/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | /* Stub until we implement threads on this platform */
25 | typedef int SYS_ThreadHandle;
26 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/os2/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | #define INCL_DOSPROCESS
25 | #include
26 |
27 | typedef TID SYS_ThreadHandle;
28 |
29 |
--------------------------------------------------------------------------------
/android/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/external/sdl-1.2/include/SDL_getenv.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
23 | /** @file SDL_getenv.h
24 | * @deprecated Use SDL_stdinc.h instead
25 | */
26 |
27 | /* DEPRECATED */
28 | #include "SDL_stdinc.h"
29 |
--------------------------------------------------------------------------------
/external/sdl-1.2/include/SDL_types.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
23 | /** @file SDL_types.h
24 | * @deprecated Use SDL_stdinc.h instead.
25 | */
26 |
27 | /* DEPRECATED */
28 | #include "SDL_stdinc.h"
29 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/win32/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | #define WIN32_LEAN_AND_MEAN
25 | #include
26 |
27 | typedef HANDLE SYS_ThreadHandle;
28 |
29 |
--------------------------------------------------------------------------------
/src/main/engine/osprite.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Hardware Sprites.
3 |
4 | This class stores sprites in the converted format expected by the
5 | OutRun graphics hardware.
6 |
7 | Copyright Chris White.
8 | See license.txt for more details.
9 | ***************************************************************************/
10 |
11 | #include "stdint.hpp"
12 |
13 | class osprite
14 | {
15 | public:
16 | uint16_t data[0x7];
17 | uint32_t scratch;
18 |
19 | osprite(void);
20 | ~osprite(void);
21 | void init();
22 |
23 | uint16_t get_x();
24 | uint16_t get_y();
25 | void set_x(uint16_t);
26 | void inc_x(uint16_t);
27 | void set_y(uint16_t);
28 | void set_pitch(uint8_t);
29 | void set_vzoom(uint16_t);
30 | void set_hzoom(uint16_t);
31 | void set_priority(uint8_t);
32 | void set_offset(uint16_t o);
33 | void inc_offset(uint16_t o);
34 | void set_render(uint8_t b);
35 | void set_pal(uint8_t);
36 | void set_height(uint8_t);
37 | void sub_height(uint8_t);
38 | void set_bank(uint8_t);
39 | void hide();
40 |
41 | private:
42 |
43 | };
--------------------------------------------------------------------------------
/external/sdl-1.2/include/SDL_byteorder.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
23 | /**
24 | * @file SDL_byteorder.h
25 | * @deprecated Use SDL_endian.h instead
26 | */
27 |
28 | /* DEPRECATED */
29 | #include "SDL_endian.h"
30 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/symbian/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@devolution.com
21 | */
22 |
23 | /*
24 | SDL_systhread_c.h
25 |
26 | Epoc version by Markus Mertama (w@iki.fi)
27 | */
28 |
29 | typedef int SYS_ThreadHandle;
30 |
31 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/android/atan2i.h:
--------------------------------------------------------------------------------
1 | #ifndef __ATAN2I_H__
2 | #define __ATAN2I_H__
3 | #include
4 |
5 | // Fast arctan2, returns angle in radians as integer, with fractional part in lower 16 bits
6 | // Stolen from http://www.dspguru.com/dsp/tricks/fixed-point-atan2-with-self-normalization , precision is said to be 0.07 rads
7 |
8 | #ifndef M_PI
9 | #define M_PI 3.14159265358979323846
10 | #endif
11 | enum { atan2i_coeff_1 = ((int)(M_PI*65536.0/4)), atan2i_coeff_2 = (3*atan2i_coeff_1), atan2i_PI = (int)(M_PI * 65536.0) };
12 |
13 | static inline int atan2i(int y, int x)
14 | {
15 | int angle;
16 | int abs_y = abs(y);
17 | if( abs_y == 0 )
18 | abs_y = 1;
19 | if (x>=0)
20 | {
21 | angle = atan2i_coeff_1 - atan2i_coeff_1 * (x - abs_y) / (x + abs_y);
22 | }
23 | else
24 | {
25 | angle = atan2i_coeff_2 - atan2i_coeff_1 * (x + abs_y) / (abs_y - x);
26 | }
27 | if (y < 0)
28 | return(-angle); // negate if in quad III or IV
29 | else
30 | return(angle);
31 | };
32 |
33 | #define MIN(X, Y) ((X) < (Y) ? (X) : (Y))
34 | #define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
35 |
36 | #endif
37 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/SDL_fatal.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* General fatal signal handling code for SDL */
25 |
26 | extern void SDL_InstallParachute(void);
27 | extern void SDL_UninstallParachute(void);
28 |
29 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/SDL_audiodev_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Open the audio device, storing the pathname in 'path' */
25 | extern int SDL_OpenAudioPath(char *path, int maxlen, int flags, int classic);
26 |
27 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/android/SDL_renderer_gles.h:
--------------------------------------------------------------------------------
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 | /* OpenGL renderer implementation */
25 |
26 | extern SDL_RenderDriver GL_ES_RenderDriver;
27 |
28 | /* vi: set ts=4 sw=4 expandtab: */
29 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/macrom/SDL_romvideo.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_romvideo_h
25 | #define _SDL_romvideo_h
26 |
27 | #include "../maccommon/SDL_lowvideo.h"
28 |
29 | #endif /* _SDL_romvideo_h */
30 |
--------------------------------------------------------------------------------
/src/main/sdl/rendergles_android.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Open GL ES Video Rendering.
3 |
4 | Useful References:
5 | http://www.sdltutorials.com/sdl-opengl-tutorial-basics
6 | http://www.opengl.org/wiki/Common_Mistakes
7 | http://open.gl/textures
8 |
9 | Copyright Chris White.
10 | See license.txt for more details.
11 | ***************************************************************************/
12 |
13 | #pragma once
14 |
15 | #include "renderbase.hpp"
16 | #include "quad.hpp"
17 |
18 | #include
19 |
20 | class RenderGLES : public RenderBase
21 | {
22 |
23 | public:
24 |
25 | RenderGLES();
26 | bool init(int src_width, int src_height,
27 | int scale,
28 | int video_mode,
29 | int scanlines);
30 | void disable();
31 | bool start_frame();
32 | bool finalize_frame();
33 | void draw_frame(uint16_t* pixels);
34 |
35 | private:
36 |
37 | // Texture IDs
38 | const static int SCREEN = 0;
39 | const static int SCANLN = 1;
40 |
41 | GLuint textures[2];
42 |
43 | quad_t screen[2];
44 |
45 | };
--------------------------------------------------------------------------------
/src/main/utils.cpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | General C++ Helper Functions
3 |
4 | Copyright Chris White.
5 | See license.txt for more details.
6 | ***************************************************************************/
7 |
8 | #include
9 | #include "utils.hpp"
10 |
11 | // Convert value to string
12 | std::string Utils::to_string(int i)
13 | {
14 | std::stringstream ss;
15 | ss << i;
16 | return ss.str();
17 | }
18 |
19 | // Convert value to string
20 | std::string Utils::to_string(char c)
21 | {
22 | std::stringstream ss;
23 | ss << c;
24 | return ss.str();
25 | }
26 |
27 | // Convert value to string
28 | //template
29 | std::string Utils::to_hex_string(int i)
30 | {
31 | std::stringstream ss;
32 | ss << std::hex << i;
33 | return ss.str();
34 | }
35 |
36 | // Convert hex string to unsigned int
37 | uint32_t Utils::from_hex_string(std::string s)
38 | {
39 | unsigned int x;
40 | std::stringstream ss;
41 | ss << std::hex << s;
42 | ss >> x;
43 | // output it as a signed type
44 | return static_cast(x);
45 | }
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/Xext/extensions/Xinerama.h:
--------------------------------------------------------------------------------
1 | /* $XFree86: xc/include/extensions/Xinerama.h,v 3.2 2000/03/01 01:04:20 dawes Exp $ */
2 |
3 | #ifndef _Xinerama_h
4 | #define _Xinerama_h
5 |
6 | #include "SDL_name.h"
7 |
8 | typedef struct {
9 | int screen_number;
10 | short x_org;
11 | short y_org;
12 | short width;
13 | short height;
14 | } SDL_NAME(XineramaScreenInfo);
15 |
16 | Bool SDL_NAME(XineramaQueryExtension) (
17 | Display *dpy,
18 | int *event_base,
19 | int *error_base
20 | );
21 |
22 | Status SDL_NAME(XineramaQueryVersion)(
23 | Display *dpy,
24 | int *major,
25 | int *minor
26 | );
27 |
28 | Bool SDL_NAME(XineramaIsActive)(Display *dpy);
29 |
30 |
31 | /*
32 | Returns the number of heads and a pointer to an array of
33 | structures describing the position and size of the individual
34 | heads. Returns NULL and number = 0 if Xinerama is not active.
35 |
36 | Returned array should be freed with XFree().
37 | */
38 |
39 | SDL_NAME(XineramaScreenInfo) *
40 | SDL_NAME(XineramaQueryScreens)(
41 | Display *dpy,
42 | int *number
43 | );
44 |
45 | #endif /* _Xinerama_h */
46 |
47 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dga/SDL_dgaevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_dgavideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void DGA_PumpEvents(_THIS);
28 | extern void DGA_InitOSKeymap(_THIS);
29 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/qtopia/SDL_syswm_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_lowvideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void QT_SetWMCaption(_THIS, const char *title, const char *icon);
28 |
29 |
--------------------------------------------------------------------------------
/src/main/sdl/rendergl.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Open GL Video Rendering.
3 |
4 | Useful References:
5 | http://www.sdltutorials.com/sdl-opengl-tutorial-basics
6 | http://www.opengl.org/wiki/Common_Mistakes
7 | http://open.gl/textures
8 |
9 | Copyright Chris White.
10 | See license.txt for more details.
11 | ***************************************************************************/
12 |
13 | #pragma once
14 |
15 | #include "renderbase.hpp"
16 | #include "quad.hpp"
17 |
18 | //#define GL_GLEXT_PROTOTYPES
19 | #include
20 |
21 |
22 | class RenderGL : public RenderBase
23 | {
24 | public:
25 | RenderGL();
26 | bool init(int src_width, int src_height,
27 | int scale,
28 | int video_mode,
29 | int scanlines);
30 | void disable();
31 | bool start_frame();
32 | bool finalize_frame();
33 | void draw_frame(uint16_t* pixels);
34 |
35 | private:
36 | // Texture IDs
37 | const static int SCREEN = 0;
38 | const static int SCANLN = 1;
39 |
40 | GLuint textures[2];
41 |
42 | quad_t screen[2];
43 | };
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/ggi/SDL_ggievents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_ggivideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void GGI_InitOSKeymap(_THIS);
28 | extern void GGI_PumpEvents(_THIS);
29 |
30 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/pthread/SDL_sysmutex_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_mutex_c_h
25 | #define _SDL_mutex_c_h
26 |
27 | struct SDL_mutex {
28 | pthread_mutex_t id;
29 | };
30 |
31 | #endif /* _SDL_mutex_c_h */
32 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/pth/SDL_sysmutex_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_SYSMUTEX_C_H_
25 | #define _SDL_SYSMUTEX_C_H_
26 |
27 | struct SDL_mutex {
28 | pth_mutex_t mutexpth_p;
29 | };
30 |
31 | #endif /* _SDL_SYSMUTEX_C_H_ */
32 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/pth/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | #ifndef _SDL_SYSTHREAD_C_H_
25 | #define _SDL_SYSTHREAD_C_H_
26 |
27 | #include
28 |
29 | typedef pth_t SYS_ThreadHandle;
30 |
31 | #endif /* _SDL_SYSTHREAD_C_H_ */
32 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macos/exports/gendef.pl:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl
2 | #
3 | # Program to take a set of header files and generate DLL export definitions
4 |
5 | # Special exports to ignore for this platform
6 |
7 | while ( ($file = shift(@ARGV)) ) {
8 | if ( ! defined(open(FILE, $file)) ) {
9 | warn "Couldn't open $file: $!\n";
10 | next;
11 | }
12 | $printed_header = 0;
13 | $file =~ s,.*/,,;
14 | while () {
15 | if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {
16 | if ( not $exclude{$1} ) {
17 | print "\t$1\r";
18 | }
19 | }
20 | }
21 | close(FILE);
22 | }
23 |
24 | # Special exports to include for this platform
25 | print "\tSDL_putenv\r";
26 | print "\tSDL_getenv\r";
27 | print "\tSDL_qsort\r";
28 | print "\tSDL_revcpy\r";
29 | print "\tSDL_strlcpy\r";
30 | print "\tSDL_strlcat\r";
31 | print "\tSDL_strdup\r";
32 | print "\tSDL_strrev\r";
33 | print "\tSDL_strupr\r";
34 | print "\tSDL_strlwr\r";
35 | print "\tSDL_ltoa\r";
36 | print "\tSDL_ultoa\r";
37 | print "\tSDL_strcasecmp\r";
38 | print "\tSDL_strncasecmp\r";
39 | print "\tSDL_snprintf\r";
40 | print "\tSDL_vsnprintf\r";
41 | print "\tSDL_iconv\r";
42 | print "\tSDL_iconv_string\r";
43 | print "\tSDL_InitQuickDraw\r";
44 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/riscos/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | #if SDL_THREADS_DISABLED
25 |
26 | typedef int SYS_ThreadHandle;
27 |
28 | #else
29 |
30 | #include
31 |
32 | typedef pthread_t SYS_ThreadHandle;
33 |
34 | #endif
35 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/symbian/EKA1/SDL_epocvideo.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@devolution.com
21 | */
22 |
23 | #ifndef _SDL_epocvideo_h
24 | #define _SDL_epocvideo_h
25 |
26 | #ifndef EKA2
27 | #include"SDL_epocvideo_org.h"
28 | #else
29 | #include"SDL_epocvideo2.h"
30 | #endif
31 |
32 |
33 | #endif
34 |
35 |
--------------------------------------------------------------------------------
/src/main/setup.hpp:
--------------------------------------------------------------------------------
1 | // This file is AUTO GENERATED by CMake.
2 | #pragma once
3 |
4 | #include "SDL_video.h"
5 |
6 | #ifdef __ANDROID__
7 |
8 | const static char* FILENAME_OVERLAY = "overlay/main_normal.png";
9 | const static char* FILENAME_OVERLAY_PRESSED = "overlay/main_pressed.png";
10 |
11 | const static char* FILENAME_CONFIG = "/sdcard/config.xml";
12 | const static char* FILENAME_SCORES = "/sdcard/hiscores";
13 | const static char* FILENAME_TTRIAL = "/sdcard/hiscores_timetrial";
14 | const static char* FILENAME_CONT = "/sdcard/hiscores_continuous";
15 | const static int SDL_FLAGS = SDL_SWSURFACE | SDL_DOUBLEBUF;
16 | const static int SDL_BPP = 16;
17 |
18 | #else
19 |
20 | const static char* FILENAME_OVERLAY = "res/overlay/main_normal.png";
21 | const static char* FILENAME_OVERLAY_PRESSED = "res/overlay/main_pressed.png";
22 |
23 | const static char* FILENAME_CONFIG = "./config.xml";
24 | const static char* FILENAME_SCORES = "./hiscores";
25 | const static char* FILENAME_TTRIAL = "./hiscores_timetrial";
26 | const static char* FILENAME_CONT = "./hiscores_continuous";
27 | const static int SDL_FLAGS = SDL_SWSURFACE | SDL_DOUBLEBUF;
28 | const static int SDL_BPP = 32;
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/directfb/SDL_DirectFB_events.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_DirectFB_video.h"
25 |
26 | /* Functions to be exported */
27 | extern void DirectFB_InitOSKeymap(_THIS);
28 | extern void DirectFB_PumpEvents(_THIS);
29 |
30 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/android/SDL_androidaudio.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_androidaudio_h
25 | #define _SDL_androidaudio_h
26 |
27 | #include "../SDL_sysaudio.h"
28 |
29 | struct SDL_PrivateAudioData {
30 | };
31 |
32 | #endif /* _SDL_androidaudio_h */
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/riscos/SDL_sysmutex_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_mutex_c_h
25 | #define _SDL_mutex_c_h
26 |
27 | #if !SDL_THREADS_DISABLED
28 | struct SDL_mutex {
29 | pthread_mutex_t id;
30 | };
31 | #endif
32 |
33 |
34 | #endif /* _SDL_mutex_c_h */
35 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/fbcon/SDL_fb3dfx.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* 3Dfx hardware acceleration for the SDL framebuffer console driver */
25 |
26 | #include "SDL_fbvideo.h"
27 |
28 | /* Set up the driver for 3Dfx acceleration */
29 | extern void FB_3DfxAccel(_THIS, __u32 card);
30 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/fbcon/SDL_fbmatrox.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Matrox hardware acceleration for the SDL framebuffer console driver */
25 |
26 | #include "SDL_fbvideo.h"
27 |
28 | /* Set up the driver for Matrox acceleration */
29 | extern void FB_MatroxAccel(_THIS, __u32 card);
30 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/x11/SDL_x11events_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_x11video.h"
25 |
26 | /* Functions to be exported */
27 | extern void X11_InitOSKeymap(_THIS);
28 | extern void X11_PumpEvents(_THIS);
29 | extern void X11_SetKeyboardState(Display *display, const char *key_vec);
30 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/SDL_leaks.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Define this if you want surface leak detection code enabled */
25 | /*#define CHECK_LEAKS*/
26 |
27 | /* Global variables used to check leaks in code using SDL */
28 |
29 | #ifdef CHECK_LEAKS
30 | extern int surfaces_allocated;
31 | #endif
32 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/ggi/SDL_ggimouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_mouse.h"
25 | #include "../../events/SDL_events_c.h"
26 | #include "SDL_ggimouse_c.h"
27 |
28 |
29 | /* The implementation dependent data for the window manager cursor */
30 | struct WMcursor {
31 | int unused;
32 | };
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/qtopia/SDL_syswm.cc:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_QWin.h"
25 |
26 | extern "C" {
27 |
28 | #include "SDL_syswm_c.h"
29 |
30 | void QT_SetWMCaption(_THIS, const char *title, const char *icon)
31 | {
32 | SDL_Win->setCaption(title);
33 | }
34 |
35 | }; /* Extern C */
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dummy/SDL_nullmouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_mouse.h"
25 | #include "../../events/SDL_events_c.h"
26 |
27 | #include "SDL_nullmouse_c.h"
28 |
29 |
30 | /* The implementation dependent data for the window manager cursor */
31 | struct WMcursor {
32 | int unused;
33 | };
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/nanox/SDL_nxevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 | Copyright (C) 2001 Hsieh-Fu Tsai
5 |
6 | This library is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU Library General Public
8 | License as published by the Free Software Foundation; either
9 | version 2 of the License, or (at your option) any later version.
10 |
11 | This library is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | Library General Public License for more details.
15 |
16 | You should have received a copy of the GNU Library General Public
17 | License along with this library; if not, write to the Free
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 |
20 | Sam Lantinga
21 | slouken@libsdl.org
22 |
23 | Hsieh-Fu Tsai
24 | clare@setabox.com
25 | */
26 | #include "SDL_config.h"
27 |
28 | #include "SDL_nxvideo.h"
29 |
30 | // Functions to be exported
31 | extern void NX_InitOSKeymap (_THIS) ;
32 | extern void NX_PumpEvents (_THIS) ;
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/wscons/SDL_wsconsmouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_mouse.h"
25 | #include "../../events/SDL_events_c.h"
26 |
27 | #include "SDL_wsconsmouse_c.h"
28 |
29 |
30 | /* The implementation dependent data for the window manager cursor */
31 | struct WMcursor {
32 | int unused;
33 | };
34 |
--------------------------------------------------------------------------------
/cmake/mingw.cmake:
--------------------------------------------------------------------------------
1 | # MinGW Compiler
2 | # You can use the MAME Toolchain, but copy the 'i686-w64-mingw32' subdirectory over the main MinGW directory.
3 |
4 | set(lib_base c:/coding/lib)
5 | set(sdl_root ${lib_base}/SDL-1.2.15)
6 | set(SDL_INCLUDE_DIR ${lib_base}/SDL-1.2.15/include)
7 |
8 | if (NOT DEFINED ENV{DXSDK})
9 | message(FATAL_ERROR "Warning: DirectX SDK Variable DXSDK Not Defined!")
10 | endif()
11 |
12 | find_package(SDL REQUIRED)
13 |
14 | # Use OpenGL for rendering.
15 | set(OPENGL 1)
16 |
17 | # Use CannonBoard Serial Support (Not yet tested on MINGW build)
18 | set(CANNONBOARD 0)
19 |
20 | include_directories(
21 | "${SDL_INCLUDE_DIR}"
22 | # You may need to remove the next line based on your DirectX setup
23 | "$ENV{DXSDK}/include"
24 | )
25 |
26 | link_libraries(cannonball
27 | ${SDL_LIBRARY}
28 | SDLmain
29 | opengl32 # For OpenGL
30 | glu32 # For OpenGL
31 | dxguid
32 | dinput8
33 | )
34 |
35 | set(CMAKE_CXX_FLAGS "-Ofast -static-libgcc -static-libstdc++")
36 |
37 | # Location for Cannonball to create save files
38 | # Used to auto-generate setup.hpp with various file paths
39 | set(xml_directory ./)
40 |
41 | # SDL Software Rendering Flags (ignored if OpenGL used)
42 | set(sdl_flags "SDL_SWSURFACE | SDL_DOUBLEBUF")
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/bwindow/SDL_sysevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_lowvideo.h"
25 |
26 | /* Variables and functions exported by SDL_sysevents.c to other parts
27 | of the native video subsystem (SDL_sysvideo.c)
28 | */
29 |
30 | extern void BE_InitOSKeymap(_THIS);
31 | extern void BE_PumpEvents(_THIS);
32 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/qtopia/SDL_sysevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_lowvideo.h"
25 |
26 | /* Variables and functions exported by SDL_sysevents.c to other parts
27 | of the native video subsystem (SDL_sysvideo.c)
28 | */
29 |
30 | extern void QT_InitOSKeymap(_THIS);
31 | extern void QT_PumpEvents(_THIS);
32 |
--------------------------------------------------------------------------------
/src/main/engine/ologo.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Attract Mode: Animated OutRun Logo Graphic
3 |
4 | The logo is built from multiple sprite components.
5 |
6 | Copyright Chris White.
7 | See license.txt for more details.
8 | ***************************************************************************/
9 |
10 | #pragma once
11 |
12 | class OLogo
13 | {
14 | public:
15 | OLogo();
16 | ~OLogo();
17 | void enable(int16_t y);
18 | void disable();
19 | void tick();
20 | void blit();
21 |
22 | private:
23 | // Palm Tree Frame Addresses
24 | uint32_t palm_frames[8];
25 |
26 | // Background Palette Entries
27 | static const uint8_t bg_pal[];
28 |
29 | uint8_t entry_start;
30 |
31 | // Y Offset To Draw Logo At
32 | int16_t y_off;
33 |
34 | void setup_sprite1();
35 | void setup_sprite2();
36 | void setup_sprite3();
37 | void setup_sprite4();
38 | void setup_sprite5();
39 | void setup_sprite6();
40 | void setup_sprite7();
41 |
42 | void sprite_logo_bg();
43 | void sprite_logo_car();
44 | void sprite_logo_bird1();
45 | void sprite_logo_bird2();
46 | void sprite_logo_road();
47 | void sprite_logo_palm();
48 | void sprite_logo_text();
49 | };
50 |
51 | extern OLogo ologo;
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dc/SDL_dcmouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include
25 |
26 | #include "SDL_mouse.h"
27 | #include "../../events/SDL_events_c.h"
28 |
29 | #include "SDL_dcmouse_c.h"
30 |
31 |
32 | /* The implementation dependent data for the window manager cursor */
33 | struct WMcursor {
34 | int unused;
35 | };
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/fbcon/SDL_fbmouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_mouse.h"
25 | #include "../../events/SDL_events_c.h"
26 | #include "SDL_fbvideo.h"
27 | #include "SDL_fbmouse_c.h"
28 |
29 |
30 | /* The implementation dependent data for the window manager cursor */
31 | struct WMcursor {
32 | int unused;
33 | };
34 |
--------------------------------------------------------------------------------
/src/main/frontend/ttrial.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Time Trial Mode Front End.
3 |
4 | This file is part of Cannonball.
5 | Copyright Chris White.
6 | See license.txt for more details.
7 | ***************************************************************************/
8 |
9 | #pragma once
10 |
11 | #include "stdint.hpp"
12 |
13 | class TTrial
14 | {
15 | public:
16 | // Maximum number of laps to allow the player to race
17 | static const uint8_t MAX_LAPS = 5;
18 |
19 | // Maximum number of cars to spawn
20 | static const uint8_t MAX_TRAFFIC = 8;
21 |
22 | enum
23 | {
24 | BACK_TO_MENU = -1,
25 | CONTINUE = 0,
26 | INIT_GAME = 1,
27 | };
28 |
29 | uint8_t state;
30 | int8_t level_selected;
31 |
32 | enum
33 | {
34 | INIT_COURSEMAP,
35 | TICK_COURSEMAP,
36 | TICK_GAME_ENGINE,
37 | };
38 |
39 | TTrial(uint16_t* best_times);
40 | ~TTrial(void);
41 |
42 | void init();
43 | int tick();
44 | void update_best_time();
45 |
46 | private:
47 | // Best lap times for all 15 tracks.
48 | uint16_t* best_times;
49 |
50 | // Counter converted to actual laptime
51 | uint8_t best_converted[3];
52 | };
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/aalib/SDL_aamouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include
25 |
26 | #include "SDL_mouse.h"
27 | #include "../../events/SDL_events_c.h"
28 |
29 | #include "SDL_aamouse_c.h"
30 |
31 |
32 | /* The implementation dependent data for the window manager cursor */
33 | struct WMcursor {
34 | int unused;
35 | };
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/ipod/SDL_ipodvideo.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* iPod SDL framebuffer driver
25 | * Joshua Oreman
26 | * Main header file
27 | */
28 |
29 | #ifndef _SDL_ipodvideo_h
30 | #define _SDL_ipodvideo_h
31 |
32 | struct SDL_PrivateVideoData {
33 | char *buffer;
34 | int w, h;
35 | };
36 |
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/nds/SDL_ndsmouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_error.h"
25 | #include "SDL_mouse.h"
26 | #include "../../events/SDL_events_c.h"
27 |
28 | #include "SDL_ndsmouse_c.h"
29 |
30 |
31 | /* The implementation dependent data for the window manager cursor */
32 | struct WMcursor {
33 | int unused;
34 | };
35 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/svga/SDL_svgamouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_mouse.h"
25 | #include "../../events/SDL_events_c.h"
26 | #include "SDL_svgavideo.h"
27 | #include "SDL_svgamouse_c.h"
28 |
29 |
30 | /* The implementation dependent data for the window manager cursor */
31 | struct WMcursor {
32 | int unused;
33 | };
34 |
--------------------------------------------------------------------------------
/src/main/android_debug.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __ANDROID_DEBUG_H__
3 | #define __ANDROID_DEBUG_H__
4 |
5 | #include
6 | #include
7 |
8 | #ifdef __cplusplus
9 | // Include everything beforehand, so we wont' get compiler eerors because of our #define
10 | #include
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 |
17 | namespace std
18 | {
19 | class android_cout: public ostringstream
20 | {
21 | public:
22 | android_cout() {}
23 | template
24 | android_cout &operator<<(const T &v)
25 | {
26 | *((ostringstream*)this) << v;
27 | if( this->str().find('\n') != ::std::string::npos )
28 | {
29 | __android_log_print(ANDROID_LOG_INFO, "SDL-app", "%s", this->str().c_str());
30 | this->str().clear();
31 | }
32 | return *this;
33 | }
34 | ~android_cout()
35 | {
36 | __android_log_print(ANDROID_LOG_INFO, "SDL-app", "%s", this->str().c_str());
37 | this->str().clear();
38 | }
39 | };
40 | static const char * android_endl = "\n";
41 | }
42 | #define cout android_cout()
43 | #define cerr android_cout()
44 | #define endl android_endl
45 |
46 | #endif
47 |
48 | #define printf(...) __android_log_print(ANDROID_LOG_INFO, "SDL-app", __VA_ARGS__)
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/symbian/SDL_epocaudio.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@devolution.com
21 | */
22 |
23 |
24 | #ifdef SAVE_RCSID
25 | static char rcsid =
26 | "@(#) $Id: SDL_epocaudio.h,v 1.1.2.2 2001/02/10 07:20:03 hercules Exp $";
27 | #endif
28 |
29 | #ifndef _SDL_EPOCAUDIO_H
30 | #define _SDL_EPOCAUDIO_H
31 |
32 | extern "C" {
33 | #include "SDL_sysaudio.h"
34 | }
35 |
36 |
37 | #endif /* _SDL_EPOCAUDIO_H */
38 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/SDL_stretch_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Perform a stretch blit between two surfaces of the same format.
25 | NOTE: This function is not safe to call from multiple threads!
26 | */
27 | extern int SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect,
28 | SDL_Surface *dst, SDL_Rect *dstrect);
29 |
30 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/thread/beos/SDL_systhread_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include
25 | #include
26 |
27 | typedef thread_id SYS_ThreadHandle;
28 |
29 | /* Functions needed to work with system threads in other portions of SDL */
30 | extern void SDL_MaskSignals(sigset_t *omask);
31 | extern void SDL_UnmaskSignals(sigset_t *omask);
32 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dga/SDL_dgamouse.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include
25 |
26 | #include "SDL_mouse.h"
27 | #include "../../events/SDL_events_c.h"
28 | #include "SDL_dgavideo.h"
29 | #include "SDL_dgamouse_c.h"
30 |
31 |
32 | /* The implementation dependent data for the window manager cursor */
33 | struct WMcursor {
34 | int unused;
35 | };
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/maccommon/SDL_macevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "../macrom/SDL_romvideo.h"
25 |
26 | /* Functions exported by SDL_macevents.c for the video subsystem
27 | */
28 | extern void Mac_InitEvents(_THIS);
29 | extern void Mac_QuitEvents(_THIS);
30 |
31 | extern void Mac_InitOSKeymap(_THIS);
32 | extern void Mac_PumpEvents(_THIS);
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/nanox/SDL_nxwm_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 | Copyright (C) 2001 Hsieh-Fu Tsai
5 |
6 | This library is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU Library General Public
8 | License as published by the Free Software Foundation; either
9 | version 2 of the License, or (at your option) any later version.
10 |
11 | This library is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | Library General Public License for more details.
15 |
16 | You should have received a copy of the GNU Library General Public
17 | License along with this library; if not, write to the Free
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 |
20 | Sam Lantinga
21 | slouken@libsdl.org
22 |
23 | Hsieh-Fu Tsai
24 | clare@setabox.com
25 | */
26 | #include "SDL_config.h"
27 |
28 | #include "SDL_nxvideo.h"
29 |
30 | // Functions to be exported
31 | extern void NX_SetCaption (_THIS, const char * title, const char * icon) ;
32 | extern int NX_GetWMInfo (_THIS, SDL_SysWMinfo * info) ;
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/x11/SDL_x11dga_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_x11video.h"
25 |
26 | /* Different DGA access states */
27 | #define DGA_GRAPHICS 0x01
28 | #define DGA_KEYBOARD 0x02
29 | #define DGA_MOUSE 0x04
30 |
31 | extern void X11_EnableDGAMouse(_THIS);
32 | extern void X11_CheckDGAMouse(_THIS);
33 | extern void X11_DisableDGAMouse(_THIS);
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/macos/exports/Makefile:
--------------------------------------------------------------------------------
1 |
2 | EXPORTS = SDL.x
3 | HEADERS = \
4 | ../../../../include/SDL.h \
5 | ../../../../include/SDL_active.h \
6 | ../../../../include/SDL_audio.h \
7 | ../../../../include/SDL_byteorder.h \
8 | ../../../../include/SDL_cdrom.h \
9 | ../../../../include/SDL_copying.h \
10 | ../../../../include/SDL_cpuinfo.h \
11 | ../../../../include/SDL_endian.h \
12 | ../../../../include/SDL_error.h \
13 | ../../../../include/SDL_events.h \
14 | ../../../../include/SDL_getenv.h \
15 | ../../../../include/SDL_joystick.h \
16 | ../../../../include/SDL_keyboard.h \
17 | ../../../../include/SDL_keysym.h \
18 | ../../../../include/SDL_loadso.h \
19 | ../../../../include/SDL_mouse.h \
20 | ../../../../include/SDL_mutex.h \
21 | ../../../../include/SDL_name.h \
22 | ../../../../include/SDL_platform.h \
23 | ../../../../include/SDL_quit.h \
24 | ../../../../include/SDL_rwops.h \
25 | ../../../../include/SDL_syswm.h \
26 | ../../../../include/SDL_thread.h \
27 | ../../../../include/SDL_timer.h \
28 | ../../../../include/SDL_types.h \
29 | ../../../../include/SDL_version.h \
30 | ../../../../include/SDL_video.h
31 |
32 |
33 | all: $(EXPORTS)
34 |
35 | $(EXPORTS): Makefile gendef.pl $(HEADERS)
36 | perl gendef.pl $(HEADERS) >$@ || rm $@
37 |
38 | clean:
39 | rm -f $(EXPORTS)
40 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/timer/mint/SDL_vbltimer_s.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /*
25 | * TOS/MiNT timer driver
26 | * based on vbl vector
27 | *
28 | * Patrice Mandin
29 | */
30 |
31 | extern volatile long SDL_Atari_hz200;
32 |
33 | /* Functions prototypes */
34 | extern int SDL_AtariVblInstall(void *newvector);
35 | extern void SDL_AtariVblUninstall(void *newvector);
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dc/SDL_dcevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_dcvideo.h"
25 |
26 | /* Variables and functions exported by SDL_sysevents.c to other parts
27 | of the native video subsystem (SDL_sysvideo.c)
28 | */
29 | extern void DC_InitOSKeymap(_THIS);
30 | extern void DC_PumpEvents(_THIS);
31 |
32 | /* end of SDL_dcevents_c.h ... */
33 |
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/gem/SDL_gemevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_gemvideo.h"
25 |
26 | /* Variables and functions exported by SDL_sysevents.c to other parts
27 | of the native video subsystem (SDL_sysvideo.c) */
28 |
29 | extern void GEM_InitOSKeymap(_THIS);
30 | extern void GEM_PumpEvents(_THIS);
31 |
32 | /* end of SDL_gemevents_c.h */
33 |
34 |
--------------------------------------------------------------------------------
/src/main/hwvideo/hwroad.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "stdint.hpp"
4 |
5 | class HWRoad
6 | {
7 | public:
8 | HWRoad();
9 | ~HWRoad();
10 |
11 | void init(const uint8_t*, const bool hires);
12 | void write16(uint32_t adr, const uint16_t data);
13 | void write16(uint32_t* adr, const uint16_t data);
14 | void write32(uint32_t* adr, const uint32_t data);
15 | uint16_t read_road_control();
16 | void write_road_control(const uint8_t);
17 | void (HWRoad::*render_background)(uint16_t*);
18 | void (HWRoad::*render_foreground)(uint16_t*);
19 |
20 | private:
21 | uint8_t road_control;
22 | uint16_t color_offset1;
23 | uint16_t color_offset2;
24 | uint16_t color_offset3;
25 | int32_t x_offset;
26 |
27 | static const uint16_t ROAD_RAM_SIZE = 0x1000;
28 | static const uint16_t rom_size = 0x8000;
29 |
30 | // Decoded road graphics
31 | uint8_t roads[0x40200];
32 |
33 | // Two halves of RAM
34 | uint16_t ram[ROAD_RAM_SIZE / 2];
35 | uint16_t ramBuff[ROAD_RAM_SIZE / 2];
36 |
37 | void decode_road(const uint8_t*);
38 | void render_background_lores(uint16_t*);
39 | void render_foreground_lores(uint16_t*);
40 | void render_background_hires(uint16_t*);
41 | void render_foreground_hires(uint16_t*);
42 | };
43 |
44 | extern HWRoad hwroad;
--------------------------------------------------------------------------------
/android/src/com/octodev/cannonball/Mouse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.octodev.cannonball;
3 |
4 | class Mouse
5 | {
6 | public static final int LEFT_CLICK_NORMAL = 0;
7 | public static final int LEFT_CLICK_NEAR_CURSOR = 1;
8 | public static final int LEFT_CLICK_WITH_MULTITOUCH = 2;
9 | public static final int LEFT_CLICK_WITH_PRESSURE = 3;
10 | public static final int LEFT_CLICK_WITH_KEY = 4;
11 | public static final int LEFT_CLICK_WITH_TIMEOUT = 5;
12 | public static final int LEFT_CLICK_WITH_TAP = 6;
13 | public static final int LEFT_CLICK_WITH_TAP_OR_TIMEOUT = 7;
14 |
15 | public static final int RIGHT_CLICK_NONE = 0;
16 | public static final int RIGHT_CLICK_WITH_MULTITOUCH = 1;
17 | public static final int RIGHT_CLICK_WITH_PRESSURE = 2;
18 | public static final int RIGHT_CLICK_WITH_KEY = 3;
19 | public static final int RIGHT_CLICK_WITH_TIMEOUT = 4;
20 |
21 | public static final int SDL_FINGER_DOWN = 0;
22 | public static final int SDL_FINGER_UP = 1;
23 | public static final int SDL_FINGER_MOVE = 2;
24 | public static final int SDL_FINGER_HOVER = 3;
25 |
26 | public static final int ZOOM_NONE = 0;
27 | public static final int ZOOM_MAGNIFIER = 1;
28 |
29 | public static final int MOUSE_HW_INPUT_FINGER = 0;
30 | public static final int MOUSE_HW_INPUT_STYLUS = 1;
31 | public static final int MOUSE_HW_INPUT_MOUSE = 2;
32 | }
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dummy/SDL_nullevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_nullvideo.h"
25 |
26 | /* Variables and functions exported by SDL_sysevents.c to other parts
27 | of the native video subsystem (SDL_sysvideo.c)
28 | */
29 | extern void DUMMY_InitOSKeymap(_THIS);
30 | extern void DUMMY_PumpEvents(_THIS);
31 |
32 | /* end of SDL_nullevents_c.h ... */
33 |
34 |
--------------------------------------------------------------------------------
/src/main/engine/omusic.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Music Selection Screen.
3 |
4 | This is a combination of a tilemap and overlayed sprites.
5 |
6 | Copyright Chris White.
7 | See license.txt for more details.
8 | ***************************************************************************/
9 |
10 | #pragma once
11 |
12 | #include "outrun.hpp"
13 |
14 | class RomLoader;
15 |
16 | class OMusic
17 | {
18 | public:
19 | // Music Track Selected By Player
20 | uint8_t music_selected;
21 |
22 | OMusic(void);
23 | ~OMusic(void);
24 |
25 | bool load_widescreen_map();
26 | void enable();
27 | void disable();
28 | void tick();
29 | void blit();
30 | void check_start();
31 |
32 | private:
33 | // Modified Widescreen version of the Music Select Tilemap
34 | RomLoader* tilemap;
35 | // Additional Widescreen tiles
36 | RomLoader* tile_patch;
37 |
38 | uint16_t entry_start;
39 |
40 | // Used to preview music track
41 | int16_t last_music_selected;
42 | int8_t preview_counter;
43 |
44 | void setup_sprite1();
45 | void setup_sprite2();
46 | void setup_sprite3();
47 | void setup_sprite4();
48 | void setup_sprite5();
49 | void blit_music_select();
50 | };
51 |
52 | extern OMusic omusic;
53 |
54 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/ataricommon/SDL_atarieddi.S:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
23 | /*
24 | * Read EdDI version
25 | *
26 | * Patrice Mandin
27 | */
28 |
29 | .text
30 |
31 | .globl _Atari_get_EdDI_version
32 |
33 | /*--- Vector installer ---*/
34 |
35 | _Atari_get_EdDI_version:
36 | movel sp@(4),a0 /* Value of EdDI cookie */
37 |
38 | /* Call EdDI function #0 */
39 | clrw d0
40 | jsr (a0)
41 |
42 | rts
43 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/nanox/SDL_nxmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_nxvideo.h"
25 |
26 | extern WMcursor * NX_CreateWMCursor (_THIS, Uint8 * data, Uint8 * mask, int w, int h, int hot_x, int hot_y) ;
27 | void NX_FreeWMCursor (_THIS, WMcursor * cursor) ;
28 | extern void NX_WarpWMCursor (_THIS, Uint16 x, Uint16 y) ;
29 | extern int NX_ShowWMCursor (_THIS, WMcursor * cursor) ;
30 |
--------------------------------------------------------------------------------
/src/main/quad.hpp:
--------------------------------------------------------------------------------
1 |
2 | #pragma once
3 |
4 | typedef struct
5 | {
6 | float pos[2];
7 | float texcoord[2];
8 | } vertex_t;
9 |
10 | typedef struct
11 | {
12 | vertex_t vertices[4];
13 | } quad_t;
14 |
15 | #define ASSIGN_VERTEX(QUAD, X, Y, U, V) \
16 | QUAD.pos[0] = X; QUAD.pos[1] = Y; \
17 | QUAD.texcoord[0] = U; QUAD.texcoord[1] = V;
18 |
19 | #define ASSIGN_QUAD_FROM_BBOX(QUAD, BOX_POS, BOX_TEX, TEX_SCALE) \
20 | QUAD.vertices[0].pos[0] = BOX_POS.min[0]; QUAD.vertices[0].pos[1] = BOX_POS.max[1]; \
21 | QUAD.vertices[1].pos[0] = BOX_POS.min[0]; QUAD.vertices[1].pos[1] = BOX_POS.min[1]; \
22 | QUAD.vertices[2].pos[0] = BOX_POS.max[0]; QUAD.vertices[2].pos[1] = BOX_POS.max[1]; \
23 | QUAD.vertices[3].pos[0] = BOX_POS.max[0]; QUAD.vertices[3].pos[1] = BOX_POS.min[1]; \
24 | QUAD.vertices[0].texcoord[0] = ((double)BOX_TEX.min[0]) / TEX_SCALE; QUAD.vertices[0].texcoord[1] = ((double)BOX_TEX.max[1]) / TEX_SCALE; \
25 | QUAD.vertices[1].texcoord[0] = ((double)BOX_TEX.min[0]) / TEX_SCALE; QUAD.vertices[1].texcoord[1] = ((double)BOX_TEX.min[1]) / TEX_SCALE; \
26 | QUAD.vertices[2].texcoord[0] = ((double)BOX_TEX.max[0]) / TEX_SCALE; QUAD.vertices[2].texcoord[1] = ((double)BOX_TEX.max[1]) / TEX_SCALE; \
27 | QUAD.vertices[3].texcoord[0] = ((double)BOX_TEX.max[0]) / TEX_SCALE; QUAD.vertices[3].texcoord[1] = ((double)BOX_TEX.min[1]) / TEX_SCALE;
28 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/x11/SDL_x11gamma_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_x11gamma_h
25 | #define _SDL_x11gamma_h
26 |
27 | extern int X11_SetVidModeGamma(_THIS, float red, float green, float blue);
28 | extern int X11_GetVidModeGamma(_THIS, float *red, float *green, float *blue);
29 | extern void X11_SaveVidModeGamma(_THIS);
30 | extern void X11_SwapVidModeGamma(_THIS);
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/bwindow/SDL_syswm_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_syswm.h"
25 | #include "SDL_lowvideo.h"
26 |
27 |
28 | /* Functions to be exported */
29 | extern void BE_SetWMCaption(_THIS, const char *title, const char *icon);
30 | extern int BE_IconifyWindow(_THIS);
31 | extern int BE_GetWMInfo(_THIS, SDL_SysWMinfo *info);
32 | extern SDL_GrabMode BE_GrabInput(_THIS, SDL_GrabMode mode);
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/fbcon/SDL_fbriva.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Riva hardware acceleration for the SDL framebuffer console driver */
25 |
26 | #include "SDL_fbvideo.h"
27 |
28 | #ifndef FB_ACCEL_NV3
29 | #define FB_ACCEL_NV3 27
30 | #endif
31 | #ifndef FB_ACCEL_NV4
32 | #define FB_ACCEL_NV4 28
33 | #endif
34 |
35 | /* Set up the driver for Riva acceleration */
36 | extern void FB_RivaAccel(_THIS, __u32 card);
37 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/qtopia/SDL_QPEApp.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Handle the QPE application loop */
25 |
26 | /* Initialize the QPE Application, if it's not already started */
27 | extern int SDL_InitQPEApp(void);
28 |
29 | /* Quit the QPE Application, if there's nothing left to do */
30 | extern void SDL_QuitQPEApp(void);
31 |
32 | /* Flag to tell whether the app is active or not */
33 | extern int SDL_QPEAppActive;
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/riscos/SDL_riscosevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_riscosvideo.h"
25 |
26 | /* Variables and functions exported by SDL_sysevents.c to other parts
27 | of the native video subsystem (SDL_sysvideo.c)
28 | */
29 | extern void RISCOS_InitOSKeymap(_THIS);
30 | extern void FULLSCREEN_PumpEvents(_THIS);
31 | extern void WIMP_PumpEvents(_THIS);
32 |
33 | /* end of SDL_nullevents_c.h ... */
34 |
35 |
--------------------------------------------------------------------------------
/cmake/macosx.cmake:
--------------------------------------------------------------------------------
1 | # Default CMake Setup. Used for Mac OS x builds
2 |
3 | # For INTeL 32bit Mac OS X 10.5+
4 | set(CMAKE_CXX_FLAGS " -O2 -force_cpusubtype_ALL -mmacosx-version-min=10.5 -arch i386 -m32 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include/ ")
5 |
6 | # # For PowerPC 32bit Mac OS X 10.5+
7 | # set(CMAKE_CXX_FLAGS " -O2 -faltivec -force_cpusubtype_ALL -mmacosx-version-min=10.5 -arch ppc -m32 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include/ ")
8 |
9 | # Use OpenGL for rendering
10 | set(OPENGL 1)
11 |
12 | # This is for MacPorts
13 | set(lib_base /opt/local)
14 | set(sdl_root ${lib_base})
15 |
16 | include_directories("${sdl_root}/include/SDL/" "${lib_base}/include/" "/System/Library/Frameworks/" )
17 |
18 | find_library(COCOA_LIBRARY Cocoa)
19 | find_library(GLUT_LIBRARY GLUT )
20 | find_library(OpenGL_LIBRARY OpenGL )
21 |
22 | link_libraries(cannonball
23 | SDL
24 | SDLmain
25 | ${COCOA_LIBRARY}
26 | ${GLUT_LIBRARY}
27 | ${OpenGL_LIBRARY}
28 | )
29 |
30 | # Linking
31 | link_directories(
32 | "${sdl_root}/lib"
33 | )
34 |
35 | # Location for Cannonball to create save files
36 | # Used to auto-generate setup.hpp with various file paths
37 | set(xml_directory ./)
38 | set(sdl_flags "SDL_DOUBLEBUF | SDL_SWSURFACE")
39 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/nanox/SDL_nxmodes_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 | Copyright (C) 2001 Hsieh-Fu Tsai
5 |
6 | This library is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU Library General Public
8 | License as published by the Free Software Foundation; either
9 | version 2 of the License, or (at your option) any later version.
10 |
11 | This library is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | Library General Public License for more details.
15 |
16 | You should have received a copy of the GNU Library General Public
17 | License along with this library; if not, write to the Free
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 |
20 | Sam Lantinga
21 | slouken@libsdl.org
22 |
23 | Hsieh-Fu Tsai
24 | clare@setabox.com
25 | */
26 | #include "SDL_config.h"
27 |
28 | #include "SDL_nxvideo.h"
29 | #include
30 |
31 | extern SDL_Rect ** NX_ListModes (_THIS, SDL_PixelFormat * format, Uint32 flags) ;
32 | extern void NX_FreeVideoModes (_THIS) ;
33 | extern int NX_EnterFullScreen (_THIS) ;
34 | extern int NX_LeaveFullScreen (_THIS) ;
35 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/qtopia/SDL_sysmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_lowvideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void QT_FreeWMCursor(_THIS, WMcursor *cursor);
28 | extern WMcursor *QT_CreateWMCursor(_THIS,
29 | Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
30 | extern int QT_ShowWMCursor(_THIS, WMcursor *cursor);
31 | extern void QT_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
32 |
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/main/beos/SDL_BeApp.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Handle the BeApp specific portions of the application */
25 |
26 | /* Initialize the Be Application, if it's not already started */
27 | extern int SDL_InitBeApp(void);
28 |
29 | /* Quit the Be Application, if there's nothing left to do */
30 | extern void SDL_QuitBeApp(void);
31 |
32 | /* Flag to tell whether the app is active or not */
33 | extern int SDL_BeAppActive;
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dummy/SDL_nullvideo.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_nullvideo_h
25 | #define _SDL_nullvideo_h
26 |
27 | #include "../SDL_sysvideo.h"
28 |
29 | /* Hidden "this" pointer for the video functions */
30 | #define _THIS SDL_VideoDevice *this
31 |
32 |
33 | /* Private display data */
34 |
35 | struct SDL_PrivateVideoData {
36 | int w, h;
37 | void *buffer;
38 | };
39 |
40 | #endif /* _SDL_nullvideo_h */
41 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/vgl/SDL_vglmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_vglvideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void VGL_FreeWMCursor(_THIS, WMcursor *cursor);
28 | extern WMcursor *VGL_CreateWMCursor(_THIS,
29 | Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
30 | extern int VGL_ShowWMCursor(_THIS, WMcursor *cursor);
31 | extern void VGL_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
32 |
33 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/Xext/extensions/xme.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 1993-2001 by Xi Graphics, Inc.
3 | * All Rights Reserved.
4 | *
5 | * Please see the LICENSE file accompanying this distribution for licensing
6 | * information.
7 | *
8 | * Please send any bug fixes and modifications to src@xig.com.
9 | *
10 | * $XiGId: xme.h,v 1.1.1.1 2001/11/19 19:01:10 jon Exp $
11 | *
12 | */
13 |
14 |
15 | #ifndef _XME_H_INCLUDED
16 | #define _XME_H_INCLUDED
17 |
18 | typedef struct {
19 | short x;
20 | short y;
21 | unsigned short w;
22 | unsigned short h;
23 | } XiGMiscViewInfo;
24 |
25 | typedef struct {
26 | unsigned short width;
27 | unsigned short height;
28 | int refresh;
29 | } XiGMiscResolutionInfo;
30 |
31 | extern Bool XiGMiscQueryVersion(Display *dpy, int *major, int *minor);
32 | extern int XiGMiscQueryViews(Display *dpy, int screen,
33 | XiGMiscViewInfo **pviews);
34 | extern int XiGMiscQueryResolutions(Display *dpy, int screen, int view,
35 | int *pactive,
36 | XiGMiscResolutionInfo **presolutions);
37 | extern void XiGMiscChangeResolution(Display *dpy, int screen, int view,
38 | int width, int height, int refresh);
39 |
40 | /* SDL addition from Ryan: free memory used by xme. */
41 | extern void XiGMiscDestroy(void);
42 |
43 | #endif /* _XME_H_INCLUDED */
44 |
45 |
46 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/cdrom/dummy/SDL_syscdrom.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #if defined(SDL_CDROM_DUMMY) || defined(SDL_CDROM_DISABLED)
25 |
26 | /* Stub functions for system-level CD-ROM audio control */
27 |
28 | #include "SDL_cdrom.h"
29 | #include "../SDL_syscdrom.h"
30 |
31 | int SDL_SYS_CDInit(void)
32 | {
33 | return(0);
34 | }
35 |
36 | void SDL_SYS_CDQuit(void)
37 | {
38 | return;
39 | }
40 |
41 | #endif /* SDL_CDROM_DUMMY || SDL_CDROM_DISABLED */
42 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/blank_cursor.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 |
23 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
24 | * A default blank 8x8 cursor */
25 |
26 | #define BLANK_CWIDTH 8
27 | #define BLANK_CHEIGHT 8
28 | #define BLANK_CHOTX 0
29 | #define BLANK_CHOTY 0
30 |
31 | static unsigned char blank_cdata[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
32 | static unsigned char blank_cmask[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
33 |
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/baudio/SDL_beaudio.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_lowaudio_h
25 | #define _SDL_lowaudio_h
26 |
27 | #include "../SDL_sysaudio.h"
28 |
29 | /* Hidden "this" pointer for the video functions */
30 | #define _THIS SDL_AudioDevice *_this
31 |
32 | struct SDL_PrivateAudioData {
33 | BSoundPlayer *audio_obj;
34 | };
35 |
36 | /* Old variable names */
37 | #define audio_obj (_this->hidden->audio_obj)
38 |
39 | #endif /* _SDL_lowaudio_h */
40 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/caca/SDL_cacaevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | #ifdef SAVE_RCSID
24 | static char rcsid =
25 | "@(#) $Id: libsdl-1.2.11-libcaca.patch,v 1.1 2006/09/18 16:06:06 mr_bones_ Exp $";
26 | #endif
27 |
28 | #include "SDL_cacavideo.h"
29 |
30 | /* Variables and functions exported by SDL_sysevents.c to other parts.
31 | of the native video subsystem (SDL_sysvideo.c)
32 | */
33 | extern void Caca_PumpEvents(_THIS);
34 | extern void Caca_InitOSKeymap(_THIS);
35 |
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/picogui/SDL_pgevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | Micah Dowty
23 | micahjd@users.sourceforge.net
24 | */
25 | #include "SDL_config.h"
26 |
27 | #include "SDL_pgvideo.h"
28 |
29 | /* Variables and functions exported by SDL_sysevents.c to other parts
30 | of the native video subsystem (SDL_sysvideo.c)
31 | */
32 | extern void PG_PumpEvents(_THIS);
33 | extern void PG_InitEvents(_THIS);
34 | extern void PG_InitOSKeymap(_THIS);
35 |
36 | /* end of SDL_pgevents_c.h ... */
37 |
38 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/wscons/SDL_wsconsevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_wsconsvideo.h"
25 |
26 | int WSCONS_InitKeyboard(_THIS);
27 | void WSCONS_ReleaseKeyboard(_THIS);
28 |
29 | /* Variables and functions exported by SDL_sysevents.c to other parts
30 | of the native video subsystem (SDL_sysvideo.c)
31 | */
32 | extern void WSCONS_InitOSKeymap(_THIS);
33 | extern void WSCONS_PumpEvents(_THIS);
34 |
35 | /* end of SDL_wsconsevents_c.h ... */
36 |
37 |
--------------------------------------------------------------------------------
/src/main/sdl/rendersw.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | SDL Software Video Rendering.
3 |
4 | Known Bugs:
5 | - Scanlines don't work when Endian changed?
6 |
7 | Copyright Chris White.
8 | See license.txt for more details.
9 | ***************************************************************************/
10 |
11 | #pragma once
12 |
13 | #include "renderbase.hpp"
14 |
15 | class RenderSW : public RenderBase
16 | {
17 | public:
18 | RenderSW();
19 | ~RenderSW();
20 | bool init(int src_width, int src_height,
21 | int scale,
22 | int video_mode,
23 | int scanlines);
24 | void disable();
25 | bool start_frame();
26 | bool finalize_frame();
27 | void draw_frame(uint16_t* pixels);
28 |
29 | private:
30 | // Scanline pixels
31 | uint32_t* scan_pixels;
32 |
33 | // Pixel Conversion
34 | uint32_t* pix;
35 |
36 | // Scale the screen
37 | int scale_factor;
38 |
39 | void scale( uint32_t* src, int srcwid, int srchgt,
40 | uint32_t* dest, int dstwid, int dsthgt);
41 |
42 | void scanlines_32bpp(uint32_t* src, const int width, const int height,
43 | uint32_t* dst, int percent, const bool interpolate = true);
44 |
45 | void scalex( uint32_t* src, const int srcwid, const int srchgt, uint32_t* dest, const int scale);
46 | };
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/bwindow/SDL_sysmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_lowvideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void BE_FreeWMCursor(_THIS, WMcursor *cursor);
28 | extern WMcursor *BE_CreateWMCursor(_THIS,
29 | Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
30 | extern int BE_ShowWMCursor(_THIS, WMcursor *cursor);
31 | extern void BE_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
32 | extern void BE_CheckMouseMode(_THIS);
33 |
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dc/SDL_dcvideo.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_dcvideo_h
25 | #define _SDL_dcvideo_h
26 |
27 | #include "SDL_mouse.h"
28 | #include "SDL_mutex.h"
29 | #include "../SDL_sysvideo.h"
30 |
31 | /* Hidden "this" pointer for the video functions */
32 | #define _THIS SDL_VideoDevice *this
33 |
34 |
35 | /* Private display data */
36 |
37 | struct SDL_PrivateVideoData {
38 | int w, h;
39 | void *buffer;
40 | };
41 |
42 | #endif /* _SDL_dcvideo_h */
43 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/photon/SDL_ph_events_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_PH_EVENTS_H__
25 | #define __SDL_PH_EVENTS_H__
26 |
27 | #include "SDL_ph_video.h"
28 |
29 | #define PH_SDL_MAX_RECTS 256
30 | #define PH_EVENT_SAFETY_POOL 512
31 | #define EVENT_SIZE (sizeof(PhEvent_t) + 1000 + PH_EVENT_SAFETY_POOL)
32 |
33 | /* Functions to be exported */
34 | extern void ph_InitOSKeymap(_THIS);
35 | extern void ph_PumpEvents(_THIS);
36 |
37 | #endif /* __SDL_PH_EVENTS_H__ */
38 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/nds/SDL_ndsaudio.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_lowaudio_h
25 | #define _SDL_lowaudio_h
26 |
27 | #include "../SDL_sysaudio.h"
28 |
29 | /* Hidden "this" pointer for the audio functions */
30 | #define _THIS SDL_AudioDevice *this
31 |
32 | struct SDL_PrivateAudioData {
33 | /* The file descriptor for the audio device */
34 | //Uint8 *mixbuf;
35 | //Uint32 mixlen;
36 | };
37 | unsigned short SDL_NDSAudio_mutex=0;
38 |
39 |
40 | #endif /* _SDL_lowaudio_h */
41 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/SDL_RLEaccel_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Useful functions and variables from SDL_RLEaccel.c */
25 |
26 | extern int SDL_RLESurface(SDL_Surface *surface);
27 | extern int SDL_RLEBlit(SDL_Surface *src, SDL_Rect *srcrect,
28 | SDL_Surface *dst, SDL_Rect *dstrect);
29 | extern int SDL_RLEAlphaBlit(SDL_Surface *src, SDL_Rect *srcrect,
30 | SDL_Surface *dst, SDL_Rect *dstrect);
31 | extern void SDL_UnRLESurface(SDL_Surface *surface, int recode);
32 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/gem/SDL_gemmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_gemvideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void GEM_FreeWMCursor(_THIS, WMcursor *cursor);
28 | extern WMcursor *GEM_CreateWMCursor(_THIS,
29 | Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
30 | extern int GEM_ShowWMCursor(_THIS, WMcursor *cursor);
31 | #if 0
32 | extern void GEM_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
33 | #endif
34 | extern void GEM_CheckMouseMode(_THIS);
35 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/dc/SDL_dcaudio.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_dcaudio_h
25 | #define _SDL_dcaudio_h
26 |
27 | #include "../SDL_sysaudio.h"
28 |
29 | /* Hidden "this" pointer for the video functions */
30 | #define _THIS SDL_AudioDevice *this
31 |
32 | struct SDL_PrivateAudioData {
33 | /* The file descriptor for the audio device */
34 | Uint8 *mixbuf;
35 | Uint32 mixlen;
36 | int playing;
37 | int leftpos,rightpos;
38 | int nextbuf;
39 | };
40 |
41 | #endif /* _SDL_dcaudio_h */
42 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/dummy/SDL_dummyaudio.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_dummyaudio_h
25 | #define _SDL_dummyaudio_h
26 |
27 | #include "../SDL_sysaudio.h"
28 |
29 | /* Hidden "this" pointer for the video functions */
30 | #define _THIS SDL_AudioDevice *this
31 |
32 | struct SDL_PrivateAudioData {
33 | /* The file descriptor for the audio device */
34 | Uint8 *mixbuf;
35 | Uint32 mixlen;
36 | Uint32 write_delay;
37 | Uint32 initial_calls;
38 | };
39 |
40 | #endif /* _SDL_dummyaudio_h */
41 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/timer/macos/FastTimes.h:
--------------------------------------------------------------------------------
1 | /* File "FastTimes.h" - Original code by Matt Slot */
2 | #include "SDL_config.h"
3 | /* Created 4/24/99 - This file is hereby placed in the public domain */
4 | /* Updated 5/21/99 - Calibrate to VIA, add TBR support, renamed functions */
5 | /* Updated 10/4/99 - Use AbsoluteToNanoseconds() in case Absolute = double */
6 | /* Updated 2/15/00 - Check for native Time Manager, no need to calibrate */
7 | /* Updated 3/21/00 - Fixed ns conversion, create 2 different scale factors */
8 | /* Updated 5/03/00 - Added copyright and placed into PD. No code changes */
9 |
10 | /* This file is Copyright (C) Matt Slot, 1999-2000. It is hereby placed into
11 | the public domain. The author makes no warranty as to fitness or stability */
12 |
13 | #ifndef __FAST_TIMES_HEADER__
14 | #define __FAST_TIMES_HEADER__
15 |
16 | /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
17 | /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
18 |
19 | extern void FastInitialize(void);
20 | extern UInt64 FastMicroseconds(void);
21 | extern UInt64 FastMilliseconds(void);
22 | extern StringPtr FastMethod(void);
23 |
24 | /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
25 | /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
26 |
27 | #endif /* __FAST_TIMES_HEADER__ */
28 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/gem/SDL_gemwm_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /*
25 | * GEM SDL video driver implementation
26 | * Window manager functions
27 | *
28 | * Patrice Mandin
29 | */
30 |
31 | #include "SDL_gemvideo.h"
32 |
33 | /* Functions prototypes */
34 | extern void GEM_SetCaption(_THIS, const char *title, const char *icon);
35 | extern void GEM_SetIcon(_THIS, SDL_Surface *icon, Uint8 *mask);
36 | extern int GEM_IconifyWindow(_THIS);
37 | extern SDL_GrabMode GEM_GrabInput(_THIS, SDL_GrabMode mode);
38 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/riscos/SDL_riscostask.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | /*
25 | This file added by Alan Buckley (alan_baa@hotmail.com) to support RISC OS
26 | 26 March 2003
27 | */
28 |
29 | /* Task initialisation/Clean up */
30 |
31 | extern int RISCOS_InitTask();
32 | extern void RISCOS_ExitTask();
33 | extern int RISCOS_GetWimpVersion();
34 | extern int RISCOS_GetTaskHandle();
35 |
36 |
37 | /* Wimp mode saveing/restoring */
38 | extern void RISCOS_StoreWimpMode();
39 | extern void RISCOS_RestoreWimpMode();
40 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/maccommon/SDL_macmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "../macrom/SDL_romvideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void Mac_FreeWMCursor(_THIS, WMcursor *cursor);
28 | extern WMcursor *Mac_CreateWMCursor(_THIS,
29 | Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
30 | extern int Mac_ShowWMCursor(_THIS, WMcursor *cursor);
31 | extern void Mac_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
32 |
33 | /* Data to be exported */
34 | extern int Mac_cursor_showing;
35 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/nanox/SDL_nximage_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 | Copyright (C) 2001 Hsieh-Fu Tsai
5 |
6 | This library is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU Library General Public
8 | License as published by the Free Software Foundation; either
9 | version 2 of the License, or (at your option) any later version.
10 |
11 | This library is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | Library General Public License for more details.
15 |
16 | You should have received a copy of the GNU Library General Public
17 | License along with this library; if not, write to the Free
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 |
20 | Sam Lantinga
21 | slouken@libsdl.org
22 |
23 | Hsieh-Fu Tsai
24 | clare@setabox.com
25 | */
26 | #include "SDL_config.h"
27 |
28 | #include "SDL_nxvideo.h"
29 |
30 | extern int NX_SetupImage (_THIS, SDL_Surface * screen) ;
31 | extern void NX_DestroyImage (_THIS, SDL_Surface * screen) ;
32 | extern int NX_ResizeImage (_THIS, SDL_Surface * screen, Uint32 flags) ;
33 |
34 | extern void NX_NormalUpdate (_THIS, int numrects, SDL_Rect * rects) ;
35 | extern void NX_RefreshDisplay (_THIS) ;
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/SDL_mixer_m68k.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 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 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 | #include "SDL_config.h"
23 |
24 | /*
25 | m68k assembly mix routines
26 |
27 | Patrice Mandin
28 | */
29 |
30 | #if defined(__M68000__) && defined(__GNUC__)
31 | void SDL_MixAudio_m68k_U8(char* dst,char* src, long len, long volume, char* mix8);
32 | void SDL_MixAudio_m68k_S8(char* dst,char* src, long len, long volume);
33 |
34 | void SDL_MixAudio_m68k_S16MSB(short* dst,short* src, long len, long volume);
35 | void SDL_MixAudio_m68k_S16LSB(short* dst,short* src, long len, long volume);
36 | #endif
37 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/dc/aica.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 _AICA_H_
25 | #define _AICA_H_
26 |
27 | #define AICA_MEM 0xa0800000
28 |
29 | #define SM_8BIT 1
30 | #define SM_16BIT 0
31 | #define SM_ADPCM 2
32 |
33 | void aica_play(int ch,int mode,unsigned long smpptr,int looptst,int loopend,int freq,int vol,int pan,int loopflag);
34 | void aica_stop(int ch);
35 | void aica_vol(int ch,int vol);
36 | void aica_pan(int ch,int pan);
37 | void aica_freq(int ch,int freq);
38 | int aica_get_pos(int ch);
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/wincommon/SDL_sysmouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_lowvideo.h"
25 |
26 | /* Functions to be exported */
27 | extern void WIN_FreeWMCursor(_THIS, WMcursor *cursor);
28 | extern WMcursor *WIN_CreateWMCursor(_THIS,
29 | Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
30 | extern int WIN_ShowWMCursor(_THIS, WMcursor *cursor);
31 | extern void WIN_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
32 | extern void WIN_UpdateMouse(_THIS);
33 | extern void WIN_CheckMouseMode(_THIS);
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/windib/SDL_dibevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "../wincommon/SDL_lowvideo.h"
25 |
26 | /* Variables and functions exported by SDL_dibevents.c to other parts
27 | of the native video subsystem (SDL_dibvideo.c)
28 | */
29 | extern LONG
30 | DIB_HandleMessage(_THIS, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
31 | extern int DIB_CreateWindow(_THIS);
32 | extern void DIB_DestroyWindow(_THIS);
33 |
34 | extern void DIB_PumpEvents(_THIS);
35 | extern void DIB_InitOSKeymap(_THIS);
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/x11/SDL_x11mouse_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_x11video.h"
25 |
26 | /* Functions to be exported */
27 | extern void X11_FreeWMCursor(_THIS, WMcursor *cursor);
28 | extern WMcursor *X11_CreateWMCursor(_THIS,
29 | Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
30 | extern int X11_ShowWMCursor(_THIS, WMcursor *cursor);
31 | extern void X11_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
32 | extern void X11_CheckMouseModeNoLock(_THIS);
33 | extern void X11_CheckMouseMode(_THIS);
34 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/disk/SDL_diskaudio.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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_diskaudio_h
25 | #define _SDL_diskaudio_h
26 |
27 | #include "SDL_rwops.h"
28 | #include "../SDL_sysaudio.h"
29 |
30 | /* Hidden "this" pointer for the video functions */
31 | #define _THIS SDL_AudioDevice *this
32 |
33 | struct SDL_PrivateAudioData {
34 | /* The file descriptor for the audio device */
35 | SDL_RWops *output;
36 | Uint8 *mixbuf;
37 | Uint32 mixlen;
38 | Uint32 write_delay;
39 | };
40 |
41 | #endif /* _SDL_diskaudio_h */
42 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/audio/SDL_audio_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Functions and variables exported from SDL_audio.c for SDL_sysaudio.c */
25 |
26 | /* Functions to get a list of "close" audio formats */
27 | extern Uint16 SDL_FirstAudioFormat(Uint16 format);
28 | extern Uint16 SDL_NextAudioFormat(void);
29 |
30 | /* Function to calculate the size and silence for a SDL_AudioSpec */
31 | extern void SDL_CalculateAudioSpec(SDL_AudioSpec *spec);
32 |
33 | /* The actual mixing thread function */
34 | extern int SDLCALL SDL_RunAudio(void *audiop);
35 |
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/SDL_yuvfuncs.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* This is the definition of the YUV video surface function structure */
25 |
26 | #include "SDL_video.h"
27 | #include "SDL_sysvideo.h"
28 |
29 | #ifndef _THIS
30 | #define _THIS SDL_VideoDevice *_this
31 | #endif
32 | struct private_yuvhwfuncs {
33 | int (*Lock)(_THIS, SDL_Overlay *overlay);
34 | void (*Unlock)(_THIS, SDL_Overlay *overlay);
35 | int (*Display)(_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst);
36 | void (*FreeHW)(_THIS, SDL_Overlay *overlay);
37 | };
38 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/wincommon/SDL_syswm_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_lowvideo.h"
25 |
26 | /* Data that needs to be freed at SDL_SYS_VideoQuit() */
27 | extern HICON screen_icn;
28 |
29 | /* Functions to be exported */
30 | extern void WIN_SetWMIcon(_THIS, SDL_Surface *icon, Uint8 *mask);
31 | extern void WIN_SetWMCaption(_THIS, const char *title, const char *icon);
32 | extern int WIN_IconifyWindow(_THIS);
33 | extern SDL_GrabMode WIN_GrabInput(_THIS, SDL_GrabMode mode);
34 | extern int WIN_GetWMInfo(_THIS, SDL_SysWMinfo *info);
35 |
36 |
--------------------------------------------------------------------------------
/src/main/sdl/renderbase.cpp:
--------------------------------------------------------------------------------
1 | #include "renderbase.hpp"
2 | #include
3 |
4 | RenderBase::RenderBase()
5 | {
6 | surface = NULL;
7 | screen_pixels = NULL;
8 |
9 | orig_width = 0;
10 | orig_height = 0;
11 | }
12 |
13 | // Setup screen size
14 | bool RenderBase::sdl_screen_size()
15 | {
16 | if (orig_width == 0 || orig_height == 0)
17 | {
18 | const SDL_VideoInfo* info = SDL_GetVideoInfo();
19 |
20 | if (!info)
21 | {
22 | std::cerr << "Video query failed: " << SDL_GetError() << std::endl;
23 | return false;
24 | }
25 |
26 | orig_width = info->current_w;
27 | orig_height = info->current_h;
28 | }
29 |
30 | scn_width = orig_width;
31 | scn_height = orig_height;
32 |
33 | return true;
34 | }
35 |
36 | // See: SDL_PixelFormat
37 | #define CURRENT_RGB() (r << Rshift) | (g << Gshift) | (b << Bshift);
38 |
39 | void RenderBase::convert_palette(uint32_t adr, uint32_t r, uint32_t g, uint32_t b)
40 | {
41 | adr >>= 1;
42 |
43 | r = r * 255 / 31;
44 | g = g * 255 / 31;
45 | b = b * 255 / 31;
46 |
47 | rgb[adr] = CURRENT_RGB();
48 |
49 | // Create shadow / highlight colours at end of RGB array
50 | // The resultant values are the same as MAME
51 | r = r * 202 / 256;
52 | g = g * 202 / 256;
53 | b = b * 202 / 256;
54 |
55 | rgb[adr + S16_PALETTE_ENTRIES] =
56 | rgb[adr + (S16_PALETTE_ENTRIES * 2)] = CURRENT_RGB();
57 | }
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/aalib/SDL_aaevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_aavideo.h"
25 |
26 | /* Variables and functions exported by SDL_sysevents.c to other parts
27 | of the native video subsystem (SDL_sysvideo.c)
28 | */
29 | extern void AA_initkeymaps(int fd);
30 | extern void AA_mousecallback(int button, int dx, int dy,
31 | int u1,int u2,int u3, int u4);
32 | extern void AA_keyboardcallback(int scancode, int pressed);
33 |
34 | extern void AA_InitOSKeymap(_THIS);
35 | extern void AA_PumpEvents(_THIS);
36 |
--------------------------------------------------------------------------------
/src/main/hwaudio/segapcm.hpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Sega 8-Bit PCM Driver
3 |
4 | This driver is based upon the MAME source code, with some minor
5 | modifications to integrate it into the Cannonball framework.
6 |
7 | Note, that I've altered this driver to output at a fixed 44,100Hz.
8 | This is to avoid the need for downsampling.
9 |
10 | See http://mamedev.org/source/docs/license.txt for more details.
11 | ***************************************************************************/
12 |
13 | #pragma once
14 |
15 | #include "stdint.hpp"
16 | #include "romloader.hpp"
17 | #include "hwaudio/soundchip.hpp"
18 |
19 | class SegaPCM : public SoundChip
20 | {
21 | public:
22 | static const uint32_t BANK_256 = (11);
23 | static const uint32_t BANK_512 = (12);
24 | static const uint32_t BANK_12M = (13);
25 | static const uint32_t BANK_MASK7 = (0x70 << 16);
26 | static const uint32_t BANK_MASKF = (0xf0 << 16);
27 | static const uint32_t BANK_MASKF8 = (0xf8 << 16);
28 |
29 | SegaPCM(uint32_t clock, RomLoader* rom, uint8_t* ram, int32_t bank);
30 | ~SegaPCM();
31 | void init(int32_t fps);
32 | void stream_update();
33 |
34 | private:
35 | // PCM Chip Emulation
36 | uint8_t* ram;
37 | uint8_t* low;
38 | uint8_t* pcm_rom;
39 | int32_t max_addr;
40 | int32_t bankshift;
41 | int32_t bankmask;
42 | int32_t rgnmask;
43 |
44 | double downsample;
45 | };
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/dummy/SDL_nullevents.c:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* Being a null driver, there's no event stream. We just define stubs for
25 | most of the API. */
26 |
27 | #include "SDL.h"
28 | #include "../../events/SDL_sysevents.h"
29 | #include "../../events/SDL_events_c.h"
30 |
31 | #include "SDL_nullvideo.h"
32 | #include "SDL_nullevents_c.h"
33 |
34 | void DUMMY_PumpEvents(_THIS)
35 | {
36 | /* do nothing. */
37 | }
38 |
39 | void DUMMY_InitOSKeymap(_THIS)
40 | {
41 | /* do nothing. */
42 | }
43 |
44 | /* end of SDL_nullevents.c ... */
45 |
46 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/svga/SDL_svgaevents_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | #include "SDL_svgavideo.h"
25 |
26 | /* Variables and functions exported by SDL_sysevents.c to other parts
27 | of the native video subsystem (SDL_sysvideo.c)
28 | */
29 | extern int SVGA_initkeymaps(int fd);
30 | extern void SVGA_mousecallback(int button, int dx, int dy,
31 | int u1,int u2,int u3, int u4);
32 | extern void SVGA_keyboardcallback(int scancode, int pressed);
33 |
34 | extern void SVGA_InitOSKeymap(_THIS);
35 | extern void SVGA_PumpEvents(_THIS);
36 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/timer/SDL_systimer.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /* The system dependent timer handling functions */
25 |
26 | #include "SDL_timer.h"
27 | #include "SDL_timer_c.h"
28 |
29 |
30 | /* Initialize the system dependent timer subsystem */
31 | extern int SDL_SYS_TimerInit(void);
32 |
33 | /* Quit the system dependent timer subsystem */
34 | extern void SDL_SYS_TimerQuit(void);
35 |
36 | /* Start a timer set up by SDL_SetTimer() */
37 | extern int SDL_SYS_StartTimer(void);
38 |
39 | /* Stop a previously started timer */
40 | extern void SDL_SYS_StopTimer(void);
41 |
--------------------------------------------------------------------------------
/external/sdl-1.2/src/video/ataricommon/SDL_atarimxalloc_c.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2009 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 | /*
25 | * Memory allocation
26 | *
27 | * Patrice Mandin
28 | */
29 |
30 | #ifndef _SDL_ATARI_MXALLOC_H_
31 | #define _SDL_ATARI_MXALLOC_H_
32 |
33 | /*--- Defines ---*/
34 |
35 | /* Mxalloc parameters */
36 | #ifndef MX_STRAM
37 | #define MX_STRAM 0
38 | #define MX_TTRAM 1
39 | #define MX_PREFSTRAM 2
40 | #define MX_PREFTTRAM 3
41 | #endif
42 |
43 | /*--- Functions ---*/
44 |
45 | extern void *Atari_SysMalloc(Uint32 size, Uint16 alloc_type);
46 |
47 | #endif /* _SDL_ATARI_MXALLOC_H_ */
48 |
--------------------------------------------------------------------------------