diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..ba3af65d6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +* text=false + diff --git a/.gitignore b/.gitignore index f9c6811d2..19c08eeb8 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,5 @@ project.xcworkspace/ /*.DEM /game*.sav -Platform/Windows/Build -Platform/Windows/Win32 -Platform/Windows/x64 +build-vs2019/ +/source/gitinfo.h diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 521a38740..000000000 --- a/Android.mk +++ /dev/null @@ -1,159 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -ifeq ($(findstring clang,$(NDK_TOOLCHAIN_VERSION)),) - FOUND_CLANG := 0 -else - FOUND_CLANG := 1 -endif - -LOCAL_MODULE := duke3d - -COMMONFLAGS := -x c++ -std=gnu++11 -fvisibility=hidden -fPIC -funsigned-char -fno-strict-aliasing -pthread \ - -W -Wall -Wextra -Wpointer-arith -Wno-char-subscripts -Wno-missing-braces -Wwrite-strings -Wuninitialized \ - -Wno-attributes -Wno-strict-overflow -Wno-unused-result -Wlogical-op -Wcast-qual -Werror=return-type \ - -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -DUSE_OPENGL -DNETCODE_DISABLE -DUSE_LIBVPX \ - -D_GNU_SOURCE=1 -D_REENTRANT - -ifeq ($(FOUND_CLANG),1) - COMMONFLAGS += -Wno-unknown-warning-option -Wno-deprecated-register -endif - -LOCAL_LDFLAGS := -fuse-ld=bfd -LOCAL_ARM_NEON = true - -ifeq ($(NDK_DEBUG), 1) - COMMONFLAGS += -O0 -ggdb -fno-omit-frame-pointer -fno-stack-protector -D_FORTIFY_SOURCE=0 -DDEBUGGINGAIDS=0 -else - COMMONFLAGS += -O2 -DNDEBUG -D_FORTIFY_SOURCE=2 - ifeq ($(FOUND_CLANG),0) - COMMONFLAGS += -DUSING_LTO -flto - LOCAL_LDFLAGS += -flto - endif -endif - -LOCAL_CFLAGS = $(COMMONFLAGS) -LOCAL_CPPFLAGS = $(COMMONFLAGS) - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/source/duke3d/src $(LOCAL_PATH)/source/mact/include $(LOCAL_PATH)/source/audiolib/include $(LOCAL_PATH)/source/enet/include $(LOCAL_PATH)/source/build/include -LOCAL_C_INCLUDES += $(LOCAL_PATH)/source/etcpak/include -LOCAL_C_INCLUDES += $(TOP_DIR)/ $(TOP_DIR)/Libraries/liboggvorbis/include $(TOP_DIR)/Libraries/ $(TOP_DIR)/Libraries/SDL2/include $(TOP_DIR)/Libraries/SDL2_mixer/include $(TOP_DIR)/Libraries/TinyXML/include $(TOP_DIR)/TouchControls $(TOP_DIR)/Libraries/libvpx/include - -ANDROID_SRC = \ - source/build/src/jwzgles.c \ - platform/Android/Duke3d/jni/android-jni.cpp \ - source/etcpak/src/ProcessRGB.cpp \ - source/etcpak/src/Tables.cpp \ - source/duke3d/src/in_android.cpp \ - -BUILD_SRC = \ - source/build/src/2d.cpp \ - source/build/src/a-c.cpp \ - source/build/src/animvpx.cpp \ - source/build/src/baselayer.cpp \ - source/build/src/cache1d.cpp \ - source/build/src/compat.cpp \ - source/build/src/common.cpp \ - source/build/src/crc32.cpp \ - source/build/src/defs.cpp \ - source/build/src/clip.cpp \ - source/build/src/colmatch.cpp \ - source/build/src/engine.cpp \ - source/build/src/hash.cpp \ - source/build/src/glbuild.cpp \ - source/build/src/polymost.cpp \ - source/build/src/mdsprite.cpp \ - source/build/src/texcache.cpp \ - source/build/src/dxtfilter.cpp \ - source/build/src/hightile.cpp \ - source/build/src/textfont.cpp \ - source/build/src/smalltextfont.cpp \ - source/build/src/kplib.cpp \ - source/build/src/mmulti_null.cpp \ - source/build/src/lz4.c \ - source/build/src/osd.cpp \ - source/build/src/md4.cpp \ - source/build/src/pragmas.cpp \ - source/build/src/scriptfile.cpp \ - source/build/src/mutex.cpp \ - source/build/src/xxhash.c \ - source/build/src/voxmodel.cpp \ - source/build/src/rev.cpp \ - source/build/src/sdlayer.cpp \ - source/build/src/screenshot.cpp \ - source/build/src/tiles.cpp \ - source/build/src/mhk.cpp \ - source/build/src/palette.cpp \ - -MACT_SRC = \ - source/mact/src/control.cpp \ - source/mact/src/keyboard.cpp \ - source/mact/src/joystick.cpp \ - source/mact/src/scriplib.cpp \ - source/mact/src/animlib.cpp \ - -GAME_SRC = \ - source/duke3d/src/game.cpp \ - source/duke3d/src/actors.cpp \ - source/duke3d/src/anim.cpp \ - source/duke3d/src/common.cpp \ - source/duke3d/src/config.cpp \ - source/duke3d/src/demo.cpp \ - source/duke3d/src/gamedef.cpp \ - source/duke3d/src/gameexec.cpp \ - source/duke3d/src/gamevars.cpp \ - source/duke3d/src/global.cpp \ - source/duke3d/src/input.cpp \ - source/duke3d/src/menus.cpp \ - source/duke3d/src/namesdyn.cpp \ - source/duke3d/src/network.cpp \ - source/duke3d/src/player.cpp \ - source/duke3d/src/premap.cpp \ - source/duke3d/src/savegame.cpp \ - source/duke3d/src/sector.cpp \ - source/duke3d/src/rts.cpp \ - source/duke3d/src/osdfuncs.cpp \ - source/duke3d/src/osdcmds.cpp \ - source/duke3d/src/grpscan.cpp \ - source/duke3d/src/sounds.cpp \ - source/duke3d/src/soundsdyn.cpp \ - source/duke3d/src/sdlmusic.cpp \ - source/duke3d/src/cmdline.cpp \ - source/duke3d/src/screens.cpp \ - source/duke3d/src/screentext.cpp \ - source/duke3d/src/cheats.cpp \ - source/duke3d/src/sbar.cpp \ - -AUDIOLIB_SRC = \ - source/audiolib/src/drivers.cpp \ - source/audiolib/src/fx_man.cpp \ - source/audiolib/src/multivoc.cpp \ - source/audiolib/src/mix.cpp \ - source/audiolib/src/mixst.cpp \ - source/audiolib/src/pitch.cpp \ - source/audiolib/src/formats.cpp \ - source/audiolib/src/vorbis.cpp \ - source/audiolib/src/flac.cpp \ - source/audiolib/src/xa.cpp \ - source/audiolib/src/xmp.cpp \ - source/audiolib/src/driver_nosound.cpp \ - source/audiolib/src/driver_sdl.cpp \ - -ENET_SRC = \ - source/enet/src/callbacks.c \ - source/enet/src/host.c \ - source/enet/src/list.c \ - source/enet/src/packet.c \ - source/enet/src/peer.c \ - source/enet/src/protocol.c \ - source/enet/src/compress.c \ - source/enet/src/unix.c \ - -LOCAL_SRC_FILES = $(ANDROID_SRC) $(AUDIOLIB_SRC) $(MACT_SRC) $(GAME_SRC) $(BUILD_SRC) - -LOCAL_LDLIBS := -lGLESv1_CM -lEGL -ldl -llog -LOCAL_STATIC_LIBRARIES := touch -LOCAL_SHARED_LIBRARIES := ogg vorbis SDL2 SDL2_mixer libvpx - -include $(BUILD_SHARED_LIBRARY) diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..c23ab31a3 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,420 @@ +cmake_minimum_required( VERSION 2.8.7 ) +project(Demolition) + +if( COMMAND cmake_policy ) + if( POLICY CMP0011 ) + cmake_policy( SET CMP0011 NEW ) + endif() + if( POLICY CMP0054 ) + cmake_policy( SET CMP0054 NEW ) + endif() +endif() + +list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ) +include( FindPackageHandleStandardArgs ) + +# Support cross compiling +option( FORCE_CROSSCOMPILE "Turn on cross compiling." NO ) +if( FORCE_CROSSCOMPILE ) + set( CMAKE_CROSSCOMPILING TRUE ) +endif() + +if(CMAKE_CROSSCOMPILING) + set(IMPORT_EXECUTABLES "IMPORTFILE-NOTFOUND" CACHE FILEPATH "Export file from native build.") + include(${IMPORT_EXECUTABLES}) +endif() + +# Recursive function to place PK3 archive source files into a hierarchy of source file in the IDE +function( assort_pk3_source_folder FOLDER_NAME PK3_DIR ) + # Assort source files into folders in the IDE + file(GLOB PK3_SRCS ${PK3_DIR}/*) # Create list of all files in this folder + foreach(PK3_SRC ${PK3_SRCS}) + # If there are subfolders, recurse into them + if(IS_DIRECTORY ${PK3_SRC}) + get_filename_component(DIRNAME ${PK3_SRC} NAME) + # Exclude folder from list of source files + list(REMOVE_ITEM PK3_SRCS ${PK3_SRC}) + # Recurse deeper into the filesystem folder tree + assort_pk3_source_folder( ${FOLDER_NAME}\\${DIRNAME} ${PK3_SRC} ) + endif() + # Assign IDE group for current top-level source files + source_group(${FOLDER_NAME} FILES ${PK3_SRCS}) + endforeach() +endfunction() + +option( PK3_QUIET_ZIPDIR "Do not list files processed by zipdir" NO ) +if( PK3_QUIET_ZIPDIR ) + set( PK3_ZIPDIR_OPTIONS "-q" ) +endif() + +# Simplify pk3 building, add_pk3(filename srcdirectory) +function( add_pk3 PK3_NAME PK3_DIR ) + # Generate target name. Just use "pk3" for main pk3 target. + string( REPLACE "." "_" PK3_TARGET ${PK3_NAME} ) + + if( NOT ZDOOM_OUTPUT_OLDSTYLE ) + add_custom_command( OUTPUT ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} + COMMAND zipdir -udf ${PK3_ZIPDIR_OPTIONS} ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} ${PK3_DIR} + COMMAND ${CMAKE_COMMAND} -E copy_if_different ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} $/${PK3_NAME} + DEPENDS zipdir ) + else() + add_custom_command( OUTPUT ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} + COMMAND zipdir -udf ${PK3_ZIPDIR_OPTIONS} ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} ${PK3_DIR} + DEPENDS zipdir ) + endif() + # Create a list of source files for this PK3, for use in the IDE + # Phase 1: Create a list of all source files for this PK3 archive, except + # for a couple of strife image file names that confuse CMake. + file(GLOB_RECURSE PK3_SRCS ${PK3_DIR}/*) + # Exclude from the source list some gzdoom .png files with brackets in the + # file names here, because they confuse CMake. + # This only affects the list of source files shown in the IDE. + # It does not actually remove the files from the PK3 archive. + # First replace that toxic bracket character with something we can handle + string(REPLACE "[" confusing_bracket PK3_SRCS "${PK3_SRCS}") + string(REPLACE "]" confusing_bracket PK3_SRCS "${PK3_SRCS}") + foreach(PK3_SRC ${PK3_SRCS}) # All source files at all levels + # Exclude those quarantined source file source file names that once had a bracket + if(${PK3_SRC} MATCHES confusing_bracket) + # message(STATUS "Ignoring PK3 file name containing brackets "${PK3_SRC}) + list(REMOVE_ITEM PK3_SRCS ${PK3_SRC}) + endif() + endforeach() + # Phase 2: Create the PK3 build rule, including the source file list for the IDE + # Touch the zipdir executable here so that the pk3s are forced to + # rebuild each time since their dependency has "changed." + add_custom_target( ${PK3_TARGET} ALL + COMMAND ${CMAKE_COMMAND} -E touch $ + DEPENDS ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} + SOURCES ${PK3_SRCS}) + # Phase 3: Assign source files to a nice folder structure in the IDE + assort_pk3_source_folder("Source Files" ${PK3_DIR}) + # Phase 4: Add the resulting PK3 to the install target. + if( WIN32 ) + set( INSTALL_PK3_PATH . CACHE STRING "Directory where zdoom.pk3 will be placed during install." ) + else() + set( INSTALL_PK3_PATH share/games/doom CACHE STRING "Directory where zdoom.pk3 will be placed during install." ) + endif() + install(FILES "${PROJECT_BINARY_DIR}/${PK3_NAME}" + DESTINATION ${INSTALL_PK3_PATH} + COMPONENT "Game resources") +endfunction() + +# Macro for building libraries without debugging information +macro( make_release_only ) + set( CMAKE_C_FLAGS_MINSIZEREL ${CMAKE_C_FLAGS_RELEASE} ) + set( CMAKE_C_FLAGS_RELWITHDEBINFO ${CMAKE_C_FLAGS_RELEASE} ) + string( REPLACE "/MT " "/MTd " CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_RELEASE} ) + set( CMAKE_CXX_FLAGS_MINSIZEREL ${CMAKE_CXX_FLAGS_RELEASE} ) + set( CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_CXX_FLAGS_RELEASE} ) + string( REPLACE "/MT " "/MTd " CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_RELEASE} ) +endmacro() + +IF( NOT CMAKE_BUILD_TYPE ) + SET( CMAKE_BUILD_TYPE Debug CACHE STRING + "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." + FORCE ) +ENDIF() + +set( ZDOOM_OUTPUT_DIR ${CMAKE_BINARY_DIR} CACHE PATH "Directory where demolition.pk3 and the executable will be created." ) +set( ZDOOM_EXE_NAME "demolition" CACHE FILEPATH "Name of the executable to create" ) +if( MSVC ) + # Allow the user to use ZDOOM_OUTPUT_DIR as a single release point. + # Use zdoom, zdoomd, zdoom64, and zdoomd64 for the binary names + option( ZDOOM_OUTPUT_OLDSTYLE "Don't use Release/Debug directories." OFF ) +else() + set( ZDOOM_OUTPUT_OLDSTYLE OFF ) +endif() + +# Replacement variables for a possible long list of C/C++ compilers compatible with GCC +if( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" ) + set( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE TRUE ) +else() + set( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE FALSE ) +endif() + +if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" ) + set( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE TRUE ) +else() + set( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE FALSE ) +endif() + +if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + set( PROFILE 0 CACHE BOOL "Enable profiling with gprof for Debug and RelWithDebInfo build types." ) +endif() + +option( NO_OPENAL "Disable OpenAL sound support" OFF ) + +find_package( BZip2 ) +find_package( JPEG ) +find_package( ZLIB ) + +include( TargetArch ) + +target_architecture(ZDOOM_TARGET_ARCH) + +# Things for later. Currently we have no VM and no Vulkan +#if( ${ZDOOM_TARGET_ARCH} MATCHES "x86_64" ) +# set( HAVE_VM_JIT ON ) +# option (HAVE_VULKAN "Enable Vulkan support" ON) +#endif() + +# no, we're not using external asmjit for now, we made too many modifications to our's. +# if the asmjit author uses our changes then we'll update this. + +#if( ${HAVE_VM_JIT} ) +# find_package( asmjit ) +#endif() + +# GME +#find_path( GME_INCLUDE_DIR gme/gme.h ) +#find_library( GME_LIBRARIES gme ) +#mark_as_advanced( GME_INCLUDE_DIR GME_LIBRARIES ) +#FIND_PACKAGE_HANDLE_STANDARD_ARGS( GME +# REQUIRED_VARS GME_LIBRARIES GME_INCLUDE_DIR +#) + +if( MSVC ) + # Eliminate unreferenced functions and data + # Perform identical COMDAT folding + set( REL_LINKER_FLAGS "/opt:ref /opt:icf /nodefaultlib:msvcrt /TSAWARE /LARGEADDRESSAWARE" ) + + # String pooling + # Function-level linking + # Disable run-time type information + if ( HAVE_VULKAN ) + set( ALL_C_FLAGS "/GF /Gy /GR- /permissive- /DHAVE_VULKAN" ) + else() + set( ALL_C_FLAGS "/GF /Gy /GR- /permissive-" ) + endif() + + # Use SSE 2 as minimum always as the true color drawers needs it for __vectorcall + #set( ALL_C_FLAGS "${ALL_C_FLAGS} /arch:SSE2") # This is already the default + + +# if( CMAKE_SIZEOF_VOID_P MATCHES "4") +# # SSE2 option (to allow x87 in 32 bit and disallow extended feature sets which have not yet been checked for precision) +# option (ZDOOM_USE_SSE2 "Use SSE2 instruction set") +# if (ZDOOM_USE_SSE2) +# set( ALL_C_FLAGS "${ALL_C_FLAGS} /arch:SSE2") +# else () +# if (MSVC_VERSION GREATER 1699) +# # On Visual C++ 2012 and later SSE2 is the default, so we need to switch it off explicitly +# set( ALL_C_FLAGS "${ALL_C_FLAGS} /arch:IA32") +# endif () +# endif () +# else() +# set( ALL_C_FLAGS "${ALL_C_FLAGS} /arch:SSE2") +# endif() + + # Avoid CRT DLL dependancies in release builds, optionally generate assembly output for checking crash locations. + option( ZDOOM_GENERATE_ASM "Generate assembly output." OFF ) + if( ZDOOM_GENERATE_ASM ) + set( REL_C_FLAGS "/MT /Oy /Oi /FAcs /GS-" ) + else() + set( REL_C_FLAGS "/MT /Oy /Oi /GS-" ) + endif() + + + # Debug allocations in debug builds + set( DEB_C_FLAGS "/D _CRTDBG_MAP_ALLOC /MTd" ) + + # Disable warnings for unsecure CRT functions from VC8+ + set( ALL_C_FLAGS "${ALL_C_FLAGS} /wd4996 /DUNICODE /D_UNICODE /D_WIN32_WINNT=0x0600" ) + + # These must be silenced because the code is full of them. Expect some of undefined behavior hidden in this mess. :( + set( ALL_C_FLAGS "${ALL_C_FLAGS} /wd4244 /wd4018 /wd4267" ) + + + # Most of these need to be cleaned out. The source is currently infested with far too much conditional compilation which is a constant source of problems. + set( ALL_C_FLAGS "${ALL_C_FLAGS} /DRENDERTYPESDL=1 /DMIXERTYPEWIN=1 /DSDL_USEFOLDER /DSDL_TARGET=2 /DUSE_OPENGL=1 /DSTARTUP_WINDOW /DUSE_LIBVPX /DHAVE_VORBIS /DHAVE_XMP /DNOASM=1 /DWIN32 /DLIBXMP_CORE_PLAYER" ) + + # The CMake configurations set /GR and /MD by default, which conflict with our settings. + string(REPLACE "/MD " " " CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} ) + string(REPLACE "/MD " " " CMAKE_CXX_FLAGS_MINSIZEREL ${CMAKE_CXX_FLAGS_MINSIZEREL} ) + string(REPLACE "/MD " " " CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ) + string(REPLACE "/Ob1 " "/Ob2 " CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ) + string(REPLACE "/MDd " " " CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG} ) + string(REPLACE "/MD " " " CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} ) + string(REPLACE "/MD " " " CMAKE_C_FLAGS_MINSIZEREL ${CMAKE_C_FLAGS_MINSIZEREL} ) + string(REPLACE "/MD " " " CMAKE_C_FLAGS_RELWITHDEBINFO ${CMAKE_C_FLAGS_RELWITHDEBINFO} ) + string(REPLACE "/MDd " " " CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG} ) + string(REPLACE " /GR" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ) +else() + set( REL_LINKER_FLAGS "" ) + if ( HAVE_VULKAN ) + set( ALL_C_FLAGS "-ffp-contract=off -DHAVE_VULKAN" ) + else() + set( ALL_C_FLAGS "-ffp-contract=off" ) + endif() + + if ( UNIX ) + include(CheckSymbolExists) + check_symbol_exists( "fts_set" "fts.h" HAVE_FTS ) + if ( NOT HAVE_FTS ) + include ( FindPkgConfig ) + pkg_check_modules( MUSL_FTS musl-fts ) + if ( MUSL_FTS_FOUND ) + set ( ALL_C_FLAGS "${ALL_C_FLAGS} ${MUSL_FTS_LDFLAGS}" ) + else ( MUSL_FTS_FOUND ) + message (ERROR "fts_* functions not found in the system" ) + endif ( MUSL_FTS_FOUND ) + endif ( NOT HAVE_FTS ) + endif ( UNIX ) + + set( REL_C_FLAGS "" ) + set( DEB_C_FLAGS "" ) + + + if( APPLE ) + if( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) + # With standard Apple tools -stdlib=libc++ needs to be specified in order to get + # C++11 support using SDKs 10.7 and 10.8. + set( CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}" ) + set( CMAKE_EXE_LINKER_FLAGS "-stdlib=libc++ ${CMAKE_EXE_LINKER_FLAGS}" ) + elseif( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" ) + # If we're compiling with a custom GCC on the Mac (which we know since g++-4.2 doesn't support C++11) statically link libgcc. + set( ALL_C_FLAGS "-static-libgcc" ) + endif() + elseif( NOT MINGW ) + # Generic GCC/Clang requires position independent executable to be enabled explicitly + set( ALL_C_FLAGS "${ALL_C_FLAGS} -fPIE" ) + set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie" ) + endif( APPLE ) +endif() + +set( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${REL_LINKER_FLAGS}" ) +set( CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} ${REL_LINKER_FLAGS}" ) +set( CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} ${REL_LINKER_FLAGS}" ) + +set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ALL_C_FLAGS}" ) +set( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${REL_C_FLAGS}" ) +set( CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} ${REL_C_FLAGS}" ) +set( CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} ${REL_C_FLAGS}" ) +set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${DEB_C_FLAGS} -D_DEBUG" ) + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ALL_C_FLAGS}" ) +set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${REL_C_FLAGS}" ) +set( CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} ${REL_C_FLAGS}" ) +set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ${REL_C_FLAGS}" ) +set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEB_C_FLAGS} -D_DEBUG" ) + +option(FORCE_INTERNAL_ZLIB "Use internal zlib") +option(FORCE_INTERNAL_JPEG "Use internal jpeg") +option(FORCE_INTERNAL_BZIP2 "Use internal bzip2") +option(FORCE_INTERNAL_GME "Use internal gme" ON) +mark_as_advanced( FORCE_INTERNAL_GME ) +option(FORCE_INTERNAL_ASMJIT "Use internal asmjit" ON) +mark_as_advanced( FORCE_INTERNAL_ASMJIT ) + +if (HAVE_VULKAN) + add_subdirectory( libraries/glslang/glslang) + add_subdirectory( libraries/glslang/spirv ) + add_subdirectory( libraries/glslang/OGLCompilersDLL ) +endif() + +# Fast math flags, required by some subprojects +set( ZD_FASTMATH_FLAG "" ) +if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + set( ZD_FASTMATH_FLAG "-ffast-math -ffp-contract=fast" ) +elseif( MSVC ) + set( ZD_FASTMATH_FLAG "/fp:fast" ) +endif() + +if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB ) + message( STATUS "Using system zlib, includes found at ${ZLIB_INCLUDE_DIR}" ) +else() + message( STATUS "Using internal zlib" ) + set( SKIP_INSTALL_ALL TRUE ) # Avoid installing zlib alongside zdoom + add_subdirectory( libraries/zlib ) + set( ZLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/zlib ) + set( ZLIB_LIBRARIES z ) + set( ZLIB_LIBRARY z ) +endif() + +#if( HAVE_VM_JIT AND UNIX ) +# check_symbol_exists( "backtrace" "execinfo.h" HAVE_BACKTRACE ) +# if( NOT HAVE_BACKTRACE ) +# set( CMAKE_REQUIRED_FLAGS "-lexecinfo" ) +# check_symbol_exists( "backtrace" "execinfo.h" HAVE_LIBEXECINFO ) +# if( HAVE_LIBEXECINFO ) +# set( ALL_C_FLAGS "${ALL_C_FLAGS} -lexecinfo" ) +# else( HAVE_LIBEXECINFO ) +# set( HAVE_VM_JIT NO ) +# endif( HAVE_LIBEXECINFO ) +# endif( NOT HAVE_BACKTRACE ) +#endif( HAVE_VM_JIT AND UNIX ) + +#if( ${HAVE_VM_JIT} ) +# if( ASMJIT_FOUND AND NOT FORCE_INTERNAL_ASMJIT ) +# message( STATUS "Using system asmjit, includes found at ${ASMJIT_INCLUDE_DIR}" ) +# else() +# message( STATUS "Using internal asmjit" ) +# set( SKIP_INSTALL_ALL TRUE ) # Avoid installing asmjit alongside zdoom +# add_subdirectory( libraries/asmjit ) +# set( ASMJIT_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/asmjit ) +# set( ASMJIT_LIBRARIES asmjit ) +# set( ASMJIT_LIBRARY asmjit ) +# endif() +#endif() + +if( JPEG_FOUND AND NOT FORCE_INTERNAL_JPEG ) + message( STATUS "Using system jpeg library, includes found at ${JPEG_INCLUDE_DIR}" ) +else() + message( STATUS "Using internal jpeg library" ) + add_subdirectory( libraries/jpeg ) + set( JPEG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/jpeg ) + set( JPEG_LIBRARIES jpeg ) + set( JPEG_LIBRARY jpeg ) +endif() + +if( BZIP2_FOUND AND NOT FORCE_INTERNAL_BZIP2 ) + message( STATUS "Using system bzip2 library, includes found at ${BZIP2_INCLUDE_DIR}" ) +else() + message( STATUS "Using internal bzip2 library" ) + add_subdirectory( libraries/bzip2 ) + set( BZIP2_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/bzip2" ) + set( BZIP2_LIBRARIES bz2 ) + set( BZIP2_LIBRARY bz2 ) +endif() + +if( GME_FOUND AND NOT FORCE_INTERNAL_GME ) + message( STATUS "Using system gme library, includes found at ${GME_INCLUDE_DIR}" ) +else() + message( STATUS "Using internal gme library" ) + # Use MAME as it's balanced emulator: well-accurate, but doesn't eats lot of CPU + # Nuked OPN2 is very accurate emulator, but it eats too much CPU for the workflow + set( GME_YM2612_EMU "MAME" ) + add_subdirectory( libraries/game-music-emu ) + set( GME_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/game-music-emu" ) + set( GME_LIBRARIES gme ) +endif() + +set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/lzma/C" ) + +if( NOT CMAKE_CROSSCOMPILING ) + if( NOT CROSS_EXPORTS ) + set( CROSS_EXPORTS "" ) + endif() +endif() + +# Install the entire docs directory in the distributed zip package +#if( WIN32 ) +# set( INSTALL_DOCS_PATH docs CACHE STRING "Directory where the documentation will be placed during install." ) +#else() +# set( INSTALL_DOCS_PATH share/doc/${ZDOOM_EXE_NAME} CACHE STRING "Directory where the zdoom documentation will be placed during install." ) +#endif() +#install(DIRECTORY docs/ +# DESTINATION ${INSTALL_DOCS_PATH} +# COMPONENT "Documentation") + +add_subdirectory( libraries/lzma ) +add_subdirectory( tools ) +add_subdirectory( libraries/dumb ) +add_subdirectory( libraries/gdtoa ) +#add_subdirectory( wadsrc ) +add_subdirectory( source ) + +if( NOT CMAKE_CROSSCOMPILING ) + export(TARGETS ${CROSS_EXPORTS} FILE "${CMAKE_BINARY_DIR}/ImportExecutables.cmake" ) +endif() diff --git a/Common.mak b/Common.mak deleted file mode 100644 index 172ced49b..000000000 --- a/Common.mak +++ /dev/null @@ -1,1104 +0,0 @@ - -# OS package maintainers: Please try invoking make with PACKAGE_REPOSITORY=1 to see if that meets your needs before patching out our optimizations entirely. -PACKAGE_REPOSITORY ?= 0 - -# Are we running from synthesis? -SYNTHESIS := 0 - - -##### Makefile Swiss army knife - -override empty := -override space := $(empty) $(empty) -override comma := , -override paren_open := ( -override paren_close := ) - - -##### Detect platform - -ifndef HOSTPLATFORM - HOSTPLATFORM := UNKNOWN - ifeq ($(findstring Windows,$(OS)),Windows) - HOSTPLATFORM := WINDOWS - else - uname := $(strip $(shell uname -s)) - ifeq ($(findstring Linux,$(uname)),Linux) - HOSTPLATFORM := LINUX - else ifeq ($(findstring BSD,$(uname)),BSD) - HOSTPLATFORM := BSD - else ifeq ($(findstring MINGW,$(uname)),MINGW) - HOSTPLATFORM := WINDOWS - else ifeq ($(findstring MSYS,$(uname)),MSYS) - HOSTPLATFORM := WINDOWS - else ifeq ($(findstring Darwin,$(uname)),Darwin) - HOSTPLATFORM := DARWIN - else ifeq ($(findstring BeOS,$(uname)),BeOS) - HOSTPLATFORM := BEOS - else ifeq ($(findstring skyos,$(uname)),skyos) - HOSTPLATFORM := SKYOS - else ifeq ($(findstring QNX,$(uname)),QNX) - HOSTPLATFORM := QNX - else ifeq ($(findstring SunOS,$(uname)),SunOS) - HOSTPLATFORM := SUNOS - else ifeq ($(findstring syllable,$(uname)),syllable) - HOSTPLATFORM := SYLLABLE - endif - endif -endif -ifndef PLATFORM - PLATFORM := $(HOSTPLATFORM) -endif - -ifndef SUBPLATFORM - SUBPLATFORM := - ifeq ($(PLATFORM),$(filter $(PLATFORM),LINUX DINGOO GCW CAANOO)) - SUBPLATFORM := LINUX - endif -endif - -ifeq ($(HOSTPLATFORM),DARWIN) - DARWINVERSION := $(word 1,$(subst ., ,$(strip $(shell uname -r)))) - - DARWIN9 := 0 - DARWIN10 := 0 - ifneq (,$(filter 0 1 2 3 4 5 6 7 8 9 10,$(DARWINVERSION))) - DARWIN10 := 1 - ifneq (,$(filter 0 1 2 3 4 5 6 7 8 9,$(DARWINVERSION))) - DARWIN9 := 1 - endif - endif -endif - -HOSTEXESUFFIX := -ifeq ($(HOSTPLATFORM),WINDOWS) - HOSTEXESUFFIX := .exe -endif - -EXESUFFIX := -DLLSUFFIX := .so -DOLSUFFIX := .dol -ifeq ($(PLATFORM),DARWIN) - DLLSUFFIX := .dylib -endif -ifeq ($(PLATFORM),WII) - EXESUFFIX := .elf -endif -ifeq ($(PLATFORM),SKYOS) - EXESUFFIX := .app -endif -ifeq ($(PLATFORM),WINDOWS) - EXESUFFIX := .exe - DLLSUFFIX := .dll -endif - - -##### Makefile meta-settings - -PRETTY_OUTPUT := 1 - -NULLSTREAM := /dev/null - -ifeq ($(HOSTPLATFORM),WINDOWS) -# MSYS2 lets you create files named NUL but has a /dev/null. Go figure. - ifeq (,$(wildcard /dev/null)) - NULLSTREAM := NUL - endif -endif - -DONT_PRINT := > $(NULLSTREAM) 2>&1 -DONT_PRINT_STDERR := 2> $(NULLSTREAM) -DONT_FAIL := ; exit 0 -ESCAPE=\\ - -HAVE_SH := 1 -# when no sh.exe is found in PATH on Windows, no path is prepended to it -ifeq (sh.exe,$(SHELL)) - HAVE_SH := 0 -endif - -define LL - ls -l $1 -endef -define MKDIR - mkdir -p $1 -endef -define RM - rm -f $(filter-out / *,$1) -endef -define RMDIR - rm -rf $(filter-out / *,$1) -endef -define CAT - cat $1 -endef -define RAW_ECHO - echo '$1' -endef - -ifeq (0,$(HAVE_SH)) - DONT_FAIL := & rem - ESCAPE=^ - - define LL - dir $(subst /,\,$1) - endef - define MKDIR - if not exist $(subst /,\,$1) mkdir $(subst /,\,$1) - endef - define RM - del /f /q $(subst /,\,$(filter-out / *,$1)) $(DONT_PRINT_STDERR) $(DONT_FAIL) - endef - define RMDIR - rmdir /s /q $(subst /,\,$(filter-out / *,$1)) $(DONT_PRINT_STDERR) $(DONT_FAIL) - endef - define CAT - type $(subst /,\,$1) - endef - define RAW_ECHO - echo $(subst ",$(ESCAPE)",$(subst $(paren_open),$(ESCAPE)$(paren_open),$(subst $(paren_close),$(ESCAPE)$(paren_close),$1))) - endef - - # if, printf, exit, and ; are unavailable without sh - PRETTY_OUTPUT := 0 -endif - - -##### Toolchain setup - -CROSS := -CROSS_SUFFIX := - -CCFULLPATH = $(CC) - -ifeq ($(PLATFORM),WII) - ifeq ($(strip $(DEVKITPPC)),) - $(error "Please set DEVKITPPC in your environment. export DEVKITPPC := devkitPPC") - endif - - ifeq ($(HOSTPLATFORM),WINDOWS) - override DEVKITPRO := $(subst /c/,C:/,$(DEVKITPRO)) - override DEVKITPPC := $(subst /c/,C:/,$(DEVKITPPC)) - endif - - export PATH := $(DEVKITPPC)/bin:$(PATH) - - CROSS := powerpc-eabi- - - CCFULLPATH = $(DEVKITPPC)/bin/$(CC) -endif - -CC := $(CROSS)gcc$(CROSS_SUFFIX) -CXX := $(CROSS)g++$(CROSS_SUFFIX) - -ifeq ($(PLATFORM),DARWIN) - CC := $(CROSS)clang$(CROSS_SUFFIX) - CXX := $(CROSS)clang++$(CROSS_SUFFIX) -endif - -COBJC := $(CC) -x objective-c -COBJCXX := $(CXX) -x objective-c++ -L_CC := $(CC) -L_CXX := $(CXX) - -AR := $(CROSS)ar$(CROSS_SUFFIX) -RC := $(CROSS)windres$(CROSS_SUFFIX) -RANLIB := $(CROSS)ranlib$(CROSS_SUFFIX) -STRIP := $(CROSS)strip$(CROSS_SUFFIX) - -AS := nasm - -# LuaJIT standalone interpreter executable: -LUAJIT := luajit$(HOSTEXESUFFIX) - -PKG_CONFIG := pkg-config - -ELF2DOL := elf2dol - -# Override defaults that absolutely will not work. -ifeq ($(CC),cc) - override CC := gcc -endif -ifeq ($(AS),as) - override AS := nasm -endif - -ifeq ($(PLATFORM),$(filter $(PLATFORM),DINGOO GCW)) - CROSS := mipsel-linux- -endif - -CLANG := 0 -ifeq ($(findstring clang,$(CC) $(MAKECMDGOALS)),clang) - override CLANG := 1 - CLANGNAME := $(CC) -else - CLANGNAME := clang -endif -# detect clang symlinked as gcc, as in OS X -CLANG_POTENTIAL_VERSION := $(shell $(CCFULLPATH) --version) -ifeq ($(findstring clang,$(CLANG_POTENTIAL_VERSION)),clang) - override CLANG := 1 - ifeq ($(findstring Apple,$(CLANG_POTENTIAL_VERSION)),Apple) - override APPLE_CLANG := 1 - APPLE_CLANG_VER := $(word 4,$(CLANG_POTENTIAL_VERSION)) - override APPLE_CLANG_VER_SPLIT := $(subst ., ,$(APPLE_CLANG_VER)) - APPLE_CLANG_MAJOR := $(word 1,$(APPLE_CLANG_VER_SPLIT)) - APPLE_CLANG_MINOR := $(word 2,$(APPLE_CLANG_VER_SPLIT)) - else - CLANG_VER := $(word 3,$(CLANG_POTENTIAL_VERSION)) - override CLANG_VER_SPLIT := $(subst ., ,$(CLANG_VER)) - CLANG_MAJOR := $(word 1,$(CLANG_VER_SPLIT)) - CLANG_MINOR := $(word 2,$(CLANG_VER_SPLIT)) - endif -endif - -ifneq (0,$(CLANG)) - CLANGXXNAME := $(subst clang,clang++,$(CLANGNAME)) - override CC := $(CLANGNAME) -x c - override CXX := $(CLANGXXNAME) -x c++ - override COBJC := $(CLANGNAME) -x objective-c - override COBJCXX := $(CLANGXXNAME) -x objective-c++ - override L_CC := $(CLANGNAME) - override L_CXX := $(CLANGXXNAME) -endif - -GCC_VER := -ifeq (0,$(CLANG)) - GCC_VER := $(strip $(shell $(CCFULLPATH) -dumpversion 2>&1)) -endif -ifeq (,$(GCC_VER)) - GCC_VER := 4.9.0 -endif -override GCC_VER_SPLIT := $(subst ., ,$(GCC_VER)) -GCC_MAJOR := $(word 1,$(GCC_VER_SPLIT)) -GCC_MINOR := $(word 2,$(GCC_VER_SPLIT)) - -GCC_PREREQ_4 := 1 - -ifneq (,$(filter 1 2 3,$(GCC_MAJOR))) - ifeq (0,$(CLANG)) - GCC_PREREQ_4 := 0 - $(error How do you still have an old GCC in $$(CURRENT_YEAR)?) - endif -endif - - -##### Detect machine architecture - -BITS := 32 - -ifeq ($(PLATFORM),WINDOWS) - ifndef COMPILERTARGET - COMPILERTARGET := $(strip $(shell $(CC) -dumpmachine)) - endif - - IMPLICIT_ARCH := i386 - ifeq ($(findstring x86_64,$(COMPILERTARGET)),x86_64) - IMPLICIT_ARCH := x86_64 - BITS := 64 - endif -else ifeq ($(PLATFORM),WII) - IMPLICIT_ARCH := ppc -else - ifneq ($(ARCH),) - override ARCH := $(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(strip $(ARCH))))) - IMPLICIT_ARCH := $(ARCH) - else - IMPLICIT_ARCH := $(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(strip $(shell uname -m))))) - endif - - ifeq ($(findstring x86_64,$(IMPLICIT_ARCH)),x86_64) - BITS := 64 - endif -endif - - -##### Toggles - -# CPLUSPLUS - 1 := enable C++ building -# RELEASE - 1 := no debugging -# FORCEDEBUG: -# 1 := Include debug symbols even when generating release code. -# 2 := Also enable sanitizers with Clang. On the C side, make 'sprite' etc. be real arrays. -# KRANDDEBUG - 1 := include logging of krand() calls for debugging the demo system -# MEMMAP - 1 := produce .memmap file when linking -# OPTLEVEL - 0..3 := GCC optimization strategy -# LTO - 1 := enable link-time optimization - -# Optional overrides for text -APPNAME ?= -APPBASENAME ?= - -# Build toggles -RELEASE := 1 -NOASM := 0 -# EXPERIMENTAL, unfinished x86_64 assembly routines. DO NOT ENABLE. -USE_ASM64 := 0 -MEMMAP := 0 -CPLUSPLUS := 1 - -# Feature toggles -STANDALONE ?= 0 -NETCODE ?= 1 -STARTUP_WINDOW ?= 1 -SIMPLE_MENU ?= 0 -POLYMER ?= 1 -USE_OPENGL := 1 -LUNATIC := 0 -USE_LUAJIT_2_1 := 0 - -# Library toggles -HAVE_GTK2 := 1 -USE_LIBVPX ?= 1 -HAVE_VORBIS := 1 -HAVE_FLAC := 1 -HAVE_XMP := 1 -RENDERTYPE := SDL -MIXERTYPE := SDL -SDL_TARGET := 2 -USE_PHYSFS := 0 - -ifneq (0,$(USE_PHYSFS)) - # PhysFS requires this to be off - override CPLUSPLUS := 0 -endif - -# Debugging/Build options -FORCEDEBUG := 0 -KRANDDEBUG := 0 -PROFILER := 0 -# Make allocache() a wrapper around malloc()? Useful for debugging -# allocache()-allocated memory accesses with e.g. Valgrind. -# For debugging with Valgrind + GDB, see -# http://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.gdbserver -ALLOCACHE_AS_MALLOC := 0 - - -##### Settings overrides and implicit cascades - -ifneq (0,$(KRANDDEBUG)) - RELEASE := 0 -endif -ifneq (100,$(RELEASE)$(PROFILER)$(ALLOCACHE_AS_MALLOC)) - # so that we have debug symbols - FORCEDEBUG := 1 -endif - -ifeq ($(PLATFORM),WINDOWS) - MIXERTYPE := WIN - ifneq ($(RENDERTYPE),SDL) - ifeq ($(MIXERTYPE),SDL) - override MIXERTYPE := WIN - endif - endif - override HAVE_GTK2 := 0 -else ifeq ($(PLATFORM),DARWIN) - HAVE_GTK2 := 0 -else ifeq ($(PLATFORM),WII) - override USE_OPENGL := 0 - override NETCODE := 0 - override HAVE_GTK2 := 0 - override HAVE_FLAC := 0 - SDL_TARGET := 1 -else ifeq ($(PLATFORM),$(filter $(PLATFORM),DINGOO GCW QNX SUNOS SYLLABLE)) - override USE_OPENGL := 0 - override NOASM := 1 -else ifeq ($(PLATFORM),$(filter $(PLATFORM),BEOS SKYOS)) - override NOASM := 1 -endif - -ifneq (i386,$(strip $(IMPLICIT_ARCH))) - override NOASM := 1 -endif - -ifeq (0,$(USE_OPENGL)) - override POLYMER := 0 - override USE_LIBVPX := 0 -endif - -ifeq ($(RELEASE),0) - override STRIP := -endif -ifneq ($(FORCEDEBUG),0) - override STRIP := -endif - -ifeq ($(RELEASE),0) - OPTLEVEL := 0 - - # see if we can use -Og - ifeq (1,$(APPLE_CLANG)) - # Apple clang >= 9.0 - ifeq (,$(filter 0 1 2 3 4 5 6 7 8,$(APPLE_CLANG_MAJOR))) - OPTLEVEL := g - endif - else ifeq (1,$(CLANG)) - # clang >= 4.0 - ifeq (,$(filter 0 1 2 3,$(CLANG_MAJOR))) - OPTLEVEL := g - endif - else - # GCC >= 4.8 - ifeq (,$(filter 0 1 2 3 4,$(GCC_MAJOR))) - OPTLEVEL := g - else ifeq (4,$(GCC_MAJOR)) - ifeq (,$(filter 0 1 2 3 4 5 6 7,$(GCC_MINOR))) - OPTLEVEL := g - endif - endif - endif - - LTO := 0 -else - OPTLEVEL := 2 - LTO := 1 -endif - -ifneq (0,$(CLANG)) - ifeq ($(PLATFORM),WINDOWS) - LTO := 0 - endif -endif -ifneq ($(LUNATIC),0) - # FIXME: Lunatic builds with LTO don't start up properly as the required - # symbol names are apparently not exported. - override LTO := 0 -endif -ifeq (0,$(CLANG)) - ifeq (0,$(GCC_PREREQ_4)) - override LTO := 0 - endif - ifeq (4,$(GCC_MAJOR)) - ifeq ($(PLATFORM),WII) - ifneq (,$(filter 0 1 2 3 4 5 6 7,$(GCC_MINOR))) - override LTO := 0 - endif - else - ifneq (,$(filter 0 1 2 3 4 5,$(GCC_MINOR))) - override LTO := 0 - endif - endif - endif -endif - - -########## End Toggles, Begin Construction ########## - - -##### Instantiate variables - -COMMONFLAGS := -COMPILERFLAGS := -funsigned-char - -CSTD := -std=gnu99 -CXXSTD := -std=gnu++11 -ifneq (0,$(CLANG)) - CSTD := $(subst gnu,c,$(CSTD)) - CXXSTD := $(subst gnu,c,$(CXXSTD)) -endif -CONLYFLAGS := $(CSTD) -CXXONLYFLAGS := $(CXXSTD) -fno-exceptions -fno-rtti - -ASFLAGS := -s #-g - -LUAJIT_BCOPTS := - -LINKERFLAGS := -L_CXXONLYFLAGS := - -LIBS := -GUI_LIBS := -LIBDIRS := - - -##### Mandatory platform parameters - -ASFORMAT := elf$(BITS) -# Options to "luajit -b" for synthesis. Since it runs on Linux, we need to tell -# the native LuaJIT to emit PE object files. -ifeq ($(PLATFORM),WINDOWS) - LINKERFLAGS += -static-libgcc -static - ifeq (0,$(CLANG)) - L_CXXONLYFLAGS += -static-libstdc++ - endif - - ifeq (0,$(CLANG)) - GUI_LIBS += -mwindows - endif - - COMPILERFLAGS += -DUNDERSCORES - ASFORMAT := win$(BITS) - ASFLAGS += -DUNDERSCORES - - LINKERFLAGS += -Wl,--enable-auto-import,--dynamicbase,--nxcompat - ifneq ($(findstring x86_64,$(COMPILERTARGET)),x86_64) - LINKERFLAGS += -Wl,--large-address-aware - else - LINKERFLAGS += -Wl,--high-entropy-va - endif - - LUAJIT_BCOPTS := -o windows - ifeq (32,$(BITS)) - LUAJIT_BCOPTS += -a x86 - endif - ifeq (64,$(BITS)) - LUAJIT_BCOPTS += -a x64 - endif -else ifeq ($(PLATFORM),DARWIN) - ifneq ($(ARCH),) - ifneq ($(findstring -arch,$(ARCH)),-arch) - override ARCH := -arch $(ARCH) - endif - endif - COMMONFLAGS += $(ARCH) - - ifneq ($(findstring x86_64,$(IMPLICIT_ARCH)),x86_64) - LINKERFLAGS += -read_only_relocs suppress - endif - - COMPILERFLAGS += -DUNDERSCORES - ASFORMAT := macho - ASFLAGS += -DUNDERSCORES - - ifeq ($(findstring x86_64,$(IMPLICIT_ARCH)),x86_64) - ASFORMAT += 64 - endif -else ifeq ($(PLATFORM),WII) - LIBOGC_INC := $(DEVKITPRO)/libogc/include - LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii - - COMMONFLAGS += -mrvl -mcpu=750 -meabi -mhard-float - LINKERFLAGS += -Wl,--gc-sections - # -msdata=eabiexport - COMPILERFLAGS += -DGEKKO -D__POWERPC__ -I$(LIBOGC_INC) - LIBDIRS += -L$(LIBOGC_LIB) -else ifeq ($(PLATFORM),$(filter $(PLATFORM),DINGOO GCW)) - COMPILERFLAGS += -D__OPENDINGUX__ -else ifeq ($(PLATFORM),SKYOS) - COMPILERFLAGS += -DUNDERSCORES -endif -ASFLAGS += -f $(ASFORMAT) - -COMPILERFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 - - -##### Optimizations - -ifndef OPTOPT - ifeq ($(findstring x86_64, $(IMPLICIT_ARCH)),x86_64) - ifeq ($(findstring x86_64h, $(IMPLICIT_ARCH)),x86_64h) - OPTOPT := -march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mpclmul -mavx -mrdrnd -mf16c -mfsgsbase -mavx2 -maes -mfma -mbmi -mbmi2 - # -mcrc32 -mmovbe - else - ifeq ($(PLATFORM),DARWIN) - OPTOPT := -march=core2 -mmmx -msse -msse2 -msse3 -mssse3 - endif - endif - endif - ifeq ($(findstring i386, $(IMPLICIT_ARCH)),i386) - ifeq ($(PLATFORM),DARWIN) - OPTOPT := -march=nocona -mmmx -msse -msse2 -msse3 - else - OPTOPT := -march=pentium3 - ifneq (0,$(GCC_PREREQ_4)) - OPTOPT += -mtune=generic - # -mstackrealign - endif - OPTOPT += -mmmx - # -msse2 -mfpmath=sse,387 -malign-double - endif - endif - ifeq ($(PLATFORM),WII) - OPTOPT := -mtune=750 - endif -endif - -ifeq ($(PACKAGE_REPOSITORY),0) - COMMONFLAGS += -O$(OPTLEVEL) $(OPTOPT) -endif - -ifneq (0,$(LTO)) - COMPILERFLAGS += -DUSING_LTO - COMMONFLAGS += -flto -endif - - -##### Debugging - -ifneq ($(RELEASE)$(FORCEDEBUG),10) - ifeq ($(PACKAGE_REPOSITORY),0) - COMMONFLAGS += -g - ifeq (0,$(CLANG)) - ifneq ($(PLATFORM),WII) - COMMONFLAGS += -fno-omit-frame-pointer - endif - endif - endif - ifeq ($(SUBPLATFORM),LINUX) - # This option is needed to allow obtaining backtraces from within a program. - LIBS += -rdynamic - endif -endif - -ifneq ($(ALLOCACHE_AS_MALLOC),0) - COMPILERFLAGS += -DDEBUG_ALLOCACHE_AS_MALLOC -endif - -# See https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html -# and https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html -# for a list of possible ASan and UBsan options. - -ASAN_FLAGS := -fsanitize=address -fsanitize=bounds,enum,float-cast-overflow -ASAN_FLAGS := $(ASAN_FLAGS),signed-integer-overflow,unsigned-integer-overflow -ASAN_FLAGS := $(ASAN_FLAGS),undefined,return,null,pointer-overflow,float-divide-by-zero -#ASAN_FLAGS := $(ASAN_FLAGS) -fsanitize-undefined-trap-on-error - -ifeq (0,$(FORCEDEBUG)) - COMPILERFLAGS += -DNDEBUG -else - COMPILERFLAGS += -DDEBUGGINGAIDS=$(FORCEDEBUG) - - ifeq (2,$(FORCEDEBUG)) - ifneq (0,$(CLANG)) - COMMONFLAGS += $(ASAN_FLAGS) - else ifneq (,$(filter 1 2 3 4 5 6,$(GCC_MAJOR))) - ifneq (,$(filter 0 1,$(GCC_MINOR))) - COMMONFLAGS += $(ASAN_FLAGS) - endif - endif - endif -endif - -ifneq (0,$(KRANDDEBUG)) - COMPILERFLAGS += -DKRANDDEBUG=1 -endif - -ifneq (0,$(PROFILER)) - ifneq ($(PLATFORM),DARWIN) - LIBS += -lprofiler - endif - COMMONFLAGS += -pg -endif - - -##### -f stuff - -ifneq (0,$(GCC_PREREQ_4)) - F_NO_STACK_PROTECTOR := -fno-stack-protector - ifeq (0,$(CLANG)) - F_JUMP_TABLES := -fjump-tables - endif -endif - -ifeq ($(PLATFORM),DARWIN) - ifeq (1,$(DARWIN9)) - F_JUMP_TABLES := - endif - ifeq ($(findstring ppc,$(IMPLICIT_ARCH))$(findstring i386,$(IMPLICIT_ARCH)),) - F_NO_STACK_PROTECTOR := - endif -endif - -ifeq (0,$(RELEASE)) - F_NO_STACK_PROTECTOR := -else - ifeq (0,$(CLANG)) - COMMONFLAGS += -funswitch-loops - endif - - ifeq (0,$(FORCEDEBUG)) - COMMONFLAGS += -fomit-frame-pointer - endif -endif - -ifneq (0,$(KRANDDEBUG)) - COMMONFLAGS += -fno-inline -fno-inline-functions -fno-inline-functions-called-once -endif - -COMMONFLAGS += -fno-strict-aliasing -fno-threadsafe-statics $(F_JUMP_TABLES) $(F_NO_STACK_PROTECTOR) - - -##### Warnings - -W_STRICT_OVERFLOW := -Wno-strict-overflow - -ifeq ($(PLATFORM),DARWIN) - ifneq (0,$(DARWIN9)) - W_STRICT_OVERFLOW := - endif -endif - -W_UNINITIALIZED := -Wuninitialized -W_GCC_4_1 := -Wno-attributes -W_GCC_4_2 := $(W_STRICT_OVERFLOW) -W_GCC_4_4 := -Wno-unused-result -W_GCC_4_5 := -Wlogical-op -Wcast-qual -W_GCC_6 := -Wduplicated-cond -Wnull-dereference -W_GCC_7 := -Wduplicated-branches -W_GCC_8 := -Wmultistatement-macros -Warray-bounds=2 -W_CLANG := -Wno-unused-value -Wno-parentheses -Wno-unknown-warning-option - -ifeq (0,$(CLANG)) - W_CLANG := - - ifneq (,$(filter 4 5 6 7,$(GCC_MAJOR))) - W_GCC_8 := - ifneq (,$(filter 4 5 6,$(GCC_MAJOR))) - W_GCC_7 := - ifneq (,$(filter 4 5,$(GCC_MAJOR))) - W_GCC_6 := - endif - endif - endif - - ifeq (0,$(GCC_PREREQ_4)) - W_GCC_8 := - W_GCC_7 := - W_GCC_6 := - W_GCC_4_5 := - W_GCC_4_4 := - ifeq (0,$(OPTLEVEL)) - W_UNINITIALIZED := - endif - W_GCC_4_2 := - W_GCC_4_1 := - endif - - ifeq (4,$(GCC_MAJOR)) - ifneq (,$(filter 0 1 2 3 4,$(GCC_MINOR))) - W_GCC_4_5 := - ifneq (,$(filter 0 1 2 3,$(GCC_MINOR))) - W_GCC_4_4 := - ifeq (0,$(OPTLEVEL)) - W_UNINITIALIZED := - endif - ifneq (,$(filter 0 1,$(GCC_MINOR))) - W_GCC_4_2 := - ifeq (0,$(GCC_MINOR)) - W_GCC_4_1 := - endif - endif - endif - endif - endif -endif - -CONLYWARNS := -Wimplicit -Werror-implicit-function-declaration - -CWARNS := -W -Wall \ - -Wextra \ - -Wpointer-arith \ - -Wno-char-subscripts \ - -Wno-missing-braces \ - -Wwrite-strings \ - $(W_UNINITIALIZED) \ - $(W_GCC_4_1) \ - $(W_GCC_4_2) \ - $(W_GCC_4_4) \ - $(W_GCC_4_5) \ - $(W_GCC_6) \ - $(W_GCC_7) \ - $(W_GCC_8) \ - $(W_CLANG) \ - #-Wstrict-prototypes \ - #-Waggregate-return \ - #-Wcast-align \ - #-Waddress - - -##### Features - -ifneq (,$(APPNAME)) - COMPILERFLAGS += "-DAPPNAME=\"$(APPNAME)\"" -endif -ifneq (,$(APPBASENAME)) - COMPILERFLAGS += "-DAPPBASENAME=\"$(APPBASENAME)\"" -endif - -ifneq (0,$(NOASM)) - COMPILERFLAGS += -DNOASM -endif -ifneq (0,$(USE_ASM64)) - COMPILERFLAGS += -DUSE_ASM64 -endif -ifneq (0,$(MEMMAP)) - ifeq ($(PLATFORM),DARWIN) - LINKERFLAGS += -Wl,-map -Wl,$@.memmap - else - LINKERFLAGS += -Wl,-Map=$@.memmap - endif -endif - -COMPILERFLAGS += -DRENDERTYPE$(RENDERTYPE)=1 -DMIXERTYPE$(MIXERTYPE)=1 - -ifeq (0,$(NETCODE)) - COMPILERFLAGS += -DNETCODE_DISABLE -endif -ifneq (0,$(STARTUP_WINDOW)) - COMPILERFLAGS += -DSTARTUP_WINDOW -endif -ifneq (0,$(SIMPLE_MENU)) - COMPILERFLAGS += -DEDUKE32_SIMPLE_MENU -endif -ifneq (0,$(STANDALONE)) - COMPILERFLAGS += -DEDUKE32_STANDALONE -endif -ifneq (0,$(USE_OPENGL)) - COMPILERFLAGS += -DUSE_OPENGL -endif -ifneq (0,$(POLYMER)) - COMPILERFLAGS += -DPOLYMER -endif - - -##### External library paths - -ifeq ($(PLATFORM),WINDOWS) - COMPILERFLAGS += -Iplatform/Windows/include - LIBDIRS += -Lplatform/Windows/lib/$(BITS) -else ifeq ($(PLATFORM),DARWIN) - ifneq ($(shell port --version &>/dev/null; echo $$?),127) - LIBDIRS += -L/opt/local/lib - COMPILERFLAGS += -I/opt/local/include - endif - ifneq ($(shell brew --version &>/dev/null; echo $$?),127) - LIBDIRS += -L/usr/local/lib - COMPILERFLAGS += -I/usr/local/include - endif - ifneq ($(shell fink --version &>/dev/null; echo $$?),127) - LIBDIRS += -L/sw/lib - COMPILERFLAGS += -I/sw/include - endif -else ifeq ($(PLATFORM),BSD) - COMPILERFLAGS += -I/usr/local/include -else ifeq ($(PLATFORM),WII) - COMPILERFLAGS += -I$(PORTLIBS)/include -Iplatform/Wii/include - LIBDIRS += -L$(PORTLIBS)/lib -Lplatform/Wii/lib -endif - - -##### External libraries - -ifneq ($(LUNATIC),0) - ifneq ($(USE_LUAJIT_2_1),0) - COMPILERFLAGS += -DUSE_LUAJIT_2_1 - endif - - ifeq ($(PLATFORM),WINDOWS) - LIBS += -lluajit - else - LIBS += -lluajit-5.1 - endif -endif - -ifneq (0,$(USE_LIBVPX)) - COMPILERFLAGS += -DUSE_LIBVPX - LIBS += -lvpx -endif - -ifneq (0,$(HAVE_VORBIS)) - COMPILERFLAGS += -DHAVE_VORBIS -endif -ifneq (0,$(HAVE_FLAC)) - COMPILERFLAGS += -DHAVE_FLAC -endif -ifneq (0,$(HAVE_XMP)) - COMPILERFLAGS += -DHAVE_XMP -endif - -ifeq ($(RENDERTYPE),SDL) - ifeq ($(SDL_TARGET),2) - SDLCONFIG := sdl2-config - SDLNAME := SDL2 - else ifeq ($(SDL_TARGET),1) - SDLCONFIG := sdl-config - SDLNAME := SDL - ifeq (0,$(RELEASE)) - COMPILERFLAGS += -DNOSDLPARACHUTE - endif - endif - - ifeq ($(PLATFORM), WINDOWS) - SDLCONFIG := - endif - - ifeq ($(PLATFORM),WII) - SDLCONFIG := - else ifeq ($(PLATFORM),SKYOS) - COMPILERFLAGS += -I/boot/programs/sdk/include/sdl - SDLCONFIG := - endif - - ifneq ($(strip $(SDLCONFIG)),) - ifeq ($(strip $(shell $(SDLCONFIG) --version $(DONT_PRINT_STDERR))),) - override SDLCONFIG := - endif - endif - - COMPILERFLAGS += -DSDL_TARGET=$(SDL_TARGET) - - SDL_FRAMEWORK := 0 - ifneq ($(SDL_FRAMEWORK),0) - ifeq ($(PLATFORM),DARWIN) - APPLE_FRAMEWORKS := /Library/Frameworks - LIBDIRS += -F$(APPLE_FRAMEWORKS) - ifeq ($(MIXERTYPE),SDL) - COMPILERFLAGS += -I$(APPLE_FRAMEWORKS)/$(SDLNAME)_mixer.framework/Headers - LIBS += -Wl,-framework,$(SDLNAME)_mixer - endif - COMPILERFLAGS += -I$(APPLE_FRAMEWORKS)/$(SDLNAME).framework/Headers - LIBS += -Wl,-framework,$(SDLNAME) -Wl,-rpath -Wl,"@loader_path/../Frameworks" - endif - else - ifeq ($(MIXERTYPE),SDL) - LIBS += -l$(SDLNAME)_mixer - endif - ifneq ($(SDLCONFIG),) - SDLCONFIG_CFLAGS := $(strip $(subst -Dmain=SDL_main,,$(shell $(SDLCONFIG) --cflags))) - SDLCONFIG_LIBS := $(strip $(subst -mwindows,,$(shell $(SDLCONFIG) --libs))) - - COMPILERFLAGS += $(SDLCONFIG_CFLAGS) - LIBS += $(SDLCONFIG_LIBS) - else - ifeq ($(SDL_TARGET),1) - COMPILERFLAGS += -D_GNU_SOURCE=1 - endif - COMPILERFLAGS += -D_REENTRANT -DSDL_USEFOLDER - LIBS += -l$(SDLNAME) - endif - endif -endif - -ifneq (0,$(HAVE_GTK2)) - ifneq (No,$(shell $(PKG_CONFIG) --exists gtk+-2.0 || echo No)) - COMPILERFLAGS += -DHAVE_GTK2 $(shell $(PKG_CONFIG) --cflags gtk+-2.0) - else - override HAVE_GTK2 := 0 - endif -endif - - -##### System libraries - -ifeq ($(PLATFORM),WINDOWS) - ifneq (0,$(GCC_PREREQ_4)) - L_SSP := -lssp - endif - LIBS += -lmingwex -lgdi32 -lpthread - ifeq ($(RENDERTYPE),WIN) - LIBS += -ldxguid - else ifeq ($(SDL_TARGET),1) - LIBS += -ldxguid -lmingw32 -limm32 -lole32 -loleaut32 -lversion - else - LIBS += -ldxguid_sdl -lmingw32 -limm32 -lole32 -loleaut32 -lversion - endif - LIBS += -lcomctl32 -lwinmm $(L_SSP) -lwsock32 -lws2_32 -lshlwapi - # -lshfolder -else ifeq ($(PLATFORM),SKYOS) - LIBS += -lnet -else ifeq ($(PLATFORM),QNX) - LIBS += -lsocket -else ifeq ($(PLATFORM),SUNOS) - LIBS += -lsocket -lnsl -else ifeq ($(PLATFORM),WII) - LIBS += -laesnd_tueidj -lfat -lwiiuse -lbte -lwiikeyboard -logc -else ifeq ($(SUBPLATFORM),LINUX) - LIBS += -lrt -endif - -ifeq (,$(filter $(PLATFORM),WINDOWS WII)) - ifneq ($(PLATFORM),BSD) - LIBS += -ldl - endif - ifneq ($(PLATFORM),DARWIN) - LIBS += -pthread - endif -endif - -LIBS += -lm - - -##### Detect version control revision, if applicable - -VC_REV := --include EDUKE32_REVISION.mak -ifeq (,$(VC_REV)) - VC_REV := $(word 2,$(subst :, ,$(filter Revision:%,$(subst : ,:,$(strip $(shell svn info 2>&1)))))) -endif -ifeq (,$(VC_REV)) - GIT_SVN_URL := $(strip $(shell git config --local svn-remote.svn.url)) - GIT_SVN_FETCH := $(strip $(shell git config --local svn-remote.svn.fetch)) - VC_REV := $(word 2,$(subst @, ,$(filter git-svn-id:$(GIT_SVN_URL)@%,$(subst : ,:,$(shell git log -1 $(GIT_SVN_FETCH::%=%)))))) -endif -ifneq (,$(VC_REV)$(VC_REV_CUSTOM)) - REVFLAG := -DREV="\"r$(VC_REV)$(VC_REV_CUSTOM)\"" -endif - - -##### Allow standard environment variables to take precedence, to help package maintainers. - -ifneq (,$(CFLAGS)) - COMMONFLAGS += $(CFLAGS) -endif -ifneq (,$(CXXFLAGS)) - CXXONLYFLAGS += $(CXXFLAGS) -endif -ifneq (,$(LDFLAGS)) - LINKERFLAGS += $(LDFLAGS) -endif - - -##### Final assembly of commands - -COMPILER_C=$(CC) $(CONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(CONLYWARNS) $(COMPILERFLAGS) $(CUSTOMOPT) -COMPILER_CXX=$(CXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(COMPILERFLAGS) $(CUSTOMOPT) -COMPILER_OBJC=$(COBJC) $(CONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(CONLYWARNS) $(COMPILERFLAGS) $(CUSTOMOPT) -COMPILER_OBJCXX=$(COBJCXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(COMPILERFLAGS) $(CUSTOMOPT) -LINKER=$(L_CXX) $(CXXONLYFLAGS) $(L_CXXONLYFLAGS) $(COMMONFLAGS) $(LINKERFLAGS) $(CUSTOMOPT) -ifneq ($(CPLUSPLUS),0) - COMPILER_C=$(COMPILER_CXX) - COMPILER_OBJC=$(COMPILER_OBJCXX) -endif - - -##### Pretty-printing - -ifeq ($(PRETTY_OUTPUT),1) -RECIPE_IF = if -BUILD_STARTED = printf "\033[K\033[1;36mBuilding: \033[0;36m$(MAKE) $(MAKECMDGOALS) -$(MAKEFLAGS)\033[0m\n" -COMPILE_STATUS = printf "\033[K\033[0mBuilding object \033[1m$@\033[0m...\033[0m\r" -COMPILE_OK = printf "\033[K\033[0;32mBuilt object \033[1;32m$@\033[0;32m \033[0m\n" -COMPILE_FAILED = printf "\033[K\033[0;31mFailed building \033[1;31m$@\033[0;31m from\033[0m \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1 -RECIPE_RESULT_COMPILE = ; then $(COMPILE_OK); else $(COMPILE_FAILED); fi -ONESTEP_STATUS = printf "\033[K\033[0mBuilding \033[1m$@\033[0m...\033[0m\r" -ONESTEP_OK = printf "\033[K\033[0;32mBuilt \033[1;32m$@\033[0;32m \033[0m\n" -ONESTEP_FAILED = printf "\033[K\033[0;31mFailed building \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1 -RECIPE_RESULT_ONESTEP = ; then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi -ARCHIVE_STATUS = printf "\033[K\033[0mCreating library archive \033[1m$@\033[0m...\033[0m\r" -ARCHIVE_OK = printf "\033[K\033[0;32mCreated library archive \033[1;32m$@\033[0;32m \033[0m\n" -ARCHIVE_FAILED = printf "\033[K\033[0;31mFailed creating library archive \033[1;31m$@\033[0;31m from\033[0m \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1 -RECIPE_RESULT_ARCHIVE = ; then $(ARCHIVE_OK); else $(ARCHIVE_FAILED); fi -LINK_STATUS = printf "\033[K\033[0;0mLinking \033[1m$@\033[0;0m...\033[0m\r" -LINK_OK = printf "\033[K\033[0;32mLinked \033[1;32m$@\033[0;32m \033[0m\n" -LINK_FAILED = printf "\033[K\033[0;31mFailed linking \033[1;31m$@\033[0;31m!\nIf the build options, environment, or system packages have changed, run \'\033[1;31mmake clean\033[0;31m\' and try again.\033[0m\n"; exit 1 -RECIPE_RESULT_LINK = ; then $(LINK_OK); else $(LINK_FAILED); fi -else -RECIPE_IF = -BUILD_STARTED = -COMPILE_STATUS = -COMPILE_OK = true -COMPILE_FAILED = false; exit 1 -RECIPE_RESULT_COMPILE = -ONESTEP_STATUS = -ONESTEP_OK = true -ONESTEP_FAILED = false; exit 1 -RECIPE_RESULT_ONESTEP = -ARCHIVE_STATUS = -ARCHIVE_OK = true -ARCHIVE_FAILED = false; exit 1 -RECIPE_RESULT_ARCHIVE = -LINK_STATUS = -LINK_OK = true -LINK_FAILED = false; exit 1 -RECIPE_RESULT_LINK = -endif diff --git a/cmake/FindFluidSynth.cmake b/cmake/FindFluidSynth.cmake new file mode 100644 index 000000000..7d5cb6a8e --- /dev/null +++ b/cmake/FindFluidSynth.cmake @@ -0,0 +1,23 @@ +# - Find fluidsynth +# Find the native fluidsynth includes and library +# +# FLUIDSYNTH_INCLUDE_DIR - where to find fluidsynth.h +# FLUIDSYNTH_LIBRARIES - List of libraries when using fluidsynth. +# FLUIDSYNTH_FOUND - True if fluidsynth found. + + +IF (FLUIDSYNTH_INCLUDE_DIR AND FLUIDSYNTH_LIBRARIES) + # Already in cache, be silent + SET(FluidSynth_FIND_QUIETLY TRUE) +ENDIF (FLUIDSYNTH_INCLUDE_DIR AND FLUIDSYNTH_LIBRARIES) + +FIND_PATH(FLUIDSYNTH_INCLUDE_DIR fluidsynth.h) + +FIND_LIBRARY(FLUIDSYNTH_LIBRARIES NAMES fluidsynth ) +MARK_AS_ADVANCED( FLUIDSYNTH_LIBRARIES FLUIDSYNTH_INCLUDE_DIR ) + +# handle the QUIETLY and REQUIRED arguments and set FLUIDSYNTH_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(FluidSynth DEFAULT_MSG FLUIDSYNTH_LIBRARIES FLUIDSYNTH_INCLUDE_DIR) + diff --git a/cmake/FindMPG123.cmake b/cmake/FindMPG123.cmake new file mode 100644 index 000000000..a9b6dd8b2 --- /dev/null +++ b/cmake/FindMPG123.cmake @@ -0,0 +1,28 @@ +# - Find mpg123 +# Find the native mpg123 includes and library +# +# MPG123_INCLUDE_DIR - where to find mpg123.h +# MPG123_LIBRARIES - List of libraries when using mpg123. +# MPG123_FOUND - True if mpg123 found. + +IF(MPG123_INCLUDE_DIR AND MPG123_LIBRARIES) + # Already in cache, be silent + SET(MPG123_FIND_QUIETLY TRUE) +ENDIF(MPG123_INCLUDE_DIR AND MPG123_LIBRARIES) + +FIND_PATH(MPG123_INCLUDE_DIR mpg123.h + PATHS "${MPG123_DIR}" + PATH_SUFFIXES include + ) + +FIND_LIBRARY(MPG123_LIBRARIES NAMES mpg123 mpg123-0 + PATHS "${MPG123_DIR}" + PATH_SUFFIXES lib + ) + +# MARK_AS_ADVANCED(MPG123_LIBRARIES MPG123_INCLUDE_DIR) + +# handle the QUIETLY and REQUIRED arguments and set MPG123_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPG123 DEFAULT_MSG MPG123_LIBRARIES MPG123_INCLUDE_DIR) diff --git a/cmake/FindSDL2.cmake b/cmake/FindSDL2.cmake new file mode 100644 index 000000000..f759f9938 --- /dev/null +++ b/cmake/FindSDL2.cmake @@ -0,0 +1,182 @@ +# Locate SDL2 library +# This module defines +# SDL2_LIBRARY, the name of the library to link against +# SDL2_FOUND, if false, do not try to link to SDL2 +# SDL2_INCLUDE_DIR, where to find SDL.h +# +# This module responds to the the flag: +# SDL2_BUILDING_LIBRARY +# If this is defined, then no SDL2_main will be linked in because +# only applications need main(). +# Otherwise, it is assumed you are building an application and this +# module will attempt to locate and set the the proper link flags +# as part of the returned SDL2_LIBRARY variable. +# +# Don't forget to include SDL2main.h and SDL2main.m your project for the +# OS X framework based version. (Other versions link to -lSDL2main which +# this module will try to find on your behalf.) Also for OS X, this +# module will automatically add the -framework Cocoa on your behalf. +# +# +# Additional Note: If you see an empty SDL2_LIBRARY_TEMP in your configuration +# and no SDL2_LIBRARY, it means CMake did not find your SDL2 library +# (SDL2.dll, libsdl2.so, SDL2.framework, etc). +# Set SDL2_LIBRARY_TEMP to point to your SDL2 library, and configure again. +# Similarly, if you see an empty SDL2MAIN_LIBRARY, you should set this value +# as appropriate. These values are used to generate the final SDL2_LIBRARY +# variable, but when these values are unset, SDL2_LIBRARY does not get created. +# +# +# $SDL2DIR is an environment variable that would +# correspond to the ./configure --prefix=$SDL2DIR +# used in building SDL2. +# l.e.galup 9-20-02 +# +# Modified by Eric Wing. +# Added code to assist with automated building by using environmental variables +# and providing a more controlled/consistent search behavior. +# Added new modifications to recognize OS X frameworks and +# additional Unix paths (FreeBSD, etc). +# Also corrected the header search path to follow "proper" SDL2 guidelines. +# Added a search for SDL2main which is needed by some platforms. +# Added a search for threads which is needed by some platforms. +# Added needed compile switches for MinGW. +# +# On OSX, this will prefer the Framework version (if found) over others. +# People will have to manually change the cache values of +# SDL2_LIBRARY to override this selection or set the CMake environment +# CMAKE_INCLUDE_PATH to modify the search paths. +# +# Note that the header path has changed from SDL2/SDL.h to just SDL.h +# This needed to change because "proper" SDL2 convention +# is #include "SDL.h", not . This is done for portability +# reasons because not all systems place things in SDL2/ (see FreeBSD). +# +# Ported by Johnny Patterson. This is a literal port for SDL2 of the FindSDL.cmake +# module with the minor edit of changing "SDL" to "SDL2" where necessary. This +# was not created for redistribution, and exists temporarily pending official +# SDL2 CMake modules. + +#============================================================================= +# Copyright 2003-2009 Kitware, Inc. +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distribute this file outside of CMake, substitute the full +# License text for the above reference.) + +FIND_PATH(SDL2_INCLUDE_DIR SDL.h + HINTS + $ENV{SDL2DIR} + PATH_SUFFIXES include/SDL2 include + PATHS + ~/Library/Frameworks + /Library/Frameworks + /usr/local/include/SDL2 + /usr/include/SDL2 + /sw # Fink + /opt/local # DarwinPorts + /opt/csw # Blastwave + /opt + /boot/system/develop/headers/SDL2 #Hiaku OS +) +#MESSAGE("SDL2_INCLUDE_DIR is ${SDL2_INCLUDE_DIR}") + +FIND_LIBRARY(SDL2_LIBRARY_TEMP + NAMES SDL2 + HINTS + $ENV{SDL2DIR} + PATH_SUFFIXES lib64 lib + PATHS + /sw + /opt/local + /opt/csw + /opt + /system/lib #Hiaku OS +) + +#MESSAGE("SDL2_LIBRARY_TEMP is ${SDL2_LIBRARY_TEMP}") + +IF(NOT SDL2_BUILDING_LIBRARY) + IF(NOT ${SDL2_INCLUDE_DIR} MATCHES ".framework") + # Non-OS X framework versions expect you to also dynamically link to + # SDL2main. This is mainly for Windows and OS X. Other (Unix) platforms + # seem to provide SDL2main for compatibility even though they don't + # necessarily need it. + FIND_LIBRARY(SDL2MAIN_LIBRARY + NAMES SDL2main + HINTS + $ENV{SDL2DIR} + PATH_SUFFIXES lib64 lib + PATHS + /sw + /opt/local + /opt/csw + /opt + ) + ENDIF(NOT ${SDL2_INCLUDE_DIR} MATCHES ".framework") +ENDIF(NOT SDL2_BUILDING_LIBRARY) + +# SDL2 may require threads on your system. +# The Apple build may not need an explicit flag because one of the +# frameworks may already provide it. +# But for non-OSX systems, I will use the CMake Threads package. +IF(NOT APPLE) + FIND_PACKAGE(Threads) +ENDIF(NOT APPLE) + +# MinGW needs an additional library, mwindows +# It's total link flags should look like -lmingw32 -lSDL2main -lSDL2 -lmwindows +# (Actually on second look, I think it only needs one of the m* libraries.) +IF(MINGW) + SET(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW") +ENDIF(MINGW) + +SET(SDL2_FOUND "NO") +IF(SDL2_LIBRARY_TEMP) + # For SDL2main + IF(NOT SDL2_BUILDING_LIBRARY) + IF(SDL2MAIN_LIBRARY) + SET(SDL2_LIBRARY_TEMP ${SDL2MAIN_LIBRARY} ${SDL2_LIBRARY_TEMP}) + ENDIF(SDL2MAIN_LIBRARY) + ENDIF(NOT SDL2_BUILDING_LIBRARY) + + # For OS X, SDL2 uses Cocoa as a backend so it must link to Cocoa. + # CMake doesn't display the -framework Cocoa string in the UI even + # though it actually is there if I modify a pre-used variable. + # I think it has something to do with the CACHE STRING. + # So I use a temporary variable until the end so I can set the + # "real" variable in one-shot. + IF(APPLE) + SET(SDL2_LIBRARY_TEMP ${SDL2_LIBRARY_TEMP} "-framework Cocoa") + ENDIF(APPLE) + + # For threads, as mentioned Apple doesn't need this. + # In fact, there seems to be a problem if I used the Threads package + # and try using this line, so I'm just skipping it entirely for OS X. + IF(NOT APPLE) + SET(SDL2_LIBRARY_TEMP ${SDL2_LIBRARY_TEMP} ${CMAKE_THREAD_LIBS_INIT}) + ENDIF(NOT APPLE) + + # For MinGW library + IF(MINGW) + SET(SDL2_LIBRARY_TEMP ${MINGW32_LIBRARY} ${SDL2_LIBRARY_TEMP}) + ENDIF(MINGW) + + # Set the final string here so the GUI reflects the final state. + SET(SDL2_LIBRARY ${SDL2_LIBRARY_TEMP} CACHE STRING "Where the SDL2 Library can be found") + # Set the temp variable to INTERNAL so it is not seen in the CMake GUI + SET(SDL2_LIBRARY_TEMP "${SDL2_LIBRARY_TEMP}" CACHE INTERNAL "") + + SET(SDL2_FOUND "YES") +ENDIF(SDL2_LIBRARY_TEMP) + +INCLUDE(FindPackageHandleStandardArgs) + +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2 + REQUIRED_VARS SDL2_LIBRARY SDL2_INCLUDE_DIR) diff --git a/cmake/FindSndFile.cmake b/cmake/FindSndFile.cmake new file mode 100644 index 000000000..ab66fc5c2 --- /dev/null +++ b/cmake/FindSndFile.cmake @@ -0,0 +1,29 @@ +# - Try to find SndFile +# Once done this will define +# +# SNDFILE_FOUND - system has SndFile +# SNDFILE_INCLUDE_DIRS - the SndFile include directory +# SNDFILE_LIBRARIES - Link these to use SndFile +# +# Copyright © 2006 Wengo +# Copyright © 2009 Guillaume Martres +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + +find_path(SNDFILE_INCLUDE_DIR NAMES sndfile.h) + +find_library(SNDFILE_LIBRARY NAMES sndfile sndfile-1) + +set(SNDFILE_INCLUDE_DIRS ${SNDFILE_INCLUDE_DIR}) +set(SNDFILE_LIBRARIES ${SNDFILE_LIBRARY}) + +INCLUDE(FindPackageHandleStandardArgs) +# handle the QUIETLY and REQUIRED arguments and set SNDFILE_FOUND to TRUE if +# all listed variables are TRUE +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SndFile DEFAULT_MSG SNDFILE_LIBRARY SNDFILE_INCLUDE_DIR) + +# show the SNDFILE_INCLUDE_DIRS and SNDFILE_LIBRARIES variables only in the advanced view +mark_as_advanced(SNDFILE_INCLUDE_DIRS SNDFILE_LIBRARIES) diff --git a/cmake/TargetArch.cmake b/cmake/TargetArch.cmake new file mode 100644 index 000000000..198aa9c05 --- /dev/null +++ b/cmake/TargetArch.cmake @@ -0,0 +1,157 @@ + +# Copyright (c) 2012 Petroules Corporation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation and/or +# other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, +# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY +# OF SUCH DAMAGE. + +# Based on the Qt 5 processor detection code, so should be very accurate +# https://qt.gitorious.org/qt/qtbase/blobs/master/src/corelib/global/qprocessordetection.h +# Currently handles arm (v5, v6, v7), x86 (32/64), ia64, and ppc (32/64) + +# Regarding POWER/PowerPC, just as is noted in the Qt source, +# "There are many more known variants/revisions that we do not handle/detect." + +set(archdetect_c_code " +#if defined(__arm__) || defined(__TARGET_ARCH_ARM) + #if defined(__ARM_ARCH_7__) \\ + || defined(__ARM_ARCH_7A__) \\ + || defined(__ARM_ARCH_7R__) \\ + || defined(__ARM_ARCH_7M__) \\ + || (defined(__TARGET_ARCH_ARM) && __TARGET_ARCH_ARM-0 >= 7) + #error cmake_ARCH armv7 + #elif defined(__ARM_ARCH_6__) \\ + || defined(__ARM_ARCH_6J__) \\ + || defined(__ARM_ARCH_6T2__) \\ + || defined(__ARM_ARCH_6Z__) \\ + || defined(__ARM_ARCH_6K__) \\ + || defined(__ARM_ARCH_6ZK__) \\ + || defined(__ARM_ARCH_6M__) \\ + || (defined(__TARGET_ARCH_ARM) && __TARGET_ARCH_ARM-0 >= 6) + #error cmake_ARCH armv6 + #elif defined(__ARM_ARCH_5TEJ__) \\ + || (defined(__TARGET_ARCH_ARM) && __TARGET_ARCH_ARM-0 >= 5) + #error cmake_ARCH armv5 + #else + #error cmake_ARCH arm + #endif +#elif defined(__i386) || defined(__i386__) || defined(_M_IX86) + #error cmake_ARCH i386 +#elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64) + #error cmake_ARCH x86_64 +#elif defined(__ia64) || defined(__ia64__) || defined(_M_IA64) + #error cmake_ARCH ia64 +#elif defined(__ppc__) || defined(__ppc) || defined(__powerpc__) \\ + || defined(_ARCH_COM) || defined(_ARCH_PWR) || defined(_ARCH_PPC) \\ + || defined(_M_MPPC) || defined(_M_PPC) + #if defined(__ppc64__) || defined(__powerpc64__) || defined(__64BIT__) + #error cmake_ARCH ppc64 + #else + #error cmake_ARCH ppc + #endif +#endif + +#error cmake_ARCH unknown +") + +# Set ppc_support to TRUE before including this file or ppc and ppc64 +# will be treated as invalid architectures since they are no longer supported by Apple + +function(target_architecture output_var) + if(APPLE AND CMAKE_OSX_ARCHITECTURES) + # On OS X we use CMAKE_OSX_ARCHITECTURES *if* it was set + # First let's normalize the order of the values + + # Note that it's not possible to compile PowerPC applications if you are using + # the OS X SDK version 10.6 or later - you'll need 10.4/10.5 for that, so we + # disable it by default + # See this page for more information: + # http://stackoverflow.com/questions/5333490/how-can-we-restore-ppc-ppc64-as-well-as-full-10-4-10-5-sdk-support-to-xcode-4 + + # Architecture defaults to i386 or ppc on OS X 10.5 and earlier, depending on the CPU type detected at runtime. + # On OS X 10.6+ the default is x86_64 if the CPU supports it, i386 otherwise. + + foreach(osx_arch ${CMAKE_OSX_ARCHITECTURES}) + if("${osx_arch}" STREQUAL "ppc" AND ppc_support) + set(osx_arch_ppc TRUE) + elseif("${osx_arch}" STREQUAL "i386") + set(osx_arch_i386 TRUE) + elseif("${osx_arch}" STREQUAL "x86_64") + set(osx_arch_x86_64 TRUE) + elseif("${osx_arch}" STREQUAL "ppc64" AND ppc_support) + set(osx_arch_ppc64 TRUE) + else() + message(FATAL_ERROR "Invalid OS X arch name: ${osx_arch}") + endif() + endforeach() + + # Now add all the architectures in our normalized order + if(osx_arch_ppc) + list(APPEND ARCH ppc) + endif() + + if(osx_arch_i386) + list(APPEND ARCH i386) + endif() + + if(osx_arch_x86_64) + list(APPEND ARCH x86_64) + endif() + + if(osx_arch_ppc64) + list(APPEND ARCH ppc64) + endif() + else() + file(WRITE "${CMAKE_BINARY_DIR}/arch.c" "${archdetect_c_code}") + + enable_language(C) + + # Detect the architecture in a rather creative way... + # This compiles a small C program which is a series of ifdefs that selects a + # particular #error preprocessor directive whose message string contains the + # target architecture. The program will always fail to compile (both because + # file is not a valid C program, and obviously because of the presence of the + # #error preprocessor directives... but by exploiting the preprocessor in this + # way, we can detect the correct target architecture even when cross-compiling, + # since the program itself never needs to be run (only the compiler/preprocessor) + try_run( + run_result_unused + compile_result_unused + "${CMAKE_BINARY_DIR}" + "${CMAKE_BINARY_DIR}/arch.c" + COMPILE_OUTPUT_VARIABLE ARCH + CMAKE_FLAGS CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES} + ) + + # Parse the architecture name from the compiler output + string(REGEX MATCH "cmake_ARCH ([a-zA-Z0-9_]+)" ARCH "${ARCH}") + + # Get rid of the value marker leaving just the architecture name + string(REPLACE "cmake_ARCH " "" ARCH "${ARCH}") + + # If we are compiling with an unknown architecture this variable should + # already be set to "unknown" but in the case that it's empty (i.e. due + # to a typo in the code), then set it to unknown + if (NOT ARCH) + set(ARCH unknown) + endif() + endif() + + set(${output_var} "${ARCH}" PARENT_SCOPE) +endfunction() diff --git a/cmake/precompiled_headers.cmake b/cmake/precompiled_headers.cmake new file mode 100644 index 000000000..ed1f62521 --- /dev/null +++ b/cmake/precompiled_headers.cmake @@ -0,0 +1,45 @@ +# +# Christoph Heindl 2010 +# Precompiled Headers Demo +# http://cheind.wordpress.com +# + +# Instructs the MSVC toolset to use the precompiled header PRECOMPILED_HEADER +# for each source file given in the collection named by SOURCE_VARIABLE_NAME. +function(enable_precompiled_headers PRECOMPILED_HEADER SOURCE_VARIABLE_NAME) + if(MSVC) + set(files ${${SOURCE_VARIABLE_NAME}}) + + # Generate precompiled header translation unit + get_filename_component(pch_basename ${PRECOMPILED_HEADER} NAME_WE) + set(pch_abs ${CMAKE_CURRENT_SOURCE_DIR}/${PRECOMPILED_HEADER}) + set(pch_unity ${CMAKE_CURRENT_BINARY_DIR}/${pch_basename}.cpp) + set(pch_content "// Precompiled header unity generated by CMake\n#include <${pch_abs}>\n") + # Read .cpp if exists + if(EXISTS ${pch_unity}) + file(READ ${pch_unity} pch_content_prev) + endif() + # Compare existing .cpp content with the actual one + if (pch_content_prev AND pch_content STREQUAL pch_content_prev) + unset(pch_content) + endif() + # Write .cpp if it's out-of-date + if (pch_content) + FILE(WRITE ${pch_unity} "${pch_content}") + endif() + set_source_files_properties(${pch_unity} PROPERTIES COMPILE_FLAGS "/Yc\"${pch_abs}\"") + + # Update properties of source files to use the precompiled header. + # Additionally, force the inclusion of the precompiled header at beginning of each source file. + foreach(source_file ${files} ) + set_source_files_properties( + ${source_file} + PROPERTIES COMPILE_FLAGS + "/Yu\"${pch_abs}\" /FI\"${pch_abs}\"" + ) + endforeach(source_file) + + # Finally, update the source file collection to contain the precompiled header translation unit + set(${SOURCE_VARIABLE_NAME} ${${SOURCE_VARIABLE_NAME}} ${pch_unity} PARENT_SCOPE) + endif(MSVC) +endfunction(enable_precompiled_headers) \ No newline at end of file diff --git a/platform/Apple/EDuke32.xcodeproj/project.pbxproj b/platform/Apple/EDuke32.xcodeproj/project.pbxproj deleted file mode 100644 index 57be11c0e..000000000 --- a/platform/Apple/EDuke32.xcodeproj/project.pbxproj +++ /dev/null @@ -1,4574 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXAggregateTarget section */ - 0008EA3419F1AFA70091588D /* OS X */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 0008EA3519F1AFA70091588D /* Build configuration list for PBXAggregateTarget "OS X" */; - buildPhases = ( - ); - dependencies = ( - 0008EA3919F1AFAD0091588D /* PBXTargetDependency */, - 0008EA3B19F1AFAD0091588D /* PBXTargetDependency */, - ); - name = "OS X"; - productName = All; - }; -/* End PBXAggregateTarget section */ - -/* Begin PBXBuildFile section */ - 0006DA2319F214A600A17995 /* grpscan.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9BC19F1AD9B0091588D /* grpscan.cpp */; }; - 0006DA2419F2153500A17995 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E6019F2142400873EB9 /* CoreAudio.framework */; }; - 0008E64F19F1A66E0091588D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008E64E19F1A66E0091588D /* Cocoa.framework */; }; - 0008E68719F1A8F10091588D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008E64E19F1A66E0091588D /* Cocoa.framework */; }; - 0008E6E919F1AAFF0091588D /* fx_man.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6CF19F1AAFE0091588D /* fx_man.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E6EA19F1AAFF0091588D /* music.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6D019F1AAFE0091588D /* music.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E6EC19F1AAFF0091588D /* _multivc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6D319F1AAFE0091588D /* _multivc.h */; }; - 0008E6F119F1AAFF0091588D /* driver_sdl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6D819F1AAFF0091588D /* driver_sdl.cpp */; }; - 0008E6F219F1AAFF0091588D /* driver_sdl.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6D919F1AAFF0091588D /* driver_sdl.h */; }; - 0008E6F319F1AAFF0091588D /* drivers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6DA19F1AAFF0091588D /* drivers.cpp */; }; - 0008E6F519F1AAFF0091588D /* flac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6DC19F1AAFF0091588D /* flac.cpp */; }; - 0008E6F619F1AAFF0091588D /* formats.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6DD19F1AAFF0091588D /* formats.cpp */; }; - 0008E6F719F1AAFF0091588D /* fx_man.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6DE19F1AAFF0091588D /* fx_man.cpp */; }; - 0008E6F819F1AAFF0091588D /* linklist.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6DF19F1AAFF0091588D /* linklist.h */; }; - 0008E6FA19F1AAFF0091588D /* mix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E119F1AAFF0091588D /* mix.cpp */; }; - 0008E6FB19F1AAFF0091588D /* mixst.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E219F1AAFF0091588D /* mixst.cpp */; }; - 0008E6FC19F1AAFF0091588D /* multivoc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E319F1AAFF0091588D /* multivoc.cpp */; }; - 0008E6FD19F1AAFF0091588D /* multivoc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6E419F1AAFF0091588D /* multivoc.h */; }; - 0008E6FE19F1AAFF0091588D /* pitch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E519F1AAFF0091588D /* pitch.cpp */; }; - 0008E6FF19F1AAFF0091588D /* pitch.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6E619F1AAFF0091588D /* pitch.h */; }; - 0008E70019F1AAFF0091588D /* vorbis.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E719F1AAFF0091588D /* vorbis.cpp */; }; - 0008E70119F1AAFF0091588D /* xa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E819F1AAFF0091588D /* xa.cpp */; }; - 0008E73519F1ABB80091588D /* _control.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72319F1ABB80091588D /* _control.h */; }; - 0008E73619F1ABB80091588D /* _scrplib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72419F1ABB80091588D /* _scrplib.h */; }; - 0008E73719F1ABB80091588D /* animlib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E72519F1ABB80091588D /* animlib.cpp */; }; - 0008E73819F1ABB80091588D /* animlib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72619F1ABB80091588D /* animlib.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E73919F1ABB80091588D /* control.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E72719F1ABB80091588D /* control.cpp */; }; - 0008E73A19F1ABB80091588D /* control.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72819F1ABB80091588D /* control.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E73D19F1ABB80091588D /* joystick.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E72B19F1ABB80091588D /* joystick.cpp */; }; - 0008E73E19F1ABB80091588D /* joystick.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72C19F1ABB80091588D /* joystick.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E73F19F1ABB80091588D /* keyboard.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E72D19F1ABB80091588D /* keyboard.cpp */; }; - 0008E74019F1ABB80091588D /* keyboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72E19F1ABB80091588D /* keyboard.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E74419F1ABB80091588D /* mouse.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E73219F1ABB80091588D /* mouse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E74519F1ABB80091588D /* scriplib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E73319F1ABB80091588D /* scriplib.cpp */; }; - 0008E74619F1ABB80091588D /* scriplib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E73419F1ABB80091588D /* scriplib.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92319F1AC540091588D /* a.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A119F1AC530091588D /* a.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92419F1AC540091588D /* baselayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A219F1AC530091588D /* baselayer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92619F1AC540091588D /* cache1d.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A419F1AC530091588D /* cache1d.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92719F1AC540091588D /* common.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A519F1AC530091588D /* common.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92819F1AC540091588D /* compat.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A619F1AC530091588D /* compat.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92919F1AC540091588D /* crc32.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A719F1AC530091588D /* crc32.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92A19F1AC540091588D /* dxdidf.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A819F1AC530091588D /* dxdidf.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92B19F1AC540091588D /* dxtfilter.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A919F1AC530091588D /* dxtfilter.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92D19F1AC540091588D /* editor.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8AB19F1AC530091588D /* editor.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92E19F1AC540091588D /* glbuild.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8AC19F1AC530091588D /* glbuild.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E92F19F1AC540091588D /* glext.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8AD19F1AC530091588D /* glext.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93119F1AC540091588D /* hightile.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8AF19F1AC530091588D /* hightile.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93219F1AC540091588D /* kplib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B019F1AC530091588D /* kplib.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93419F1AC540091588D /* lz4.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B219F1AC530091588D /* lz4.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93619F1AC540091588D /* m32script.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B419F1AC530091588D /* m32script.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93719F1AC540091588D /* mdsprite.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B519F1AC530091588D /* mdsprite.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93819F1AC540091588D /* mmulti.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B619F1AC530091588D /* mmulti.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93B19F1AC540091588D /* mutex.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BA19F1AC530091588D /* mutex.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93C19F1AC540091588D /* osd.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BB19F1AC530091588D /* osd.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93D19F1AC540091588D /* osxbits.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BC19F1AC530091588D /* osxbits.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E93F19F1AC540091588D /* polymer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BE19F1AC530091588D /* polymer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94019F1AC540091588D /* polymost.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BF19F1AC530091588D /* polymost.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94119F1AC540091588D /* pragmas.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C019F1AC530091588D /* pragmas.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94219F1AC540091588D /* pragmas_arm.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C119F1AC530091588D /* pragmas_arm.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94319F1AC540091588D /* pragmas_ppc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C219F1AC530091588D /* pragmas_ppc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94419F1AC540091588D /* pragmas_x86_gcc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C319F1AC530091588D /* pragmas_x86_gcc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94619F1AC540091588D /* prlights.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C519F1AC530091588D /* prlights.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94719F1AC540091588D /* rawinput.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C619F1AC530091588D /* rawinput.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94819F1AC540091588D /* renderlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C719F1AC530091588D /* renderlayer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94919F1AC540091588D /* scancodes.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C819F1AC530091588D /* scancodes.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94A19F1AC540091588D /* scriptfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C919F1AC530091588D /* scriptfile.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94B19F1AC540091588D /* sdl_inc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8CA19F1AC530091588D /* sdl_inc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94C19F1AC540091588D /* sdlappicon.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8CB19F1AC530091588D /* sdlappicon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E94D19F1AC540091588D /* sdlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8CC19F1AC530091588D /* sdlayer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E95019F1AC540091588D /* texcache.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8CF19F1AC530091588D /* texcache.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E95119F1AC540091588D /* tracker.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8D019F1AC530091588D /* tracker.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E95219F1AC540091588D /* tracker_operator.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8D119F1AC530091588D /* tracker_operator.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E95319F1AC540091588D /* tracker_operators.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8D219F1AC530091588D /* tracker_operators.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E95619F1AC540091588D /* xxhash.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8D519F1AC530091588D /* xxhash.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008E95919F1AC540091588D /* baselayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8DC19F1AC530091588D /* baselayer.cpp */; }; - 0008E95B19F1AC540091588D /* cache1d.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8DE19F1AC530091588D /* cache1d.cpp */; }; - 0008E95C19F1AC540091588D /* common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8DF19F1AC530091588D /* common.cpp */; }; - 0008E95D19F1AC540091588D /* compat.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E019F1AC530091588D /* compat.cpp */; }; - 0008E95F19F1AC540091588D /* crc32.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E219F1AC530091588D /* crc32.cpp */; }; - 0008E96019F1AC540091588D /* defs.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E319F1AC530091588D /* defs.cpp */; }; - 0008E96119F1AC540091588D /* dxtfilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E419F1AC530091588D /* dxtfilter.cpp */; }; - 0008E96319F1AC540091588D /* engine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E619F1AC530091588D /* engine.cpp */; }; - 0008E96419F1AC540091588D /* engine_oldmap.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8E719F1AC540091588D /* engine_oldmap.h */; }; - 0008E96519F1AC540091588D /* engine_priv.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8E819F1AC540091588D /* engine_priv.h */; }; - 0008E96619F1AC540091588D /* glbuild.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E919F1AC540091588D /* glbuild.cpp */; }; - 0008E96819F1AC540091588D /* hightile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8EB19F1AC540091588D /* hightile.cpp */; }; - 0008E96919F1AC540091588D /* kplib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8EC19F1AC540091588D /* kplib.cpp */; }; - 0008E96B19F1AC540091588D /* lz4.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8EE19F1AC540091588D /* lz4.c */; }; - 0008E96D19F1AC540091588D /* mdsprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F019F1AC540091588D /* mdsprite.cpp */; }; - 0008E97219F1AC540091588D /* mmulti_null.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F619F1AC540091588D /* mmulti_null.cpp */; }; - 0008E97319F1AC540091588D /* mutex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F719F1AC540091588D /* mutex.cpp */; }; - 0008E97419F1AC540091588D /* osd.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F819F1AC540091588D /* osd.cpp */; }; - 0008E97519F1AC540091588D /* osxbits.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F919F1AC540091588D /* osxbits.mm */; }; - 0008E97619F1AC540091588D /* polymer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FA19F1AC540091588D /* polymer.cpp */; }; - 0008E97719F1AC540091588D /* polymost.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FB19F1AC540091588D /* polymost.cpp */; }; - 0008E97819F1AC540091588D /* pragmas.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FC19F1AC540091588D /* pragmas.cpp */; }; - 0008E97A19F1AC540091588D /* scriptfile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FE19F1AC540091588D /* scriptfile.cpp */; }; - 0008E97B19F1AC540091588D /* sdlayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FF19F1AC540091588D /* sdlayer.cpp */; }; - 0008E97E19F1AC540091588D /* smalltextfont.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E90219F1AC540091588D /* smalltextfont.cpp */; }; - 0008E98219F1AC540091588D /* texcache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E90619F1AC540091588D /* texcache.cpp */; }; - 0008E98319F1AC540091588D /* textfont.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E90719F1AC540091588D /* textfont.cpp */; }; - 0008E99519F1AC540091588D /* voxmodel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E91F19F1AC540091588D /* voxmodel.cpp */; }; - 0008E99819F1AC540091588D /* xxhash.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008E92219F1AC540091588D /* xxhash.c */; }; - 0008E9E419F1AD9B0091588D /* actors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E99E19F1AD9B0091588D /* actors.cpp */; }; - 0008E9E519F1AD9B0091588D /* anim.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9A019F1AD9B0091588D /* anim.cpp */; }; - 0008E9E619F1AD9B0091588D /* animvpx.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9A219F1AD9B0091588D /* animvpx.cpp */; }; - 0008E9E719F1AD9B0091588D /* config.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9A419F1AD9B0091588D /* config.cpp */; }; - 0008E9E819F1AD9B0091588D /* demo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9A619F1AD9B0091588D /* demo.cpp */; }; - 0008E9EA19F1AD9B0091588D /* game.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9AC19F1AD9B0091588D /* game.cpp */; }; - 0008E9EB19F1AD9B0091588D /* gamedef.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9AE19F1AD9B0091588D /* gamedef.cpp */; }; - 0008E9EC19F1AD9B0091588D /* gameexec.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9B119F1AD9B0091588D /* gameexec.cpp */; }; - 0008E9ED19F1AD9B0091588D /* GameListSource.game.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9B419F1AD9B0091588D /* GameListSource.game.mm */; }; - 0008E9EF19F1AD9B0091588D /* gamevars.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9B619F1AD9B0091588D /* gamevars.cpp */; }; - 0008E9F019F1AD9B0091588D /* global.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9B819F1AD9B0091588D /* global.cpp */; }; - 0008E9F119F1AD9B0091588D /* GrpFile.game.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9BB19F1AD9B0091588D /* GrpFile.game.mm */; }; - 0008E9F219F1AD9B0091588D /* grpscan.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9BC19F1AD9B0091588D /* grpscan.cpp */; }; - 0008E9F319F1AD9B0091588D /* input.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9BE19F1AD9B0091588D /* input.cpp */; }; - 0008E9F419F1AD9B0091588D /* menus.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9C219F1AD9B0091588D /* menus.cpp */; }; - 0008E9F519F1AD9B0091588D /* namesdyn.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9C519F1AD9B0091588D /* namesdyn.cpp */; }; - 0008E9F619F1AD9B0091588D /* network.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9C719F1AD9B0091588D /* network.cpp */; }; - 0008E9F719F1AD9B0091588D /* osdcmds.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9C919F1AD9B0091588D /* osdcmds.cpp */; }; - 0008E9F819F1AD9B0091588D /* osdfuncs.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9CB19F1AD9B0091588D /* osdfuncs.cpp */; }; - 0008E9F919F1AD9B0091588D /* player.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9CD19F1AD9B0091588D /* player.cpp */; }; - 0008E9FA19F1AD9B0091588D /* premap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9CF19F1AD9B0091588D /* premap.cpp */; }; - 0008E9FB19F1AD9B0091588D /* rev.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D219F1AD9B0091588D /* rev.cpp */; }; - 0008E9FC19F1AD9B0091588D /* rts.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D319F1AD9B0091588D /* rts.cpp */; }; - 0008E9FD19F1AD9B0091588D /* savegame.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D519F1AD9B0091588D /* savegame.cpp */; }; - 0008E9FE19F1AD9B0091588D /* sdlmusic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D719F1AD9B0091588D /* sdlmusic.cpp */; }; - 0008EA0019F1AD9B0091588D /* sector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9DA19F1AD9B0091588D /* sector.cpp */; }; - 0008EA0119F1AD9B0091588D /* sounds.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9DD19F1AD9B0091588D /* sounds.cpp */; }; - 0008EA0219F1AD9B0091588D /* soundsdyn.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9DF19F1AD9B0091588D /* soundsdyn.cpp */; }; - 0008EA0319F1AD9B0091588D /* startosx.game.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9E219F1AD9B0091588D /* startosx.game.mm */; }; - 0008EA0719F1ADC90091588D /* common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA0519F1ADC90091588D /* common.cpp */; }; - 0008EA0819F1ADC90091588D /* common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA0519F1ADC90091588D /* common.cpp */; }; - 0008EA0919F1ADD80091588D /* build.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8DD19F1AC530091588D /* build.cpp */; }; - 0008EA0A19F1ADD80091588D /* config.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E119F1AC530091588D /* config.cpp */; }; - 0008EA0B19F1ADD80091588D /* startosx.editor.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0008E90419F1AC540091588D /* startosx.editor.mm */; }; - 0008EA0C19F1ADE70091588D /* build.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A319F1AC530091588D /* build.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA1619F1AE820091588D /* astub.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA0D19F1AE820091588D /* astub.cpp */; }; - 0008EA1719F1AE820091588D /* m32common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA0E19F1AE820091588D /* m32common.cpp */; }; - 0008EA1819F1AE820091588D /* m32def.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA0F19F1AE820091588D /* m32def.cpp */; }; - 0008EA1919F1AE820091588D /* m32exec.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA1119F1AE820091588D /* m32exec.cpp */; }; - 0008EA1B19F1AE820091588D /* m32vars.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA1319F1AE820091588D /* m32vars.cpp */; }; - 0008EA1C19F1AE820091588D /* sounds_mapster32.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA1419F1AE820091588D /* sounds_mapster32.cpp */; }; - 0008EA2019F1AEFC0091588D /* eduke32.icns in Resources */ = {isa = PBXBuildFile; fileRef = 0008EA1D19F1AEFC0091588D /* eduke32.icns */; }; - 0008EA2319F1AF010091588D /* eduke32.icns in Resources */ = {isa = PBXBuildFile; fileRef = 0008EA1D19F1AEFC0091588D /* eduke32.icns */; }; - 0008EA6319F1B04F0091588D /* callbacks.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5019F1B04F0091588D /* callbacks.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA6419F1B04F0091588D /* enet.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5119F1B04F0091588D /* enet.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA6519F1B04F0091588D /* list.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5219F1B04F0091588D /* list.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA6619F1B04F0091588D /* protocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5319F1B04F0091588D /* protocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA6719F1B04F0091588D /* time.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5419F1B04F0091588D /* time.h */; }; - 0008EA6819F1B04F0091588D /* types.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5519F1B04F0091588D /* types.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA6919F1B04F0091588D /* unix.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5619F1B04F0091588D /* unix.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA6A19F1B04F0091588D /* utility.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5719F1B04F0091588D /* utility.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA6B19F1B04F0091588D /* win32.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008EA5819F1B04F0091588D /* win32.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0008EA6C19F1B04F0091588D /* callbacks.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA5A19F1B04F0091588D /* callbacks.c */; }; - 0008EA6D19F1B04F0091588D /* compress.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA5B19F1B04F0091588D /* compress.c */; }; - 0008EA6E19F1B04F0091588D /* host.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA5C19F1B04F0091588D /* host.c */; }; - 0008EA6F19F1B04F0091588D /* list.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA5D19F1B04F0091588D /* list.c */; }; - 0008EA7019F1B04F0091588D /* packet.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA5E19F1B04F0091588D /* packet.c */; }; - 0008EA7119F1B04F0091588D /* peer.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA5F19F1B04F0091588D /* peer.c */; }; - 0008EA7219F1B04F0091588D /* protocol.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA6019F1B04F0091588D /* protocol.c */; }; - 0008EA7319F1B04F0091588D /* unix.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA6119F1B04F0091588D /* unix.c */; }; - 0008EA7419F1B04F0091588D /* win32.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA6219F1B04F0091588D /* win32.c */; }; - 0008EA7819F1B1AC0091588D /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7719F1B1AC0091588D /* Carbon.framework */; }; - 0008EA7A19F1B1B40091588D /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7919F1B1B40091588D /* OpenGL.framework */; }; - 0008EA7C19F1B1C90091588D /* CoreMIDI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7B19F1B1C90091588D /* CoreMIDI.framework */; }; - 0008EA7E19F1B1CE0091588D /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7D19F1B1CE0091588D /* AudioUnit.framework */; }; - 0008EA8019F1B1D30091588D /* AGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7F19F1B1D30091588D /* AGL.framework */; }; - 0008EA8219F1B1E20091588D /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA8119F1B1E20091588D /* AudioToolbox.framework */; }; - 0008EA8419F1B1E80091588D /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA8319F1B1E80091588D /* IOKit.framework */; }; - 0008EA8519F1B22E0091588D /* AGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7F19F1B1D30091588D /* AGL.framework */; }; - 0008EA8619F1B22E0091588D /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7719F1B1AC0091588D /* Carbon.framework */; }; - 0008EA8719F1B22E0091588D /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7919F1B1B40091588D /* OpenGL.framework */; }; - 0008EA8819F1B2400091588D /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA8119F1B1E20091588D /* AudioToolbox.framework */; }; - 0008EA8919F1B2400091588D /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7D19F1B1CE0091588D /* AudioUnit.framework */; }; - 0008EA8A19F1B2400091588D /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA8319F1B1E80091588D /* IOKit.framework */; }; - 0008EA9D19F1BB3A0091588D /* CoreMIDI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7B19F1B1C90091588D /* CoreMIDI.framework */; }; - 000C486E19F35516006E6B52 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C486D19F35516006E6B52 /* Foundation.framework */; }; - 000C487019F35516006E6B52 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C486F19F35516006E6B52 /* CoreGraphics.framework */; }; - 000C487819F35517006E6B52 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 000C487619F35517006E6B52 /* InfoPlist.strings */; }; - 000C488019F35517006E6B52 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 000C487F19F35517006E6B52 /* Images.xcassets */; }; - 000C489919F35601006E6B52 /* common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008EA0519F1ADC90091588D /* common.cpp */; }; - 000C489A19F35601006E6B52 /* actors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E99E19F1AD9B0091588D /* actors.cpp */; }; - 000C489B19F35601006E6B52 /* anim.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9A019F1AD9B0091588D /* anim.cpp */; }; - 000C489C19F35601006E6B52 /* config.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9A419F1AD9B0091588D /* config.cpp */; }; - 000C489D19F35601006E6B52 /* demo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9A619F1AD9B0091588D /* demo.cpp */; }; - 000C489E19F35601006E6B52 /* game.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9AC19F1AD9B0091588D /* game.cpp */; }; - 000C489F19F35601006E6B52 /* gamedef.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9AE19F1AD9B0091588D /* gamedef.cpp */; }; - 000C48A019F35601006E6B52 /* gameexec.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9B119F1AD9B0091588D /* gameexec.cpp */; }; - 000C48A319F35601006E6B52 /* global.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9B819F1AD9B0091588D /* global.cpp */; }; - 000C48A519F35601006E6B52 /* grpscan.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9BC19F1AD9B0091588D /* grpscan.cpp */; }; - 000C48A619F35601006E6B52 /* input.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9BE19F1AD9B0091588D /* input.cpp */; }; - 000C48A719F35601006E6B52 /* menus.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9C219F1AD9B0091588D /* menus.cpp */; }; - 000C48A819F35601006E6B52 /* namesdyn.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9C519F1AD9B0091588D /* namesdyn.cpp */; }; - 000C48A919F35601006E6B52 /* network.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9C719F1AD9B0091588D /* network.cpp */; }; - 000C48AA19F35601006E6B52 /* osdcmds.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9C919F1AD9B0091588D /* osdcmds.cpp */; }; - 000C48AB19F35601006E6B52 /* osdfuncs.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9CB19F1AD9B0091588D /* osdfuncs.cpp */; }; - 000C48AC19F35601006E6B52 /* player.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9CD19F1AD9B0091588D /* player.cpp */; }; - 000C48AD19F35601006E6B52 /* premap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9CF19F1AD9B0091588D /* premap.cpp */; }; - 000C48AE19F35601006E6B52 /* rev.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D219F1AD9B0091588D /* rev.cpp */; }; - 000C48AF19F35601006E6B52 /* rts.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D319F1AD9B0091588D /* rts.cpp */; }; - 000C48B019F35601006E6B52 /* savegame.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D519F1AD9B0091588D /* savegame.cpp */; }; - 000C48B119F35601006E6B52 /* sdlmusic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D719F1AD9B0091588D /* sdlmusic.cpp */; }; - 000C48B219F35601006E6B52 /* sector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9DA19F1AD9B0091588D /* sector.cpp */; }; - 000C48B319F35601006E6B52 /* sounds.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9DD19F1AD9B0091588D /* sounds.cpp */; }; - 000C48B419F35601006E6B52 /* soundsdyn.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9DF19F1AD9B0091588D /* soundsdyn.cpp */; }; - 000C48D519F35D7A006E6B52 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C48D419F35D6E006E6B52 /* libSDL2.a */; }; - 000C48D719F35D92006E6B52 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C48D619F35D92006E6B52 /* UIKit.framework */; }; - 000C48D919F35DA3006E6B52 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA8119F1B1E20091588D /* AudioToolbox.framework */; }; - 000C48DC19F35DA3006E6B52 /* CoreMIDI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA7B19F1B1C90091588D /* CoreMIDI.framework */; }; - 000C48E219F35DA8006E6B52 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C486D19F35516006E6B52 /* Foundation.framework */; }; - 000C48E319F35DA8006E6B52 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C486F19F35516006E6B52 /* CoreGraphics.framework */; }; - 000C48E519F35DA9006E6B52 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C486D19F35516006E6B52 /* Foundation.framework */; }; - 000C48E619F35DA9006E6B52 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C486F19F35516006E6B52 /* CoreGraphics.framework */; }; - 000C48E719F35DAE006E6B52 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E6019F2142400873EB9 /* CoreAudio.framework */; }; - 000C48F219F35F42006E6B52 /* gamevars.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9B619F1AD9B0091588D /* gamevars.cpp */; }; - 0013828B19F361B60007DA6C /* sdlayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FF19F1AC540091588D /* sdlayer.cpp */; }; - 0013828C19F361B60007DA6C /* compat.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E019F1AC530091588D /* compat.cpp */; }; - 0013828D19F361B60007DA6C /* kplib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8EC19F1AC540091588D /* kplib.cpp */; }; - 0013828E19F361B60007DA6C /* engine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E619F1AC530091588D /* engine.cpp */; }; - 0013828F19F361B60007DA6C /* voxmodel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E91F19F1AC540091588D /* voxmodel.cpp */; }; - 0013829119F361B60007DA6C /* pragmas.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FC19F1AC540091588D /* pragmas.cpp */; }; - 0013829219F361B60007DA6C /* common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8DF19F1AC530091588D /* common.cpp */; }; - 0013829319F361B60007DA6C /* mutex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F719F1AC540091588D /* mutex.cpp */; }; - 0013829519F361B60007DA6C /* crc32.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E219F1AC530091588D /* crc32.cpp */; }; - 0013829719F361B60007DA6C /* texcache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E90619F1AC540091588D /* texcache.cpp */; }; - 0013829819F361B60007DA6C /* cache1d.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8DE19F1AC530091588D /* cache1d.cpp */; }; - 0013829919F361B60007DA6C /* smalltextfont.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E90219F1AC540091588D /* smalltextfont.cpp */; }; - 0013829A19F361B60007DA6C /* polymer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FA19F1AC540091588D /* polymer.cpp */; }; - 0013829B19F361B60007DA6C /* mmulti_null.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F619F1AC540091588D /* mmulti_null.cpp */; }; - 0013829C19F361B60007DA6C /* a-c.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00970E3319F207F000873EB9 /* a-c.cpp */; }; - 0013829D19F361B60007DA6C /* textfont.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E90719F1AC540091588D /* textfont.cpp */; }; - 0013829E19F361B60007DA6C /* mdsprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F019F1AC540091588D /* mdsprite.cpp */; }; - 0013829F19F361B60007DA6C /* defs.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E319F1AC530091588D /* defs.cpp */; }; - 001382A019F361B60007DA6C /* baselayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8DC19F1AC530091588D /* baselayer.cpp */; }; - 001382A119F361B60007DA6C /* xxhash.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008E92219F1AC540091588D /* xxhash.c */; }; - 001382A219F361B60007DA6C /* scriptfile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FE19F1AC540091588D /* scriptfile.cpp */; }; - 001382A319F361B60007DA6C /* polymost.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8FB19F1AC540091588D /* polymost.cpp */; }; - 001382A419F361B60007DA6C /* hightile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8EB19F1AC540091588D /* hightile.cpp */; }; - 001382A519F361B60007DA6C /* dxtfilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E419F1AC530091588D /* dxtfilter.cpp */; }; - 001382A619F361B60007DA6C /* lz4.c in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8EE19F1AC540091588D /* lz4.c */; }; - 001382A719F361B60007DA6C /* osd.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8F819F1AC540091588D /* osd.cpp */; }; - 001382A819F361B60007DA6C /* glbuild.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E8E919F1AC540091588D /* glbuild.cpp */; }; - 001382AE19F361B60007DA6C /* engine_priv.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8E819F1AC540091588D /* engine_priv.h */; }; - 001382AF19F361B60007DA6C /* crc32.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A719F1AC530091588D /* crc32.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B019F361B60007DA6C /* scancodes.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C819F1AC530091588D /* scancodes.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B119F361B60007DA6C /* osxbits.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BC19F1AC530091588D /* osxbits.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B219F361B60007DA6C /* mutex.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BA19F1AC530091588D /* mutex.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B319F361B60007DA6C /* sdl_inc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8CA19F1AC530091588D /* sdl_inc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B419F361B60007DA6C /* compat.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A619F1AC530091588D /* compat.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B519F361B60007DA6C /* osd.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BB19F1AC530091588D /* osd.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B619F361B60007DA6C /* polymer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BE19F1AC530091588D /* polymer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B719F361B60007DA6C /* m32script.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B419F1AC530091588D /* m32script.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382B919F361B60007DA6C /* texcache.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8CF19F1AC530091588D /* texcache.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382BA19F361B60007DA6C /* build.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A319F1AC530091588D /* build.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382BB19F361B60007DA6C /* prlights.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C519F1AC530091588D /* prlights.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382BC19F361B60007DA6C /* renderlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C719F1AC530091588D /* renderlayer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382BD19F361B60007DA6C /* engine_oldmap.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8E719F1AC540091588D /* engine_oldmap.h */; }; - 001382BE19F361B60007DA6C /* pragmas_x86_gcc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C319F1AC530091588D /* pragmas_x86_gcc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382BF19F361B60007DA6C /* a.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A119F1AC530091588D /* a.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C119F361B60007DA6C /* pragmas.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C019F1AC530091588D /* pragmas.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C219F361B60007DA6C /* sdlappicon.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8CB19F1AC530091588D /* sdlappicon.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C319F361B60007DA6C /* tracker.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8D019F1AC530091588D /* tracker.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C419F361B60007DA6C /* hightile.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8AF19F1AC530091588D /* hightile.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C519F361B60007DA6C /* glbuild.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8AC19F1AC530091588D /* glbuild.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C619F361B60007DA6C /* tracker_operator.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8D119F1AC530091588D /* tracker_operator.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C719F361B60007DA6C /* rawinput.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C619F1AC530091588D /* rawinput.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C819F361B60007DA6C /* common.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A519F1AC530091588D /* common.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382C919F361B60007DA6C /* pragmas_arm.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C119F1AC530091588D /* pragmas_arm.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382CA19F361B60007DA6C /* dxtfilter.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A919F1AC530091588D /* dxtfilter.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382CB19F361B60007DA6C /* kplib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B019F1AC530091588D /* kplib.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382CC19F361B60007DA6C /* lz4.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B219F1AC530091588D /* lz4.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382CE19F361B60007DA6C /* dxdidf.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A819F1AC530091588D /* dxdidf.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382CF19F361B60007DA6C /* baselayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A219F1AC530091588D /* baselayer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D019F361B60007DA6C /* scriptfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C919F1AC530091588D /* scriptfile.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D119F361B60007DA6C /* editor.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8AB19F1AC530091588D /* editor.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D219F361B60007DA6C /* mdsprite.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B519F1AC530091588D /* mdsprite.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D319F361B60007DA6C /* tracker_operators.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8D219F1AC530091588D /* tracker_operators.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D419F361B60007DA6C /* glext.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8AD19F1AC530091588D /* glext.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D519F361B60007DA6C /* xxhash.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8D519F1AC530091588D /* xxhash.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D619F361B60007DA6C /* pragmas_ppc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8C219F1AC530091588D /* pragmas_ppc.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D719F361B60007DA6C /* polymost.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8BF19F1AC530091588D /* polymost.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D819F361B60007DA6C /* sdlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8CC19F1AC530091588D /* sdlayer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382D919F361B60007DA6C /* cache1d.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8A419F1AC530091588D /* cache1d.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382DA19F361B60007DA6C /* mmulti.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E8B619F1AC530091588D /* mmulti.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382E119F361B80007DA6C /* keyboard.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E72D19F1ABB80091588D /* keyboard.cpp */; }; - 001382E219F361B80007DA6C /* animlib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E72519F1ABB80091588D /* animlib.cpp */; }; - 001382E319F361B80007DA6C /* control.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E72719F1ABB80091588D /* control.cpp */; }; - 001382E419F361B80007DA6C /* scriplib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E73319F1ABB80091588D /* scriplib.cpp */; }; - 001382E819F361B80007DA6C /* joystick.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E72B19F1ABB80091588D /* joystick.cpp */; }; - 001382EB19F361B80007DA6C /* mouse.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E73219F1ABB80091588D /* mouse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382ED19F361B80007DA6C /* joystick.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72C19F1ABB80091588D /* joystick.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382EE19F361B80007DA6C /* control.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72819F1ABB80091588D /* control.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382EF19F361B80007DA6C /* _scrplib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72419F1ABB80091588D /* _scrplib.h */; }; - 001382F119F361B80007DA6C /* scriplib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E73419F1ABB80091588D /* scriplib.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382F219F361B80007DA6C /* _control.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72319F1ABB80091588D /* _control.h */; }; - 001382F319F361B80007DA6C /* animlib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72619F1ABB80091588D /* animlib.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382F419F361B80007DA6C /* keyboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E72E19F1ABB80091588D /* keyboard.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 001382FB19F361BB0007DA6C /* fx_man.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6DE19F1AAFF0091588D /* fx_man.cpp */; }; - 001382FC19F361BB0007DA6C /* formats.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6DD19F1AAFF0091588D /* formats.cpp */; }; - 001382FD19F361BB0007DA6C /* flac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6DC19F1AAFF0091588D /* flac.cpp */; }; - 001382FE19F361BB0007DA6C /* mixst.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E219F1AAFF0091588D /* mixst.cpp */; }; - 001382FF19F361BB0007DA6C /* xa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E819F1AAFF0091588D /* xa.cpp */; }; - 0013830019F361BB0007DA6C /* multivoc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E319F1AAFF0091588D /* multivoc.cpp */; }; - 0013830119F361BB0007DA6C /* pitch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E519F1AAFF0091588D /* pitch.cpp */; }; - 0013830319F361BB0007DA6C /* mix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E119F1AAFF0091588D /* mix.cpp */; }; - 0013830419F361BB0007DA6C /* drivers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6DA19F1AAFF0091588D /* drivers.cpp */; }; - 0013830519F361BB0007DA6C /* driver_nosound.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00970E4E19F2108600873EB9 /* driver_nosound.cpp */; }; - 0013830619F361BB0007DA6C /* vorbis.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6E719F1AAFF0091588D /* vorbis.cpp */; }; - 0013830D19F361BB0007DA6C /* linklist.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6DF19F1AAFF0091588D /* linklist.h */; }; - 0013830E19F361BB0007DA6C /* music.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6D019F1AAFE0091588D /* music.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0013831019F361BB0007DA6C /* fx_man.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6CF19F1AAFE0091588D /* fx_man.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0013831119F361BB0007DA6C /* _multivc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6D319F1AAFE0091588D /* _multivc.h */; }; - 0013831219F361BB0007DA6C /* driver_sdl.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6D919F1AAFF0091588D /* driver_sdl.h */; }; - 0013831319F361BB0007DA6C /* multivoc.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6E419F1AAFF0091588D /* multivoc.h */; }; - 0013831519F361BB0007DA6C /* pitch.h in Headers */ = {isa = PBXBuildFile; fileRef = 0008E6E619F1AAFF0091588D /* pitch.h */; }; - 0013831619F361BB0007DA6C /* driver_nosound.h in Headers */ = {isa = PBXBuildFile; fileRef = 00970E4F19F2108600873EB9 /* driver_nosound.h */; }; - 0013831C19F361DE0007DA6C /* libBUILD-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 001382DE19F361B60007DA6C /* libBUILD-iOS.a */; }; - 0013831D19F361DE0007DA6C /* libMACT-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 001382F819F361B80007DA6C /* libMACT-iOS.a */; }; - 0013831E19F361DE0007DA6C /* libAudioLib-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0013831B19F361BB0007DA6C /* libAudioLib-iOS.a */; }; - 0013832019F362E30007DA6C /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0013831F19F362E30007DA6C /* MobileCoreServices.framework */; }; - 0013832319F365D20007DA6C /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0013832219F365D20007DA6C /* OpenGLES.framework */; }; - 0013832519F366280007DA6C /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0013832419F366280007DA6C /* QuartzCore.framework */; }; - 0013832719F366440007DA6C /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0013832619F366440007DA6C /* CoreMotion.framework */; }; - 00970E2319F2076B00873EB9 /* libFLAC.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E1B19F2076B00873EB9 /* libFLAC.a */; }; - 00970E2419F2076B00873EB9 /* libFLAC.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E1B19F2076B00873EB9 /* libFLAC.a */; }; - 00970E2519F2076B00873EB9 /* libogg.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E1C19F2076B00873EB9 /* libogg.a */; }; - 00970E2619F2076B00873EB9 /* libogg.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E1C19F2076B00873EB9 /* libogg.a */; }; - 00970E2919F2076B00873EB9 /* libSDL2_mixer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E1E19F2076B00873EB9 /* libSDL2_mixer.a */; }; - 00970E2A19F2076B00873EB9 /* libSDL2_mixer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E1E19F2076B00873EB9 /* libSDL2_mixer.a */; }; - 00970E2B19F2076B00873EB9 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E1F19F2076B00873EB9 /* libSDL2.a */; }; - 00970E2C19F2076B00873EB9 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E1F19F2076B00873EB9 /* libSDL2.a */; }; - 00970E2D19F2076B00873EB9 /* libvorbis.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E2019F2076B00873EB9 /* libvorbis.a */; }; - 00970E2E19F2076B00873EB9 /* libvorbis.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E2019F2076B00873EB9 /* libvorbis.a */; }; - 00970E2F19F2076B00873EB9 /* libvorbisfile.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E2119F2076B00873EB9 /* libvorbisfile.a */; }; - 00970E3019F2076B00873EB9 /* libvorbisfile.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E2119F2076B00873EB9 /* libvorbisfile.a */; }; - 00970E3119F2076B00873EB9 /* libvpx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E2219F2076B00873EB9 /* libvpx.a */; }; - 00970E3219F2076B00873EB9 /* libvpx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E2219F2076B00873EB9 /* libvpx.a */; }; - 00970E3419F207F000873EB9 /* a-c.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00970E3319F207F000873EB9 /* a-c.cpp */; }; - 00970E4619F20F7E00873EB9 /* libBUILD.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008E6B719F1A9260091588D /* libBUILD.a */; }; - 00970E4719F20F7E00873EB9 /* libMACT.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008E6C219F1A9AF0091588D /* libMACT.a */; }; - 00970E4819F20F7E00873EB9 /* libAudioLib.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008E6CA19F1AAA30091588D /* libAudioLib.a */; }; - 00970E4919F20F7E00873EB9 /* libENet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA4919F1B0020091588D /* libENet.a */; }; - 00970E4A19F20F7E00873EB9 /* libBUILD.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008E6B719F1A9260091588D /* libBUILD.a */; }; - 00970E4B19F20F7E00873EB9 /* libMACT.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008E6C219F1A9AF0091588D /* libMACT.a */; }; - 00970E4C19F20F7E00873EB9 /* libAudioLib.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008E6CA19F1AAA30091588D /* libAudioLib.a */; }; - 00970E4D19F20F7E00873EB9 /* libENet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0008EA4919F1B0020091588D /* libENet.a */; }; - 00970E5019F2108600873EB9 /* driver_nosound.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00970E4E19F2108600873EB9 /* driver_nosound.cpp */; }; - 00970E5119F2108600873EB9 /* driver_nosound.h in Headers */ = {isa = PBXBuildFile; fileRef = 00970E4F19F2108600873EB9 /* driver_nosound.h */; }; - 00970E5219F210C100873EB9 /* rev.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E9D219F1AD9B0091588D /* rev.cpp */; }; - 00970E5B19F2139500873EB9 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E5A19F2139500873EB9 /* ForceFeedback.framework */; }; - 00970E5C19F2139C00873EB9 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E5A19F2139500873EB9 /* ForceFeedback.framework */; }; - 00970E5E19F213B300873EB9 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E5D19F213B300873EB9 /* libiconv.dylib */; }; - 00970E5F19F2140E00873EB9 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E5D19F213B300873EB9 /* libiconv.dylib */; }; - 00970E6119F2142400873EB9 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00970E6019F2142400873EB9 /* CoreAudio.framework */; }; - 00CAC13319F4E0EA00317AE6 /* driver_sdl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0008E6D819F1AAFF0091588D /* driver_sdl.cpp */; }; - 00CAC13419F4E12400317AE6 /* libSDL2_mixer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 000C48F019F35DD7006E6B52 /* libSDL2_mixer.a */; }; - 00CD003219F374ED00636963 /* duke3d.grp in Resources */ = {isa = PBXBuildFile; fileRef = 00CD003119F374ED00636963 /* duke3d.grp */; }; - 2038AE961A8F122D0093B7B2 /* libdivide.h in Headers */ = {isa = PBXBuildFile; fileRef = 2038AE951A8F122D0093B7B2 /* libdivide.h */; }; - 2038AE971A8F122D0093B7B2 /* libdivide.h in Headers */ = {isa = PBXBuildFile; fileRef = 2038AE951A8F122D0093B7B2 /* libdivide.h */; }; - 2038AE991A8F12590093B7B2 /* md4.h in Headers */ = {isa = PBXBuildFile; fileRef = 2038AE981A8F12590093B7B2 /* md4.h */; }; - 2038AE9A1A8F12590093B7B2 /* md4.h in Headers */ = {isa = PBXBuildFile; fileRef = 2038AE981A8F12590093B7B2 /* md4.h */; }; - 2038AE9C1A8F126C0093B7B2 /* md4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2038AE9B1A8F126C0093B7B2 /* md4.cpp */; }; - 2038AE9D1A8F126C0093B7B2 /* md4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2038AE9B1A8F126C0093B7B2 /* md4.cpp */; }; - 2038AEA31A8F137E0093B7B2 /* DUKE.RTS in Resources */ = {isa = PBXBuildFile; fileRef = 2038AEA21A8F137E0093B7B2 /* DUKE.RTS */; }; - 2044C9841E089F2500A8C543 /* palette.h in Headers */ = {isa = PBXBuildFile; fileRef = 2044C9831E089F2500A8C543 /* palette.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2044C9851E089F2500A8C543 /* palette.h in Headers */ = {isa = PBXBuildFile; fileRef = 2044C9831E089F2500A8C543 /* palette.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2044C98A1E08A66B00A8C543 /* palette.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C9891E08A66B00A8C543 /* palette.cpp */; }; - 2044C98B1E08A66B00A8C543 /* palette.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C9891E08A66B00A8C543 /* palette.cpp */; }; - 2044C98D1E08A69700A8C543 /* clip.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C98C1E08A69700A8C543 /* clip.cpp */; }; - 2044C98E1E08A69700A8C543 /* clip.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C98C1E08A69700A8C543 /* clip.cpp */; }; - 2044C9901E08A6BC00A8C543 /* screenshot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C98F1E08A6BC00A8C543 /* screenshot.cpp */; }; - 2044C9911E08A6BC00A8C543 /* screenshot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C98F1E08A6BC00A8C543 /* screenshot.cpp */; }; - 2044C9991E08A72200A8C543 /* mhk.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C9981E08A72200A8C543 /* mhk.cpp */; }; - 2044C99A1E08A72200A8C543 /* mhk.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C9981E08A72200A8C543 /* mhk.cpp */; }; - 2044C99C1E08A74100A8C543 /* tiles.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C99B1E08A74100A8C543 /* tiles.cpp */; }; - 2044C99D1E08A74100A8C543 /* tiles.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2044C99B1E08A74100A8C543 /* tiles.cpp */; }; - 204D6B5F1C98973F001FA505 /* Math.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 204D6B571C98973F001FA505 /* Math.hpp */; }; - 204D6B601C98973F001FA505 /* ProcessCommon.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 204D6B581C98973F001FA505 /* ProcessCommon.hpp */; }; - 204D6B611C98973F001FA505 /* ProcessRGB.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 204D6B591C98973F001FA505 /* ProcessRGB.cpp */; }; - 204D6B621C98973F001FA505 /* ProcessRGB.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 204D6B5A1C98973F001FA505 /* ProcessRGB.hpp */; }; - 204D6B631C98973F001FA505 /* Tables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 204D6B5B1C98973F001FA505 /* Tables.cpp */; }; - 204D6B641C98973F001FA505 /* Tables.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 204D6B5C1C98973F001FA505 /* Tables.hpp */; }; - 204D6B651C98973F001FA505 /* Types.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 204D6B5D1C98973F001FA505 /* Types.hpp */; }; - 204D6B661C98973F001FA505 /* Vector.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 204D6B5E1C98973F001FA505 /* Vector.hpp */; }; - 206B3A081B074F3800E5DBD0 /* jwzglesI.h in Headers */ = {isa = PBXBuildFile; fileRef = 206B3A061B074F3000E5DBD0 /* jwzglesI.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 206B3A0A1B074F4300E5DBD0 /* jwzgles.h in Headers */ = {isa = PBXBuildFile; fileRef = 206B3A051B074F3000E5DBD0 /* jwzgles.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 206B3A0C1B074F6400E5DBD0 /* jwzgles.c in Sources */ = {isa = PBXBuildFile; fileRef = 206B3A0B1B074F6400E5DBD0 /* jwzgles.c */; }; - 2085BEBA1A8F23B9002BF4CE /* libSystem.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2085BEB91A8F23B9002BF4CE /* libSystem.dylib */; }; - 20C2146A1B02C19800917E58 /* game.png in Resources */ = {isa = PBXBuildFile; fileRef = 20C214691B02C19800917E58 /* game.png */; }; - 20C2146F1B02C1D800917E58 /* build.png in Resources */ = {isa = PBXBuildFile; fileRef = 20C2146E1B02C1D800917E58 /* build.png */; }; - 20CA2FA71BB2456E001231BF /* drivers.h in Headers */ = {isa = PBXBuildFile; fileRef = 20CA2FA61BB2456E001231BF /* drivers.h */; }; - 20CA2FA81BB2456E001231BF /* drivers.h in Headers */ = {isa = PBXBuildFile; fileRef = 20CA2FA61BB2456E001231BF /* drivers.h */; }; - 20CEFB121E08A86B0077879C /* 2d.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20CEFB111E08A86B0077879C /* 2d.cpp */; }; - 20CEFB131E08A86B0077879C /* 2d.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20CEFB111E08A86B0077879C /* 2d.cpp */; }; - 20CEFB181E08A8830077879C /* hash.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20CEFB171E08A8830077879C /* hash.cpp */; }; - 20CEFB191E08A8830077879C /* hash.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20CEFB171E08A8830077879C /* hash.cpp */; }; - 20CEFB1B1E08A8CB0077879C /* xmp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20CEFB1A1E08A8CB0077879C /* xmp.cpp */; }; - 20CEFB1C1E08A8CB0077879C /* xmp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20CEFB1A1E08A8CB0077879C /* xmp.cpp */; }; - 20CEFB1E1E08A8FD0077879C /* hash.h in Headers */ = {isa = PBXBuildFile; fileRef = 20CEFB1D1E08A8FD0077879C /* hash.h */; }; - 20CEFB1F1E08A8FD0077879C /* hash.h in Headers */ = {isa = PBXBuildFile; fileRef = 20CEFB1D1E08A8FD0077879C /* hash.h */; }; - 20CEFB211E08A9130077879C /* buildtypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 20CEFB201E08A9130077879C /* buildtypes.h */; }; - 20CEFB221E08A9130077879C /* buildtypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 20CEFB201E08A9130077879C /* buildtypes.h */; }; - 20CEFB241E08A91D0077879C /* clip.h in Headers */ = {isa = PBXBuildFile; fileRef = 20CEFB231E08A91D0077879C /* clip.h */; }; - 20CEFB251E08A91D0077879C /* clip.h in Headers */ = {isa = PBXBuildFile; fileRef = 20CEFB231E08A91D0077879C /* clip.h */; }; - 20E16CE11C7022C300EE8446 /* cmdline.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20E16CDF1C7022C300EE8446 /* cmdline.cpp */; }; - 20E16CE21C7022C300EE8446 /* cmdline.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20E16CDF1C7022C300EE8446 /* cmdline.cpp */; }; - 20E16CE81C7022DE00EE8446 /* screens.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20E16CE61C7022DE00EE8446 /* screens.cpp */; }; - 20E16CE91C7022DE00EE8446 /* screens.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20E16CE61C7022DE00EE8446 /* screens.cpp */; }; - 20F70F131A8F25CE00F71870 /* libc++.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0013832819F366720007DA6C /* libc++.dylib */; }; - 20F7124D1C6C19E5006B68D0 /* screentext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20F7124B1C6C19E5006B68D0 /* screentext.cpp */; }; - 20F7124E1C6C19E5006B68D0 /* screentext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20F7124B1C6C19E5006B68D0 /* screentext.cpp */; }; - 20F712511C6C19F4006B68D0 /* sbar.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20F7124F1C6C19F4006B68D0 /* sbar.cpp */; }; - 20F712521C6C19F4006B68D0 /* sbar.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20F7124F1C6C19F4006B68D0 /* sbar.cpp */; }; - 20F712551C6C1A07006B68D0 /* cheats.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20F712531C6C1A07006B68D0 /* cheats.cpp */; }; - 20F712561C6C1A07006B68D0 /* cheats.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20F712531C6C1A07006B68D0 /* cheats.cpp */; }; - 20FD1D481C44E4BE00C2E553 /* colmatch.h in Headers */ = {isa = PBXBuildFile; fileRef = 20FD1D471C44E4BE00C2E553 /* colmatch.h */; }; - 20FD1D491C44E4BE00C2E553 /* colmatch.h in Headers */ = {isa = PBXBuildFile; fileRef = 20FD1D471C44E4BE00C2E553 /* colmatch.h */; }; - 20FD1D511C44E4E700C2E553 /* colmatch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20FD1D501C44E4E700C2E553 /* colmatch.cpp */; }; - 20FD1D521C44E4E700C2E553 /* colmatch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 20FD1D501C44E4E700C2E553 /* colmatch.cpp */; }; - 20FD1D6B1C44E64700C2E553 /* GameController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 20FD1D6A1C44E64700C2E553 /* GameController.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 0008EA2819F1AF350091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008E6B619F1A9260091588D; - remoteInfo = BUILD; - }; - 0008EA2A19F1AF380091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008E6C119F1A9AF0091588D; - remoteInfo = MACT; - }; - 0008EA2C19F1AF3B0091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008E6C919F1AAA30091588D; - remoteInfo = AudioLib; - }; - 0008EA2E19F1AF3F0091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008E6B619F1A9260091588D; - remoteInfo = BUILD; - }; - 0008EA3019F1AF420091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008E6C119F1A9AF0091588D; - remoteInfo = MACT; - }; - 0008EA3219F1AF450091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008E6C919F1AAA30091588D; - remoteInfo = AudioLib; - }; - 0008EA3819F1AFAD0091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008E64A19F1A66E0091588D; - remoteInfo = EDuke32; - }; - 0008EA3A19F1AFAD0091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008E68519F1A8F10091588D; - remoteInfo = Mapster32; - }; - 0008EA7519F1B16A0091588D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0008E64119F1A5AA0091588D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0008EA4819F1B0020091588D; - remoteInfo = ENet; - }; - 000C48D319F35D6E006E6B52 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 000C48CE19F35D6E006E6B52 /* SDL.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = FD6526630DE8FCCB002AD96B; - remoteInfo = libSDL; - }; - 000C48EF19F35DD7006E6B52 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 000C48EB19F35DD7006E6B52 /* SDL_mixer.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = BE1FA95407AF96B2004B6283; - remoteInfo = "Static Library"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 0008E64B19F1A66E0091588D /* EDuke32.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EDuke32.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 0008E64E19F1A66E0091588D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; - 0008E65119F1A66E0091588D /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 0008E65219F1A66E0091588D /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; - 0008E65319F1A66E0091588D /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 0008E68619F1A8F10091588D /* Mapster32.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Mapster32.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 0008E6B719F1A9260091588D /* libBUILD.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libBUILD.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 0008E6C219F1A9AF0091588D /* libMACT.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMACT.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 0008E6CA19F1AAA30091588D /* libAudioLib.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAudioLib.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 0008E6CF19F1AAFE0091588D /* fx_man.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = fx_man.h; path = ../../source/audiolib/include/fx_man.h; sourceTree = SOURCE_ROOT; }; - 0008E6D019F1AAFE0091588D /* music.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = music.h; path = ../../source/audiolib/include/music.h; sourceTree = SOURCE_ROOT; }; - 0008E6D319F1AAFE0091588D /* _multivc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = _multivc.h; path = ../../source/audiolib/src/_multivc.h; sourceTree = SOURCE_ROOT; }; - 0008E6D819F1AAFF0091588D /* driver_sdl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = driver_sdl.cpp; path = ../../source/audiolib/src/driver_sdl.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6D919F1AAFF0091588D /* driver_sdl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = driver_sdl.h; path = ../../source/audiolib/src/driver_sdl.h; sourceTree = SOURCE_ROOT; }; - 0008E6DA19F1AAFF0091588D /* drivers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = drivers.cpp; path = ../../source/audiolib/src/drivers.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6DC19F1AAFF0091588D /* flac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = flac.cpp; path = ../../source/audiolib/src/flac.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6DD19F1AAFF0091588D /* formats.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = formats.cpp; path = ../../source/audiolib/src/formats.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6DE19F1AAFF0091588D /* fx_man.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = fx_man.cpp; path = ../../source/audiolib/src/fx_man.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6DF19F1AAFF0091588D /* linklist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = linklist.h; path = ../../source/audiolib/src/linklist.h; sourceTree = SOURCE_ROOT; }; - 0008E6E119F1AAFF0091588D /* mix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = mix.cpp; path = ../../source/audiolib/src/mix.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6E219F1AAFF0091588D /* mixst.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = mixst.cpp; path = ../../source/audiolib/src/mixst.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6E319F1AAFF0091588D /* multivoc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = multivoc.cpp; path = ../../source/audiolib/src/multivoc.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6E419F1AAFF0091588D /* multivoc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = multivoc.h; path = ../../source/audiolib/include/multivoc.h; sourceTree = SOURCE_ROOT; }; - 0008E6E519F1AAFF0091588D /* pitch.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = pitch.cpp; path = ../../source/audiolib/src/pitch.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6E619F1AAFF0091588D /* pitch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = pitch.h; path = ../../source/audiolib/src/pitch.h; sourceTree = SOURCE_ROOT; }; - 0008E6E719F1AAFF0091588D /* vorbis.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = vorbis.cpp; path = ../../source/audiolib/src/vorbis.cpp; sourceTree = SOURCE_ROOT; }; - 0008E6E819F1AAFF0091588D /* xa.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = xa.cpp; path = ../../source/audiolib/src/xa.cpp; sourceTree = SOURCE_ROOT; }; - 0008E72319F1ABB80091588D /* _control.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = _control.h; path = ../../source/mact/include/_control.h; sourceTree = SOURCE_ROOT; }; - 0008E72419F1ABB80091588D /* _scrplib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = _scrplib.h; path = ../../source/mact/src/_scrplib.h; sourceTree = SOURCE_ROOT; }; - 0008E72519F1ABB80091588D /* animlib.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = animlib.cpp; path = ../../source/mact/src/animlib.cpp; sourceTree = SOURCE_ROOT; }; - 0008E72619F1ABB80091588D /* animlib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = animlib.h; path = ../../source/mact/include/animlib.h; sourceTree = SOURCE_ROOT; }; - 0008E72719F1ABB80091588D /* control.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = control.cpp; path = ../../source/mact/src/control.cpp; sourceTree = SOURCE_ROOT; }; - 0008E72819F1ABB80091588D /* control.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = control.h; path = ../../source/mact/include/control.h; sourceTree = SOURCE_ROOT; }; - 0008E72B19F1ABB80091588D /* joystick.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = joystick.cpp; path = ../../source/mact/src/joystick.cpp; sourceTree = SOURCE_ROOT; }; - 0008E72C19F1ABB80091588D /* joystick.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = joystick.h; path = ../../source/mact/include/joystick.h; sourceTree = SOURCE_ROOT; }; - 0008E72D19F1ABB80091588D /* keyboard.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = keyboard.cpp; path = ../../source/mact/src/keyboard.cpp; sourceTree = SOURCE_ROOT; }; - 0008E72E19F1ABB80091588D /* keyboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = keyboard.h; path = ../../source/mact/include/keyboard.h; sourceTree = SOURCE_ROOT; }; - 0008E73219F1ABB80091588D /* mouse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = mouse.h; path = ../../source/mact/include/mouse.h; sourceTree = SOURCE_ROOT; }; - 0008E73319F1ABB80091588D /* scriplib.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = scriplib.cpp; path = ../../source/mact/src/scriplib.cpp; sourceTree = SOURCE_ROOT; }; - 0008E73419F1ABB80091588D /* scriplib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = scriplib.h; path = ../../source/mact/include/scriplib.h; sourceTree = SOURCE_ROOT; }; - 0008E8A119F1AC530091588D /* a.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = a.h; path = ../../source/build/include/a.h; sourceTree = SOURCE_ROOT; }; - 0008E8A219F1AC530091588D /* baselayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = baselayer.h; path = ../../source/build/include/baselayer.h; sourceTree = SOURCE_ROOT; }; - 0008E8A319F1AC530091588D /* build.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = build.h; path = ../../source/build/include/build.h; sourceTree = SOURCE_ROOT; }; - 0008E8A419F1AC530091588D /* cache1d.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = cache1d.h; path = ../../source/build/include/cache1d.h; sourceTree = SOURCE_ROOT; }; - 0008E8A519F1AC530091588D /* common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = common.h; path = ../../source/build/include/common.h; sourceTree = SOURCE_ROOT; }; - 0008E8A619F1AC530091588D /* compat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = compat.h; path = ../../source/build/include/compat.h; sourceTree = SOURCE_ROOT; }; - 0008E8A719F1AC530091588D /* crc32.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = crc32.h; path = ../../source/build/include/crc32.h; sourceTree = SOURCE_ROOT; }; - 0008E8A819F1AC530091588D /* dxdidf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = dxdidf.h; path = ../../source/build/include/dxdidf.h; sourceTree = SOURCE_ROOT; }; - 0008E8A919F1AC530091588D /* dxtfilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = dxtfilter.h; path = ../../source/build/include/dxtfilter.h; sourceTree = SOURCE_ROOT; }; - 0008E8AB19F1AC530091588D /* editor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = editor.h; path = ../../source/build/include/editor.h; sourceTree = SOURCE_ROOT; }; - 0008E8AC19F1AC530091588D /* glbuild.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = glbuild.h; path = ../../source/build/include/glbuild.h; sourceTree = SOURCE_ROOT; }; - 0008E8AD19F1AC530091588D /* glext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = glext.h; path = ../../source/build/include/glext.h; sourceTree = SOURCE_ROOT; }; - 0008E8AF19F1AC530091588D /* hightile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = hightile.h; path = ../../source/build/include/hightile.h; sourceTree = SOURCE_ROOT; }; - 0008E8B019F1AC530091588D /* kplib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = kplib.h; path = ../../source/build/include/kplib.h; sourceTree = SOURCE_ROOT; }; - 0008E8B219F1AC530091588D /* lz4.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = lz4.h; path = ../../source/build/include/lz4.h; sourceTree = SOURCE_ROOT; }; - 0008E8B419F1AC530091588D /* m32script.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = m32script.h; path = ../../source/build/include/m32script.h; sourceTree = SOURCE_ROOT; }; - 0008E8B519F1AC530091588D /* mdsprite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = mdsprite.h; path = ../../source/build/include/mdsprite.h; sourceTree = SOURCE_ROOT; }; - 0008E8B619F1AC530091588D /* mmulti.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = mmulti.h; path = ../../source/build/include/mmulti.h; sourceTree = SOURCE_ROOT; }; - 0008E8BA19F1AC530091588D /* mutex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = mutex.h; path = ../../source/build/include/mutex.h; sourceTree = SOURCE_ROOT; }; - 0008E8BB19F1AC530091588D /* osd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = osd.h; path = ../../source/build/include/osd.h; sourceTree = SOURCE_ROOT; }; - 0008E8BC19F1AC530091588D /* osxbits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = osxbits.h; path = ../../source/build/include/osxbits.h; sourceTree = SOURCE_ROOT; }; - 0008E8BE19F1AC530091588D /* polymer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = polymer.h; path = ../../source/build/include/polymer.h; sourceTree = SOURCE_ROOT; }; - 0008E8BF19F1AC530091588D /* polymost.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = polymost.h; path = ../../source/build/include/polymost.h; sourceTree = SOURCE_ROOT; }; - 0008E8C019F1AC530091588D /* pragmas.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = pragmas.h; path = ../../source/build/include/pragmas.h; sourceTree = SOURCE_ROOT; }; - 0008E8C119F1AC530091588D /* pragmas_arm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = pragmas_arm.h; path = ../../source/build/include/pragmas_arm.h; sourceTree = SOURCE_ROOT; }; - 0008E8C219F1AC530091588D /* pragmas_ppc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = pragmas_ppc.h; path = ../../source/build/include/pragmas_ppc.h; sourceTree = SOURCE_ROOT; }; - 0008E8C319F1AC530091588D /* pragmas_x86_gcc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = pragmas_x86_gcc.h; path = ../../source/build/include/pragmas_x86_gcc.h; sourceTree = SOURCE_ROOT; }; - 0008E8C519F1AC530091588D /* prlights.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = prlights.h; path = ../../source/build/include/prlights.h; sourceTree = SOURCE_ROOT; }; - 0008E8C619F1AC530091588D /* rawinput.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = rawinput.h; path = ../../source/build/include/rawinput.h; sourceTree = SOURCE_ROOT; }; - 0008E8C719F1AC530091588D /* renderlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = renderlayer.h; path = ../../source/build/include/renderlayer.h; sourceTree = SOURCE_ROOT; }; - 0008E8C819F1AC530091588D /* scancodes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = scancodes.h; path = ../../source/build/include/scancodes.h; sourceTree = SOURCE_ROOT; }; - 0008E8C919F1AC530091588D /* scriptfile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = scriptfile.h; path = ../../source/build/include/scriptfile.h; sourceTree = SOURCE_ROOT; }; - 0008E8CA19F1AC530091588D /* sdl_inc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = sdl_inc.h; path = ../../source/build/include/sdl_inc.h; sourceTree = SOURCE_ROOT; }; - 0008E8CB19F1AC530091588D /* sdlappicon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = sdlappicon.h; path = ../../source/build/include/sdlappicon.h; sourceTree = SOURCE_ROOT; }; - 0008E8CC19F1AC530091588D /* sdlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = sdlayer.h; path = ../../source/build/include/sdlayer.h; sourceTree = SOURCE_ROOT; }; - 0008E8CF19F1AC530091588D /* texcache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = texcache.h; path = ../../source/build/include/texcache.h; sourceTree = SOURCE_ROOT; }; - 0008E8D019F1AC530091588D /* tracker.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = tracker.hpp; path = ../../source/build/include/tracker.hpp; sourceTree = SOURCE_ROOT; }; - 0008E8D119F1AC530091588D /* tracker_operator.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = tracker_operator.hpp; path = ../../source/build/include/tracker_operator.hpp; sourceTree = SOURCE_ROOT; }; - 0008E8D219F1AC530091588D /* tracker_operators.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = tracker_operators.hpp; path = ../../source/build/include/tracker_operators.hpp; sourceTree = SOURCE_ROOT; }; - 0008E8D519F1AC530091588D /* xxhash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = xxhash.h; path = ../../source/build/include/xxhash.h; sourceTree = SOURCE_ROOT; }; - 0008E8DC19F1AC530091588D /* baselayer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = baselayer.cpp; path = ../../source/build/src/baselayer.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8DD19F1AC530091588D /* build.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = build.cpp; path = ../../source/build/src/build.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8DE19F1AC530091588D /* cache1d.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = cache1d.cpp; path = ../../source/build/src/cache1d.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8DF19F1AC530091588D /* common.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = common.cpp; path = ../../source/build/src/common.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8E019F1AC530091588D /* compat.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = compat.cpp; path = ../../source/build/src/compat.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8E119F1AC530091588D /* config.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = config.cpp; path = ../../source/build/src/config.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8E219F1AC530091588D /* crc32.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = crc32.cpp; path = ../../source/build/src/crc32.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8E319F1AC530091588D /* defs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = defs.cpp; path = ../../source/build/src/defs.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8E419F1AC530091588D /* dxtfilter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = dxtfilter.cpp; path = ../../source/build/src/dxtfilter.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8E619F1AC530091588D /* engine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = engine.cpp; path = ../../source/build/src/engine.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8E719F1AC540091588D /* engine_oldmap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = engine_oldmap.h; path = ../../source/build/src/engine_oldmap.h; sourceTree = SOURCE_ROOT; }; - 0008E8E819F1AC540091588D /* engine_priv.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = engine_priv.h; path = ../../source/build/src/engine_priv.h; sourceTree = SOURCE_ROOT; }; - 0008E8E919F1AC540091588D /* glbuild.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = glbuild.cpp; path = ../../source/build/src/glbuild.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8EB19F1AC540091588D /* hightile.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = hightile.cpp; path = ../../source/build/src/hightile.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8EC19F1AC540091588D /* kplib.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = kplib.cpp; path = ../../source/build/src/kplib.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8EE19F1AC540091588D /* lz4.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lz4.c; path = ../../source/build/src/lz4.c; sourceTree = SOURCE_ROOT; }; - 0008E8F019F1AC540091588D /* mdsprite.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = mdsprite.cpp; path = ../../source/build/src/mdsprite.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8F619F1AC540091588D /* mmulti_null.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = mmulti_null.cpp; path = ../../source/build/src/mmulti_null.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8F719F1AC540091588D /* mutex.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = mutex.cpp; path = ../../source/build/src/mutex.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8F819F1AC540091588D /* osd.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = osd.cpp; path = ../../source/build/src/osd.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8F919F1AC540091588D /* osxbits.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = osxbits.mm; path = ../../source/build/src/osxbits.mm; sourceTree = SOURCE_ROOT; }; - 0008E8FA19F1AC540091588D /* polymer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = polymer.cpp; path = ../../source/build/src/polymer.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8FB19F1AC540091588D /* polymost.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = polymost.cpp; path = ../../source/build/src/polymost.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8FC19F1AC540091588D /* pragmas.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = pragmas.cpp; path = ../../source/build/src/pragmas.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8FE19F1AC540091588D /* scriptfile.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = scriptfile.cpp; path = ../../source/build/src/scriptfile.cpp; sourceTree = SOURCE_ROOT; }; - 0008E8FF19F1AC540091588D /* sdlayer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = sdlayer.cpp; path = ../../source/build/src/sdlayer.cpp; sourceTree = SOURCE_ROOT; }; - 0008E90019F1AC540091588D /* sdlkeytrans.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = sdlkeytrans.cpp; path = ../../source/build/src/sdlkeytrans.cpp; sourceTree = SOURCE_ROOT; }; - 0008E90219F1AC540091588D /* smalltextfont.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = smalltextfont.cpp; path = ../../source/build/src/smalltextfont.cpp; sourceTree = SOURCE_ROOT; }; - 0008E90419F1AC540091588D /* startosx.editor.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = startosx.editor.mm; path = ../../source/build/src/startosx.editor.mm; sourceTree = SOURCE_ROOT; }; - 0008E90619F1AC540091588D /* texcache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = texcache.cpp; path = ../../source/build/src/texcache.cpp; sourceTree = SOURCE_ROOT; }; - 0008E90719F1AC540091588D /* textfont.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = textfont.cpp; path = ../../source/build/src/textfont.cpp; sourceTree = SOURCE_ROOT; }; - 0008E91F19F1AC540091588D /* voxmodel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = voxmodel.cpp; path = ../../source/build/src/voxmodel.cpp; sourceTree = SOURCE_ROOT; }; - 0008E92219F1AC540091588D /* xxhash.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = xxhash.c; path = ../../source/build/src/xxhash.c; sourceTree = SOURCE_ROOT; }; - 0008E99919F1AD9B0091588D /* _functio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = _functio.h; path = ../../source/duke3d/src/_functio.h; sourceTree = SOURCE_ROOT; }; - 0008E99A19F1AD9B0091588D /* _midi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = _midi.h; path = ../../source/duke3d/src/_midi.h; sourceTree = SOURCE_ROOT; }; - 0008E99B19F1AD9B0091588D /* _rts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = _rts.h; path = ../../source/duke3d/src/_rts.h; sourceTree = SOURCE_ROOT; }; - 0008E99E19F1AD9B0091588D /* actors.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = actors.cpp; path = ../../source/duke3d/src/actors.cpp; sourceTree = SOURCE_ROOT; }; - 0008E99F19F1AD9B0091588D /* actors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = actors.h; path = ../../source/duke3d/src/actors.h; sourceTree = SOURCE_ROOT; }; - 0008E9A019F1AD9B0091588D /* anim.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = anim.cpp; path = ../../source/duke3d/src/anim.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9A119F1AD9B0091588D /* anim.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = anim.h; path = ../../source/duke3d/src/anim.h; sourceTree = SOURCE_ROOT; }; - 0008E9A219F1AD9B0091588D /* animvpx.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = animvpx.cpp; path = ../../source/build/src/animvpx.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9A319F1AD9B0091588D /* animvpx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = animvpx.h; path = ../../source/build/include/animvpx.h; sourceTree = SOURCE_ROOT; }; - 0008E9A419F1AD9B0091588D /* config.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = config.cpp; path = ../../source/duke3d/src/config.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9A519F1AD9B0091588D /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = config.h; path = ../../source/duke3d/src/config.h; sourceTree = SOURCE_ROOT; }; - 0008E9A619F1AD9B0091588D /* demo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = demo.cpp; path = ../../source/duke3d/src/demo.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9A719F1AD9B0091588D /* demo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = demo.h; path = ../../source/duke3d/src/demo.h; sourceTree = SOURCE_ROOT; }; - 0008E9A819F1AD9B0091588D /* duke3d.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = duke3d.h; path = ../../source/duke3d/src/duke3d.h; sourceTree = SOURCE_ROOT; }; - 0008E9A919F1AD9B0091588D /* function.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = function.h; path = ../../source/duke3d/src/function.h; sourceTree = SOURCE_ROOT; }; - 0008E9AC19F1AD9B0091588D /* game.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = game.cpp; path = ../../source/duke3d/src/game.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9AD19F1AD9B0091588D /* game.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = game.h; path = ../../source/duke3d/src/game.h; sourceTree = SOURCE_ROOT; }; - 0008E9AE19F1AD9B0091588D /* gamedef.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = gamedef.cpp; path = ../../source/duke3d/src/gamedef.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9AF19F1AD9B0091588D /* gamedef.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = gamedef.h; path = ../../source/duke3d/src/gamedef.h; sourceTree = SOURCE_ROOT; }; - 0008E9B019F1AD9B0091588D /* gamedefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = gamedefs.h; path = ../../source/duke3d/src/gamedefs.h; sourceTree = SOURCE_ROOT; }; - 0008E9B119F1AD9B0091588D /* gameexec.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = gameexec.cpp; path = ../../source/duke3d/src/gameexec.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9B219F1AD9B0091588D /* gameexec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = gameexec.h; path = ../../source/duke3d/src/gameexec.h; sourceTree = SOURCE_ROOT; }; - 0008E9B319F1AD9B0091588D /* GameListSource.game.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = GameListSource.game.h; path = ../../source/duke3d/src/GameListSource.game.h; sourceTree = SOURCE_ROOT; }; - 0008E9B419F1AD9B0091588D /* GameListSource.game.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = GameListSource.game.mm; path = ../../source/duke3d/src/GameListSource.game.mm; sourceTree = SOURCE_ROOT; }; - 0008E9B519F1AD9B0091588D /* gamestructures.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = gamestructures.cpp; path = ../../source/duke3d/src/gamestructures.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9B619F1AD9B0091588D /* gamevars.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = gamevars.cpp; path = ../../source/duke3d/src/gamevars.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9B719F1AD9B0091588D /* gamevars.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = gamevars.h; path = ../../source/duke3d/src/gamevars.h; sourceTree = SOURCE_ROOT; }; - 0008E9B819F1AD9B0091588D /* global.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = global.cpp; path = ../../source/duke3d/src/global.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9B919F1AD9B0091588D /* global.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = global.h; path = ../../source/duke3d/src/global.h; sourceTree = SOURCE_ROOT; }; - 0008E9BA19F1AD9B0091588D /* GrpFile.game.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = GrpFile.game.h; path = ../../source/duke3d/src/GrpFile.game.h; sourceTree = SOURCE_ROOT; }; - 0008E9BB19F1AD9B0091588D /* GrpFile.game.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = GrpFile.game.mm; path = ../../source/duke3d/src/GrpFile.game.mm; sourceTree = SOURCE_ROOT; }; - 0008E9BC19F1AD9B0091588D /* grpscan.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = grpscan.cpp; path = ../../source/duke3d/src/grpscan.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9BD19F1AD9B0091588D /* grpscan.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = grpscan.h; path = ../../source/duke3d/src/grpscan.h; sourceTree = SOURCE_ROOT; }; - 0008E9BE19F1AD9B0091588D /* input.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = input.cpp; path = ../../source/duke3d/src/input.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9BF19F1AD9B0091588D /* input.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = input.h; path = ../../source/duke3d/src/input.h; sourceTree = SOURCE_ROOT; }; - 0008E9C019F1AD9B0091588D /* keys.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = keys.h; path = ../../source/duke3d/src/keys.h; sourceTree = SOURCE_ROOT; }; - 0008E9C119F1AD9B0091588D /* macros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = macros.h; path = ../../source/duke3d/src/macros.h; sourceTree = SOURCE_ROOT; }; - 0008E9C219F1AD9B0091588D /* menus.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = menus.cpp; path = ../../source/duke3d/src/menus.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9C319F1AD9B0091588D /* menus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = menus.h; path = ../../source/duke3d/src/menus.h; sourceTree = SOURCE_ROOT; }; - 0008E9C419F1AD9B0091588D /* names.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = names.h; path = ../../source/duke3d/src/names.h; sourceTree = SOURCE_ROOT; }; - 0008E9C519F1AD9B0091588D /* namesdyn.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = namesdyn.cpp; path = ../../source/duke3d/src/namesdyn.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9C619F1AD9B0091588D /* namesdyn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = namesdyn.h; path = ../../source/duke3d/src/namesdyn.h; sourceTree = SOURCE_ROOT; }; - 0008E9C719F1AD9B0091588D /* network.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = network.cpp; path = ../../source/duke3d/src/network.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9C819F1AD9B0091588D /* network.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = network.h; path = ../../source/duke3d/src/network.h; sourceTree = SOURCE_ROOT; }; - 0008E9C919F1AD9B0091588D /* osdcmds.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = osdcmds.cpp; path = ../../source/duke3d/src/osdcmds.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9CA19F1AD9B0091588D /* osdcmds.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = osdcmds.h; path = ../../source/duke3d/src/osdcmds.h; sourceTree = SOURCE_ROOT; }; - 0008E9CB19F1AD9B0091588D /* osdfuncs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = osdfuncs.cpp; path = ../../source/duke3d/src/osdfuncs.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9CC19F1AD9B0091588D /* osdfuncs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = osdfuncs.h; path = ../../source/duke3d/src/osdfuncs.h; sourceTree = SOURCE_ROOT; }; - 0008E9CD19F1AD9B0091588D /* player.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = player.cpp; path = ../../source/duke3d/src/player.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9CE19F1AD9B0091588D /* player.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = player.h; path = ../../source/duke3d/src/player.h; sourceTree = SOURCE_ROOT; }; - 0008E9CF19F1AD9B0091588D /* premap.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = premap.cpp; path = ../../source/duke3d/src/premap.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9D019F1AD9B0091588D /* premap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = premap.h; path = ../../source/duke3d/src/premap.h; sourceTree = SOURCE_ROOT; }; - 0008E9D119F1AD9B0091588D /* quotes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = quotes.h; path = ../../source/duke3d/src/quotes.h; sourceTree = SOURCE_ROOT; }; - 0008E9D219F1AD9B0091588D /* rev.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = rev.cpp; path = ../../source/build/src/rev.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9D319F1AD9B0091588D /* rts.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = rts.cpp; path = ../../source/duke3d/src/rts.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9D419F1AD9B0091588D /* rts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = rts.h; path = ../../source/duke3d/src/rts.h; sourceTree = SOURCE_ROOT; }; - 0008E9D519F1AD9B0091588D /* savegame.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = savegame.cpp; path = ../../source/duke3d/src/savegame.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9D619F1AD9B0091588D /* savegame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = savegame.h; path = ../../source/duke3d/src/savegame.h; sourceTree = SOURCE_ROOT; }; - 0008E9D719F1AD9B0091588D /* sdlmusic.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = sdlmusic.cpp; path = ../../source/duke3d/src/sdlmusic.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9DA19F1AD9B0091588D /* sector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = sector.cpp; path = ../../source/duke3d/src/sector.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9DB19F1AD9B0091588D /* sector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = sector.h; path = ../../source/duke3d/src/sector.h; sourceTree = SOURCE_ROOT; }; - 0008E9DC19F1AD9B0091588D /* soundefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = soundefs.h; path = ../../source/duke3d/src/soundefs.h; sourceTree = SOURCE_ROOT; }; - 0008E9DD19F1AD9B0091588D /* sounds.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = sounds.cpp; path = ../../source/duke3d/src/sounds.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9DE19F1AD9B0091588D /* sounds.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = sounds.h; path = ../../source/duke3d/src/sounds.h; sourceTree = SOURCE_ROOT; }; - 0008E9DF19F1AD9B0091588D /* soundsdyn.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = soundsdyn.cpp; path = ../../source/duke3d/src/soundsdyn.cpp; sourceTree = SOURCE_ROOT; }; - 0008E9E019F1AD9B0091588D /* soundsdyn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = soundsdyn.h; path = ../../source/duke3d/src/soundsdyn.h; sourceTree = SOURCE_ROOT; }; - 0008E9E119F1AD9B0091588D /* standard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = standard.h; path = ../../source/duke3d/src/standard.h; sourceTree = SOURCE_ROOT; }; - 0008E9E219F1AD9B0091588D /* startosx.game.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = startosx.game.mm; path = ../../source/duke3d/src/startosx.game.mm; sourceTree = SOURCE_ROOT; }; - 0008EA0419F1ADC90091588D /* common_game.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = common_game.h; path = ../../source/duke3d/src/common_game.h; sourceTree = SOURCE_ROOT; }; - 0008EA0519F1ADC90091588D /* common.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = common.cpp; path = ../../source/duke3d/src/common.cpp; sourceTree = SOURCE_ROOT; }; - 0008EA0619F1ADC90091588D /* sounds_common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = sounds_common.h; path = ../../source/duke3d/src/sounds_common.h; sourceTree = SOURCE_ROOT; }; - 0008EA0D19F1AE820091588D /* astub.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = astub.cpp; path = ../../source/duke3d/src/astub.cpp; sourceTree = SOURCE_ROOT; }; - 0008EA0E19F1AE820091588D /* m32common.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = m32common.cpp; path = ../../source/duke3d/src/m32common.cpp; sourceTree = SOURCE_ROOT; }; - 0008EA0F19F1AE820091588D /* m32def.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = m32def.cpp; path = ../../source/duke3d/src/m32def.cpp; sourceTree = SOURCE_ROOT; }; - 0008EA1019F1AE820091588D /* m32def.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = m32def.h; path = ../../source/duke3d/src/m32def.h; sourceTree = SOURCE_ROOT; }; - 0008EA1119F1AE820091588D /* m32exec.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = m32exec.cpp; path = ../../source/duke3d/src/m32exec.cpp; sourceTree = SOURCE_ROOT; }; - 0008EA1219F1AE820091588D /* m32structures.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = m32structures.cpp; path = ../../source/duke3d/src/m32structures.cpp; sourceTree = SOURCE_ROOT; }; - 0008EA1319F1AE820091588D /* m32vars.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = m32vars.cpp; path = ../../source/duke3d/src/m32vars.cpp; sourceTree = SOURCE_ROOT; }; - 0008EA1419F1AE820091588D /* sounds_mapster32.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = sounds_mapster32.cpp; path = ../../source/duke3d/src/sounds_mapster32.cpp; sourceTree = SOURCE_ROOT; }; - 0008EA1519F1AE820091588D /* sounds_mapster32.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = sounds_mapster32.h; path = ../../source/duke3d/src/sounds_mapster32.h; sourceTree = SOURCE_ROOT; }; - 0008EA1D19F1AEFC0091588D /* eduke32.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = eduke32.icns; path = bundles/EDuke32.app/Contents/Resources/eduke32.icns; sourceTree = SOURCE_ROOT; }; - 0008EA4919F1B0020091588D /* libENet.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libENet.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 0008EA5019F1B04F0091588D /* callbacks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = callbacks.h; path = ../../source/enet/include/enet/callbacks.h; sourceTree = SOURCE_ROOT; }; - 0008EA5119F1B04F0091588D /* enet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = enet.h; path = ../../source/enet/include/enet/enet.h; sourceTree = SOURCE_ROOT; }; - 0008EA5219F1B04F0091588D /* list.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = list.h; path = ../../source/enet/include/enet/list.h; sourceTree = SOURCE_ROOT; }; - 0008EA5319F1B04F0091588D /* protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = protocol.h; path = ../../source/enet/include/enet/protocol.h; sourceTree = SOURCE_ROOT; }; - 0008EA5419F1B04F0091588D /* time.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = time.h; path = ../../source/enet/include/enet/time.h; sourceTree = SOURCE_ROOT; }; - 0008EA5519F1B04F0091588D /* types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = types.h; path = ../../source/enet/include/enet/types.h; sourceTree = SOURCE_ROOT; }; - 0008EA5619F1B04F0091588D /* unix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = unix.h; path = ../../source/enet/include/enet/unix.h; sourceTree = SOURCE_ROOT; }; - 0008EA5719F1B04F0091588D /* utility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = utility.h; path = ../../source/enet/include/enet/utility.h; sourceTree = SOURCE_ROOT; }; - 0008EA5819F1B04F0091588D /* win32.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = win32.h; path = ../../source/enet/include/enet/win32.h; sourceTree = SOURCE_ROOT; }; - 0008EA5A19F1B04F0091588D /* callbacks.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = callbacks.c; path = ../../source/enet/src/callbacks.c; sourceTree = SOURCE_ROOT; }; - 0008EA5B19F1B04F0091588D /* compress.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = compress.c; path = ../../source/enet/src/compress.c; sourceTree = SOURCE_ROOT; }; - 0008EA5C19F1B04F0091588D /* host.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = host.c; path = ../../source/enet/src/host.c; sourceTree = SOURCE_ROOT; }; - 0008EA5D19F1B04F0091588D /* list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = list.c; path = ../../source/enet/src/list.c; sourceTree = SOURCE_ROOT; }; - 0008EA5E19F1B04F0091588D /* packet.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = packet.c; path = ../../source/enet/src/packet.c; sourceTree = SOURCE_ROOT; }; - 0008EA5F19F1B04F0091588D /* peer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = peer.c; path = ../../source/enet/src/peer.c; sourceTree = SOURCE_ROOT; }; - 0008EA6019F1B04F0091588D /* protocol.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = protocol.c; path = ../../source/enet/src/protocol.c; sourceTree = SOURCE_ROOT; }; - 0008EA6119F1B04F0091588D /* unix.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = unix.c; path = ../../source/enet/src/unix.c; sourceTree = SOURCE_ROOT; }; - 0008EA6219F1B04F0091588D /* win32.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = win32.c; path = ../../source/enet/src/win32.c; sourceTree = SOURCE_ROOT; }; - 0008EA7719F1B1AC0091588D /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = System/Library/Frameworks/Carbon.framework; sourceTree = SDKROOT; }; - 0008EA7919F1B1B40091588D /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; }; - 0008EA7B19F1B1C90091588D /* CoreMIDI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMIDI.framework; path = System/Library/Frameworks/CoreMIDI.framework; sourceTree = SDKROOT; }; - 0008EA7D19F1B1CE0091588D /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = System/Library/Frameworks/AudioUnit.framework; sourceTree = SDKROOT; }; - 0008EA7F19F1B1D30091588D /* AGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AGL.framework; path = System/Library/Frameworks/AGL.framework; sourceTree = SDKROOT; }; - 0008EA8119F1B1E20091588D /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; - 0008EA8319F1B1E80091588D /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; - 000C486C19F35516006E6B52 /* EDuke32-iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "EDuke32-iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 000C486D19F35516006E6B52 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 000C486F19F35516006E6B52 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - 000C487519F35517006E6B52 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = iOS/Info.plist; sourceTree = SOURCE_ROOT; }; - 000C487719F35517006E6B52 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - 000C487F19F35517006E6B52 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = iOS/Images.xcassets; sourceTree = SOURCE_ROOT; }; - 000C48CE19F35D6E006E6B52 /* SDL.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDL.xcodeproj; path = "../../../SDL/Xcode-iOS/SDL/SDL.xcodeproj"; sourceTree = ""; }; - 000C48D619F35D92006E6B52 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - 000C48EB19F35DD7006E6B52 /* SDL_mixer.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDL_mixer.xcodeproj; path = "../../../SDL_mixer/Xcode-iOS/SDL_mixer.xcodeproj"; sourceTree = ""; }; - 001382DE19F361B60007DA6C /* libBUILD-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libBUILD-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 001382F819F361B80007DA6C /* libMACT-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libMACT-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 0013831B19F361BB0007DA6C /* libAudioLib-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libAudioLib-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 0013831F19F362E30007DA6C /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; - 0013832219F365D20007DA6C /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; - 0013832419F366280007DA6C /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; - 0013832619F366440007DA6C /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; }; - 0013832819F366720007DA6C /* libc++.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libc++.dylib"; path = "usr/lib/libc++.dylib"; sourceTree = SDKROOT; }; - 00970E1B19F2076B00873EB9 /* libFLAC.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libFLAC.a; path = /usr/local/lib/libFLAC.a; sourceTree = ""; }; - 00970E1C19F2076B00873EB9 /* libogg.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libogg.a; path = /usr/local/lib/libogg.a; sourceTree = ""; }; - 00970E1E19F2076B00873EB9 /* libSDL2_mixer.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libSDL2_mixer.a; path = /usr/local/lib/libSDL2_mixer.a; sourceTree = ""; }; - 00970E1F19F2076B00873EB9 /* libSDL2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libSDL2.a; path = /usr/local/lib/libSDL2.a; sourceTree = ""; }; - 00970E2019F2076B00873EB9 /* libvorbis.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libvorbis.a; path = /usr/local/lib/libvorbis.a; sourceTree = ""; }; - 00970E2119F2076B00873EB9 /* libvorbisfile.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libvorbisfile.a; path = /usr/local/lib/libvorbisfile.a; sourceTree = ""; }; - 00970E2219F2076B00873EB9 /* libvpx.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libvpx.a; path = /usr/local/lib/libvpx.a; sourceTree = ""; }; - 00970E3319F207F000873EB9 /* a-c.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = "a-c.cpp"; path = "../../source/build/src/a-c.cpp"; sourceTree = SOURCE_ROOT; }; - 00970E4E19F2108600873EB9 /* driver_nosound.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = driver_nosound.cpp; path = ../../source/audiolib/src/driver_nosound.cpp; sourceTree = SOURCE_ROOT; }; - 00970E4F19F2108600873EB9 /* driver_nosound.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = driver_nosound.h; path = ../../source/audiolib/src/driver_nosound.h; sourceTree = SOURCE_ROOT; }; - 00970E5A19F2139500873EB9 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ForceFeedback.framework; path = System/Library/Frameworks/ForceFeedback.framework; sourceTree = SDKROOT; }; - 00970E5D19F213B300873EB9 /* libiconv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libiconv.dylib; path = usr/lib/libiconv.dylib; sourceTree = SDKROOT; }; - 00970E6019F2142400873EB9 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; }; - 00CD003119F374ED00636963 /* duke3d.grp */ = {isa = PBXFileReference; lastKnownFileType = file; name = duke3d.grp; path = ../../../duke3d.grp; sourceTree = SOURCE_ROOT; }; - 2038AE951A8F122D0093B7B2 /* libdivide.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = libdivide.h; path = ../../source/build/include/libdivide.h; sourceTree = SOURCE_ROOT; }; - 2038AE981A8F12590093B7B2 /* md4.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = md4.h; path = ../../source/build/include/md4.h; sourceTree = SOURCE_ROOT; }; - 2038AE9B1A8F126C0093B7B2 /* md4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = md4.cpp; path = ../../source/build/src/md4.cpp; sourceTree = SOURCE_ROOT; }; - 2038AEA21A8F137E0093B7B2 /* DUKE.RTS */ = {isa = PBXFileReference; lastKnownFileType = file; name = DUKE.RTS; path = ../../../DUKE.RTS; sourceTree = SOURCE_ROOT; }; - 2044C9831E089F2500A8C543 /* palette.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = palette.h; path = ../../source/build/include/palette.h; sourceTree = SOURCE_ROOT; }; - 2044C9891E08A66B00A8C543 /* palette.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = palette.cpp; path = ../../source/build/src/palette.cpp; sourceTree = SOURCE_ROOT; }; - 2044C98C1E08A69700A8C543 /* clip.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = clip.cpp; path = ../../source/build/src/clip.cpp; sourceTree = SOURCE_ROOT; }; - 2044C98F1E08A6BC00A8C543 /* screenshot.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = screenshot.cpp; path = ../../source/build/src/screenshot.cpp; sourceTree = SOURCE_ROOT; }; - 2044C9981E08A72200A8C543 /* mhk.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = mhk.cpp; path = ../../source/build/src/mhk.cpp; sourceTree = SOURCE_ROOT; }; - 2044C99B1E08A74100A8C543 /* tiles.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = tiles.cpp; path = ../../source/build/src/tiles.cpp; sourceTree = SOURCE_ROOT; }; - 204D6B4F1C9896B0001FA505 /* inv.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; name = inv.h; path = ../../source/duke3d/src/inv.h; sourceTree = SOURCE_ROOT; }; - 204D6B571C98973F001FA505 /* Math.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = Math.hpp; path = ../../source/etcpak/src/Math.hpp; sourceTree = SOURCE_ROOT; }; - 204D6B581C98973F001FA505 /* ProcessCommon.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = ProcessCommon.hpp; path = ../../source/etcpak/src/ProcessCommon.hpp; sourceTree = SOURCE_ROOT; }; - 204D6B591C98973F001FA505 /* ProcessRGB.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ProcessRGB.cpp; path = ../../source/etcpak/src/ProcessRGB.cpp; sourceTree = SOURCE_ROOT; }; - 204D6B5A1C98973F001FA505 /* ProcessRGB.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = ProcessRGB.hpp; path = ../../source/etcpak/include/ProcessRGB.h; sourceTree = SOURCE_ROOT; }; - 204D6B5B1C98973F001FA505 /* Tables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Tables.cpp; path = ../../source/etcpak/src/Tables.cpp; sourceTree = SOURCE_ROOT; }; - 204D6B5C1C98973F001FA505 /* Tables.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = Tables.hpp; path = ../../source/etcpak/src/Tables.hpp; sourceTree = SOURCE_ROOT; }; - 204D6B5D1C98973F001FA505 /* Types.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = Types.hpp; path = ../../source/etcpak/src/Types.hpp; sourceTree = SOURCE_ROOT; }; - 204D6B5E1C98973F001FA505 /* Vector.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = Vector.hpp; path = ../../source/etcpak/src/Vector.hpp; sourceTree = SOURCE_ROOT; }; - 206B3A051B074F3000E5DBD0 /* jwzgles.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; name = jwzgles.h; path = ../../source/build/include/jwzgles.h; sourceTree = SOURCE_ROOT; }; - 206B3A061B074F3000E5DBD0 /* jwzglesI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; name = jwzglesI.h; path = ../../source/build/include/jwzglesI.h; sourceTree = SOURCE_ROOT; }; - 206B3A0B1B074F6400E5DBD0 /* jwzgles.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = jwzgles.c; path = ../../source/build/src/jwzgles.c; sourceTree = SOURCE_ROOT; }; - 2085BEB91A8F23B9002BF4CE /* libSystem.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libSystem.dylib; path = usr/lib/libSystem.dylib; sourceTree = SDKROOT; }; - 20C214691B02C19800917E58 /* game.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = game.png; path = bundles/EDuke32.app/Contents/Resources/game.png; sourceTree = SOURCE_ROOT; }; - 20C2146E1B02C1D800917E58 /* build.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = build.png; path = bundles/Mapster32.app/Contents/Resources/build.png; sourceTree = SOURCE_ROOT; }; - 20CA2FA61BB2456E001231BF /* drivers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = drivers.h; path = ../../source/audiolib/include/drivers.h; sourceTree = SOURCE_ROOT; }; - 20CEFB111E08A86B0077879C /* 2d.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = 2d.cpp; path = ../../source/build/src/2d.cpp; sourceTree = SOURCE_ROOT; }; - 20CEFB171E08A8830077879C /* hash.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = hash.cpp; path = ../../source/build/src/hash.cpp; sourceTree = SOURCE_ROOT; }; - 20CEFB1A1E08A8CB0077879C /* xmp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = xmp.cpp; path = ../../source/audiolib/src/xmp.cpp; sourceTree = SOURCE_ROOT; }; - 20CEFB1D1E08A8FD0077879C /* hash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = hash.h; path = ../../source/build/include/hash.h; sourceTree = SOURCE_ROOT; }; - 20CEFB201E08A9130077879C /* buildtypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = buildtypes.h; path = ../../source/build/include/buildtypes.h; sourceTree = SOURCE_ROOT; }; - 20CEFB231E08A91D0077879C /* clip.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = clip.h; path = ../../source/build/include/clip.h; sourceTree = SOURCE_ROOT; }; - 20E16CDF1C7022C300EE8446 /* cmdline.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = cmdline.cpp; path = ../../source/duke3d/src/cmdline.cpp; sourceTree = SOURCE_ROOT; }; - 20E16CE01C7022C300EE8446 /* cmdline.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = cmdline.h; path = ../../source/duke3d/src/cmdline.h; sourceTree = SOURCE_ROOT; }; - 20E16CE61C7022DE00EE8446 /* screens.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = screens.cpp; path = ../../source/duke3d/src/screens.cpp; sourceTree = SOURCE_ROOT; }; - 20E16CE71C7022DE00EE8446 /* screens.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = screens.h; path = ../../source/duke3d/src/screens.h; sourceTree = SOURCE_ROOT; }; - 20F7124B1C6C19E5006B68D0 /* screentext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = screentext.cpp; path = ../../source/duke3d/src/screentext.cpp; sourceTree = SOURCE_ROOT; }; - 20F7124C1C6C19E5006B68D0 /* screentext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = screentext.h; path = ../../source/duke3d/src/screentext.h; sourceTree = SOURCE_ROOT; }; - 20F7124F1C6C19F4006B68D0 /* sbar.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = sbar.cpp; path = ../../source/duke3d/src/sbar.cpp; sourceTree = SOURCE_ROOT; }; - 20F712501C6C19F4006B68D0 /* sbar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = sbar.h; path = ../../source/duke3d/src/sbar.h; sourceTree = SOURCE_ROOT; }; - 20F712531C6C1A07006B68D0 /* cheats.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = cheats.cpp; path = ../../source/duke3d/src/cheats.cpp; sourceTree = SOURCE_ROOT; }; - 20F712541C6C1A07006B68D0 /* cheats.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = cheats.h; path = ../../source/duke3d/src/cheats.h; sourceTree = SOURCE_ROOT; }; - 20FD1D471C44E4BE00C2E553 /* colmatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = colmatch.h; path = ../../source/build/include/colmatch.h; sourceTree = SOURCE_ROOT; }; - 20FD1D501C44E4E700C2E553 /* colmatch.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.c; name = colmatch.cpp; path = ../../source/build/src/colmatch.cpp; sourceTree = SOURCE_ROOT; }; - 20FD1D6A1C44E64700C2E553 /* GameController.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameController.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/GameController.framework; sourceTree = DEVELOPER_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 0008E64819F1A66E0091588D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 00970E6119F2142400873EB9 /* CoreAudio.framework in Frameworks */, - 00970E5E19F213B300873EB9 /* libiconv.dylib in Frameworks */, - 00970E4A19F20F7E00873EB9 /* libBUILD.a in Frameworks */, - 0008EA8419F1B1E80091588D /* IOKit.framework in Frameworks */, - 00970E4B19F20F7E00873EB9 /* libMACT.a in Frameworks */, - 0008EA8219F1B1E20091588D /* AudioToolbox.framework in Frameworks */, - 00970E2319F2076B00873EB9 /* libFLAC.a in Frameworks */, - 00970E2519F2076B00873EB9 /* libogg.a in Frameworks */, - 00970E2D19F2076B00873EB9 /* libvorbis.a in Frameworks */, - 00970E4D19F20F7E00873EB9 /* libENet.a in Frameworks */, - 000C48E619F35DA9006E6B52 /* CoreGraphics.framework in Frameworks */, - 0008EA8019F1B1D30091588D /* AGL.framework in Frameworks */, - 00970E2F19F2076B00873EB9 /* libvorbisfile.a in Frameworks */, - 0008EA7E19F1B1CE0091588D /* AudioUnit.framework in Frameworks */, - 00970E2919F2076B00873EB9 /* libSDL2_mixer.a in Frameworks */, - 00970E5C19F2139C00873EB9 /* ForceFeedback.framework in Frameworks */, - 00970E2B19F2076B00873EB9 /* libSDL2.a in Frameworks */, - 0008EA7C19F1B1C90091588D /* CoreMIDI.framework in Frameworks */, - 0008EA7A19F1B1B40091588D /* OpenGL.framework in Frameworks */, - 00970E3119F2076B00873EB9 /* libvpx.a in Frameworks */, - 000C48E519F35DA9006E6B52 /* Foundation.framework in Frameworks */, - 0008EA7819F1B1AC0091588D /* Carbon.framework in Frameworks */, - 00970E4C19F20F7E00873EB9 /* libAudioLib.a in Frameworks */, - 0008E64F19F1A66E0091588D /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E68319F1A8F10091588D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 00970E5B19F2139500873EB9 /* ForceFeedback.framework in Frameworks */, - 00970E4619F20F7E00873EB9 /* libBUILD.a in Frameworks */, - 0008EA8819F1B2400091588D /* AudioToolbox.framework in Frameworks */, - 00970E4719F20F7E00873EB9 /* libMACT.a in Frameworks */, - 0008EA8919F1B2400091588D /* AudioUnit.framework in Frameworks */, - 00970E2419F2076B00873EB9 /* libFLAC.a in Frameworks */, - 00970E2619F2076B00873EB9 /* libogg.a in Frameworks */, - 00970E2E19F2076B00873EB9 /* libvorbis.a in Frameworks */, - 00970E5F19F2140E00873EB9 /* libiconv.dylib in Frameworks */, - 00970E4919F20F7E00873EB9 /* libENet.a in Frameworks */, - 000C48E319F35DA8006E6B52 /* CoreGraphics.framework in Frameworks */, - 0008EA8A19F1B2400091588D /* IOKit.framework in Frameworks */, - 00970E3019F2076B00873EB9 /* libvorbisfile.a in Frameworks */, - 0008EA8519F1B22E0091588D /* AGL.framework in Frameworks */, - 00970E2A19F2076B00873EB9 /* libSDL2_mixer.a in Frameworks */, - 00970E2C19F2076B00873EB9 /* libSDL2.a in Frameworks */, - 0008EA8619F1B22E0091588D /* Carbon.framework in Frameworks */, - 0008EA8719F1B22E0091588D /* OpenGL.framework in Frameworks */, - 0006DA2419F2153500A17995 /* CoreAudio.framework in Frameworks */, - 00970E3219F2076B00873EB9 /* libvpx.a in Frameworks */, - 000C48E219F35DA8006E6B52 /* Foundation.framework in Frameworks */, - 0008E68719F1A8F10091588D /* Cocoa.framework in Frameworks */, - 00970E4819F20F7E00873EB9 /* libAudioLib.a in Frameworks */, - 0008EA9D19F1BB3A0091588D /* CoreMIDI.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E6B419F1A9260091588D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E6BF19F1A9AF0091588D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E6C719F1AAA30091588D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008EA4619F1B0020091588D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 000C486919F35516006E6B52 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 2085BEBA1A8F23B9002BF4CE /* libSystem.dylib in Frameworks */, - 00CAC13419F4E12400317AE6 /* libSDL2_mixer.a in Frameworks */, - 0013832719F366440007DA6C /* CoreMotion.framework in Frameworks */, - 20F70F131A8F25CE00F71870 /* libc++.dylib in Frameworks */, - 0013832519F366280007DA6C /* QuartzCore.framework in Frameworks */, - 0013832319F365D20007DA6C /* OpenGLES.framework in Frameworks */, - 0013832019F362E30007DA6C /* MobileCoreServices.framework in Frameworks */, - 000C48D719F35D92006E6B52 /* UIKit.framework in Frameworks */, - 0013831D19F361DE0007DA6C /* libMACT-iOS.a in Frameworks */, - 0013831E19F361DE0007DA6C /* libAudioLib-iOS.a in Frameworks */, - 000C48E719F35DAE006E6B52 /* CoreAudio.framework in Frameworks */, - 000C487019F35516006E6B52 /* CoreGraphics.framework in Frameworks */, - 000C48D919F35DA3006E6B52 /* AudioToolbox.framework in Frameworks */, - 0013831C19F361DE0007DA6C /* libBUILD-iOS.a in Frameworks */, - 000C486E19F35516006E6B52 /* Foundation.framework in Frameworks */, - 000C48D519F35D7A006E6B52 /* libSDL2.a in Frameworks */, - 000C48DC19F35DA3006E6B52 /* CoreMIDI.framework in Frameworks */, - 20FD1D6B1C44E64700C2E553 /* GameController.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 001382A919F361B60007DA6C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 001382E919F361B80007DA6C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0013830719F361BB0007DA6C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 0008E64019F1A5AA0091588D = { - isa = PBXGroup; - children = ( - 00CD003119F374ED00636963 /* duke3d.grp */, - 2038AEA21A8F137E0093B7B2 /* DUKE.RTS */, - 00970E1A19F2074300873EB9 /* Libraries */, - 0008E6BB19F1A9470091588D /* BUILD */, - 0008E65419F1A66E0091588D /* EDuke32 */, - 0008E6BC19F1A9500091588D /* MACT */, - 0008E6BD19F1A9590091588D /* AudioLib */, - 0008EA4D19F1B03A0091588D /* ENet */, - 0008E64D19F1A66E0091588D /* Frameworks */, - 0008E64C19F1A66E0091588D /* Products */, - ); - sourceTree = ""; - }; - 0008E64C19F1A66E0091588D /* Products */ = { - isa = PBXGroup; - children = ( - 0008E64B19F1A66E0091588D /* EDuke32.app */, - 0008E68619F1A8F10091588D /* Mapster32.app */, - 0008E6B719F1A9260091588D /* libBUILD.a */, - 0008E6C219F1A9AF0091588D /* libMACT.a */, - 0008E6CA19F1AAA30091588D /* libAudioLib.a */, - 0008EA4919F1B0020091588D /* libENet.a */, - 000C486C19F35516006E6B52 /* EDuke32-iOS.app */, - 001382DE19F361B60007DA6C /* libBUILD-iOS.a */, - 001382F819F361B80007DA6C /* libMACT-iOS.a */, - 0013831B19F361BB0007DA6C /* libAudioLib-iOS.a */, - ); - name = Products; - sourceTree = ""; - }; - 0008E64D19F1A66E0091588D /* Frameworks */ = { - isa = PBXGroup; - children = ( - 2085BEB91A8F23B9002BF4CE /* libSystem.dylib */, - 0013832819F366720007DA6C /* libc++.dylib */, - 0013832619F366440007DA6C /* CoreMotion.framework */, - 0013832419F366280007DA6C /* QuartzCore.framework */, - 0013832219F365D20007DA6C /* OpenGLES.framework */, - 0013831F19F362E30007DA6C /* MobileCoreServices.framework */, - 000C48EB19F35DD7006E6B52 /* SDL_mixer.xcodeproj */, - 000C48D619F35D92006E6B52 /* UIKit.framework */, - 000C48CE19F35D6E006E6B52 /* SDL.xcodeproj */, - 00970E6019F2142400873EB9 /* CoreAudio.framework */, - 00970E5D19F213B300873EB9 /* libiconv.dylib */, - 00970E5A19F2139500873EB9 /* ForceFeedback.framework */, - 0008EA8319F1B1E80091588D /* IOKit.framework */, - 0008EA8119F1B1E20091588D /* AudioToolbox.framework */, - 0008EA7F19F1B1D30091588D /* AGL.framework */, - 0008EA7D19F1B1CE0091588D /* AudioUnit.framework */, - 0008EA7B19F1B1C90091588D /* CoreMIDI.framework */, - 0008EA7919F1B1B40091588D /* OpenGL.framework */, - 0008EA7719F1B1AC0091588D /* Carbon.framework */, - 0008E64E19F1A66E0091588D /* Cocoa.framework */, - 000C486D19F35516006E6B52 /* Foundation.framework */, - 000C486F19F35516006E6B52 /* CoreGraphics.framework */, - 20FD1D6A1C44E64700C2E553 /* GameController.framework */, - 0008E65019F1A66E0091588D /* Other Frameworks */, - ); - name = Frameworks; - sourceTree = ""; - }; - 0008E65019F1A66E0091588D /* Other Frameworks */ = { - isa = PBXGroup; - children = ( - 0008E65119F1A66E0091588D /* AppKit.framework */, - 0008E65219F1A66E0091588D /* CoreData.framework */, - 0008E65319F1A66E0091588D /* Foundation.framework */, - ); - name = "Other Frameworks"; - sourceTree = ""; - }; - 0008E65419F1A66E0091588D /* EDuke32 */ = { - isa = PBXGroup; - children = ( - 000C487319F35517006E6B52 /* iOS */, - 0008EA1D19F1AEFC0091588D /* eduke32.icns */, - 20C214691B02C19800917E58 /* game.png */, - 0008EA0D19F1AE820091588D /* astub.cpp */, - 0008EA0E19F1AE820091588D /* m32common.cpp */, - 0008EA0F19F1AE820091588D /* m32def.cpp */, - 0008EA1019F1AE820091588D /* m32def.h */, - 0008EA1119F1AE820091588D /* m32exec.cpp */, - 0008EA1219F1AE820091588D /* m32structures.cpp */, - 0008EA1319F1AE820091588D /* m32vars.cpp */, - 0008EA1419F1AE820091588D /* sounds_mapster32.cpp */, - 0008EA1519F1AE820091588D /* sounds_mapster32.h */, - 0008EA0419F1ADC90091588D /* common_game.h */, - 0008EA0519F1ADC90091588D /* common.cpp */, - 0008EA0619F1ADC90091588D /* sounds_common.h */, - 0008E99919F1AD9B0091588D /* _functio.h */, - 0008E99A19F1AD9B0091588D /* _midi.h */, - 0008E99B19F1AD9B0091588D /* _rts.h */, - 0008E99E19F1AD9B0091588D /* actors.cpp */, - 0008E99F19F1AD9B0091588D /* actors.h */, - 0008E9A019F1AD9B0091588D /* anim.cpp */, - 0008E9A119F1AD9B0091588D /* anim.h */, - 20F712531C6C1A07006B68D0 /* cheats.cpp */, - 20F712541C6C1A07006B68D0 /* cheats.h */, - 20E16CDF1C7022C300EE8446 /* cmdline.cpp */, - 20E16CE01C7022C300EE8446 /* cmdline.h */, - 0008E9A419F1AD9B0091588D /* config.cpp */, - 0008E9A519F1AD9B0091588D /* config.h */, - 0008E9A619F1AD9B0091588D /* demo.cpp */, - 0008E9A719F1AD9B0091588D /* demo.h */, - 0008E9A819F1AD9B0091588D /* duke3d.h */, - 0008E9A919F1AD9B0091588D /* function.h */, - 0008E9AC19F1AD9B0091588D /* game.cpp */, - 0008E9AD19F1AD9B0091588D /* game.h */, - 0008E9AE19F1AD9B0091588D /* gamedef.cpp */, - 0008E9AF19F1AD9B0091588D /* gamedef.h */, - 0008E9B019F1AD9B0091588D /* gamedefs.h */, - 0008E9B119F1AD9B0091588D /* gameexec.cpp */, - 0008E9B219F1AD9B0091588D /* gameexec.h */, - 0008E9B319F1AD9B0091588D /* GameListSource.game.h */, - 0008E9B419F1AD9B0091588D /* GameListSource.game.mm */, - 0008E9B519F1AD9B0091588D /* gamestructures.cpp */, - 0008E9B619F1AD9B0091588D /* gamevars.cpp */, - 0008E9B719F1AD9B0091588D /* gamevars.h */, - 0008E9B819F1AD9B0091588D /* global.cpp */, - 0008E9B919F1AD9B0091588D /* global.h */, - 0008E9BA19F1AD9B0091588D /* GrpFile.game.h */, - 0008E9BB19F1AD9B0091588D /* GrpFile.game.mm */, - 0008E9BC19F1AD9B0091588D /* grpscan.cpp */, - 0008E9BD19F1AD9B0091588D /* grpscan.h */, - 0008E9BE19F1AD9B0091588D /* input.cpp */, - 0008E9BF19F1AD9B0091588D /* input.h */, - 204D6B4F1C9896B0001FA505 /* inv.h */, - 0008E9C019F1AD9B0091588D /* keys.h */, - 0008E9C119F1AD9B0091588D /* macros.h */, - 0008E9C219F1AD9B0091588D /* menus.cpp */, - 0008E9C319F1AD9B0091588D /* menus.h */, - 0008E9C419F1AD9B0091588D /* names.h */, - 0008E9C519F1AD9B0091588D /* namesdyn.cpp */, - 0008E9C619F1AD9B0091588D /* namesdyn.h */, - 0008E9C719F1AD9B0091588D /* network.cpp */, - 0008E9C819F1AD9B0091588D /* network.h */, - 0008E9C919F1AD9B0091588D /* osdcmds.cpp */, - 0008E9CA19F1AD9B0091588D /* osdcmds.h */, - 0008E9CB19F1AD9B0091588D /* osdfuncs.cpp */, - 0008E9CC19F1AD9B0091588D /* osdfuncs.h */, - 0008E9CD19F1AD9B0091588D /* player.cpp */, - 0008E9CE19F1AD9B0091588D /* player.h */, - 0008E9CF19F1AD9B0091588D /* premap.cpp */, - 0008E9D019F1AD9B0091588D /* premap.h */, - 0008E9D119F1AD9B0091588D /* quotes.h */, - 0008E9D319F1AD9B0091588D /* rts.cpp */, - 0008E9D419F1AD9B0091588D /* rts.h */, - 0008E9D519F1AD9B0091588D /* savegame.cpp */, - 0008E9D619F1AD9B0091588D /* savegame.h */, - 20F7124F1C6C19F4006B68D0 /* sbar.cpp */, - 20F712501C6C19F4006B68D0 /* sbar.h */, - 20E16CE61C7022DE00EE8446 /* screens.cpp */, - 20E16CE71C7022DE00EE8446 /* screens.h */, - 20F7124B1C6C19E5006B68D0 /* screentext.cpp */, - 20F7124C1C6C19E5006B68D0 /* screentext.h */, - 0008E9D719F1AD9B0091588D /* sdlmusic.cpp */, - 0008E9DA19F1AD9B0091588D /* sector.cpp */, - 0008E9DB19F1AD9B0091588D /* sector.h */, - 0008E9DC19F1AD9B0091588D /* soundefs.h */, - 0008E9DD19F1AD9B0091588D /* sounds.cpp */, - 0008E9DE19F1AD9B0091588D /* sounds.h */, - 0008E9DF19F1AD9B0091588D /* soundsdyn.cpp */, - 0008E9E019F1AD9B0091588D /* soundsdyn.h */, - 0008E9E119F1AD9B0091588D /* standard.h */, - 0008E9E219F1AD9B0091588D /* startosx.game.mm */, - ); - path = EDuke32; - sourceTree = ""; - }; - 0008E6BB19F1A9470091588D /* BUILD */ = { - isa = PBXGroup; - children = ( - 0008E8A019F1AC530091588D /* include */, - 0008E8D619F1AC530091588D /* src */, - ); - name = BUILD; - sourceTree = ""; - }; - 0008E6BC19F1A9500091588D /* MACT */ = { - isa = PBXGroup; - children = ( - 0008E72319F1ABB80091588D /* _control.h */, - 0008E72419F1ABB80091588D /* _scrplib.h */, - 0008E72519F1ABB80091588D /* animlib.cpp */, - 0008E72619F1ABB80091588D /* animlib.h */, - 0008E72719F1ABB80091588D /* control.cpp */, - 0008E72819F1ABB80091588D /* control.h */, - 0008E72B19F1ABB80091588D /* joystick.cpp */, - 0008E72C19F1ABB80091588D /* joystick.h */, - 0008E72D19F1ABB80091588D /* keyboard.cpp */, - 0008E72E19F1ABB80091588D /* keyboard.h */, - 0008E73219F1ABB80091588D /* mouse.h */, - 0008E73319F1ABB80091588D /* scriplib.cpp */, - 0008E73419F1ABB80091588D /* scriplib.h */, - ); - name = MACT; - sourceTree = ""; - }; - 0008E6BD19F1A9590091588D /* AudioLib */ = { - isa = PBXGroup; - children = ( - 0008E6CE19F1AAFE0091588D /* include */, - 0008E6D219F1AAFE0091588D /* src */, - ); - name = AudioLib; - sourceTree = ""; - }; - 0008E6CE19F1AAFE0091588D /* include */ = { - isa = PBXGroup; - children = ( - 20CA2FA61BB2456E001231BF /* drivers.h */, - 0008E6CF19F1AAFE0091588D /* fx_man.h */, - 0008E6E419F1AAFF0091588D /* multivoc.h */, - 0008E6D019F1AAFE0091588D /* music.h */, - ); - name = include; - path = ../../source/audiolib/include; - sourceTree = ""; - }; - 0008E6D219F1AAFE0091588D /* src */ = { - isa = PBXGroup; - children = ( - 0008E6D319F1AAFE0091588D /* _multivc.h */, - 00970E4E19F2108600873EB9 /* driver_nosound.cpp */, - 00970E4F19F2108600873EB9 /* driver_nosound.h */, - 0008E6D819F1AAFF0091588D /* driver_sdl.cpp */, - 0008E6D919F1AAFF0091588D /* driver_sdl.h */, - 0008E6DA19F1AAFF0091588D /* drivers.cpp */, - 0008E6DC19F1AAFF0091588D /* flac.cpp */, - 0008E6DD19F1AAFF0091588D /* formats.cpp */, - 0008E6DE19F1AAFF0091588D /* fx_man.cpp */, - 0008E6DF19F1AAFF0091588D /* linklist.h */, - 0008E6E119F1AAFF0091588D /* mix.cpp */, - 0008E6E219F1AAFF0091588D /* mixst.cpp */, - 0008E6E319F1AAFF0091588D /* multivoc.cpp */, - 0008E6E519F1AAFF0091588D /* pitch.cpp */, - 0008E6E619F1AAFF0091588D /* pitch.h */, - 0008E6E719F1AAFF0091588D /* vorbis.cpp */, - 0008E6E819F1AAFF0091588D /* xa.cpp */, - 20CEFB1A1E08A8CB0077879C /* xmp.cpp */, - ); - name = src; - path = ../../source/audiolib/src; - sourceTree = ""; - }; - 0008E8A019F1AC530091588D /* include */ = { - isa = PBXGroup; - children = ( - 0008E8A119F1AC530091588D /* a.h */, - 0008E9A319F1AD9B0091588D /* animvpx.h */, - 0008E8A219F1AC530091588D /* baselayer.h */, - 0008E8A319F1AC530091588D /* build.h */, - 20CEFB201E08A9130077879C /* buildtypes.h */, - 0008E8A419F1AC530091588D /* cache1d.h */, - 20CEFB231E08A91D0077879C /* clip.h */, - 20FD1D471C44E4BE00C2E553 /* colmatch.h */, - 0008E8A519F1AC530091588D /* common.h */, - 0008E8A619F1AC530091588D /* compat.h */, - 0008E8A719F1AC530091588D /* crc32.h */, - 0008E8A819F1AC530091588D /* dxdidf.h */, - 0008E8A919F1AC530091588D /* dxtfilter.h */, - 0008E8AB19F1AC530091588D /* editor.h */, - 0008E8AC19F1AC530091588D /* glbuild.h */, - 0008E8AD19F1AC530091588D /* glext.h */, - 20CEFB1D1E08A8FD0077879C /* hash.h */, - 0008E8AF19F1AC530091588D /* hightile.h */, - 206B3A051B074F3000E5DBD0 /* jwzgles.h */, - 206B3A061B074F3000E5DBD0 /* jwzglesI.h */, - 0008E8B019F1AC530091588D /* kplib.h */, - 2038AE951A8F122D0093B7B2 /* libdivide.h */, - 0008E8B219F1AC530091588D /* lz4.h */, - 0008E8B419F1AC530091588D /* m32script.h */, - 2038AE981A8F12590093B7B2 /* md4.h */, - 0008E8B519F1AC530091588D /* mdsprite.h */, - 0008E8B619F1AC530091588D /* mmulti.h */, - 0008E8BA19F1AC530091588D /* mutex.h */, - 0008E8BB19F1AC530091588D /* osd.h */, - 0008E8BC19F1AC530091588D /* osxbits.h */, - 2044C9831E089F2500A8C543 /* palette.h */, - 0008E8BE19F1AC530091588D /* polymer.h */, - 0008E8BF19F1AC530091588D /* polymost.h */, - 0008E8C019F1AC530091588D /* pragmas.h */, - 0008E8C119F1AC530091588D /* pragmas_arm.h */, - 0008E8C219F1AC530091588D /* pragmas_ppc.h */, - 0008E8C319F1AC530091588D /* pragmas_x86_gcc.h */, - 0008E8C519F1AC530091588D /* prlights.h */, - 0008E8C619F1AC530091588D /* rawinput.h */, - 0008E8C719F1AC530091588D /* renderlayer.h */, - 0008E8C819F1AC530091588D /* scancodes.h */, - 0008E8C919F1AC530091588D /* scriptfile.h */, - 0008E8CA19F1AC530091588D /* sdl_inc.h */, - 0008E8CB19F1AC530091588D /* sdlappicon.h */, - 0008E8CC19F1AC530091588D /* sdlayer.h */, - 0008E8CF19F1AC530091588D /* texcache.h */, - 0008E8D019F1AC530091588D /* tracker.hpp */, - 0008E8D119F1AC530091588D /* tracker_operator.hpp */, - 0008E8D219F1AC530091588D /* tracker_operators.hpp */, - 0008E8D519F1AC530091588D /* xxhash.h */, - ); - name = include; - path = ../../source/build/include; - sourceTree = ""; - }; - 0008E8D619F1AC530091588D /* src */ = { - isa = PBXGroup; - children = ( - 204D6B541C98973F001FA505 /* etcpak */, - 20CEFB111E08A86B0077879C /* 2d.cpp */, - 00970E3319F207F000873EB9 /* a-c.cpp */, - 0008E9A219F1AD9B0091588D /* animvpx.cpp */, - 20C2146E1B02C1D800917E58 /* build.png */, - 0008E8DC19F1AC530091588D /* baselayer.cpp */, - 0008E8DD19F1AC530091588D /* build.cpp */, - 0008E8DE19F1AC530091588D /* cache1d.cpp */, - 2044C98C1E08A69700A8C543 /* clip.cpp */, - 20FD1D501C44E4E700C2E553 /* colmatch.cpp */, - 0008E8DF19F1AC530091588D /* common.cpp */, - 0008E8E019F1AC530091588D /* compat.cpp */, - 0008E8E119F1AC530091588D /* config.cpp */, - 0008E8E219F1AC530091588D /* crc32.cpp */, - 0008E8E319F1AC530091588D /* defs.cpp */, - 0008E8E419F1AC530091588D /* dxtfilter.cpp */, - 0008E8E619F1AC530091588D /* engine.cpp */, - 0008E8E719F1AC540091588D /* engine_oldmap.h */, - 0008E8E819F1AC540091588D /* engine_priv.h */, - 0008E8E919F1AC540091588D /* glbuild.cpp */, - 20CEFB171E08A8830077879C /* hash.cpp */, - 0008E8EB19F1AC540091588D /* hightile.cpp */, - 206B3A0B1B074F6400E5DBD0 /* jwzgles.c */, - 0008E8EC19F1AC540091588D /* kplib.cpp */, - 0008E8EE19F1AC540091588D /* lz4.c */, - 2038AE9B1A8F126C0093B7B2 /* md4.cpp */, - 0008E8F019F1AC540091588D /* mdsprite.cpp */, - 2044C9981E08A72200A8C543 /* mhk.cpp */, - 0008E8F619F1AC540091588D /* mmulti_null.cpp */, - 0008E8F719F1AC540091588D /* mutex.cpp */, - 0008E8F819F1AC540091588D /* osd.cpp */, - 0008E8F919F1AC540091588D /* osxbits.mm */, - 2044C9891E08A66B00A8C543 /* palette.cpp */, - 0008E8FA19F1AC540091588D /* polymer.cpp */, - 0008E8FB19F1AC540091588D /* polymost.cpp */, - 0008E8FC19F1AC540091588D /* pragmas.cpp */, - 0008E9D219F1AD9B0091588D /* rev.cpp */, - 2044C98F1E08A6BC00A8C543 /* screenshot.cpp */, - 0008E8FE19F1AC540091588D /* scriptfile.cpp */, - 0008E8FF19F1AC540091588D /* sdlayer.cpp */, - 0008E90019F1AC540091588D /* sdlkeytrans.cpp */, - 0008E90219F1AC540091588D /* smalltextfont.cpp */, - 0008E90419F1AC540091588D /* startosx.editor.mm */, - 0008E90619F1AC540091588D /* texcache.cpp */, - 0008E90719F1AC540091588D /* textfont.cpp */, - 2044C99B1E08A74100A8C543 /* tiles.cpp */, - 0008E91F19F1AC540091588D /* voxmodel.cpp */, - 0008E92219F1AC540091588D /* xxhash.c */, - ); - name = src; - path = ../../source/build/src; - sourceTree = ""; - }; - 0008EA4D19F1B03A0091588D /* ENet */ = { - isa = PBXGroup; - children = ( - 0008EA4E19F1B04F0091588D /* include */, - 0008EA5919F1B04F0091588D /* src */, - ); - name = ENet; - sourceTree = ""; - }; - 0008EA4E19F1B04F0091588D /* include */ = { - isa = PBXGroup; - children = ( - 0008EA4F19F1B04F0091588D /* enet */, - ); - name = include; - path = ../../source/enet/include; - sourceTree = ""; - }; - 0008EA4F19F1B04F0091588D /* enet */ = { - isa = PBXGroup; - children = ( - 0008EA5019F1B04F0091588D /* callbacks.h */, - 0008EA5119F1B04F0091588D /* enet.h */, - 0008EA5219F1B04F0091588D /* list.h */, - 0008EA5319F1B04F0091588D /* protocol.h */, - 0008EA5419F1B04F0091588D /* time.h */, - 0008EA5519F1B04F0091588D /* types.h */, - 0008EA5619F1B04F0091588D /* unix.h */, - 0008EA5719F1B04F0091588D /* utility.h */, - 0008EA5819F1B04F0091588D /* win32.h */, - ); - path = enet; - sourceTree = ""; - }; - 0008EA5919F1B04F0091588D /* src */ = { - isa = PBXGroup; - children = ( - 0008EA5A19F1B04F0091588D /* callbacks.c */, - 0008EA5B19F1B04F0091588D /* compress.c */, - 0008EA5C19F1B04F0091588D /* host.c */, - 0008EA5D19F1B04F0091588D /* list.c */, - 0008EA5E19F1B04F0091588D /* packet.c */, - 0008EA5F19F1B04F0091588D /* peer.c */, - 0008EA6019F1B04F0091588D /* protocol.c */, - 0008EA6119F1B04F0091588D /* unix.c */, - 0008EA6219F1B04F0091588D /* win32.c */, - ); - name = src; - path = ../../source/enet/src; - sourceTree = ""; - }; - 000C487319F35517006E6B52 /* iOS */ = { - isa = PBXGroup; - children = ( - 000C487519F35517006E6B52 /* Info.plist */, - 000C487619F35517006E6B52 /* InfoPlist.strings */, - 000C487F19F35517006E6B52 /* Images.xcassets */, - ); - path = iOS; - sourceTree = SOURCE_ROOT; - }; - 000C48CF19F35D6E006E6B52 /* Products */ = { - isa = PBXGroup; - children = ( - 000C48D419F35D6E006E6B52 /* libSDL2.a */, - ); - name = Products; - sourceTree = ""; - }; - 000C48EC19F35DD7006E6B52 /* Products */ = { - isa = PBXGroup; - children = ( - 000C48F019F35DD7006E6B52 /* libSDL2_mixer.a */, - ); - name = Products; - sourceTree = ""; - }; - 00970E1A19F2074300873EB9 /* Libraries */ = { - isa = PBXGroup; - children = ( - 00970E1E19F2076B00873EB9 /* libSDL2_mixer.a */, - 00970E1F19F2076B00873EB9 /* libSDL2.a */, - 00970E1B19F2076B00873EB9 /* libFLAC.a */, - 00970E2019F2076B00873EB9 /* libvorbis.a */, - 00970E2119F2076B00873EB9 /* libvorbisfile.a */, - 00970E1C19F2076B00873EB9 /* libogg.a */, - 00970E2219F2076B00873EB9 /* libvpx.a */, - ); - name = Libraries; - sourceTree = ""; - }; - 204D6B541C98973F001FA505 /* etcpak */ = { - isa = PBXGroup; - children = ( - 204D6B571C98973F001FA505 /* Math.hpp */, - 204D6B581C98973F001FA505 /* ProcessCommon.hpp */, - 204D6B591C98973F001FA505 /* ProcessRGB.cpp */, - 204D6B5A1C98973F001FA505 /* ProcessRGB.hpp */, - 204D6B5B1C98973F001FA505 /* Tables.cpp */, - 204D6B5C1C98973F001FA505 /* Tables.hpp */, - 204D6B5D1C98973F001FA505 /* Types.hpp */, - 204D6B5E1C98973F001FA505 /* Vector.hpp */, - ); - name = etcpak; - path = ../../source/etcpak; - sourceTree = SOURCE_ROOT; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 0008E6B519F1A9260091588D /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 20CEFB241E08A91D0077879C /* clip.h in Headers */, - 0008E96519F1AC540091588D /* engine_priv.h in Headers */, - 0008E92919F1AC540091588D /* crc32.h in Headers */, - 0008E94919F1AC540091588D /* scancodes.h in Headers */, - 0008E93D19F1AC540091588D /* osxbits.h in Headers */, - 0008E93B19F1AC540091588D /* mutex.h in Headers */, - 0008E94B19F1AC540091588D /* sdl_inc.h in Headers */, - 2044C9841E089F2500A8C543 /* palette.h in Headers */, - 0008E92819F1AC540091588D /* compat.h in Headers */, - 0008E93C19F1AC540091588D /* osd.h in Headers */, - 0008E93F19F1AC540091588D /* polymer.h in Headers */, - 0008E93619F1AC540091588D /* m32script.h in Headers */, - 0008E95019F1AC540091588D /* texcache.h in Headers */, - 0008EA0C19F1ADE70091588D /* build.h in Headers */, - 0008E94619F1AC540091588D /* prlights.h in Headers */, - 0008E94819F1AC540091588D /* renderlayer.h in Headers */, - 0008E96419F1AC540091588D /* engine_oldmap.h in Headers */, - 0008E94419F1AC540091588D /* pragmas_x86_gcc.h in Headers */, - 0008E92319F1AC540091588D /* a.h in Headers */, - 20FD1D481C44E4BE00C2E553 /* colmatch.h in Headers */, - 0008E94119F1AC540091588D /* pragmas.h in Headers */, - 0008E94C19F1AC540091588D /* sdlappicon.h in Headers */, - 0008E95119F1AC540091588D /* tracker.hpp in Headers */, - 0008E93119F1AC540091588D /* hightile.h in Headers */, - 0008E92E19F1AC540091588D /* glbuild.h in Headers */, - 0008E95219F1AC540091588D /* tracker_operator.hpp in Headers */, - 0008E94719F1AC540091588D /* rawinput.h in Headers */, - 0008E92719F1AC540091588D /* common.h in Headers */, - 0008E94219F1AC540091588D /* pragmas_arm.h in Headers */, - 0008E92B19F1AC540091588D /* dxtfilter.h in Headers */, - 0008E93219F1AC540091588D /* kplib.h in Headers */, - 0008E93419F1AC540091588D /* lz4.h in Headers */, - 20CEFB1E1E08A8FD0077879C /* hash.h in Headers */, - 0008E92A19F1AC540091588D /* dxdidf.h in Headers */, - 0008E92419F1AC540091588D /* baselayer.h in Headers */, - 0008E94A19F1AC540091588D /* scriptfile.h in Headers */, - 2038AE991A8F12590093B7B2 /* md4.h in Headers */, - 0008E92D19F1AC540091588D /* editor.h in Headers */, - 0008E93719F1AC540091588D /* mdsprite.h in Headers */, - 0008E95319F1AC540091588D /* tracker_operators.hpp in Headers */, - 0008E92F19F1AC540091588D /* glext.h in Headers */, - 0008E95619F1AC540091588D /* xxhash.h in Headers */, - 0008E94319F1AC540091588D /* pragmas_ppc.h in Headers */, - 0008E94019F1AC540091588D /* polymost.h in Headers */, - 20CEFB211E08A9130077879C /* buildtypes.h in Headers */, - 0008E94D19F1AC540091588D /* sdlayer.h in Headers */, - 2038AE961A8F122D0093B7B2 /* libdivide.h in Headers */, - 0008E92619F1AC540091588D /* cache1d.h in Headers */, - 0008E93819F1AC540091588D /* mmulti.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E6C019F1A9AF0091588D /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0008E74419F1ABB80091588D /* mouse.h in Headers */, - 0008E73E19F1ABB80091588D /* joystick.h in Headers */, - 0008E73A19F1ABB80091588D /* control.h in Headers */, - 0008E73619F1ABB80091588D /* _scrplib.h in Headers */, - 0008E74619F1ABB80091588D /* scriplib.h in Headers */, - 0008E73519F1ABB80091588D /* _control.h in Headers */, - 0008E73819F1ABB80091588D /* animlib.h in Headers */, - 0008E74019F1ABB80091588D /* keyboard.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E6C819F1AAA30091588D /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0008E6F819F1AAFF0091588D /* linklist.h in Headers */, - 0008E6EA19F1AAFF0091588D /* music.h in Headers */, - 0008E6E919F1AAFF0091588D /* fx_man.h in Headers */, - 0008E6EC19F1AAFF0091588D /* _multivc.h in Headers */, - 0008E6F219F1AAFF0091588D /* driver_sdl.h in Headers */, - 0008E6FD19F1AAFF0091588D /* multivoc.h in Headers */, - 0008E6FF19F1AAFF0091588D /* pitch.h in Headers */, - 20CA2FA71BB2456E001231BF /* drivers.h in Headers */, - 00970E5119F2108600873EB9 /* driver_nosound.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008EA4719F1B0020091588D /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0008EA6919F1B04F0091588D /* unix.h in Headers */, - 0008EA6819F1B04F0091588D /* types.h in Headers */, - 0008EA6719F1B04F0091588D /* time.h in Headers */, - 0008EA6B19F1B04F0091588D /* win32.h in Headers */, - 0008EA6A19F1B04F0091588D /* utility.h in Headers */, - 0008EA6419F1B04F0091588D /* enet.h in Headers */, - 0008EA6519F1B04F0091588D /* list.h in Headers */, - 0008EA6619F1B04F0091588D /* protocol.h in Headers */, - 0008EA6319F1B04F0091588D /* callbacks.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 001382AD19F361B60007DA6C /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 001382AE19F361B60007DA6C /* engine_priv.h in Headers */, - 001382AF19F361B60007DA6C /* crc32.h in Headers */, - 001382B019F361B60007DA6C /* scancodes.h in Headers */, - 001382B119F361B60007DA6C /* osxbits.h in Headers */, - 20CEFB251E08A91D0077879C /* clip.h in Headers */, - 001382B219F361B60007DA6C /* mutex.h in Headers */, - 001382B319F361B60007DA6C /* sdl_inc.h in Headers */, - 001382B419F361B60007DA6C /* compat.h in Headers */, - 001382B519F361B60007DA6C /* osd.h in Headers */, - 001382B619F361B60007DA6C /* polymer.h in Headers */, - 001382B719F361B60007DA6C /* m32script.h in Headers */, - 001382B919F361B60007DA6C /* texcache.h in Headers */, - 20FD1D491C44E4BE00C2E553 /* colmatch.h in Headers */, - 001382BA19F361B60007DA6C /* build.h in Headers */, - 001382BB19F361B60007DA6C /* prlights.h in Headers */, - 001382BC19F361B60007DA6C /* renderlayer.h in Headers */, - 20CEFB1F1E08A8FD0077879C /* hash.h in Headers */, - 001382BD19F361B60007DA6C /* engine_oldmap.h in Headers */, - 001382BE19F361B60007DA6C /* pragmas_x86_gcc.h in Headers */, - 001382BF19F361B60007DA6C /* a.h in Headers */, - 001382C119F361B60007DA6C /* pragmas.h in Headers */, - 001382C219F361B60007DA6C /* sdlappicon.h in Headers */, - 204D6B661C98973F001FA505 /* Vector.hpp in Headers */, - 206B3A0A1B074F4300E5DBD0 /* jwzgles.h in Headers */, - 001382C319F361B60007DA6C /* tracker.hpp in Headers */, - 204D6B651C98973F001FA505 /* Types.hpp in Headers */, - 204D6B5F1C98973F001FA505 /* Math.hpp in Headers */, - 001382C419F361B60007DA6C /* hightile.h in Headers */, - 001382C519F361B60007DA6C /* glbuild.h in Headers */, - 001382C619F361B60007DA6C /* tracker_operator.hpp in Headers */, - 001382C719F361B60007DA6C /* rawinput.h in Headers */, - 001382C819F361B60007DA6C /* common.h in Headers */, - 204D6B621C98973F001FA505 /* ProcessRGB.hpp in Headers */, - 20CEFB221E08A9130077879C /* buildtypes.h in Headers */, - 001382C919F361B60007DA6C /* pragmas_arm.h in Headers */, - 001382CA19F361B60007DA6C /* dxtfilter.h in Headers */, - 001382CB19F361B60007DA6C /* kplib.h in Headers */, - 001382CC19F361B60007DA6C /* lz4.h in Headers */, - 206B3A081B074F3800E5DBD0 /* jwzglesI.h in Headers */, - 001382CE19F361B60007DA6C /* dxdidf.h in Headers */, - 001382CF19F361B60007DA6C /* baselayer.h in Headers */, - 001382D019F361B60007DA6C /* scriptfile.h in Headers */, - 2038AE9A1A8F12590093B7B2 /* md4.h in Headers */, - 001382D119F361B60007DA6C /* editor.h in Headers */, - 001382D219F361B60007DA6C /* mdsprite.h in Headers */, - 001382D319F361B60007DA6C /* tracker_operators.hpp in Headers */, - 001382D419F361B60007DA6C /* glext.h in Headers */, - 001382D519F361B60007DA6C /* xxhash.h in Headers */, - 001382D619F361B60007DA6C /* pragmas_ppc.h in Headers */, - 001382D719F361B60007DA6C /* polymost.h in Headers */, - 001382D819F361B60007DA6C /* sdlayer.h in Headers */, - 2038AE971A8F122D0093B7B2 /* libdivide.h in Headers */, - 204D6B601C98973F001FA505 /* ProcessCommon.hpp in Headers */, - 001382D919F361B60007DA6C /* cache1d.h in Headers */, - 204D6B641C98973F001FA505 /* Tables.hpp in Headers */, - 001382DA19F361B60007DA6C /* mmulti.h in Headers */, - 2044C9851E089F2500A8C543 /* palette.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 001382EA19F361B80007DA6C /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 001382EB19F361B80007DA6C /* mouse.h in Headers */, - 001382ED19F361B80007DA6C /* joystick.h in Headers */, - 001382EE19F361B80007DA6C /* control.h in Headers */, - 001382EF19F361B80007DA6C /* _scrplib.h in Headers */, - 001382F119F361B80007DA6C /* scriplib.h in Headers */, - 001382F219F361B80007DA6C /* _control.h in Headers */, - 001382F319F361B80007DA6C /* animlib.h in Headers */, - 001382F419F361B80007DA6C /* keyboard.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0013830C19F361BB0007DA6C /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0013830D19F361BB0007DA6C /* linklist.h in Headers */, - 0013830E19F361BB0007DA6C /* music.h in Headers */, - 0013831019F361BB0007DA6C /* fx_man.h in Headers */, - 0013831119F361BB0007DA6C /* _multivc.h in Headers */, - 0013831219F361BB0007DA6C /* driver_sdl.h in Headers */, - 0013831319F361BB0007DA6C /* multivoc.h in Headers */, - 0013831519F361BB0007DA6C /* pitch.h in Headers */, - 20CA2FA81BB2456E001231BF /* drivers.h in Headers */, - 0013831619F361BB0007DA6C /* driver_nosound.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 0008E64A19F1A66E0091588D /* EDuke32 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0008E67A19F1A66E0091588D /* Build configuration list for PBXNativeTarget "EDuke32" */; - buildPhases = ( - 0008E64719F1A66E0091588D /* Sources */, - 0008E64819F1A66E0091588D /* Frameworks */, - 0008E64919F1A66E0091588D /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 0008EA7619F1B16A0091588D /* PBXTargetDependency */, - 0008EA2D19F1AF3B0091588D /* PBXTargetDependency */, - 0008EA2B19F1AF380091588D /* PBXTargetDependency */, - 0008EA2919F1AF350091588D /* PBXTargetDependency */, - ); - name = EDuke32; - productName = EDuke32; - productReference = 0008E64B19F1A66E0091588D /* EDuke32.app */; - productType = "com.apple.product-type.application"; - }; - 0008E68519F1A8F10091588D /* Mapster32 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0008E6AD19F1A8F20091588D /* Build configuration list for PBXNativeTarget "Mapster32" */; - buildPhases = ( - 0008E68219F1A8F10091588D /* Sources */, - 0008E68319F1A8F10091588D /* Frameworks */, - 0008E68419F1A8F10091588D /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 0008EA3319F1AF450091588D /* PBXTargetDependency */, - 0008EA3119F1AF420091588D /* PBXTargetDependency */, - 0008EA2F19F1AF3F0091588D /* PBXTargetDependency */, - ); - name = Mapster32; - productName = Mapster32; - productReference = 0008E68619F1A8F10091588D /* Mapster32.app */; - productType = "com.apple.product-type.application"; - }; - 0008E6B619F1A9260091588D /* BUILD */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0008E6B819F1A9260091588D /* Build configuration list for PBXNativeTarget "BUILD" */; - buildPhases = ( - 0008E6B319F1A9260091588D /* Sources */, - 0008E6B419F1A9260091588D /* Frameworks */, - 0008E6B519F1A9260091588D /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = BUILD; - productName = BUILD; - productReference = 0008E6B719F1A9260091588D /* libBUILD.a */; - productType = "com.apple.product-type.library.static"; - }; - 0008E6C119F1A9AF0091588D /* MACT */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0008E6C319F1A9AF0091588D /* Build configuration list for PBXNativeTarget "MACT" */; - buildPhases = ( - 0008E6BE19F1A9AF0091588D /* Sources */, - 0008E6BF19F1A9AF0091588D /* Frameworks */, - 0008E6C019F1A9AF0091588D /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = MACT; - productName = MACT; - productReference = 0008E6C219F1A9AF0091588D /* libMACT.a */; - productType = "com.apple.product-type.library.static"; - }; - 0008E6C919F1AAA30091588D /* AudioLib */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0008E6CB19F1AAA30091588D /* Build configuration list for PBXNativeTarget "AudioLib" */; - buildPhases = ( - 0008E6C619F1AAA30091588D /* Sources */, - 0008E6C719F1AAA30091588D /* Frameworks */, - 0008E6C819F1AAA30091588D /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = AudioLib; - productName = AudioLib; - productReference = 0008E6CA19F1AAA30091588D /* libAudioLib.a */; - productType = "com.apple.product-type.library.static"; - }; - 0008EA4819F1B0020091588D /* ENet */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0008EA4A19F1B0020091588D /* Build configuration list for PBXNativeTarget "ENet" */; - buildPhases = ( - 0008EA4519F1B0020091588D /* Sources */, - 0008EA4619F1B0020091588D /* Frameworks */, - 0008EA4719F1B0020091588D /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = ENet; - productName = ENet; - productReference = 0008EA4919F1B0020091588D /* libENet.a */; - productType = "com.apple.product-type.library.static"; - }; - 000C486B19F35516006E6B52 /* EDuke32-iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 000C489719F35517006E6B52 /* Build configuration list for PBXNativeTarget "EDuke32-iOS" */; - buildPhases = ( - 000C486819F35516006E6B52 /* Sources */, - 000C486919F35516006E6B52 /* Frameworks */, - 000C486A19F35516006E6B52 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "EDuke32-iOS"; - productName = "EDuke32-iOS"; - productReference = 000C486C19F35516006E6B52 /* EDuke32-iOS.app */; - productType = "com.apple.product-type.application"; - }; - 0013828919F361B60007DA6C /* BUILD-iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 001382DB19F361B60007DA6C /* Build configuration list for PBXNativeTarget "BUILD-iOS" */; - buildPhases = ( - 0013828A19F361B60007DA6C /* Sources */, - 001382A919F361B60007DA6C /* Frameworks */, - 001382AD19F361B60007DA6C /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "BUILD-iOS"; - productName = BUILD; - productReference = 001382DE19F361B60007DA6C /* libBUILD-iOS.a */; - productType = "com.apple.product-type.library.static"; - }; - 001382DF19F361B80007DA6C /* MACT-iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 001382F519F361B80007DA6C /* Build configuration list for PBXNativeTarget "MACT-iOS" */; - buildPhases = ( - 001382E019F361B80007DA6C /* Sources */, - 001382E919F361B80007DA6C /* Frameworks */, - 001382EA19F361B80007DA6C /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "MACT-iOS"; - productName = MACT; - productReference = 001382F819F361B80007DA6C /* libMACT-iOS.a */; - productType = "com.apple.product-type.library.static"; - }; - 001382F919F361BB0007DA6C /* AudioLib-iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0013831819F361BB0007DA6C /* Build configuration list for PBXNativeTarget "AudioLib-iOS" */; - buildPhases = ( - 001382FA19F361BB0007DA6C /* Sources */, - 0013830719F361BB0007DA6C /* Frameworks */, - 0013830C19F361BB0007DA6C /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "AudioLib-iOS"; - productName = AudioLib; - productReference = 0013831B19F361BB0007DA6C /* libAudioLib-iOS.a */; - productType = "com.apple.product-type.library.static"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 0008E64119F1A5AA0091588D /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0810; - ORGANIZATIONNAME = Voidpoint; - TargetAttributes = { - 000C486B19F35516006E6B52 = { - DevelopmentTeam = 7562P9P72J; - }; - }; - }; - buildConfigurationList = 0008E64419F1A5AA0091588D /* Build configuration list for PBXProject "EDuke32" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 0008E64019F1A5AA0091588D; - productRefGroup = 0008E64C19F1A66E0091588D /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 000C48CF19F35D6E006E6B52 /* Products */; - ProjectRef = 000C48CE19F35D6E006E6B52 /* SDL.xcodeproj */; - }, - { - ProductGroup = 000C48EC19F35DD7006E6B52 /* Products */; - ProjectRef = 000C48EB19F35DD7006E6B52 /* SDL_mixer.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - 0008EA3419F1AFA70091588D /* OS X */, - 0008E64A19F1A66E0091588D /* EDuke32 */, - 0008E68519F1A8F10091588D /* Mapster32 */, - 0008EA4819F1B0020091588D /* ENet */, - 0008E6B619F1A9260091588D /* BUILD */, - 0008E6C119F1A9AF0091588D /* MACT */, - 0008E6C919F1AAA30091588D /* AudioLib */, - 000C486B19F35516006E6B52 /* EDuke32-iOS */, - 0013828919F361B60007DA6C /* BUILD-iOS */, - 001382DF19F361B80007DA6C /* MACT-iOS */, - 001382F919F361BB0007DA6C /* AudioLib-iOS */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 000C48D419F35D6E006E6B52 /* libSDL2.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libSDL2.a; - remoteRef = 000C48D319F35D6E006E6B52 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 000C48F019F35DD7006E6B52 /* libSDL2_mixer.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libSDL2_mixer.a; - remoteRef = 000C48EF19F35DD7006E6B52 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 0008E64919F1A66E0091588D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 20C2146A1B02C19800917E58 /* game.png in Resources */, - 0008EA2019F1AEFC0091588D /* eduke32.icns in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E68419F1A8F10091588D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 20C2146F1B02C1D800917E58 /* build.png in Resources */, - 0008EA2319F1AF010091588D /* eduke32.icns in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 000C486A19F35516006E6B52 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2038AEA31A8F137E0093B7B2 /* DUKE.RTS in Resources */, - 000C487819F35517006E6B52 /* InfoPlist.strings in Resources */, - 000C488019F35517006E6B52 /* Images.xcassets in Resources */, - 00CD003219F374ED00636963 /* duke3d.grp in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 0008E64719F1A66E0091588D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0008E9F519F1AD9B0091588D /* namesdyn.cpp in Sources */, - 20E16CE81C7022DE00EE8446 /* screens.cpp in Sources */, - 0008E9EB19F1AD9B0091588D /* gamedef.cpp in Sources */, - 20F7124D1C6C19E5006B68D0 /* screentext.cpp in Sources */, - 0008EA0219F1AD9B0091588D /* soundsdyn.cpp in Sources */, - 0008E9EF19F1AD9B0091588D /* gamevars.cpp in Sources */, - 0008E9EC19F1AD9B0091588D /* gameexec.cpp in Sources */, - 20F712511C6C19F4006B68D0 /* sbar.cpp in Sources */, - 20E16CE11C7022C300EE8446 /* cmdline.cpp in Sources */, - 0008E9FB19F1AD9B0091588D /* rev.cpp in Sources */, - 0008E9EA19F1AD9B0091588D /* game.cpp in Sources */, - 0008EA0719F1ADC90091588D /* common.cpp in Sources */, - 0008E9E619F1AD9B0091588D /* animvpx.cpp in Sources */, - 0008E9F619F1AD9B0091588D /* network.cpp in Sources */, - 0008E9F219F1AD9B0091588D /* grpscan.cpp in Sources */, - 0008EA0119F1AD9B0091588D /* sounds.cpp in Sources */, - 0008E9E419F1AD9B0091588D /* actors.cpp in Sources */, - 0008EA0319F1AD9B0091588D /* startosx.game.mm in Sources */, - 0008E9ED19F1AD9B0091588D /* GameListSource.game.mm in Sources */, - 0008E9F319F1AD9B0091588D /* input.cpp in Sources */, - 0008E9FE19F1AD9B0091588D /* sdlmusic.cpp in Sources */, - 0008E9FA19F1AD9B0091588D /* premap.cpp in Sources */, - 0008E9F419F1AD9B0091588D /* menus.cpp in Sources */, - 0008E9E519F1AD9B0091588D /* anim.cpp in Sources */, - 0008E9E819F1AD9B0091588D /* demo.cpp in Sources */, - 0008E9FC19F1AD9B0091588D /* rts.cpp in Sources */, - 0008E9F019F1AD9B0091588D /* global.cpp in Sources */, - 0008EA0019F1AD9B0091588D /* sector.cpp in Sources */, - 0008E9F119F1AD9B0091588D /* GrpFile.game.mm in Sources */, - 0008E9F719F1AD9B0091588D /* osdcmds.cpp in Sources */, - 0008E9F819F1AD9B0091588D /* osdfuncs.cpp in Sources */, - 0008E9FD19F1AD9B0091588D /* savegame.cpp in Sources */, - 20F712551C6C1A07006B68D0 /* cheats.cpp in Sources */, - 0008E9F919F1AD9B0091588D /* player.cpp in Sources */, - 0008E9E719F1AD9B0091588D /* config.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E68219F1A8F10091588D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0006DA2319F214A600A17995 /* grpscan.cpp in Sources */, - 00970E5219F210C100873EB9 /* rev.cpp in Sources */, - 0008EA0919F1ADD80091588D /* build.cpp in Sources */, - 0008EA1919F1AE820091588D /* m32exec.cpp in Sources */, - 0008EA0B19F1ADD80091588D /* startosx.editor.mm in Sources */, - 0008EA1619F1AE820091588D /* astub.cpp in Sources */, - 0008EA1719F1AE820091588D /* m32common.cpp in Sources */, - 0008EA0A19F1ADD80091588D /* config.cpp in Sources */, - 0008EA0819F1ADC90091588D /* common.cpp in Sources */, - 0008EA1C19F1AE820091588D /* sounds_mapster32.cpp in Sources */, - 0008EA1B19F1AE820091588D /* m32vars.cpp in Sources */, - 0008EA1819F1AE820091588D /* m32def.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E6B319F1A9260091588D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0008E97B19F1AC540091588D /* sdlayer.cpp in Sources */, - 0008E95D19F1AC540091588D /* compat.cpp in Sources */, - 0008E96919F1AC540091588D /* kplib.cpp in Sources */, - 0008E96319F1AC540091588D /* engine.cpp in Sources */, - 0008E99519F1AC540091588D /* voxmodel.cpp in Sources */, - 2044C98A1E08A66B00A8C543 /* palette.cpp in Sources */, - 0008E97819F1AC540091588D /* pragmas.cpp in Sources */, - 0008E95C19F1AC540091588D /* common.cpp in Sources */, - 0008E97319F1AC540091588D /* mutex.cpp in Sources */, - 2038AE9C1A8F126C0093B7B2 /* md4.cpp in Sources */, - 0008E97519F1AC540091588D /* osxbits.mm in Sources */, - 20CEFB121E08A86B0077879C /* 2d.cpp in Sources */, - 0008E95F19F1AC540091588D /* crc32.cpp in Sources */, - 20CEFB181E08A8830077879C /* hash.cpp in Sources */, - 0008E98219F1AC540091588D /* texcache.cpp in Sources */, - 0008E95B19F1AC540091588D /* cache1d.cpp in Sources */, - 0008E97E19F1AC540091588D /* smalltextfont.cpp in Sources */, - 0008E97619F1AC540091588D /* polymer.cpp in Sources */, - 0008E97219F1AC540091588D /* mmulti_null.cpp in Sources */, - 2044C9991E08A72200A8C543 /* mhk.cpp in Sources */, - 2044C9901E08A6BC00A8C543 /* screenshot.cpp in Sources */, - 00970E3419F207F000873EB9 /* a-c.cpp in Sources */, - 0008E98319F1AC540091588D /* textfont.cpp in Sources */, - 0008E96D19F1AC540091588D /* mdsprite.cpp in Sources */, - 0008E96019F1AC540091588D /* defs.cpp in Sources */, - 2044C99C1E08A74100A8C543 /* tiles.cpp in Sources */, - 0008E95919F1AC540091588D /* baselayer.cpp in Sources */, - 0008E99819F1AC540091588D /* xxhash.c in Sources */, - 0008E97A19F1AC540091588D /* scriptfile.cpp in Sources */, - 0008E97719F1AC540091588D /* polymost.cpp in Sources */, - 0008E96819F1AC540091588D /* hightile.cpp in Sources */, - 0008E96119F1AC540091588D /* dxtfilter.cpp in Sources */, - 0008E96B19F1AC540091588D /* lz4.c in Sources */, - 0008E97419F1AC540091588D /* osd.cpp in Sources */, - 20FD1D511C44E4E700C2E553 /* colmatch.cpp in Sources */, - 0008E96619F1AC540091588D /* glbuild.cpp in Sources */, - 2044C98D1E08A69700A8C543 /* clip.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E6BE19F1A9AF0091588D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0008E73F19F1ABB80091588D /* keyboard.cpp in Sources */, - 0008E73719F1ABB80091588D /* animlib.cpp in Sources */, - 0008E73919F1ABB80091588D /* control.cpp in Sources */, - 0008E74519F1ABB80091588D /* scriplib.cpp in Sources */, - 0008E73D19F1ABB80091588D /* joystick.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008E6C619F1AAA30091588D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0008E6F719F1AAFF0091588D /* fx_man.cpp in Sources */, - 0008E6F619F1AAFF0091588D /* formats.cpp in Sources */, - 0008E6F519F1AAFF0091588D /* flac.cpp in Sources */, - 0008E6FB19F1AAFF0091588D /* mixst.cpp in Sources */, - 0008E70119F1AAFF0091588D /* xa.cpp in Sources */, - 20CEFB1B1E08A8CB0077879C /* xmp.cpp in Sources */, - 0008E6FC19F1AAFF0091588D /* multivoc.cpp in Sources */, - 0008E6FE19F1AAFF0091588D /* pitch.cpp in Sources */, - 0008E6F119F1AAFF0091588D /* driver_sdl.cpp in Sources */, - 0008E6FA19F1AAFF0091588D /* mix.cpp in Sources */, - 0008E6F319F1AAFF0091588D /* drivers.cpp in Sources */, - 00970E5019F2108600873EB9 /* driver_nosound.cpp in Sources */, - 0008E70019F1AAFF0091588D /* vorbis.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0008EA4519F1B0020091588D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0008EA7219F1B04F0091588D /* protocol.c in Sources */, - 0008EA6C19F1B04F0091588D /* callbacks.c in Sources */, - 0008EA6D19F1B04F0091588D /* compress.c in Sources */, - 0008EA7319F1B04F0091588D /* unix.c in Sources */, - 0008EA6E19F1B04F0091588D /* host.c in Sources */, - 0008EA6F19F1B04F0091588D /* list.c in Sources */, - 0008EA7419F1B04F0091588D /* win32.c in Sources */, - 0008EA7019F1B04F0091588D /* packet.c in Sources */, - 0008EA7119F1B04F0091588D /* peer.c in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 000C486819F35516006E6B52 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 000C48A319F35601006E6B52 /* global.cpp in Sources */, - 20E16CE21C7022C300EE8446 /* cmdline.cpp in Sources */, - 000C489B19F35601006E6B52 /* anim.cpp in Sources */, - 000C48B319F35601006E6B52 /* sounds.cpp in Sources */, - 000C48AE19F35601006E6B52 /* rev.cpp in Sources */, - 000C48B419F35601006E6B52 /* soundsdyn.cpp in Sources */, - 000C48A519F35601006E6B52 /* grpscan.cpp in Sources */, - 000C48B119F35601006E6B52 /* sdlmusic.cpp in Sources */, - 000C48AB19F35601006E6B52 /* osdfuncs.cpp in Sources */, - 000C489F19F35601006E6B52 /* gamedef.cpp in Sources */, - 000C48A019F35601006E6B52 /* gameexec.cpp in Sources */, - 000C48AD19F35601006E6B52 /* premap.cpp in Sources */, - 000C489E19F35601006E6B52 /* game.cpp in Sources */, - 20E16CE91C7022DE00EE8446 /* screens.cpp in Sources */, - 000C48AC19F35601006E6B52 /* player.cpp in Sources */, - 000C489C19F35601006E6B52 /* config.cpp in Sources */, - 000C48A619F35601006E6B52 /* input.cpp in Sources */, - 000C48F219F35F42006E6B52 /* gamevars.cpp in Sources */, - 20F712521C6C19F4006B68D0 /* sbar.cpp in Sources */, - 000C489919F35601006E6B52 /* common.cpp in Sources */, - 000C48AF19F35601006E6B52 /* rts.cpp in Sources */, - 20F7124E1C6C19E5006B68D0 /* screentext.cpp in Sources */, - 000C489D19F35601006E6B52 /* demo.cpp in Sources */, - 20F712561C6C1A07006B68D0 /* cheats.cpp in Sources */, - 000C48A719F35601006E6B52 /* menus.cpp in Sources */, - 000C48A919F35601006E6B52 /* network.cpp in Sources */, - 000C48A819F35601006E6B52 /* namesdyn.cpp in Sources */, - 000C48B219F35601006E6B52 /* sector.cpp in Sources */, - 000C48AA19F35601006E6B52 /* osdcmds.cpp in Sources */, - 000C489A19F35601006E6B52 /* actors.cpp in Sources */, - 000C48B019F35601006E6B52 /* savegame.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0013828A19F361B60007DA6C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0013828B19F361B60007DA6C /* sdlayer.cpp in Sources */, - 0013828C19F361B60007DA6C /* compat.cpp in Sources */, - 0013828D19F361B60007DA6C /* kplib.cpp in Sources */, - 0013828E19F361B60007DA6C /* engine.cpp in Sources */, - 0013828F19F361B60007DA6C /* voxmodel.cpp in Sources */, - 0013829119F361B60007DA6C /* pragmas.cpp in Sources */, - 206B3A0C1B074F6400E5DBD0 /* jwzgles.c in Sources */, - 20CEFB131E08A86B0077879C /* 2d.cpp in Sources */, - 0013829219F361B60007DA6C /* common.cpp in Sources */, - 2044C98B1E08A66B00A8C543 /* palette.cpp in Sources */, - 0013829319F361B60007DA6C /* mutex.cpp in Sources */, - 0013829519F361B60007DA6C /* crc32.cpp in Sources */, - 20FD1D521C44E4E700C2E553 /* colmatch.cpp in Sources */, - 20CEFB191E08A8830077879C /* hash.cpp in Sources */, - 0013829719F361B60007DA6C /* texcache.cpp in Sources */, - 0013829819F361B60007DA6C /* cache1d.cpp in Sources */, - 0013829919F361B60007DA6C /* smalltextfont.cpp in Sources */, - 0013829A19F361B60007DA6C /* polymer.cpp in Sources */, - 0013829B19F361B60007DA6C /* mmulti_null.cpp in Sources */, - 0013829C19F361B60007DA6C /* a-c.cpp in Sources */, - 2038AE9D1A8F126C0093B7B2 /* md4.cpp in Sources */, - 0013829D19F361B60007DA6C /* textfont.cpp in Sources */, - 204D6B611C98973F001FA505 /* ProcessRGB.cpp in Sources */, - 0013829E19F361B60007DA6C /* mdsprite.cpp in Sources */, - 0013829F19F361B60007DA6C /* defs.cpp in Sources */, - 2044C9911E08A6BC00A8C543 /* screenshot.cpp in Sources */, - 204D6B631C98973F001FA505 /* Tables.cpp in Sources */, - 001382A019F361B60007DA6C /* baselayer.cpp in Sources */, - 2044C98E1E08A69700A8C543 /* clip.cpp in Sources */, - 001382A119F361B60007DA6C /* xxhash.c in Sources */, - 2044C99A1E08A72200A8C543 /* mhk.cpp in Sources */, - 001382A219F361B60007DA6C /* scriptfile.cpp in Sources */, - 001382A319F361B60007DA6C /* polymost.cpp in Sources */, - 001382A419F361B60007DA6C /* hightile.cpp in Sources */, - 001382A519F361B60007DA6C /* dxtfilter.cpp in Sources */, - 001382A619F361B60007DA6C /* lz4.c in Sources */, - 2044C99D1E08A74100A8C543 /* tiles.cpp in Sources */, - 001382A719F361B60007DA6C /* osd.cpp in Sources */, - 001382A819F361B60007DA6C /* glbuild.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 001382E019F361B80007DA6C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 001382E119F361B80007DA6C /* keyboard.cpp in Sources */, - 001382E219F361B80007DA6C /* animlib.cpp in Sources */, - 001382E319F361B80007DA6C /* control.cpp in Sources */, - 001382E419F361B80007DA6C /* scriplib.cpp in Sources */, - 001382E819F361B80007DA6C /* joystick.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 001382FA19F361BB0007DA6C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 001382FB19F361BB0007DA6C /* fx_man.cpp in Sources */, - 001382FC19F361BB0007DA6C /* formats.cpp in Sources */, - 001382FD19F361BB0007DA6C /* flac.cpp in Sources */, - 00CAC13319F4E0EA00317AE6 /* driver_sdl.cpp in Sources */, - 001382FE19F361BB0007DA6C /* mixst.cpp in Sources */, - 20CEFB1C1E08A8CB0077879C /* xmp.cpp in Sources */, - 001382FF19F361BB0007DA6C /* xa.cpp in Sources */, - 0013830019F361BB0007DA6C /* multivoc.cpp in Sources */, - 0013830119F361BB0007DA6C /* pitch.cpp in Sources */, - 0013830319F361BB0007DA6C /* mix.cpp in Sources */, - 0013830419F361BB0007DA6C /* drivers.cpp in Sources */, - 0013830519F361BB0007DA6C /* driver_nosound.cpp in Sources */, - 0013830619F361BB0007DA6C /* vorbis.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 0008EA2919F1AF350091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008E6B619F1A9260091588D /* BUILD */; - targetProxy = 0008EA2819F1AF350091588D /* PBXContainerItemProxy */; - }; - 0008EA2B19F1AF380091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008E6C119F1A9AF0091588D /* MACT */; - targetProxy = 0008EA2A19F1AF380091588D /* PBXContainerItemProxy */; - }; - 0008EA2D19F1AF3B0091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008E6C919F1AAA30091588D /* AudioLib */; - targetProxy = 0008EA2C19F1AF3B0091588D /* PBXContainerItemProxy */; - }; - 0008EA2F19F1AF3F0091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008E6B619F1A9260091588D /* BUILD */; - targetProxy = 0008EA2E19F1AF3F0091588D /* PBXContainerItemProxy */; - }; - 0008EA3119F1AF420091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008E6C119F1A9AF0091588D /* MACT */; - targetProxy = 0008EA3019F1AF420091588D /* PBXContainerItemProxy */; - }; - 0008EA3319F1AF450091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008E6C919F1AAA30091588D /* AudioLib */; - targetProxy = 0008EA3219F1AF450091588D /* PBXContainerItemProxy */; - }; - 0008EA3919F1AFAD0091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008E64A19F1A66E0091588D /* EDuke32 */; - targetProxy = 0008EA3819F1AFAD0091588D /* PBXContainerItemProxy */; - }; - 0008EA3B19F1AFAD0091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008E68519F1A8F10091588D /* Mapster32 */; - targetProxy = 0008EA3A19F1AFAD0091588D /* PBXContainerItemProxy */; - }; - 0008EA7619F1B16A0091588D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0008EA4819F1B0020091588D /* ENet */; - targetProxy = 0008EA7519F1B16A0091588D /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 000C487619F35517006E6B52 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 000C487719F35517006E6B52 /* en */, - ); - name = InfoPlist.strings; - path = iOS; - sourceTree = SOURCE_ROOT; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 0008E64519F1A5AA0091588D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - ONLY_ACTIVE_ARCH = YES; - }; - name = Debug; - }; - 0008E64619F1A5AA0091588D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 2; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - LLVM_LTO = YES; - }; - name = Release; - }; - 0008E67B19F1A66E0091588D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; - CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_UNROLL_LOOPS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - INFOPLIST_FILE = "$(SRCROOT)/bundles/EDuke32.app/Contents/Info.plist"; - LIBRARY_SEARCH_PATHS = ( - /usr/local/lib, - /usr/local/Cellar/zlib/1.2.8/lib, - ); - LLVM_LTO = NO; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.voidpoint.eduke32; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 0008E67C19F1A66E0091588D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; - CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_UNROLL_LOOPS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - INFOPLIST_FILE = "$(SRCROOT)/bundles/EDuke32.app/Contents/Info.plist"; - LIBRARY_SEARCH_PATHS = ( - /usr/local/lib, - /usr/local/Cellar/zlib/1.2.8/lib, - ); - LLVM_LTO = YES; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.voidpoint.eduke32; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - 0008E6AE19F1A8F20091588D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; - CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_UNROLL_LOOPS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - INFOPLIST_FILE = "$(SRCROOT)/bundles/Mapster32.app/Contents/Info.plist"; - LIBRARY_SEARCH_PATHS = ( - /usr/local/lib, - /usr/local/Cellar/zlib/1.2.8/lib, - ); - LLVM_LTO = NO; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.voidpoint.mapster32; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 0008E6AF19F1A8F20091588D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; - CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_UNROLL_LOOPS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - INFOPLIST_FILE = "$(SRCROOT)/bundles/Mapster32.app/Contents/Info.plist"; - LIBRARY_SEARCH_PATHS = ( - /usr/local/lib, - /usr/local/Cellar/zlib/1.2.8/lib, - ); - LLVM_LTO = YES; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.voidpoint.mapster32; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - 0008E6B919F1A9260091588D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = ( - /usr/local/lib, - /usr/local/Cellar/zlib/1.2.8/lib, - ); - LLVM_LTO = NO; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Debug; - }; - 0008E6BA19F1A9260091588D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = ( - /usr/local/lib, - /usr/local/Cellar/zlib/1.2.8/lib, - ); - LLVM_LTO = YES; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Release; - }; - 0008E6C419F1A9AF0091588D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = NO; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Debug; - }; - 0008E6C519F1A9AF0091588D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = YES; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Release; - }; - 0008E6CC19F1AAA30091588D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = NO; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Debug; - }; - 0008E6CD19F1AAA30091588D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = YES; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Release; - }; - 0008EA3619F1AFA70091588D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = /usr/local/lib; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 0008EA3719F1AFA70091588D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = /usr/local/lib; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 0008EA4B19F1B0020091588D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = NO; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Debug; - }; - 0008EA4C19F1B0020091588D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - /usr/local/include, - /usr/local/include/SDL2, - ); - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = YES; - MACOSX_DEPLOYMENT_TARGET = 10.10; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DSTARTUP_WINDOW", - "-DNDEBUG", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DUSE_LIBVPX", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DPOLYMER", - "-DHAS_SOCKLEN_T", - "-DUSING_LTO", - "-DNOASM", - "-DHAVE_VORBIS", - "-DHAVE_FLAC", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = macosx; - USER_HEADER_SEARCH_PATHS = ""; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Release; - }; - 000C489319F35517006E6B52 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ../../../SDL/include, - ../../../SDL_mixer, - ); - INFOPLIST_FILE = iOS/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(SDKROOT)/usr/lib", - ); - ONLY_ACTIVE_ARCH = NO; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DHAVE_JWZGLES", - "-DUSING_LTO", - "-DNOASM", - "-DNETCODE_DISABLE", - ); - OTHER_LDFLAGS = ""; - PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.voidpoint.eduke32; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE = ""; - SDKROOT = iphoneos; - SEPARATE_STRIP = NO; - STRIP_INSTALLED_PRODUCT = NO; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 000C489419F35517006E6B52 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - DEAD_CODE_STRIPPING = NO; - ENABLE_NS_ASSERTIONS = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = NDEBUG; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ../../../SDL/include, - ../../../SDL_mixer, - ); - INFOPLIST_FILE = iOS/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(SDKROOT)/usr/lib", - ); - ONLY_ACTIVE_ARCH = NO; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DHAVE_JWZGLES", - "-DUSING_LTO", - "-DNOASM", - "-DNETCODE_DISABLE", - ); - OTHER_LDFLAGS = ""; - PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.voidpoint.eduke32; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE = ""; - SDKROOT = iphoneos; - SEPARATE_STRIP = NO; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - 001382DC19F361B60007DA6C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ../../../SDL/include, - ../../../SDL_mixer, - ); - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LIBRARY_SEARCH_PATHS = ( - /usr/local/lib, - /usr/local/Cellar/zlib/1.2.8/lib, - ); - LLVM_LTO = NO; - ONLY_ACTIVE_ARCH = NO; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DHAVE_JWZGLES", - "-DUSING_LTO", - "-DNOASM", - "-DNETCODE_DISABLE", - ); - OTHER_LDFLAGS = ""; - PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; - PRODUCT_NAME = "BUILD-iOS"; - SDKROOT = iphoneos; - SEPARATE_STRIP = NO; - STRIP_INSTALLED_PRODUCT = NO; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Debug; - }; - 001382DD19F361B60007DA6C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - DEAD_CODE_STRIPPING = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = NDEBUG; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ../../../SDL/include, - ../../../SDL_mixer, - ); - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LIBRARY_SEARCH_PATHS = ( - /usr/local/lib, - /usr/local/Cellar/zlib/1.2.8/lib, - ); - LLVM_LTO = YES; - ONLY_ACTIVE_ARCH = NO; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DHAVE_JWZGLES", - "-DUSING_LTO", - "-DNOASM", - "-DNETCODE_DISABLE", - ); - OTHER_LDFLAGS = ""; - PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; - PRODUCT_NAME = "BUILD-iOS"; - SDKROOT = iphoneos; - SEPARATE_STRIP = NO; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Release; - }; - 001382F619F361B80007DA6C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ../../../SDL/include, - ../../../SDL_mixer, - ); - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = NO; - ONLY_ACTIVE_ARCH = NO; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DHAVE_JWZGLES", - "-DUSING_LTO", - "-DNOASM", - "-DNETCODE_DISABLE", - ); - OTHER_LDFLAGS = ""; - PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; - PRODUCT_NAME = "MACT-iOS"; - SDKROOT = iphoneos; - SEPARATE_STRIP = NO; - STRIP_INSTALLED_PRODUCT = NO; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Debug; - }; - 001382F719F361B80007DA6C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - DEAD_CODE_STRIPPING = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = NDEBUG; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ../../../SDL/include, - ../../../SDL_mixer, - ); - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = YES; - ONLY_ACTIVE_ARCH = NO; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DHAVE_JWZGLES", - "-DUSING_LTO", - "-DNOASM", - "-DNETCODE_DISABLE", - ); - OTHER_LDFLAGS = ""; - PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; - PRODUCT_NAME = "MACT-iOS"; - SDKROOT = iphoneos; - SEPARATE_STRIP = NO; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Release; - }; - 0013831919F361BB0007DA6C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ../../../SDL/include, - ../../../SDL_mixer, - ); - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = NO; - ONLY_ACTIVE_ARCH = NO; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DHAVE_JWZGLES", - "-DUSING_LTO", - "-DNOASM", - "-DNETCODE_DISABLE", - ); - OTHER_LDFLAGS = ""; - PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; - PRODUCT_NAME = "AudioLib-iOS"; - SDKROOT = iphoneos; - SEPARATE_STRIP = NO; - STRIP_INSTALLED_PRODUCT = NO; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Debug; - }; - 0013831A19F361BB0007DA6C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++11"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = NO; - CLANG_ENABLE_OBJC_ARC = NO; - CLANG_WARN_ASSIGN_ENUM = YES; - CLANG_WARN_BOOL_CONVERSION = NO; - CLANG_WARN_CONSTANT_CONVERSION = NO; - CLANG_WARN_CXX0X_EXTENSIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = NO; - CLANG_WARN_INT_CONVERSION = NO; - CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = NO; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - DEAD_CODE_STRIPPING = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - EXECUTABLE_PREFIX = lib; - GCC_CHAR_IS_UNSIGNED_CHAR = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_CPP_EXCEPTIONS = NO; - GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = NDEBUG; - GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = NO; - GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO; - GCC_WARN_SHADOW = NO; - GCC_WARN_SIGN_COMPARE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNKNOWN_PRAGMAS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_PARAMETER = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - ../../../SDL/include, - ../../../SDL_mixer, - ); - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LIBRARY_SEARCH_PATHS = /usr/local/lib; - LLVM_LTO = YES; - ONLY_ACTIVE_ARCH = NO; - OTHER_CFLAGS = ( - "-D_THREAD_SAFE", - "-DNO_GCC_BUILTINS", - "-D_FORTIFY_SOURCE=2", - "-DSDL_TARGET=2", - "-DRENDERTYPESDL=1", - "-DMIXERTYPESDL=1", - "-DUSE_OPENGL", - "-DHAVE_JWZGLES", - "-DUSING_LTO", - "-DNOASM", - "-DNETCODE_DISABLE", - ); - OTHER_LDFLAGS = ""; - PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; - PRODUCT_NAME = "AudioLib-iOS"; - SDKROOT = iphoneos; - SEPARATE_STRIP = NO; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wall", - "-Wextra", - "-Wno-unknown-warning-option", - "-Wpointer-arith", - "-Wno-char-subscripts", - "-Wno-missing-braces", - "-Wwrite-strings", - "-Wno-attributes", - "-Wno-strict-overflow", - "-Wno-unused-result", - "-Wlogical-op", - "-Wcast-qual", - "-Wno-parentheses-equality", - "-Wno-unused-value", - ); - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 0008E64419F1A5AA0091588D /* Build configuration list for PBXProject "EDuke32" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0008E64519F1A5AA0091588D /* Debug */, - 0008E64619F1A5AA0091588D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0008E67A19F1A66E0091588D /* Build configuration list for PBXNativeTarget "EDuke32" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0008E67B19F1A66E0091588D /* Debug */, - 0008E67C19F1A66E0091588D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0008E6AD19F1A8F20091588D /* Build configuration list for PBXNativeTarget "Mapster32" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0008E6AE19F1A8F20091588D /* Debug */, - 0008E6AF19F1A8F20091588D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0008E6B819F1A9260091588D /* Build configuration list for PBXNativeTarget "BUILD" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0008E6B919F1A9260091588D /* Debug */, - 0008E6BA19F1A9260091588D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0008E6C319F1A9AF0091588D /* Build configuration list for PBXNativeTarget "MACT" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0008E6C419F1A9AF0091588D /* Debug */, - 0008E6C519F1A9AF0091588D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0008E6CB19F1AAA30091588D /* Build configuration list for PBXNativeTarget "AudioLib" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0008E6CC19F1AAA30091588D /* Debug */, - 0008E6CD19F1AAA30091588D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0008EA3519F1AFA70091588D /* Build configuration list for PBXAggregateTarget "OS X" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0008EA3619F1AFA70091588D /* Debug */, - 0008EA3719F1AFA70091588D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0008EA4A19F1B0020091588D /* Build configuration list for PBXNativeTarget "ENet" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0008EA4B19F1B0020091588D /* Debug */, - 0008EA4C19F1B0020091588D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 000C489719F35517006E6B52 /* Build configuration list for PBXNativeTarget "EDuke32-iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 000C489319F35517006E6B52 /* Debug */, - 000C489419F35517006E6B52 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 001382DB19F361B60007DA6C /* Build configuration list for PBXNativeTarget "BUILD-iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 001382DC19F361B60007DA6C /* Debug */, - 001382DD19F361B60007DA6C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 001382F519F361B80007DA6C /* Build configuration list for PBXNativeTarget "MACT-iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 001382F619F361B80007DA6C /* Debug */, - 001382F719F361B80007DA6C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0013831819F361BB0007DA6C /* Build configuration list for PBXNativeTarget "AudioLib-iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0013831919F361BB0007DA6C /* Debug */, - 0013831A19F361BB0007DA6C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 0008E64119F1A5AA0091588D /* Project object */; -} diff --git a/platform/Windows/audiolib.vcxproj b/platform/Windows/audiolib.vcxproj deleted file mode 100644 index 4583f380e..000000000 --- a/platform/Windows/audiolib.vcxproj +++ /dev/null @@ -1,241 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47} - Win32Proj - audiolib - 10.0 - - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - false - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - - - true - true - true - true - - - - - - - - - - - - - - true - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/platform/Windows/audiolib.vcxproj.filters b/platform/Windows/audiolib.vcxproj.filters deleted file mode 100644 index 156732589..000000000 --- a/platform/Windows/audiolib.vcxproj.filters +++ /dev/null @@ -1,116 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;ipp;xsd - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - \ No newline at end of file diff --git a/platform/Windows/build.vcxproj b/platform/Windows/build.vcxproj deleted file mode 100644 index 570b91eac..000000000 --- a/platform/Windows/build.vcxproj +++ /dev/null @@ -1,413 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1} - Win32Proj - build - 10.0 - - - - StaticLibrary - true - v142 - MultiByte - - - StaticLibrary - false - v142 - true - MultiByte - - - StaticLibrary - true - v142 - MultiByte - - - StaticLibrary - false - v142 - true - MultiByte - - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - BuildGenerateSources - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - BuildGenerateSources - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - BuildGenerateSources - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - BuildGenerateSources - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - false - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - true - true - - - - - - - - - - - - true - true - true - true - - - - - - - - true - true - true - true - - - - - - - - - - - true - true - true - true - - - false - false - false - false - - - - - - - - - false - false - false - false - - - - - true - true - true - true - - - - - - - true - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Document - echo char const *%(Filename) = R^"shader( > $(IntermediateOutputPath)%(Filename)%(Extension).cpp -type %(Identity) >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -echo )shader^"; >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -cl /c /MP /GS /GL /analyze- /W3 /wd"4996" /wd"4244" /wd"4018" /wd"4267" /Gy /Zc:wchar_t /I"./include" /I"./include/vpx/" /I"./include/sdl2/" /I"../../source/build/include" /I"../../source/mact/include" /I"../../source/audiolib/include" /I"../../source/enet/include" /I"../../source/glad/include" /I"../../source/libxmp-lite/include" /I"../../source/libxmp-lite/include/libxmp-lite" /Gm- /O2 /Fd"Win32\Build\build\Release\build.pdb" /Zc:inline /fp:precise /D "NDEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "RENDERTYPESDL=1" /D "MIXERTYPEWIN=1" /D "SDL_USEFOLDER" /D "SDL_TARGET=2" /D "USE_OPENGL=1" /D "POLYMER=1" /D "STARTUP_WINDOW" /D "USE_LIBVPX" /D "HAVE_VORBIS" /D "HAVE_XMP" /errorReport:prompt /WX- /Zc:forScope /arch:SSE2 /Gd /Oy /Oi /MD /Fa"Win32\Build\build\Release\\" /EHs /nologo /Fo"Win32\Build\build\Release\\" /Ot /Fp"Win32\Build\build\Release\build.pch" "$(IntermediateOutputPath)%(Filename)%(Extension).cpp" - echo char const *%(Filename) = R^"shader( > $(IntermediateOutputPath)%(Filename)%(Extension).cpp -type %(Identity) >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -echo )shader^"; >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -cl /c /MP /GS- /analyze- /W3 /wd"4996" /wd"4244" /wd"4018" /wd"4267" /Gy /Zc:wchar_t /I"./include" /I"./include/vpx/" /I"./include/sdl2/" /I"../../source/build/include" /I"../../source/mact/include" /I"../../source/audiolib/include" /I"../../source/enet/include" /I"../../source/glad/include" /I"../../source/libxmp-lite/include" /I"../../source/libxmp-lite/include/libxmp-lite" /Zi /Gm /Od /Fd"Win32\Build\build\Debug\build.pdb" /Zc:inline /fp:precise /D "_DEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "RENDERTYPESDL=1" /D "MIXERTYPEWIN=1" /D "SDL_USEFOLDER" /D "SDL_TARGET=2" /D "USE_OPENGL=1" /D "POLYMER=1" /D "STARTUP_WINDOW" /D "USE_LIBVPX" /D "HAVE_VORBIS" /D "HAVE_XMP" /errorReport:prompt /WX- /Zc:forScope /RTC1 /arch:SSE2 /Gd /Oy- /MDd /Fa"Win32\Build\build\Debug\\" /EHs /nologo /Fo"Win32\Build\build\Debug\\" /Fp"Win32\Build\build\Debug\build.pch" $(IntermediateOutputPath)%(Filename)%(Extension).cpp - Compiling shader to %(Identity).obj - Compiling shader to %(Identity).obj - echo char const *%(Filename) = R^"shader( > $(IntermediateOutputPath)%(Filename)%(Extension).cpp -type %(Identity) >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -echo )shader^"; >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -cl /c /MP /GS /GL /W3 /wd"4996" /wd"4244" /wd"4018" /wd"4267" /Gy /Zc:wchar_t /I"./include" /I"./include/vpx/" /I"./include/sdl2/" /I"../../source/build/include" /I"../../source/mact/include" /I"../../source/audiolib/include" /I"../../source/enet/include" /I"../../source/glad/include" /I"../../source/libxmp-lite/include" /I"../../source/libxmp-lite/include/libxmp-lite" /Gm- /O2 /Fd"x64\Build\build\Release\build.pdb" /Zc:inline /fp:precise /D "NDEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "RENDERTYPESDL=1" /D "MIXERTYPEWIN=1" /D "SDL_USEFOLDER" /D "SDL_TARGET=2" /D "USE_OPENGL=1" /D "POLYMER=1" /D "STARTUP_WINDOW" /D "USE_LIBVPX" /D "HAVE_VORBIS" /D "HAVE_XMP" /D "NOASM=1" /errorReport:prompt /WX- /Zc:forScope /Gd /Oy /Oi /MD /Fa"x64\Build\build\Release\\" /EHs /nologo /Fo"x64\Build\build\Release\\" /Ot /Fp"x64\Build\build\Release\build.pch" $(IntermediateOutputPath)%(Filename)%(Extension).cpp - echo char const *%(Filename) = R^"shader( > $(IntermediateOutputPath)%(Filename)%(Extension).cpp -type %(Identity) >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -echo )shader^"; >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -cl /c /MP /GS- /W3 /wd"4996" /wd"4244" /wd"4018" /wd"4267" /Gy /Zc:wchar_t /I"./include" /I"./include/vpx/" /I"./include/sdl2/" /I"../../source/build/include" /I"../../source/mact/include" /I"../../source/audiolib/include" /I"../../source/enet/include" /I"../../source/glad/include" /I"../../source/libxmp-lite/include" /I"../../source/libxmp-lite/include/libxmp-lite" /Zi /Gm /Od /Fd"x64\Build\build\Debug\build.pdb" /Zc:inline /fp:precise /D "_DEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "RENDERTYPESDL=1" /D "MIXERTYPEWIN=1" /D "SDL_USEFOLDER" /D "SDL_TARGET=2" /D "USE_OPENGL=1" /D "POLYMER=1" /D "STARTUP_WINDOW" /D "USE_LIBVPX" /D "HAVE_VORBIS" /D "HAVE_XMP" /D "NOASM=1" /errorReport:prompt /WX- /Zc:forScope /RTC1 /Gd /Oy- /MDd /Fa"x64\Build\build\Debug\\" /EHs /nologo /Fo"x64\Build\build\Debug\\" /Fp"x64\Build\build\Debug\build.pch" $(IntermediateOutputPath)%(Filename)%(Extension).cpp - Compiling shader to %(Identity).obj - Compiling shader to %(Identity).obj - $(IntermediateOutputPath)%(Filename)%(Extension).obj;$(IntermediateOutputPath)%(Filename)%(Extension).cpp - $(IntermediateOutputPath)%(Filename)%(Extension).obj;$(IntermediateOutputPath)%(Filename)%(Extension).cpp - $(IntermediateOutputPath)%(Filename)%(Extension).obj;$(IntermediateOutputPath)%(Filename)%(Extension).cpp - $(IntermediateOutputPath)%(Filename)%(Extension).obj;$(IntermediateOutputPath)%(Filename)%(Extension).cpp - - - Document - echo char const *%(Filename) = R^"shader( > $(IntermediateOutputPath)%(Filename)%(Extension).cpp -type %(Identity) >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -echo )shader^"; >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -cl /c /MP /GS /GL /analyze- /W3 /wd"4996" /wd"4244" /wd"4018" /wd"4267" /Gy /Zc:wchar_t /I"./include" /I"./include/vpx/" /I"./include/sdl2/" /I"../../source/build/include" /I"../../source/mact/include" /I"../../source/audiolib/include" /I"../../source/enet/include" /I"../../source/glad/include" /I"../../source/libxmp-lite/include" /I"../../source/libxmp-lite/include/libxmp-lite" /Gm- /O2 /Fd"Win32\Build\build\Release\build.pdb" /Zc:inline /fp:precise /D "NDEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "RENDERTYPESDL=1" /D "MIXERTYPEWIN=1" /D "SDL_USEFOLDER" /D "SDL_TARGET=2" /D "USE_OPENGL=1" /D "POLYMER=1" /D "STARTUP_WINDOW" /D "USE_LIBVPX" /D "HAVE_VORBIS" /D "HAVE_XMP" /errorReport:prompt /WX- /Zc:forScope /arch:SSE2 /Gd /Oy /Oi /MD /Fa"Win32\Build\build\Release\\" /EHs /nologo /Fo"Win32\Build\build\Release\\" /Ot /Fp"Win32\Build\build\Release\build.pch" "$(IntermediateOutputPath)%(Filename)%(Extension).cpp" - echo char const *%(Filename) = R^"shader( > $(IntermediateOutputPath)%(Filename)%(Extension).cpp -type %(Identity) >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -echo )shader^"; >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -cl /c /MP /GS- /analyze- /W3 /wd"4996" /wd"4244" /wd"4018" /wd"4267" /Gy /Zc:wchar_t /I"./include" /I"./include/vpx/" /I"./include/sdl2/" /I"../../source/build/include" /I"../../source/mact/include" /I"../../source/audiolib/include" /I"../../source/enet/include" /I"../../source/glad/include" /I"../../source/libxmp-lite/include" /I"../../source/libxmp-lite/include/libxmp-lite" /Zi /Gm /Od /Fd"Win32\Build\build\Debug\build.pdb" /Zc:inline /fp:precise /D "_DEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "RENDERTYPESDL=1" /D "MIXERTYPEWIN=1" /D "SDL_USEFOLDER" /D "SDL_TARGET=2" /D "USE_OPENGL=1" /D "POLYMER=1" /D "STARTUP_WINDOW" /D "USE_LIBVPX" /D "HAVE_VORBIS" /D "HAVE_XMP" /errorReport:prompt /WX- /Zc:forScope /RTC1 /arch:SSE2 /Gd /Oy- /MDd /Fa"Win32\Build\build\Debug\\" /EHs /nologo /Fo"Win32\Build\build\Debug\\" /Fp"Win32\Build\build\Debug\build.pch" $(IntermediateOutputPath)%(Filename)%(Extension).cpp - Compiling shader to %(Identity).obj - Compiling shader to %(Identity).obj - echo char const *%(Filename) = R^"shader( > $(IntermediateOutputPath)%(Filename)%(Extension).cpp -type %(Identity) >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -echo )shader^"; >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -cl /c /MP /GS /GL /W3 /wd"4996" /wd"4244" /wd"4018" /wd"4267" /Gy /Zc:wchar_t /I"./include" /I"./include/vpx/" /I"./include/sdl2/" /I"../../source/build/include" /I"../../source/mact/include" /I"../../source/audiolib/include" /I"../../source/enet/include" /I"../../source/glad/include" /I"../../source/libxmp-lite/include" /I"../../source/libxmp-lite/include/libxmp-lite" /Gm- /O2 /Fd"x64\Build\build\Release\build.pdb" /Zc:inline /fp:precise /D "NDEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "RENDERTYPESDL=1" /D "MIXERTYPEWIN=1" /D "SDL_USEFOLDER" /D "SDL_TARGET=2" /D "USE_OPENGL=1" /D "POLYMER=1" /D "STARTUP_WINDOW" /D "USE_LIBVPX" /D "HAVE_VORBIS" /D "HAVE_XMP" /D "NOASM=1" /errorReport:prompt /WX- /Zc:forScope /Gd /Oy /Oi /MD /Fa"x64\Build\build\Release\\" /EHs /nologo /Fo"x64\Build\build\Release\\" /Ot /Fp"x64\Build\build\Release\build.pch" $(IntermediateOutputPath)%(Filename)%(Extension).cpp - echo char const *%(Filename) = R^"shader( > $(IntermediateOutputPath)%(Filename)%(Extension).cpp -type %(Identity) >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -echo )shader^"; >> $(IntermediateOutputPath)%(Filename)%(Extension).cpp -cl /c /MP /GS- /W3 /wd"4996" /wd"4244" /wd"4018" /wd"4267" /Gy /Zc:wchar_t /I"./include" /I"./include/vpx/" /I"./include/sdl2/" /I"../../source/build/include" /I"../../source/mact/include" /I"../../source/audiolib/include" /I"../../source/enet/include" /I"../../source/glad/include" /I"../../source/libxmp-lite/include" /I"../../source/libxmp-lite/include/libxmp-lite" /Zi /Gm /Od /Fd"x64\Build\build\Debug\build.pdb" /Zc:inline /fp:precise /D "_DEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "RENDERTYPESDL=1" /D "MIXERTYPEWIN=1" /D "SDL_USEFOLDER" /D "SDL_TARGET=2" /D "USE_OPENGL=1" /D "POLYMER=1" /D "STARTUP_WINDOW" /D "USE_LIBVPX" /D "HAVE_VORBIS" /D "HAVE_XMP" /D "NOASM=1" /errorReport:prompt /WX- /Zc:forScope /RTC1 /Gd /Oy- /MDd /Fa"x64\Build\build\Debug\\" /EHs /nologo /Fo"x64\Build\build\Debug\\" /Fp"x64\Build\build\Debug\build.pch" $(IntermediateOutputPath)%(Filename)%(Extension).cpp - Compiling shader to %(Identity).obj - Compiling shader to %(Identity).obj - $(IntermediateOutputPath)%(Filename)%(Extension).obj;$(IntermediateOutputPath)%(Filename)%(Extension).cpp - $(IntermediateOutputPath)%(Filename)%(Extension).obj;$(IntermediateOutputPath)%(Filename)%(Extension).cpp - $(IntermediateOutputPath)%(Filename)%(Extension).obj;$(IntermediateOutputPath)%(Filename)%(Extension).cpp - $(IntermediateOutputPath)%(Filename)%(Extension).obj;$(IntermediateOutputPath)%(Filename)%(Extension).cpp - - - - - - - \ No newline at end of file diff --git a/platform/Windows/build.vcxproj.filters b/platform/Windows/build.vcxproj.filters deleted file mode 100644 index fe013409f..000000000 --- a/platform/Windows/build.vcxproj.filters +++ /dev/null @@ -1,422 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;ipp;xsd - - - {4afb83fc-a68c-4ed0-9ff2-7def56e98cb6} - - - {0f5687fd-82dc-4f52-89ef-0264c994211c} - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - GL Interface - - - Source Files - - GL Interface - - - GL Interface - - - - - Header Files\MSVC - - - Header Files\MSVC - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Third Party - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Third Party - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - GL Interface - - - GL Interface - - - GL Interface - - - - - Source Files - - - Source Files - - - diff --git a/platform/Windows/build.vcxproj.filters_ b/platform/Windows/build.vcxproj.filters_ new file mode 100644 index 000000000..9fb95cb0b --- /dev/null +++ b/platform/Windows/build.vcxproj.filters_ @@ -0,0 +1,139 @@ + + + + + {dd93df66-1ed9-4b54-fd54-18abf46d2773} + + + {82d4000f-cd8c-4737-f8dc-4ada5775a68e} + + + {52ce6149-4982-41a4-fadf-c7a9468421fd} + + + {598e3748-14c8-47c3-fbb6-eea06f762413} + + + + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Source Files + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + GL Backend + GL Backend + GL Backend + + + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Header Files + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + Third Party + GL Backend + GL Backend + GL Backend + + + GLSL Shaders + GLSL Shaders + + \ No newline at end of file diff --git a/platform/Windows/eduke32.sln b/platform/Windows/eduke32.sln deleted file mode 100644 index 25a48ad95..000000000 --- a/platform/Windows/eduke32.sln +++ /dev/null @@ -1,143 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29306.81 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "eduke32", "eduke32.vcxproj", "{8E7A6179-0B72-4073-8A4C-E8682D481DAE}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Game", "Game", "{18C3CB5F-1DE6-4CFE-B7F7-ABE824222E1C}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Engine", "Engine", "{8BD117A0-7FA2-44B0-88A5-29D6C220601E}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "build", "build.vcxproj", "{DBECB851-5624-4FA8-9A9D-7169D0F12FF1}" - ProjectSection(ProjectDependencies) = postProject - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212} = {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "enet", "enet.vcxproj", "{A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "audiolib", "audiolib.vcxproj", "{0029C61B-B63D-4E61-99F2-F4E49AABFC47}" - ProjectSection(ProjectDependencies) = postProject - {32D4CF70-A3D6-4CEA-81D7-64C743980276} = {32D4CF70-A3D6-4CEA-81D7-64C743980276} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mact", "mact.vcxproj", "{BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libxmp-lite", "libxmp-lite.vcxproj", "{32D4CF70-A3D6-4CEA-81D7-64C743980276}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glad", "glad.vcxproj", "{6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rednukem", "rednukem.vcxproj", "{44C4B4F0-B489-4612-B9C7-A38503B7FB67}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsmackerdec", "libsmackerdec.vcxproj", "{598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nblood", "nblood.vcxproj", "{5407CB5A-4B15-41FA-B79B-8B386A14D275}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Debug|x64 = Debug|x64 - Release|Win32 = Release|Win32 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {8E7A6179-0B72-4073-8A4C-E8682D481DAE}.Debug|Win32.ActiveCfg = Debug|Win32 - {8E7A6179-0B72-4073-8A4C-E8682D481DAE}.Debug|Win32.Build.0 = Debug|Win32 - {8E7A6179-0B72-4073-8A4C-E8682D481DAE}.Debug|x64.ActiveCfg = Debug|x64 - {8E7A6179-0B72-4073-8A4C-E8682D481DAE}.Debug|x64.Build.0 = Debug|x64 - {8E7A6179-0B72-4073-8A4C-E8682D481DAE}.Release|Win32.ActiveCfg = Release|Win32 - {8E7A6179-0B72-4073-8A4C-E8682D481DAE}.Release|Win32.Build.0 = Release|Win32 - {8E7A6179-0B72-4073-8A4C-E8682D481DAE}.Release|x64.ActiveCfg = Release|x64 - {8E7A6179-0B72-4073-8A4C-E8682D481DAE}.Release|x64.Build.0 = Release|x64 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1}.Debug|Win32.ActiveCfg = Debug|Win32 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1}.Debug|Win32.Build.0 = Debug|Win32 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1}.Debug|x64.ActiveCfg = Debug|x64 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1}.Debug|x64.Build.0 = Debug|x64 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1}.Release|Win32.ActiveCfg = Release|Win32 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1}.Release|Win32.Build.0 = Release|Win32 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1}.Release|x64.ActiveCfg = Release|x64 - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1}.Release|x64.Build.0 = Release|x64 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}.Debug|Win32.ActiveCfg = Debug|Win32 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}.Debug|Win32.Build.0 = Debug|Win32 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}.Debug|x64.ActiveCfg = Debug|x64 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}.Debug|x64.Build.0 = Debug|x64 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}.Release|Win32.ActiveCfg = Release|Win32 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}.Release|Win32.Build.0 = Release|Win32 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}.Release|x64.ActiveCfg = Release|x64 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40}.Release|x64.Build.0 = Release|x64 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47}.Debug|Win32.ActiveCfg = Debug|Win32 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47}.Debug|Win32.Build.0 = Debug|Win32 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47}.Debug|x64.ActiveCfg = Debug|x64 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47}.Debug|x64.Build.0 = Debug|x64 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47}.Release|Win32.ActiveCfg = Release|Win32 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47}.Release|Win32.Build.0 = Release|Win32 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47}.Release|x64.ActiveCfg = Release|x64 - {0029C61B-B63D-4E61-99F2-F4E49AABFC47}.Release|x64.Build.0 = Release|x64 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}.Debug|Win32.ActiveCfg = Debug|Win32 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}.Debug|Win32.Build.0 = Debug|Win32 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}.Debug|x64.ActiveCfg = Debug|x64 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}.Debug|x64.Build.0 = Debug|x64 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}.Release|Win32.ActiveCfg = Release|Win32 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}.Release|Win32.Build.0 = Release|Win32 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}.Release|x64.ActiveCfg = Release|x64 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A}.Release|x64.Build.0 = Release|x64 - {32D4CF70-A3D6-4CEA-81D7-64C743980276}.Debug|Win32.ActiveCfg = Debug|Win32 - {32D4CF70-A3D6-4CEA-81D7-64C743980276}.Debug|Win32.Build.0 = Debug|Win32 - {32D4CF70-A3D6-4CEA-81D7-64C743980276}.Debug|x64.ActiveCfg = Debug|x64 - {32D4CF70-A3D6-4CEA-81D7-64C743980276}.Debug|x64.Build.0 = Debug|x64 - {32D4CF70-A3D6-4CEA-81D7-64C743980276}.Release|Win32.ActiveCfg = Release|Win32 - {32D4CF70-A3D6-4CEA-81D7-64C743980276}.Release|Win32.Build.0 = Release|Win32 - {32D4CF70-A3D6-4CEA-81D7-64C743980276}.Release|x64.ActiveCfg = Release|x64 - {32D4CF70-A3D6-4CEA-81D7-64C743980276}.Release|x64.Build.0 = Release|x64 - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}.Debug|Win32.ActiveCfg = Debug|Win32 - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}.Debug|Win32.Build.0 = Debug|Win32 - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}.Debug|x64.ActiveCfg = Debug|x64 - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}.Debug|x64.Build.0 = Debug|x64 - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}.Release|Win32.ActiveCfg = Release|Win32 - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}.Release|Win32.Build.0 = Release|Win32 - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}.Release|x64.ActiveCfg = Release|x64 - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212}.Release|x64.Build.0 = Release|x64 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67}.Debug|Win32.ActiveCfg = Debug|Win32 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67}.Debug|Win32.Build.0 = Debug|Win32 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67}.Debug|x64.ActiveCfg = Debug|x64 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67}.Debug|x64.Build.0 = Debug|x64 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67}.Release|Win32.ActiveCfg = Release|Win32 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67}.Release|Win32.Build.0 = Release|Win32 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67}.Release|x64.ActiveCfg = Release|x64 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67}.Release|x64.Build.0 = Release|x64 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}.Debug|Win32.ActiveCfg = Debug|Win32 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}.Debug|Win32.Build.0 = Debug|Win32 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}.Debug|x64.ActiveCfg = Debug|x64 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}.Debug|x64.Build.0 = Debug|x64 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}.Release|Win32.ActiveCfg = Release|Win32 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}.Release|Win32.Build.0 = Release|Win32 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}.Release|x64.ActiveCfg = Release|x64 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45}.Release|x64.Build.0 = Release|x64 - {5407CB5A-4B15-41FA-B79B-8B386A14D275}.Debug|Win32.ActiveCfg = Debug|Win32 - {5407CB5A-4B15-41FA-B79B-8B386A14D275}.Debug|Win32.Build.0 = Debug|Win32 - {5407CB5A-4B15-41FA-B79B-8B386A14D275}.Debug|x64.ActiveCfg = Debug|x64 - {5407CB5A-4B15-41FA-B79B-8B386A14D275}.Debug|x64.Build.0 = Debug|x64 - {5407CB5A-4B15-41FA-B79B-8B386A14D275}.Release|Win32.ActiveCfg = Release|Win32 - {5407CB5A-4B15-41FA-B79B-8B386A14D275}.Release|Win32.Build.0 = Release|Win32 - {5407CB5A-4B15-41FA-B79B-8B386A14D275}.Release|x64.ActiveCfg = Release|x64 - {5407CB5A-4B15-41FA-B79B-8B386A14D275}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {8E7A6179-0B72-4073-8A4C-E8682D481DAE} = {18C3CB5F-1DE6-4CFE-B7F7-ABE824222E1C} - {DBECB851-5624-4FA8-9A9D-7169D0F12FF1} = {8BD117A0-7FA2-44B0-88A5-29D6C220601E} - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40} = {8BD117A0-7FA2-44B0-88A5-29D6C220601E} - {0029C61B-B63D-4E61-99F2-F4E49AABFC47} = {8BD117A0-7FA2-44B0-88A5-29D6C220601E} - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A} = {8BD117A0-7FA2-44B0-88A5-29D6C220601E} - {32D4CF70-A3D6-4CEA-81D7-64C743980276} = {8BD117A0-7FA2-44B0-88A5-29D6C220601E} - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212} = {8BD117A0-7FA2-44B0-88A5-29D6C220601E} - {44C4B4F0-B489-4612-B9C7-A38503B7FB67} = {18C3CB5F-1DE6-4CFE-B7F7-ABE824222E1C} - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45} = {8BD117A0-7FA2-44B0-88A5-29D6C220601E} - {5407CB5A-4B15-41FA-B79B-8B386A14D275} = {18C3CB5F-1DE6-4CFE-B7F7-ABE824222E1C} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {0346D2C0-3EB9-4AFB-973F-2904758D6C02} - EndGlobalSection -EndGlobal diff --git a/platform/Windows/eduke32.vcxproj b/platform/Windows/eduke32.vcxproj deleted file mode 100644 index 0a5596093..000000000 --- a/platform/Windows/eduke32.vcxproj +++ /dev/null @@ -1,295 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {8E7A6179-0B72-4073-8A4C-E8682D481DAE} - eduke32 - MakeFileProj - v142 - 10.0 - - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - Application - $(SolutionDir)..\..\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - $(NMakeIncludeSearchPath);..\..\source\build\include;..\..\source\mact\include;..\..\source\audiolib\include;..\..\source\enet\include;..\..\platform\windows\include - nmake /f msvc.mak DEBUG=1 WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all DEBUG=1 WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean DEBUG=1 WINBITS=32 RENDERTYPE=SDL - USE_OPENGL;POLYMER;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean WINBITS=32 RENDERTYPE=SDL - USE_OPENGL;POLYMER;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak DEBUG=1 WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all DEBUG=1 WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean DEBUG=1 WINBITS=64 RENDERTYPE=SDL - USE_OPENGL;POLYMER;NOASM;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean WINBITS=64 RENDERTYPE=SDL - USE_OPENGL;POLYMER;NOASM;SDL_USEFOLDER;SDL_TARGET=2 - - - false - false - false - - - false - false - false - - - false - false - - - false - false - - - - false - - - true - MultiThreadedDebugDLL - EnableFastChecks - Level3 - ProgramDatabase - true - true - true - stdcpp14 - Disabled - SyncCThrow - false - - - - - false - UseLinkTimeCodeGeneration - - - true - true - Speed - true - Level3 - true - true - stdcpp14 - SyncCThrow - None - - - - - true - MultiThreadedDebugDLL - EnableFastChecks - false - Level3 - ProgramDatabase - true - true - true - stdcpp14 - Disabled - SyncCThrow - false - - - - - UseLinkTimeCodeGeneration - - - true - true - Speed - true - Level3 - true - true - stdcpp14 - SyncCThrow - None - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - - - - - - {0029c61b-b63d-4e61-99f2-f4e49aabfc47} - - - {dbecb851-5624-4fa8-9a9d-7169d0f12ff1} - - - {a68cc5e4-567a-44c8-94fe-c1de09aeeb40} - - - {6ac1d997-8dae-4343-8dd8-da2a1ca63212} - - - {32d4cf70-a3d6-4cea-81d7-64c743980276} - - - {bcde1852-e2c6-4abb-84fb-5cd431764a9a} - - - - - %(PreprocessorDefinitions);POLYMER=1 - %(PreprocessorDefinitions);POLYMER=1 - %(PreprocessorDefinitions);POLYMER=1 - %(PreprocessorDefinitions);POLYMER=1 - - - - - - - - - \ No newline at end of file diff --git a/platform/Windows/eduke32.vcxproj.filters b/platform/Windows/eduke32.vcxproj.filters deleted file mode 100644 index 07c0a4962..000000000 --- a/platform/Windows/eduke32.vcxproj.filters +++ /dev/null @@ -1,259 +0,0 @@ - - - - - {dd93df66-1ed9-4b54-bd54-18abf46d2773} - - - {82d4000f-cd8c-4737-88dc-4ada5775a68e} - - - {598e3748-14c8-47c3-9bb6-eea06f762413} - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Resource Files - - - - - Resource Files - - - - - Resource Files - - - \ No newline at end of file diff --git a/platform/Windows/enet.vcxproj b/platform/Windows/enet.vcxproj deleted file mode 100644 index 368b77ff1..000000000 --- a/platform/Windows/enet.vcxproj +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - - - - - - - - - - - - - - - - 15.0 - {A68CC5E4-567A-44C8-94FE-C1DE09AEEB40} - Win32Proj - enet - enet - 10.0 - - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - false - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - \ No newline at end of file diff --git a/platform/Windows/enet.vcxproj.filters b/platform/Windows/enet.vcxproj.filters deleted file mode 100644 index a4c0dbfd5..000000000 --- a/platform/Windows/enet.vcxproj.filters +++ /dev/null @@ -1,66 +0,0 @@ - - - - - {6a96e189-44d8-467a-b0f0-70b764c38007} - - - {43db2cb8-444f-415a-ba2d-f82cb5b34919} - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/platform/Windows/glad.vcxproj b/platform/Windows/glad.vcxproj deleted file mode 100644 index 1552fc51d..000000000 --- a/platform/Windows/glad.vcxproj +++ /dev/null @@ -1,203 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - - - 15.0 - Win32Proj - glad - glad - {6AC1D997-8DAE-4343-8DD8-DA2A1CA63212} - 10.0 - - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - false - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - \ No newline at end of file diff --git a/platform/Windows/glad.vcxproj.filters b/platform/Windows/glad.vcxproj.filters deleted file mode 100644 index 30d7deb72..000000000 --- a/platform/Windows/glad.vcxproj.filters +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/platform/Windows/include/dx/ddraw.h b/platform/Windows/include/dx/ddraw.h deleted file mode 100644 index 6fec27339..000000000 --- a/platform/Windows/include/dx/ddraw.h +++ /dev/null @@ -1,5800 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: ddraw.h - * Content: DirectDraw include file - * - ***************************************************************************/ - -#ifdef _MSC_VER -# include -#else - -// from: http://alleg.sourceforge.net/files/dx9mgw.zip - -#ifndef __DDRAW_INCLUDED__ -#define __DDRAW_INCLUDED__ - -//Disable the nameless union warning when building internally -#undef ENABLE_NAMELESS_UNION_PRAGMA -#ifdef DIRECTX_REDIST -#define ENABLE_NAMELESS_UNION_PRAGMA -#endif - -#ifdef ENABLE_NAMELESS_UNION_PRAGMA -#pragma warning(disable:4201) -#endif - -/* - * If you wish an application built against the newest version of DirectDraw - * to run against an older DirectDraw run time then define DIRECTDRAW_VERSION - * to be the earlies version of DirectDraw you wish to run against. For, - * example if you wish an application to run against a DX 3 runtime define - * DIRECTDRAW_VERSION to be 0x0300. - */ -#ifndef DIRECTDRAW_VERSION -#define DIRECTDRAW_VERSION 0x0700 -#endif /* DIRECTDRAW_VERSION */ - -#if defined( _WIN32 ) && !defined( _NO_COM ) -#define COM_NO_WINDOWS_H -#include -#else -#define IUnknown void -#if !defined( NT_BUILD_ENVIRONMENT ) && !defined(WINNT) - #define CO_E_NOTINITIALIZED 0x800401F0L -#endif -#endif - -#define _FACDD 0x876 -#define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) - -#include "dx_compat.h" // EDuke32 - -#ifdef __cplusplus -extern "C" { -#endif - -// -// For compilers that don't support nameless unions, do a -// -// #define NONAMELESSUNION -// -// before #include -// -#ifndef DUMMYUNIONNAMEN -#if defined(__cplusplus) || !defined(NONAMELESSUNION) -#define DUMMYUNIONNAMEN(n) -#else -#define DUMMYUNIONNAMEN(n) u##n -#endif -#endif - -#ifndef MAKEFOURCC - #define MAKEFOURCC(ch0, ch1, ch2, ch3) \ - ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \ - ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 )) -#endif //defined(MAKEFOURCC) - -/* - * FOURCC codes for DX compressed-texture pixel formats - */ -#define FOURCC_DXT1 (MAKEFOURCC('D','X','T','1')) -#define FOURCC_DXT2 (MAKEFOURCC('D','X','T','2')) -#define FOURCC_DXT3 (MAKEFOURCC('D','X','T','3')) -#define FOURCC_DXT4 (MAKEFOURCC('D','X','T','4')) -#define FOURCC_DXT5 (MAKEFOURCC('D','X','T','5')) - -/* - * GUIDS used by DirectDraw objects - */ -#if defined( _WIN32 ) && !defined( _NO_COM ) - -DEFINE_GUID( CLSID_DirectDraw, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35 ); -DEFINE_GUID( CLSID_DirectDraw7, 0x3c305196,0x50db,0x11d3,0x9c,0xfe,0x00,0xc0,0x4f,0xd9,0x30,0xc5 ); -DEFINE_GUID( CLSID_DirectDrawClipper, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xb9,0x33,0x56 ); -DEFINE_GUID( IID_IDirectDraw, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); -DEFINE_GUID( IID_IDirectDraw2, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 ); -DEFINE_GUID( IID_IDirectDraw4, 0x9c59509a,0x39bd,0x11d1,0x8c,0x4a,0x00,0xc0,0x4f,0xd9,0x30,0xc5 ); -DEFINE_GUID( IID_IDirectDraw7, 0x15e65ec0,0x3b9c,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b ); -DEFINE_GUID( IID_IDirectDrawSurface, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); -DEFINE_GUID( IID_IDirectDrawSurface2, 0x57805885,0x6eec,0x11cf,0x94,0x41,0xa8,0x23,0x03,0xc1,0x0e,0x27 ); -DEFINE_GUID( IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB ); -DEFINE_GUID( IID_IDirectDrawSurface4, 0x0B2B8630,0xAD35,0x11D0,0x8E,0xA6,0x00,0x60,0x97,0x97,0xEA,0x5B ); -DEFINE_GUID( IID_IDirectDrawSurface7, 0x06675a80,0x3b9b,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b ); -DEFINE_GUID( IID_IDirectDrawPalette, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); -DEFINE_GUID( IID_IDirectDrawClipper, 0x6C14DB85,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); -DEFINE_GUID( IID_IDirectDrawColorControl, 0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 ); -DEFINE_GUID( IID_IDirectDrawGammaControl, 0x69C11C3E,0xB46B,0x11D1,0xAD,0x7A,0x00,0xC0,0x4F,0xC2,0x9B,0x4E ); - -#endif - -/*============================================================================ - * - * DirectDraw Structures - * - * Various structures used to invoke DirectDraw. - * - *==========================================================================*/ - -struct IDirectDraw; -struct IDirectDrawSurface; -struct IDirectDrawPalette; -struct IDirectDrawClipper; - -typedef struct IDirectDraw FAR *LPDIRECTDRAW; -typedef struct IDirectDraw2 FAR *LPDIRECTDRAW2; -typedef struct IDirectDraw4 FAR *LPDIRECTDRAW4; -typedef struct IDirectDraw7 FAR *LPDIRECTDRAW7; -typedef struct IDirectDrawSurface FAR *LPDIRECTDRAWSURFACE; -typedef struct IDirectDrawSurface2 FAR *LPDIRECTDRAWSURFACE2; -typedef struct IDirectDrawSurface3 FAR *LPDIRECTDRAWSURFACE3; -typedef struct IDirectDrawSurface4 FAR *LPDIRECTDRAWSURFACE4; -typedef struct IDirectDrawSurface7 FAR *LPDIRECTDRAWSURFACE7; -typedef struct IDirectDrawPalette FAR *LPDIRECTDRAWPALETTE; -typedef struct IDirectDrawClipper FAR *LPDIRECTDRAWCLIPPER; -typedef struct IDirectDrawColorControl FAR *LPDIRECTDRAWCOLORCONTROL; -typedef struct IDirectDrawGammaControl FAR *LPDIRECTDRAWGAMMACONTROL; - -typedef struct _DDFXROP FAR *LPDDFXROP; -typedef struct _DDSURFACEDESC FAR *LPDDSURFACEDESC; -typedef struct _DDSURFACEDESC2 FAR *LPDDSURFACEDESC2; -typedef struct _DDCOLORCONTROL FAR *LPDDCOLORCONTROL; - -/* - * API's - */ -#if (defined (WIN32) || defined( _WIN32 ) ) && !defined( _NO_COM ) -//#if defined( _WIN32 ) && !defined( _NO_ENUM ) - typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKA)(GUID FAR *, LPSTR, LPSTR, LPVOID); - typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKW)(GUID FAR *, LPWSTR, LPWSTR, LPVOID); - extern HRESULT WINAPI DirectDrawEnumerateW( LPDDENUMCALLBACKW lpCallback, LPVOID lpContext ); - extern HRESULT WINAPI DirectDrawEnumerateA( LPDDENUMCALLBACKA lpCallback, LPVOID lpContext ); - /* - * Protect against old SDKs - */ - #if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500) - #define HMONITOR_DECLARED - DECLARE_HANDLE(HMONITOR); - #endif - typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKEXA)(GUID FAR *, LPSTR, LPSTR, LPVOID, HMONITOR); - typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKEXW)(GUID FAR *, LPWSTR, LPWSTR, LPVOID, HMONITOR); - extern HRESULT WINAPI DirectDrawEnumerateExW( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags); - extern HRESULT WINAPI DirectDrawEnumerateExA( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags); - typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXA)( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags); - typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXW)( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags); - - #ifdef UNICODE - typedef LPDDENUMCALLBACKW LPDDENUMCALLBACK; - #define DirectDrawEnumerate DirectDrawEnumerateW - typedef LPDDENUMCALLBACKEXW LPDDENUMCALLBACKEX; - typedef LPDIRECTDRAWENUMERATEEXW LPDIRECTDRAWENUMERATEEX; - #define DirectDrawEnumerateEx DirectDrawEnumerateExW - #else - typedef LPDDENUMCALLBACKA LPDDENUMCALLBACK; - #define DirectDrawEnumerate DirectDrawEnumerateA - typedef LPDDENUMCALLBACKEXA LPDDENUMCALLBACKEX; - typedef LPDIRECTDRAWENUMERATEEXA LPDIRECTDRAWENUMERATEEX; - #define DirectDrawEnumerateEx DirectDrawEnumerateExA - #endif - extern HRESULT WINAPI DirectDrawCreate( GUID FAR *lpGUID, LPDIRECTDRAW FAR *lplpDD, IUnknown FAR *pUnkOuter ); - extern HRESULT WINAPI DirectDrawCreateEx( GUID FAR * lpGuid, LPVOID *lplpDD, REFIID iid,IUnknown FAR *pUnkOuter ); - extern HRESULT WINAPI DirectDrawCreateClipper( DWORD dwFlags, LPDIRECTDRAWCLIPPER FAR *lplpDDClipper, IUnknown FAR *pUnkOuter ); -#endif -/* - * Flags for DirectDrawEnumerateEx - * DirectDrawEnumerateEx supercedes DirectDrawEnumerate. You must use GetProcAddress to - * obtain a function pointer (of type LPDIRECTDRAWENUMERATEEX) to DirectDrawEnumerateEx. - * By default, only the primary display device is enumerated. - * DirectDrawEnumerate is equivalent to DirectDrawEnumerate(,,DDENUM_NONDISPLAYDEVICES) - */ - -/* - * This flag causes enumeration of any GDI display devices which are part of - * the Windows Desktop - */ -#define DDENUM_ATTACHEDSECONDARYDEVICES 0x00000001L - -/* - * This flag causes enumeration of any GDI display devices which are not - * part of the Windows Desktop - */ -#define DDENUM_DETACHEDSECONDARYDEVICES 0x00000002L - -/* - * This flag causes enumeration of non-display devices - */ -#define DDENUM_NONDISPLAYDEVICES 0x00000004L - - -#define REGSTR_KEY_DDHW_DESCRIPTION "Description" -#define REGSTR_KEY_DDHW_DRIVERNAME "DriverName" -#define REGSTR_PATH_DDHW "Hardware\\DirectDrawDrivers" - -#define DDCREATE_HARDWAREONLY 0x00000001l -#define DDCREATE_EMULATIONONLY 0x00000002l - -#if defined(WINNT) || !defined(WIN32) -typedef long HRESULT; -#endif - -//#ifndef WINNT -typedef HRESULT (FAR PASCAL * LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID); -typedef HRESULT (FAR PASCAL * LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID); -typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID); -typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID); -typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID); -//#endif - -/* - * Generic pixel format with 8-bit RGB and alpha components - */ -typedef struct _DDARGB -{ - BYTE blue; - BYTE green; - BYTE red; - BYTE alpha; -} DDARGB; - -typedef DDARGB FAR *LPDDARGB; - -/* - * This version of the structure remains for backwards source compatibility. - * The DDARGB structure is the one that should be used for all DirectDraw APIs. - */ -typedef struct _DDRGBA -{ - BYTE red; - BYTE green; - BYTE blue; - BYTE alpha; -} DDRGBA; - -typedef DDRGBA FAR *LPDDRGBA; - - -/* - * DDCOLORKEY - */ -typedef struct _DDCOLORKEY -{ - DWORD dwColorSpaceLowValue; // low boundary of color space that is to - // be treated as Color Key, inclusive - DWORD dwColorSpaceHighValue; // high boundary of color space that is - // to be treated as Color Key, inclusive -} DDCOLORKEY; - -typedef DDCOLORKEY FAR* LPDDCOLORKEY; - -/* - * DDBLTFX - * Used to pass override information to the DIRECTDRAWSURFACE callback Blt. - */ -typedef struct _DDBLTFX -{ - DWORD dwSize; // size of structure - DWORD dwDDFX; // FX operations - DWORD dwROP; // Win32 raster operations - DWORD dwDDROP; // Raster operations new for DirectDraw - DWORD dwRotationAngle; // Rotation angle for blt - DWORD dwZBufferOpCode; // ZBuffer compares - DWORD dwZBufferLow; // Low limit of Z buffer - DWORD dwZBufferHigh; // High limit of Z buffer - DWORD dwZBufferBaseDest; // Destination base value - DWORD dwZDestConstBitDepth; // Bit depth used to specify Z constant for destination - union - { - DWORD dwZDestConst; // Constant to use as Z buffer for dest - LPDIRECTDRAWSURFACE lpDDSZBufferDest; // Surface to use as Z buffer for dest - } DUMMYUNIONNAMEN(1); - DWORD dwZSrcConstBitDepth; // Bit depth used to specify Z constant for source - union - { - DWORD dwZSrcConst; // Constant to use as Z buffer for src - LPDIRECTDRAWSURFACE lpDDSZBufferSrc; // Surface to use as Z buffer for src - } DUMMYUNIONNAMEN(2); - DWORD dwAlphaEdgeBlendBitDepth; // Bit depth used to specify constant for alpha edge blend - DWORD dwAlphaEdgeBlend; // Alpha for edge blending - DWORD dwReserved; - DWORD dwAlphaDestConstBitDepth; // Bit depth used to specify alpha constant for destination - union - { - DWORD dwAlphaDestConst; // Constant to use as Alpha Channel - LPDIRECTDRAWSURFACE lpDDSAlphaDest; // Surface to use as Alpha Channel - } DUMMYUNIONNAMEN(3); - DWORD dwAlphaSrcConstBitDepth; // Bit depth used to specify alpha constant for source - union - { - DWORD dwAlphaSrcConst; // Constant to use as Alpha Channel - LPDIRECTDRAWSURFACE lpDDSAlphaSrc; // Surface to use as Alpha Channel - } DUMMYUNIONNAMEN(4); - union - { - DWORD dwFillColor; // color in RGB or Palettized - DWORD dwFillDepth; // depth value for z-buffer - DWORD dwFillPixel; // pixel value for RGBA or RGBZ - LPDIRECTDRAWSURFACE lpDDSPattern; // Surface to use as pattern - } DUMMYUNIONNAMEN(5); - DDCOLORKEY ddckDestColorkey; // DestColorkey override - DDCOLORKEY ddckSrcColorkey; // SrcColorkey override -} DDBLTFX; - -typedef DDBLTFX FAR* LPDDBLTFX; - - - -/* - * DDSCAPS - */ -typedef struct _DDSCAPS -{ - DWORD dwCaps; // capabilities of surface wanted -} DDSCAPS; - -typedef DDSCAPS FAR* LPDDSCAPS; - - -/* - * DDOSCAPS - */ -typedef struct _DDOSCAPS -{ - DWORD dwCaps; // capabilities of surface wanted -} DDOSCAPS; - -typedef DDOSCAPS FAR* LPDDOSCAPS; - -/* - * This structure is used internally by DirectDraw. - */ -typedef struct _DDSCAPSEX -{ - DWORD dwCaps2; - DWORD dwCaps3; - union - { - DWORD dwCaps4; - DWORD dwVolumeDepth; - } DUMMYUNIONNAMEN(1); -} DDSCAPSEX, FAR * LPDDSCAPSEX; - -/* - * DDSCAPS2 - */ -typedef struct _DDSCAPS2 -{ - DWORD dwCaps; // capabilities of surface wanted - DWORD dwCaps2; - DWORD dwCaps3; - union - { - DWORD dwCaps4; - DWORD dwVolumeDepth; - } DUMMYUNIONNAMEN(1); -} DDSCAPS2; - -typedef DDSCAPS2 FAR* LPDDSCAPS2; - -/* - * DDCAPS - */ -#define DD_ROP_SPACE (256/32) // space required to store ROP array -/* - * NOTE: Our choosen structure number scheme is to append a single digit to - * the end of the structure giving the version that structure is associated - * with. - */ - -/* - * This structure represents the DDCAPS structure released in DirectDraw 1.0. It is used internally - * by DirectDraw to interpret caps passed into ddraw by drivers written prior to the release of DirectDraw 2.0. - * New applications should use the DDCAPS structure defined below. - */ -typedef struct _DDCAPS_DX1 -{ - DWORD dwSize; // size of the DDDRIVERCAPS structure - DWORD dwCaps; // driver specific capabilities - DWORD dwCaps2; // more driver specific capabilites - DWORD dwCKeyCaps; // color key capabilities of the surface - DWORD dwFXCaps; // driver specific stretching and effects capabilites - DWORD dwFXAlphaCaps; // alpha driver specific capabilities - DWORD dwPalCaps; // palette capabilities - DWORD dwSVCaps; // stereo vision capabilities - DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 - DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 - DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 - DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 - DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 - DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 - DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 - DWORD dwVidMemTotal; // total amount of video memory - DWORD dwVidMemFree; // amount of free video memory - DWORD dwMaxVisibleOverlays; // maximum number of visible overlays - DWORD dwCurrVisibleOverlays; // current number of visible overlays - DWORD dwNumFourCCCodes; // number of four cc codes - DWORD dwAlignBoundarySrc; // source rectangle alignment - DWORD dwAlignSizeSrc; // source rectangle byte size - DWORD dwAlignBoundaryDest; // dest rectangle alignment - DWORD dwAlignSizeDest; // dest rectangle byte size - DWORD dwAlignStrideAlign; // stride alignment - DWORD dwRops[DD_ROP_SPACE]; // ROPS supported - DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities - DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 - DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 - DWORD dwMinLiveVideoStretch; // OBSOLETE! This field remains for compatability reasons only - DWORD dwMaxLiveVideoStretch; // OBSOLETE! This field remains for compatability reasons only - DWORD dwMinHwCodecStretch; // OBSOLETE! This field remains for compatability reasons only - DWORD dwMaxHwCodecStretch; // OBSOLETE! This field remains for compatability reasons only - DWORD dwReserved1; // reserved - DWORD dwReserved2; // reserved - DWORD dwReserved3; // reserved -} DDCAPS_DX1; - -typedef DDCAPS_DX1 FAR* LPDDCAPS_DX1; - -/* - * This structure is the DDCAPS structure as it was in version 2 and 3 of Direct X. - * It is present for back compatability. - */ -typedef struct _DDCAPS_DX3 -{ - DWORD dwSize; // size of the DDDRIVERCAPS structure - DWORD dwCaps; // driver specific capabilities - DWORD dwCaps2; // more driver specific capabilites - DWORD dwCKeyCaps; // color key capabilities of the surface - DWORD dwFXCaps; // driver specific stretching and effects capabilites - DWORD dwFXAlphaCaps; // alpha driver specific capabilities - DWORD dwPalCaps; // palette capabilities - DWORD dwSVCaps; // stereo vision capabilities - DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 - DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 - DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 - DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 - DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 - DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 - DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 - DWORD dwVidMemTotal; // total amount of video memory - DWORD dwVidMemFree; // amount of free video memory - DWORD dwMaxVisibleOverlays; // maximum number of visible overlays - DWORD dwCurrVisibleOverlays; // current number of visible overlays - DWORD dwNumFourCCCodes; // number of four cc codes - DWORD dwAlignBoundarySrc; // source rectangle alignment - DWORD dwAlignSizeSrc; // source rectangle byte size - DWORD dwAlignBoundaryDest; // dest rectangle alignment - DWORD dwAlignSizeDest; // dest rectangle byte size - DWORD dwAlignStrideAlign; // stride alignment - DWORD dwRops[DD_ROP_SPACE]; // ROPS supported - DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities - DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 - DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 - DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 - DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 - DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 - DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 - DWORD dwReserved1; // reserved - DWORD dwReserved2; // reserved - DWORD dwReserved3; // reserved - DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts - DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts - DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts - DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts - DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts - DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts - DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts - DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts - DWORD dwSSBCaps; // driver specific capabilities for System->System blts - DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts - DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts - DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts - DWORD dwReserved4; // reserved - DWORD dwReserved5; // reserved - DWORD dwReserved6; // reserved -} DDCAPS_DX3; -typedef DDCAPS_DX3 FAR* LPDDCAPS_DX3; - -/* - * This structure is the DDCAPS structure as it was in version 5 of Direct X. - * It is present for back compatability. - */ -typedef struct _DDCAPS_DX5 -{ -/* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure -/* 4*/ DWORD dwCaps; // driver specific capabilities -/* 8*/ DWORD dwCaps2; // more driver specific capabilites -/* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface -/* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites -/* 14*/ DWORD dwFXAlphaCaps; // alpha driver specific capabilities -/* 18*/ DWORD dwPalCaps; // palette capabilities -/* 1c*/ DWORD dwSVCaps; // stereo vision capabilities -/* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 -/* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 -/* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 -/* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 -/* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 -/* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 -/* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 -/* 3c*/ DWORD dwVidMemTotal; // total amount of video memory -/* 40*/ DWORD dwVidMemFree; // amount of free video memory -/* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays -/* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays -/* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes -/* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment -/* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size -/* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment -/* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size -/* 60*/ DWORD dwAlignStrideAlign; // stride alignment -/* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported -/* 84*/ DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities -/* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* a0*/ DWORD dwReserved1; // reserved -/* a4*/ DWORD dwReserved2; // reserved -/* a8*/ DWORD dwReserved3; // reserved -/* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts -/* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts -/* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts -/* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts -/* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts -/* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts -/* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts -/* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts -/*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts -/*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts -/*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts -/*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts -// Members added for DX5: -/*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports -/*134*/ DWORD dwCurrVideoPorts; // current number of video ports used -/*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts -/*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts -/*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts -/*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts -/*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts -/*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts -} DDCAPS_DX5; -typedef DDCAPS_DX5 FAR* LPDDCAPS_DX5; - -typedef struct _DDCAPS_DX6 -{ -/* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure -/* 4*/ DWORD dwCaps; // driver specific capabilities -/* 8*/ DWORD dwCaps2; // more driver specific capabilites -/* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface -/* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites -/* 14*/ DWORD dwFXAlphaCaps; // alpha caps -/* 18*/ DWORD dwPalCaps; // palette capabilities -/* 1c*/ DWORD dwSVCaps; // stereo vision capabilities -/* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 -/* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 -/* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 -/* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 -/* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 -/* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 -/* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 -/* 3c*/ DWORD dwVidMemTotal; // total amount of video memory -/* 40*/ DWORD dwVidMemFree; // amount of free video memory -/* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays -/* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays -/* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes -/* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment -/* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size -/* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment -/* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size -/* 60*/ DWORD dwAlignStrideAlign; // stride alignment -/* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported -/* 84*/ DDSCAPS ddsOldCaps; // Was DDSCAPS ddsCaps. ddsCaps is of type DDSCAPS2 for DX6 -/* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* a0*/ DWORD dwReserved1; // reserved -/* a4*/ DWORD dwReserved2; // reserved -/* a8*/ DWORD dwReserved3; // reserved -/* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts -/* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts -/* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts -/* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts -/* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts -/* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts -/* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts -/* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts -/*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts -/*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts -/*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts -/*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts -/*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports -/*134*/ DWORD dwCurrVideoPorts; // current number of video ports used -/*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts -/*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts -/*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts -/*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts -/*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts -/*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts -// Members added for DX6 release -/*16c*/ DDSCAPS2 ddsCaps; // Surface Caps -} DDCAPS_DX6; -typedef DDCAPS_DX6 FAR* LPDDCAPS_DX6; - -typedef struct _DDCAPS_DX7 -{ -/* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure -/* 4*/ DWORD dwCaps; // driver specific capabilities -/* 8*/ DWORD dwCaps2; // more driver specific capabilites -/* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface -/* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites -/* 14*/ DWORD dwFXAlphaCaps; // alpha driver specific capabilities -/* 18*/ DWORD dwPalCaps; // palette capabilities -/* 1c*/ DWORD dwSVCaps; // stereo vision capabilities -/* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 -/* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 -/* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 -/* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 -/* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 -/* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 -/* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 -/* 3c*/ DWORD dwVidMemTotal; // total amount of video memory -/* 40*/ DWORD dwVidMemFree; // amount of free video memory -/* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays -/* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays -/* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes -/* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment -/* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size -/* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment -/* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size -/* 60*/ DWORD dwAlignStrideAlign; // stride alignment -/* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported -/* 84*/ DDSCAPS ddsOldCaps; // Was DDSCAPS ddsCaps. ddsCaps is of type DDSCAPS2 for DX6 -/* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 -/* a0*/ DWORD dwReserved1; // reserved -/* a4*/ DWORD dwReserved2; // reserved -/* a8*/ DWORD dwReserved3; // reserved -/* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts -/* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts -/* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts -/* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts -/* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts -/* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts -/* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts -/* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts -/*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts -/*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts -/*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts -/*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts -/*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports -/*134*/ DWORD dwCurrVideoPorts; // current number of video ports used -/*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts -/*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts -/*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts -/*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts -/*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts -/*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts -// Members added for DX6 release -/*16c*/ DDSCAPS2 ddsCaps; // Surface Caps -} DDCAPS_DX7; -typedef DDCAPS_DX7 FAR* LPDDCAPS_DX7; - - -#if DIRECTDRAW_VERSION <= 0x300 - typedef DDCAPS_DX3 DDCAPS; -#elif DIRECTDRAW_VERSION <= 0x500 - typedef DDCAPS_DX5 DDCAPS; -#elif DIRECTDRAW_VERSION <= 0x600 - typedef DDCAPS_DX6 DDCAPS; -#else - typedef DDCAPS_DX7 DDCAPS; -#endif - -typedef DDCAPS FAR* LPDDCAPS; - - - -/* - * DDPIXELFORMAT - */ -typedef struct _DDPIXELFORMAT -{ - DWORD dwSize; // size of structure - DWORD dwFlags; // pixel format flags - DWORD dwFourCC; // (FOURCC code) - union - { - DWORD dwRGBBitCount; // how many bits per pixel - DWORD dwYUVBitCount; // how many bits per pixel - DWORD dwZBufferBitDepth; // how many total bits/pixel in z buffer (including any stencil bits) - DWORD dwAlphaBitDepth; // how many bits for alpha channels - DWORD dwLuminanceBitCount; // how many bits per pixel - DWORD dwBumpBitCount; // how many bits per "buxel", total - DWORD dwPrivateFormatBitCount;// Bits per pixel of private driver formats. Only valid in texture - // format list and if DDPF_D3DFORMAT is set - } DUMMYUNIONNAMEN(1); - union - { - DWORD dwRBitMask; // mask for red bit - DWORD dwYBitMask; // mask for Y bits - DWORD dwStencilBitDepth; // how many stencil bits (note: dwZBufferBitDepth-dwStencilBitDepth is total Z-only bits) - DWORD dwLuminanceBitMask; // mask for luminance bits - DWORD dwBumpDuBitMask; // mask for bump map U delta bits - DWORD dwOperations; // DDPF_D3DFORMAT Operations - } DUMMYUNIONNAMEN(2); - union - { - DWORD dwGBitMask; // mask for green bits - DWORD dwUBitMask; // mask for U bits - DWORD dwZBitMask; // mask for Z bits - DWORD dwBumpDvBitMask; // mask for bump map V delta bits - struct - { - WORD wFlipMSTypes; // Multisample methods supported via flip for this D3DFORMAT - WORD wBltMSTypes; // Multisample methods supported via blt for this D3DFORMAT - } MultiSampleCaps; - - } DUMMYUNIONNAMEN(3); - union - { - DWORD dwBBitMask; // mask for blue bits - DWORD dwVBitMask; // mask for V bits - DWORD dwStencilBitMask; // mask for stencil bits - DWORD dwBumpLuminanceBitMask; // mask for luminance in bump map - } DUMMYUNIONNAMEN(4); - union - { - DWORD dwRGBAlphaBitMask; // mask for alpha channel - DWORD dwYUVAlphaBitMask; // mask for alpha channel - DWORD dwLuminanceAlphaBitMask;// mask for alpha channel - DWORD dwRGBZBitMask; // mask for Z channel - DWORD dwYUVZBitMask; // mask for Z channel - } DUMMYUNIONNAMEN(5); -} DDPIXELFORMAT; - -typedef DDPIXELFORMAT FAR* LPDDPIXELFORMAT; - -/* - * DDOVERLAYFX - */ -typedef struct _DDOVERLAYFX -{ - DWORD dwSize; // size of structure - DWORD dwAlphaEdgeBlendBitDepth; // Bit depth used to specify constant for alpha edge blend - DWORD dwAlphaEdgeBlend; // Constant to use as alpha for edge blend - DWORD dwReserved; - DWORD dwAlphaDestConstBitDepth; // Bit depth used to specify alpha constant for destination - union - { - DWORD dwAlphaDestConst; // Constant to use as alpha channel for dest - LPDIRECTDRAWSURFACE lpDDSAlphaDest; // Surface to use as alpha channel for dest - } DUMMYUNIONNAMEN(1); - DWORD dwAlphaSrcConstBitDepth; // Bit depth used to specify alpha constant for source - union - { - DWORD dwAlphaSrcConst; // Constant to use as alpha channel for src - LPDIRECTDRAWSURFACE lpDDSAlphaSrc; // Surface to use as alpha channel for src - } DUMMYUNIONNAMEN(2); - DDCOLORKEY dckDestColorkey; // DestColorkey override - DDCOLORKEY dckSrcColorkey; // DestColorkey override - DWORD dwDDFX; // Overlay FX - DWORD dwFlags; // flags -} DDOVERLAYFX; - -typedef DDOVERLAYFX FAR *LPDDOVERLAYFX; - - -/* - * DDBLTBATCH: BltBatch entry structure - */ -typedef struct _DDBLTBATCH -{ - LPRECT lprDest; - LPDIRECTDRAWSURFACE lpDDSSrc; - LPRECT lprSrc; - DWORD dwFlags; - LPDDBLTFX lpDDBltFx; -} DDBLTBATCH; - -typedef DDBLTBATCH FAR * LPDDBLTBATCH; - - -/* - * DDGAMMARAMP - */ -typedef struct _DDGAMMARAMP -{ - WORD red[256]; - WORD green[256]; - WORD blue[256]; -} DDGAMMARAMP; -typedef DDGAMMARAMP FAR * LPDDGAMMARAMP; - -/* - * This is the structure within which DirectDraw returns data about the current graphics driver and chipset - */ - -#define MAX_DDDEVICEID_STRING 512 - -typedef struct tagDDDEVICEIDENTIFIER -{ - /* - * These elements are for presentation to the user only. They should not be used to identify particular - * drivers, since this is unreliable and many different strings may be associated with the same - * device, and the same driver from different vendors. - */ - char szDriver[MAX_DDDEVICEID_STRING]; - char szDescription[MAX_DDDEVICEID_STRING]; - - /* - * This element is the version of the DirectDraw/3D driver. It is legal to do <, > comparisons - * on the whole 64 bits. Caution should be exercised if you use this element to identify problematic - * drivers. It is recommended that guidDeviceIdentifier is used for this purpose. - * - * This version has the form: - * wProduct = HIWORD(liDriverVersion.HighPart) - * wVersion = LOWORD(liDriverVersion.HighPart) - * wSubVersion = HIWORD(liDriverVersion.LowPart) - * wBuild = LOWORD(liDriverVersion.LowPart) - */ -#ifdef _WIN32 - LARGE_INTEGER liDriverVersion; /* Defined for applications and other 32 bit components */ -#else - DWORD dwDriverVersionLowPart; /* Defined for 16 bit driver components */ - DWORD dwDriverVersionHighPart; -#endif - - - /* - * These elements can be used to identify particular chipsets. Use with extreme caution. - * dwVendorId Identifies the manufacturer. May be zero if unknown. - * dwDeviceId Identifies the type of chipset. May be zero if unknown. - * dwSubSysId Identifies the subsystem, typically this means the particular board. May be zero if unknown. - * dwRevision Identifies the revision level of the chipset. May be zero if unknown. - */ - DWORD dwVendorId; - DWORD dwDeviceId; - DWORD dwSubSysId; - DWORD dwRevision; - - /* - * This element can be used to check changes in driver/chipset. This GUID is a unique identifier for the - * driver/chipset pair. Use this element if you wish to track changes to the driver/chipset in order to - * reprofile the graphics subsystem. - * This element can also be used to identify particular problematic drivers. - */ - GUID guidDeviceIdentifier; -} DDDEVICEIDENTIFIER, * LPDDDEVICEIDENTIFIER; - -typedef struct tagDDDEVICEIDENTIFIER2 -{ - /* - * These elements are for presentation to the user only. They should not be used to identify particular - * drivers, since this is unreliable and many different strings may be associated with the same - * device, and the same driver from different vendors. - */ - char szDriver[MAX_DDDEVICEID_STRING]; - char szDescription[MAX_DDDEVICEID_STRING]; - - /* - * This element is the version of the DirectDraw/3D driver. It is legal to do <, > comparisons - * on the whole 64 bits. Caution should be exercised if you use this element to identify problematic - * drivers. It is recommended that guidDeviceIdentifier is used for this purpose. - * - * This version has the form: - * wProduct = HIWORD(liDriverVersion.HighPart) - * wVersion = LOWORD(liDriverVersion.HighPart) - * wSubVersion = HIWORD(liDriverVersion.LowPart) - * wBuild = LOWORD(liDriverVersion.LowPart) - */ -#ifdef _WIN32 - LARGE_INTEGER liDriverVersion; /* Defined for applications and other 32 bit components */ -#else - DWORD dwDriverVersionLowPart; /* Defined for 16 bit driver components */ - DWORD dwDriverVersionHighPart; -#endif - - - /* - * These elements can be used to identify particular chipsets. Use with extreme caution. - * dwVendorId Identifies the manufacturer. May be zero if unknown. - * dwDeviceId Identifies the type of chipset. May be zero if unknown. - * dwSubSysId Identifies the subsystem, typically this means the particular board. May be zero if unknown. - * dwRevision Identifies the revision level of the chipset. May be zero if unknown. - */ - DWORD dwVendorId; - DWORD dwDeviceId; - DWORD dwSubSysId; - DWORD dwRevision; - - /* - * This element can be used to check changes in driver/chipset. This GUID is a unique identifier for the - * driver/chipset pair. Use this element if you wish to track changes to the driver/chipset in order to - * reprofile the graphics subsystem. - * This element can also be used to identify particular problematic drivers. - */ - GUID guidDeviceIdentifier; - - /* - * This element is used to determine the Windows Hardware Quality Lab (WHQL) - * certification level for this driver/device pair. - */ - DWORD dwWHQLLevel; - -} DDDEVICEIDENTIFIER2, * LPDDDEVICEIDENTIFIER2; - -/* - * Flags for the IDirectDraw4::GetDeviceIdentifier method - */ - -/* - * This flag causes GetDeviceIdentifier to return information about the host (typically 2D) adapter in a system equipped - * with a stacked secondary 3D adapter. Such an adapter appears to the application as if it were part of the - * host adapter, but is typically physcially located on a separate card. The stacked secondary's information is - * returned when GetDeviceIdentifier's dwFlags field is zero, since this most accurately reflects the qualities - * of the DirectDraw object involved. - */ -#define DDGDI_GETHOSTIDENTIFIER 0x00000001L - -/* - * Macros for interpretting DDEVICEIDENTIFIER2.dwWHQLLevel - */ -#define GET_WHQL_YEAR( dwWHQLLevel ) \ - ( (dwWHQLLevel) / 0x10000 ) -#define GET_WHQL_MONTH( dwWHQLLevel ) \ - ( ( (dwWHQLLevel) / 0x100 ) & 0x00ff ) -#define GET_WHQL_DAY( dwWHQLLevel ) \ - ( (dwWHQLLevel) & 0xff ) - - -/* - * callbacks - */ -typedef DWORD (FAR PASCAL *LPCLIPPERCALLBACK)(LPDIRECTDRAWCLIPPER lpDDClipper, HWND hWnd, DWORD code, LPVOID lpContext ); -#ifdef STREAMING -typedef DWORD (FAR PASCAL *LPSURFACESTREAMINGCALLBACK)(DWORD); -#endif - - -/* - * INTERACES FOLLOW: - * IDirectDraw - * IDirectDrawClipper - * IDirectDrawPalette - * IDirectDrawSurface - */ - -/* - * IDirectDraw - */ -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDraw -DECLARE_INTERFACE_( IDirectDraw, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDraw methods ***/ - STDMETHOD(Compact)(THIS) PURE; - STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; - STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; - STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE FAR *, IUnknown FAR *) PURE; - STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE FAR * ) PURE; - STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE; - STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE; - STDMETHOD(FlipToGDISurface)(THIS) PURE; - STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; - STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE; - STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; - STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE FAR *) PURE; - STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; - STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; - STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE; - STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; - STDMETHOD(RestoreDisplayMode)(THIS) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE; - STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD) PURE; - STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDraw_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) -#define IDirectDraw_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDraw_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDraw_Compact(p) (p)->lpVtbl->Compact(p) -#define IDirectDraw_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c) -#define IDirectDraw_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d) -#define IDirectDraw_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c) -#define IDirectDraw_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b) -#define IDirectDraw_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d) -#define IDirectDraw_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d) -#define IDirectDraw_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p) -#define IDirectDraw_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b) -#define IDirectDraw_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a) -#define IDirectDraw_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b) -#define IDirectDraw_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a) -#define IDirectDraw_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a) -#define IDirectDraw_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a) -#define IDirectDraw_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a) -#define IDirectDraw_Initialize(p, a) (p)->lpVtbl->Initialize(p, a) -#define IDirectDraw_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p) -#define IDirectDraw_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b) -#define IDirectDraw_SetDisplayMode(p, a, b, c) (p)->lpVtbl->SetDisplayMode(p, a, b, c) -#define IDirectDraw_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b) -#else -#define IDirectDraw_QueryInterface(p, a, b) (p)->QueryInterface(a, b) -#define IDirectDraw_AddRef(p) (p)->AddRef() -#define IDirectDraw_Release(p) (p)->Release() -#define IDirectDraw_Compact(p) (p)->Compact() -#define IDirectDraw_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c) -#define IDirectDraw_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d) -#define IDirectDraw_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c) -#define IDirectDraw_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b) -#define IDirectDraw_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d) -#define IDirectDraw_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d) -#define IDirectDraw_FlipToGDISurface(p) (p)->FlipToGDISurface() -#define IDirectDraw_GetCaps(p, a, b) (p)->GetCaps(a, b) -#define IDirectDraw_GetDisplayMode(p, a) (p)->GetDisplayMode(a) -#define IDirectDraw_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b) -#define IDirectDraw_GetGDISurface(p, a) (p)->GetGDISurface(a) -#define IDirectDraw_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a) -#define IDirectDraw_GetScanLine(p, a) (p)->GetScanLine(a) -#define IDirectDraw_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a) -#define IDirectDraw_Initialize(p, a) (p)->Initialize(a) -#define IDirectDraw_RestoreDisplayMode(p) (p)->RestoreDisplayMode() -#define IDirectDraw_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b) -#define IDirectDraw_SetDisplayMode(p, a, b, c) (p)->SetDisplayMode(a, b, c) -#define IDirectDraw_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b) -#endif - -#endif - -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDraw2 -DECLARE_INTERFACE_( IDirectDraw2, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDraw methods ***/ - STDMETHOD(Compact)(THIS) PURE; - STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; - STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; - STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE FAR *, IUnknown FAR *) PURE; - STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE FAR * ) PURE; - STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE; - STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE; - STDMETHOD(FlipToGDISurface)(THIS) PURE; - STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; - STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE; - STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; - STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE FAR *) PURE; - STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; - STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; - STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE; - STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; - STDMETHOD(RestoreDisplayMode)(THIS) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE; - STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE; - STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE; - /*** Added in the v2 interface ***/ - STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS, LPDWORD, LPDWORD) PURE; -}; -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDraw2_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) -#define IDirectDraw2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDraw2_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDraw2_Compact(p) (p)->lpVtbl->Compact(p) -#define IDirectDraw2_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c) -#define IDirectDraw2_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d) -#define IDirectDraw2_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c) -#define IDirectDraw2_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b) -#define IDirectDraw2_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d) -#define IDirectDraw2_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d) -#define IDirectDraw2_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p) -#define IDirectDraw2_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b) -#define IDirectDraw2_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a) -#define IDirectDraw2_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b) -#define IDirectDraw2_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a) -#define IDirectDraw2_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a) -#define IDirectDraw2_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a) -#define IDirectDraw2_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a) -#define IDirectDraw2_Initialize(p, a) (p)->lpVtbl->Initialize(p, a) -#define IDirectDraw2_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p) -#define IDirectDraw2_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b) -#define IDirectDraw2_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e) -#define IDirectDraw2_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b) -#define IDirectDraw2_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c) -#else -#define IDirectDraw2_QueryInterface(p, a, b) (p)->QueryInterface(a, b) -#define IDirectDraw2_AddRef(p) (p)->AddRef() -#define IDirectDraw2_Release(p) (p)->Release() -#define IDirectDraw2_Compact(p) (p)->Compact() -#define IDirectDraw2_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c) -#define IDirectDraw2_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d) -#define IDirectDraw2_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c) -#define IDirectDraw2_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b) -#define IDirectDraw2_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d) -#define IDirectDraw2_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d) -#define IDirectDraw2_FlipToGDISurface(p) (p)->FlipToGDISurface() -#define IDirectDraw2_GetCaps(p, a, b) (p)->GetCaps(a, b) -#define IDirectDraw2_GetDisplayMode(p, a) (p)->GetDisplayMode(a) -#define IDirectDraw2_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b) -#define IDirectDraw2_GetGDISurface(p, a) (p)->GetGDISurface(a) -#define IDirectDraw2_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a) -#define IDirectDraw2_GetScanLine(p, a) (p)->GetScanLine(a) -#define IDirectDraw2_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a) -#define IDirectDraw2_Initialize(p, a) (p)->Initialize(a) -#define IDirectDraw2_RestoreDisplayMode(p) (p)->RestoreDisplayMode() -#define IDirectDraw2_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b) -#define IDirectDraw2_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e) -#define IDirectDraw2_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b) -#define IDirectDraw2_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c) -#endif - -#endif - -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDraw4 -DECLARE_INTERFACE_( IDirectDraw4, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDraw methods ***/ - STDMETHOD(Compact)(THIS) PURE; - STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; - STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; - STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2, LPDIRECTDRAWSURFACE4 FAR *, IUnknown FAR *) PURE; - STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE4, LPDIRECTDRAWSURFACE4 FAR * ) PURE; - STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC2, LPVOID, LPDDENUMMODESCALLBACK2 ) PURE; - STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC2, LPVOID,LPDDENUMSURFACESCALLBACK2 ) PURE; - STDMETHOD(FlipToGDISurface)(THIS) PURE; - STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; - STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC2) PURE; - STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; - STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE4 FAR *) PURE; - STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; - STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; - STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE; - STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; - STDMETHOD(RestoreDisplayMode)(THIS) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE; - STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE; - STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE; - /*** Added in the v2 interface ***/ - STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2, LPDWORD, LPDWORD) PURE; - /*** Added in the V4 Interface ***/ - STDMETHOD(GetSurfaceFromDC) (THIS_ HDC, LPDIRECTDRAWSURFACE4 *) PURE; - STDMETHOD(RestoreAllSurfaces)(THIS) PURE; - STDMETHOD(TestCooperativeLevel)(THIS) PURE; - STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER, DWORD ) PURE; -}; -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDraw4_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) -#define IDirectDraw4_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDraw4_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDraw4_Compact(p) (p)->lpVtbl->Compact(p) -#define IDirectDraw4_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c) -#define IDirectDraw4_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d) -#define IDirectDraw4_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c) -#define IDirectDraw4_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b) -#define IDirectDraw4_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d) -#define IDirectDraw4_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d) -#define IDirectDraw4_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p) -#define IDirectDraw4_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b) -#define IDirectDraw4_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a) -#define IDirectDraw4_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b) -#define IDirectDraw4_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a) -#define IDirectDraw4_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a) -#define IDirectDraw4_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a) -#define IDirectDraw4_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a) -#define IDirectDraw4_Initialize(p, a) (p)->lpVtbl->Initialize(p, a) -#define IDirectDraw4_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p) -#define IDirectDraw4_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b) -#define IDirectDraw4_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e) -#define IDirectDraw4_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b) -#define IDirectDraw4_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c) -#define IDirectDraw4_GetSurfaceFromDC(p, a, b) (p)->lpVtbl->GetSurfaceFromDC(p, a, b) -#define IDirectDraw4_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p) -#define IDirectDraw4_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) -#define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b) -#else -#define IDirectDraw4_QueryInterface(p, a, b) (p)->QueryInterface(a, b) -#define IDirectDraw4_AddRef(p) (p)->AddRef() -#define IDirectDraw4_Release(p) (p)->Release() -#define IDirectDraw4_Compact(p) (p)->Compact() -#define IDirectDraw4_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c) -#define IDirectDraw4_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d) -#define IDirectDraw4_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c) -#define IDirectDraw4_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b) -#define IDirectDraw4_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d) -#define IDirectDraw4_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d) -#define IDirectDraw4_FlipToGDISurface(p) (p)->FlipToGDISurface() -#define IDirectDraw4_GetCaps(p, a, b) (p)->GetCaps(a, b) -#define IDirectDraw4_GetDisplayMode(p, a) (p)->GetDisplayMode(a) -#define IDirectDraw4_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b) -#define IDirectDraw4_GetGDISurface(p, a) (p)->GetGDISurface(a) -#define IDirectDraw4_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a) -#define IDirectDraw4_GetScanLine(p, a) (p)->GetScanLine(a) -#define IDirectDraw4_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a) -#define IDirectDraw4_Initialize(p, a) (p)->Initialize(a) -#define IDirectDraw4_RestoreDisplayMode(p) (p)->RestoreDisplayMode() -#define IDirectDraw4_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b) -#define IDirectDraw4_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e) -#define IDirectDraw4_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b) -#define IDirectDraw4_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c) -#define IDirectDraw4_GetSurfaceFromDC(p, a, b) (p)->GetSurfaceFromDC(a, b) -#define IDirectDraw4_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces() -#define IDirectDraw4_TestCooperativeLevel(p) (p)->TestCooperativeLevel() -#define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b) -#endif - -#endif - -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDraw7 -DECLARE_INTERFACE_( IDirectDraw7, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDraw methods ***/ - STDMETHOD(Compact)(THIS) PURE; - STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; - STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; - STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2, LPDIRECTDRAWSURFACE7 FAR *, IUnknown FAR *) PURE; - STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE7, LPDIRECTDRAWSURFACE7 FAR * ) PURE; - STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC2, LPVOID, LPDDENUMMODESCALLBACK2 ) PURE; - STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC2, LPVOID,LPDDENUMSURFACESCALLBACK7 ) PURE; - STDMETHOD(FlipToGDISurface)(THIS) PURE; - STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; - STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC2) PURE; - STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; - STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE7 FAR *) PURE; - STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; - STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; - STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE; - STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; - STDMETHOD(RestoreDisplayMode)(THIS) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE; - STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE; - STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE; - /*** Added in the v2 interface ***/ - STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2, LPDWORD, LPDWORD) PURE; - /*** Added in the V4 Interface ***/ - STDMETHOD(GetSurfaceFromDC) (THIS_ HDC, LPDIRECTDRAWSURFACE7 *) PURE; - STDMETHOD(RestoreAllSurfaces)(THIS) PURE; - STDMETHOD(TestCooperativeLevel)(THIS) PURE; - STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER2, DWORD ) PURE; - STDMETHOD(StartModeTest)(THIS_ LPSIZE, DWORD, DWORD ) PURE; - STDMETHOD(EvaluateMode)(THIS_ DWORD, DWORD * ) PURE; -}; -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDraw7_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) -#define IDirectDraw7_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDraw7_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDraw7_Compact(p) (p)->lpVtbl->Compact(p) -#define IDirectDraw7_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c) -#define IDirectDraw7_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d) -#define IDirectDraw7_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c) -#define IDirectDraw7_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b) -#define IDirectDraw7_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d) -#define IDirectDraw7_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d) -#define IDirectDraw7_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p) -#define IDirectDraw7_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b) -#define IDirectDraw7_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a) -#define IDirectDraw7_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b) -#define IDirectDraw7_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a) -#define IDirectDraw7_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a) -#define IDirectDraw7_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a) -#define IDirectDraw7_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a) -#define IDirectDraw7_Initialize(p, a) (p)->lpVtbl->Initialize(p, a) -#define IDirectDraw7_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p) -#define IDirectDraw7_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b) -#define IDirectDraw7_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e) -#define IDirectDraw7_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b) -#define IDirectDraw7_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c) -#define IDirectDraw7_GetSurfaceFromDC(p, a, b) (p)->lpVtbl->GetSurfaceFromDC(p, a, b) -#define IDirectDraw7_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p) -#define IDirectDraw7_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) -#define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b) -#define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(p,a,b,c) -#define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(p,a,b) -#else -#define IDirectDraw7_QueryInterface(p, a, b) (p)->QueryInterface(a, b) -#define IDirectDraw7_AddRef(p) (p)->AddRef() -#define IDirectDraw7_Release(p) (p)->Release() -#define IDirectDraw7_Compact(p) (p)->Compact() -#define IDirectDraw7_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c) -#define IDirectDraw7_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d) -#define IDirectDraw7_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c) -#define IDirectDraw7_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b) -#define IDirectDraw7_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d) -#define IDirectDraw7_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d) -#define IDirectDraw7_FlipToGDISurface(p) (p)->FlipToGDISurface() -#define IDirectDraw7_GetCaps(p, a, b) (p)->GetCaps(a, b) -#define IDirectDraw7_GetDisplayMode(p, a) (p)->GetDisplayMode(a) -#define IDirectDraw7_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b) -#define IDirectDraw7_GetGDISurface(p, a) (p)->GetGDISurface(a) -#define IDirectDraw7_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a) -#define IDirectDraw7_GetScanLine(p, a) (p)->GetScanLine(a) -#define IDirectDraw7_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a) -#define IDirectDraw7_Initialize(p, a) (p)->Initialize(a) -#define IDirectDraw7_RestoreDisplayMode(p) (p)->RestoreDisplayMode() -#define IDirectDraw7_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b) -#define IDirectDraw7_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e) -#define IDirectDraw7_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b) -#define IDirectDraw7_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c) -#define IDirectDraw7_GetSurfaceFromDC(p, a, b) (p)->GetSurfaceFromDC(a, b) -#define IDirectDraw7_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces() -#define IDirectDraw7_TestCooperativeLevel(p) (p)->TestCooperativeLevel() -#define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b) -#define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(a,b,c) -#define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(a,b) -#endif - -#endif - - -/* - * IDirectDrawPalette - */ -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDrawPalette -DECLARE_INTERFACE_( IDirectDrawPalette, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawPalette methods ***/ - STDMETHOD(GetCaps)(THIS_ LPDWORD) PURE; - STDMETHOD(GetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE; - STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD, LPPALETTEENTRY) PURE; - STDMETHOD(SetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawPalette_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) -#define IDirectDrawPalette_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawPalette_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawPalette_GetCaps(p, a) (p)->lpVtbl->GetCaps(p, a) -#define IDirectDrawPalette_GetEntries(p, a, b, c, d) (p)->lpVtbl->GetEntries(p, a, b, c, d) -#define IDirectDrawPalette_Initialize(p, a, b, c) (p)->lpVtbl->Initialize(p, a, b, c) -#define IDirectDrawPalette_SetEntries(p, a, b, c, d) (p)->lpVtbl->SetEntries(p, a, b, c, d) -#else -#define IDirectDrawPalette_QueryInterface(p, a, b) (p)->QueryInterface(a, b) -#define IDirectDrawPalette_AddRef(p) (p)->AddRef() -#define IDirectDrawPalette_Release(p) (p)->Release() -#define IDirectDrawPalette_GetCaps(p, a) (p)->GetCaps(a) -#define IDirectDrawPalette_GetEntries(p, a, b, c, d) (p)->GetEntries(a, b, c, d) -#define IDirectDrawPalette_Initialize(p, a, b, c) (p)->Initialize(a, b, c) -#define IDirectDrawPalette_SetEntries(p, a, b, c, d) (p)->SetEntries(a, b, c, d) -#endif - -#endif - - -/* - * IDirectDrawClipper - */ -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDrawClipper -DECLARE_INTERFACE_( IDirectDrawClipper, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawClipper methods ***/ - STDMETHOD(GetClipList)(THIS_ LPRECT, LPRGNDATA, LPDWORD) PURE; - STDMETHOD(GetHWnd)(THIS_ HWND FAR *) PURE; - STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD) PURE; - STDMETHOD(IsClipListChanged)(THIS_ BOOL FAR *) PURE; - STDMETHOD(SetClipList)(THIS_ LPRGNDATA,DWORD) PURE; - STDMETHOD(SetHWnd)(THIS_ DWORD, HWND ) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawClipper_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) -#define IDirectDrawClipper_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawClipper_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawClipper_GetClipList(p, a, b, c) (p)->lpVtbl->GetClipList(p, a, b, c) -#define IDirectDrawClipper_GetHWnd(p, a) (p)->lpVtbl->GetHWnd(p, a) -#define IDirectDrawClipper_Initialize(p, a, b) (p)->lpVtbl->Initialize(p, a, b) -#define IDirectDrawClipper_IsClipListChanged(p, a) (p)->lpVtbl->IsClipListChanged(p, a) -#define IDirectDrawClipper_SetClipList(p, a, b) (p)->lpVtbl->SetClipList(p, a, b) -#define IDirectDrawClipper_SetHWnd(p, a, b) (p)->lpVtbl->SetHWnd(p, a, b) -#else -#define IDirectDrawClipper_QueryInterface(p, a, b) (p)->QueryInterface(a, b) -#define IDirectDrawClipper_AddRef(p) (p)->AddRef() -#define IDirectDrawClipper_Release(p) (p)->Release() -#define IDirectDrawClipper_GetClipList(p, a, b, c) (p)->GetClipList(a, b, c) -#define IDirectDrawClipper_GetHWnd(p, a) (p)->GetHWnd(a) -#define IDirectDrawClipper_Initialize(p, a, b) (p)->Initialize(a, b) -#define IDirectDrawClipper_IsClipListChanged(p, a) (p)->IsClipListChanged(a) -#define IDirectDrawClipper_SetClipList(p, a, b) (p)->SetClipList(a, b) -#define IDirectDrawClipper_SetHWnd(p, a, b) (p)->SetHWnd(a, b) -#endif - -#endif - -/* - * IDirectDrawSurface and related interfaces - */ -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDrawSurface -DECLARE_INTERFACE_( IDirectDrawSurface, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawSurface methods ***/ - STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE) PURE; - STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; - STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE, LPRECT,DWORD, LPDDBLTFX) PURE; - STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; - STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE, LPRECT,DWORD) PURE; - STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE) PURE; - STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; - STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; - STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE; - STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE FAR *) PURE; - STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; - STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; - STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; - STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; - STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; - STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; - STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; - STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; - STDMETHOD(IsLost)(THIS) PURE; - STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE; - STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; - STDMETHOD(Restore)(THIS) PURE; - STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; - STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; - STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; - STDMETHOD(Unlock)(THIS_ LPVOID) PURE; - STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE,LPRECT,DWORD, LPDDOVERLAYFX) PURE; - STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; - STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawSurface_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawSurface_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) -#define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) -#define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) -#define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) -#define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) -#define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) -#define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) -#define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) -#define IDirectDrawSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) -#define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) -#define IDirectDrawSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) -#define IDirectDrawSurface_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) -#define IDirectDrawSurface_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) -#define IDirectDrawSurface_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) -#define IDirectDrawSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) -#define IDirectDrawSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) -#define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) -#define IDirectDrawSurface_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) -#define IDirectDrawSurface_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) -#define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) -#define IDirectDrawSurface_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectDrawSurface_IsLost(p) (p)->lpVtbl->IsLost(p) -#define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) -#define IDirectDrawSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) -#define IDirectDrawSurface_Restore(p) (p)->lpVtbl->Restore(p) -#define IDirectDrawSurface_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) -#define IDirectDrawSurface_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) -#define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) -#define IDirectDrawSurface_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) -#define IDirectDrawSurface_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) -#define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) -#define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) -#define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) -#else -#define IDirectDrawSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectDrawSurface_AddRef(p) (p)->AddRef() -#define IDirectDrawSurface_Release(p) (p)->Release() -#define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) -#define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) -#define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) -#define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) -#define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) -#define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) -#define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) -#define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) -#define IDirectDrawSurface_Flip(p,a,b) (p)->Flip(a,b) -#define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) -#define IDirectDrawSurface_GetBltStatus(p,a) (p)->GetBltStatus(a) -#define IDirectDrawSurface_GetCaps(p,b) (p)->GetCaps(b) -#define IDirectDrawSurface_GetClipper(p,a) (p)->GetClipper(a) -#define IDirectDrawSurface_GetColorKey(p,a,b) (p)->GetColorKey(a,b) -#define IDirectDrawSurface_GetDC(p,a) (p)->GetDC(a) -#define IDirectDrawSurface_GetFlipStatus(p,a) (p)->GetFlipStatus(a) -#define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) -#define IDirectDrawSurface_GetPalette(p,a) (p)->GetPalette(a) -#define IDirectDrawSurface_GetPixelFormat(p,a) (p)->GetPixelFormat(a) -#define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) -#define IDirectDrawSurface_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectDrawSurface_IsLost(p) (p)->IsLost() -#define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) -#define IDirectDrawSurface_ReleaseDC(p,a) (p)->ReleaseDC(a) -#define IDirectDrawSurface_Restore(p) (p)->Restore() -#define IDirectDrawSurface_SetClipper(p,a) (p)->SetClipper(a) -#define IDirectDrawSurface_SetColorKey(p,a,b) (p)->SetColorKey(a,b) -#define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) -#define IDirectDrawSurface_SetPalette(p,a) (p)->SetPalette(a) -#define IDirectDrawSurface_Unlock(p,b) (p)->Unlock(b) -#define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) -#define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) -#define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) -#endif - -/* - * IDirectDrawSurface2 and related interfaces - */ -#undef INTERFACE -#define INTERFACE IDirectDrawSurface2 -DECLARE_INTERFACE_( IDirectDrawSurface2, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawSurface methods ***/ - STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE2) PURE; - STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; - STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE2, LPRECT,DWORD, LPDDBLTFX) PURE; - STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; - STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE2, LPRECT,DWORD) PURE; - STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE2) PURE; - STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; - STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; - STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE2, DWORD) PURE; - STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE2 FAR *) PURE; - STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; - STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; - STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; - STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; - STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; - STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; - STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; - STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; - STDMETHOD(IsLost)(THIS) PURE; - STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE; - STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; - STDMETHOD(Restore)(THIS) PURE; - STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; - STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; - STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; - STDMETHOD(Unlock)(THIS_ LPVOID) PURE; - STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE2,LPRECT,DWORD, LPDDOVERLAYFX) PURE; - STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; - STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE2) PURE; - /*** Added in the v2 interface ***/ - STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; - STDMETHOD(PageLock)(THIS_ DWORD) PURE; - STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawSurface2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawSurface2_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) -#define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) -#define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) -#define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) -#define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) -#define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) -#define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) -#define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) -#define IDirectDrawSurface2_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) -#define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) -#define IDirectDrawSurface2_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) -#define IDirectDrawSurface2_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) -#define IDirectDrawSurface2_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) -#define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) -#define IDirectDrawSurface2_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) -#define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) -#define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) -#define IDirectDrawSurface2_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) -#define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) -#define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) -#define IDirectDrawSurface2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectDrawSurface2_IsLost(p) (p)->lpVtbl->IsLost(p) -#define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) -#define IDirectDrawSurface2_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) -#define IDirectDrawSurface2_Restore(p) (p)->lpVtbl->Restore(p) -#define IDirectDrawSurface2_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) -#define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) -#define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) -#define IDirectDrawSurface2_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) -#define IDirectDrawSurface2_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) -#define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) -#define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) -#define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) -#define IDirectDrawSurface2_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a) -#define IDirectDrawSurface2_PageLock(p,a) (p)->lpVtbl->PageLock(p,a) -#define IDirectDrawSurface2_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a) -#else -#define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectDrawSurface2_AddRef(p) (p)->AddRef() -#define IDirectDrawSurface2_Release(p) (p)->Release() -#define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) -#define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) -#define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) -#define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) -#define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) -#define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) -#define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) -#define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) -#define IDirectDrawSurface2_Flip(p,a,b) (p)->Flip(a,b) -#define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) -#define IDirectDrawSurface2_GetBltStatus(p,a) (p)->GetBltStatus(a) -#define IDirectDrawSurface2_GetCaps(p,b) (p)->GetCaps(b) -#define IDirectDrawSurface2_GetClipper(p,a) (p)->GetClipper(a) -#define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->GetColorKey(a,b) -#define IDirectDrawSurface2_GetDC(p,a) (p)->GetDC(a) -#define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->GetFlipStatus(a) -#define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) -#define IDirectDrawSurface2_GetPalette(p,a) (p)->GetPalette(a) -#define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->GetPixelFormat(a) -#define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) -#define IDirectDrawSurface2_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectDrawSurface2_IsLost(p) (p)->IsLost() -#define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) -#define IDirectDrawSurface2_ReleaseDC(p,a) (p)->ReleaseDC(a) -#define IDirectDrawSurface2_Restore(p) (p)->Restore() -#define IDirectDrawSurface2_SetClipper(p,a) (p)->SetClipper(a) -#define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->SetColorKey(a,b) -#define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) -#define IDirectDrawSurface2_SetPalette(p,a) (p)->SetPalette(a) -#define IDirectDrawSurface2_Unlock(p,b) (p)->Unlock(b) -#define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) -#define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) -#define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) -#define IDirectDrawSurface2_GetDDInterface(p,a) (p)->GetDDInterface(a) -#define IDirectDrawSurface2_PageLock(p,a) (p)->PageLock(a) -#define IDirectDrawSurface2_PageUnlock(p,a) (p)->PageUnlock(a) -#endif - -/* - * IDirectDrawSurface3 and related interfaces - */ -#undef INTERFACE -#define INTERFACE IDirectDrawSurface3 -DECLARE_INTERFACE_( IDirectDrawSurface3, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawSurface methods ***/ - STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE3) PURE; - STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; - STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE3, LPRECT,DWORD, LPDDBLTFX) PURE; - STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; - STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE3, LPRECT,DWORD) PURE; - STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE3) PURE; - STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; - STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; - STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE3, DWORD) PURE; - STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE3 FAR *) PURE; - STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; - STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; - STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; - STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; - STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; - STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; - STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; - STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; - STDMETHOD(IsLost)(THIS) PURE; - STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE; - STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; - STDMETHOD(Restore)(THIS) PURE; - STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; - STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; - STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; - STDMETHOD(Unlock)(THIS_ LPVOID) PURE; - STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE3,LPRECT,DWORD, LPDDOVERLAYFX) PURE; - STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; - STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE3) PURE; - /*** Added in the v2 interface ***/ - STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; - STDMETHOD(PageLock)(THIS_ DWORD) PURE; - STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; - /*** Added in the V3 interface ***/ - STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC, DWORD) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawSurface3_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawSurface3_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) -#define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) -#define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) -#define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) -#define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) -#define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) -#define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) -#define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) -#define IDirectDrawSurface3_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) -#define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) -#define IDirectDrawSurface3_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) -#define IDirectDrawSurface3_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) -#define IDirectDrawSurface3_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) -#define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) -#define IDirectDrawSurface3_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) -#define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) -#define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) -#define IDirectDrawSurface3_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) -#define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) -#define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) -#define IDirectDrawSurface3_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectDrawSurface3_IsLost(p) (p)->lpVtbl->IsLost(p) -#define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) -#define IDirectDrawSurface3_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) -#define IDirectDrawSurface3_Restore(p) (p)->lpVtbl->Restore(p) -#define IDirectDrawSurface3_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) -#define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) -#define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) -#define IDirectDrawSurface3_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) -#define IDirectDrawSurface3_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) -#define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) -#define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) -#define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) -#define IDirectDrawSurface3_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a) -#define IDirectDrawSurface3_PageLock(p,a) (p)->lpVtbl->PageLock(p,a) -#define IDirectDrawSurface3_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a) -#define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b) -#else -#define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectDrawSurface3_AddRef(p) (p)->AddRef() -#define IDirectDrawSurface3_Release(p) (p)->Release() -#define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) -#define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) -#define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) -#define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) -#define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) -#define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) -#define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) -#define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) -#define IDirectDrawSurface3_Flip(p,a,b) (p)->Flip(a,b) -#define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) -#define IDirectDrawSurface3_GetBltStatus(p,a) (p)->GetBltStatus(a) -#define IDirectDrawSurface3_GetCaps(p,b) (p)->GetCaps(b) -#define IDirectDrawSurface3_GetClipper(p,a) (p)->GetClipper(a) -#define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->GetColorKey(a,b) -#define IDirectDrawSurface3_GetDC(p,a) (p)->GetDC(a) -#define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->GetFlipStatus(a) -#define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) -#define IDirectDrawSurface3_GetPalette(p,a) (p)->GetPalette(a) -#define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->GetPixelFormat(a) -#define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) -#define IDirectDrawSurface3_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectDrawSurface3_IsLost(p) (p)->IsLost() -#define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) -#define IDirectDrawSurface3_ReleaseDC(p,a) (p)->ReleaseDC(a) -#define IDirectDrawSurface3_Restore(p) (p)->Restore() -#define IDirectDrawSurface3_SetClipper(p,a) (p)->SetClipper(a) -#define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->SetColorKey(a,b) -#define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) -#define IDirectDrawSurface3_SetPalette(p,a) (p)->SetPalette(a) -#define IDirectDrawSurface3_Unlock(p,b) (p)->Unlock(b) -#define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) -#define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) -#define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) -#define IDirectDrawSurface3_GetDDInterface(p,a) (p)->GetDDInterface(a) -#define IDirectDrawSurface3_PageLock(p,a) (p)->PageLock(a) -#define IDirectDrawSurface3_PageUnlock(p,a) (p)->PageUnlock(a) -#define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b) -#endif - -/* - * IDirectDrawSurface4 and related interfaces - */ -#undef INTERFACE -#define INTERFACE IDirectDrawSurface4 -DECLARE_INTERFACE_( IDirectDrawSurface4, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawSurface methods ***/ - STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE4) PURE; - STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; - STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE4, LPRECT,DWORD, LPDDBLTFX) PURE; - STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; - STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE4, LPRECT,DWORD) PURE; - STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE4) PURE; - STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK2) PURE; - STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK2) PURE; - STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE4, DWORD) PURE; - STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2, LPDIRECTDRAWSURFACE4 FAR *) PURE; - STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2) PURE; - STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; - STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; - STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; - STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; - STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; - STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2) PURE; - STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC2) PURE; - STDMETHOD(IsLost)(THIS) PURE; - STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC2,DWORD,HANDLE) PURE; - STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; - STDMETHOD(Restore)(THIS) PURE; - STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; - STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; - STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; - STDMETHOD(Unlock)(THIS_ LPRECT) PURE; - STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE4,LPRECT,DWORD, LPDDOVERLAYFX) PURE; - STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; - STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE4) PURE; - /*** Added in the v2 interface ***/ - STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; - STDMETHOD(PageLock)(THIS_ DWORD) PURE; - STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; - /*** Added in the v3 interface ***/ - STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2, DWORD) PURE; - /*** Added in the v4 interface ***/ - STDMETHOD(SetPrivateData)(THIS_ REFGUID, LPVOID, DWORD, DWORD) PURE; - STDMETHOD(GetPrivateData)(THIS_ REFGUID, LPVOID, LPDWORD) PURE; - STDMETHOD(FreePrivateData)(THIS_ REFGUID) PURE; - STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD) PURE; - STDMETHOD(ChangeUniquenessValue)(THIS) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawSurface4_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawSurface4_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) -#define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) -#define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) -#define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) -#define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) -#define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) -#define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) -#define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) -#define IDirectDrawSurface4_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) -#define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) -#define IDirectDrawSurface4_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) -#define IDirectDrawSurface4_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) -#define IDirectDrawSurface4_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) -#define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) -#define IDirectDrawSurface4_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) -#define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) -#define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) -#define IDirectDrawSurface4_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) -#define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) -#define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) -#define IDirectDrawSurface4_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectDrawSurface4_IsLost(p) (p)->lpVtbl->IsLost(p) -#define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) -#define IDirectDrawSurface4_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) -#define IDirectDrawSurface4_Restore(p) (p)->lpVtbl->Restore(p) -#define IDirectDrawSurface4_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) -#define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) -#define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) -#define IDirectDrawSurface4_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) -#define IDirectDrawSurface4_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) -#define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) -#define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) -#define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) -#define IDirectDrawSurface4_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a) -#define IDirectDrawSurface4_PageLock(p,a) (p)->lpVtbl->PageLock(p,a) -#define IDirectDrawSurface4_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a) -#define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b) -#define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirectDrawSurface4_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirectDrawSurface4_GetUniquenessValue(p, a) (p)->lpVtbl->GetUniquenessValue(p, a) -#define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p) -#else -#define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectDrawSurface4_AddRef(p) (p)->AddRef() -#define IDirectDrawSurface4_Release(p) (p)->Release() -#define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) -#define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) -#define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) -#define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) -#define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) -#define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) -#define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) -#define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) -#define IDirectDrawSurface4_Flip(p,a,b) (p)->Flip(a,b) -#define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) -#define IDirectDrawSurface4_GetBltStatus(p,a) (p)->GetBltStatus(a) -#define IDirectDrawSurface4_GetCaps(p,b) (p)->GetCaps(b) -#define IDirectDrawSurface4_GetClipper(p,a) (p)->GetClipper(a) -#define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->GetColorKey(a,b) -#define IDirectDrawSurface4_GetDC(p,a) (p)->GetDC(a) -#define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->GetFlipStatus(a) -#define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) -#define IDirectDrawSurface4_GetPalette(p,a) (p)->GetPalette(a) -#define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->GetPixelFormat(a) -#define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) -#define IDirectDrawSurface4_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectDrawSurface4_IsLost(p) (p)->IsLost() -#define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) -#define IDirectDrawSurface4_ReleaseDC(p,a) (p)->ReleaseDC(a) -#define IDirectDrawSurface4_Restore(p) (p)->Restore() -#define IDirectDrawSurface4_SetClipper(p,a) (p)->SetClipper(a) -#define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->SetColorKey(a,b) -#define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) -#define IDirectDrawSurface4_SetPalette(p,a) (p)->SetPalette(a) -#define IDirectDrawSurface4_Unlock(p,b) (p)->Unlock(b) -#define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) -#define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) -#define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) -#define IDirectDrawSurface4_GetDDInterface(p,a) (p)->GetDDInterface(a) -#define IDirectDrawSurface4_PageLock(p,a) (p)->PageLock(a) -#define IDirectDrawSurface4_PageUnlock(p,a) (p)->PageUnlock(a) -#define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b) -#define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirectDrawSurface4_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirectDrawSurface4_GetUniquenessValue(p, a) (p)->GetUniquenessValue(a) -#define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue() -#endif - -/* - * IDirectDrawSurface7 and related interfaces - */ -#undef INTERFACE -#define INTERFACE IDirectDrawSurface7 -DECLARE_INTERFACE_( IDirectDrawSurface7, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawSurface methods ***/ - STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE7) PURE; - STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; - STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE7, LPRECT,DWORD, LPDDBLTFX) PURE; - STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; - STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE7, LPRECT,DWORD) PURE; - STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE7) PURE; - STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK7) PURE; - STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK7) PURE; - STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE7, DWORD) PURE; - STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2, LPDIRECTDRAWSURFACE7 FAR *) PURE; - STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2) PURE; - STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; - STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; - STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; - STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; - STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; - STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; - STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2) PURE; - STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC2) PURE; - STDMETHOD(IsLost)(THIS) PURE; - STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC2,DWORD,HANDLE) PURE; - STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; - STDMETHOD(Restore)(THIS) PURE; - STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; - STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; - STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; - STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; - STDMETHOD(Unlock)(THIS_ LPRECT) PURE; - STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE7,LPRECT,DWORD, LPDDOVERLAYFX) PURE; - STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; - STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE7) PURE; - /*** Added in the v2 interface ***/ - STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; - STDMETHOD(PageLock)(THIS_ DWORD) PURE; - STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; - /*** Added in the v3 interface ***/ - STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2, DWORD) PURE; - /*** Added in the v4 interface ***/ - STDMETHOD(SetPrivateData)(THIS_ REFGUID, LPVOID, DWORD, DWORD) PURE; - STDMETHOD(GetPrivateData)(THIS_ REFGUID, LPVOID, LPDWORD) PURE; - STDMETHOD(FreePrivateData)(THIS_ REFGUID) PURE; - STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD) PURE; - STDMETHOD(ChangeUniquenessValue)(THIS) PURE; - /*** Moved Texture7 methods here ***/ - STDMETHOD(SetPriority)(THIS_ DWORD) PURE; - STDMETHOD(GetPriority)(THIS_ LPDWORD) PURE; - STDMETHOD(SetLOD)(THIS_ DWORD) PURE; - STDMETHOD(GetLOD)(THIS_ LPDWORD) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawSurface7_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawSurface7_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) -#define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) -#define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) -#define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) -#define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) -#define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) -#define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) -#define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) -#define IDirectDrawSurface7_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) -#define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) -#define IDirectDrawSurface7_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) -#define IDirectDrawSurface7_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) -#define IDirectDrawSurface7_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) -#define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) -#define IDirectDrawSurface7_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) -#define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) -#define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) -#define IDirectDrawSurface7_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) -#define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) -#define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) -#define IDirectDrawSurface7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectDrawSurface7_IsLost(p) (p)->lpVtbl->IsLost(p) -#define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) -#define IDirectDrawSurface7_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) -#define IDirectDrawSurface7_Restore(p) (p)->lpVtbl->Restore(p) -#define IDirectDrawSurface7_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) -#define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) -#define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) -#define IDirectDrawSurface7_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) -#define IDirectDrawSurface7_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) -#define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) -#define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) -#define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) -#define IDirectDrawSurface7_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a) -#define IDirectDrawSurface7_PageLock(p,a) (p)->lpVtbl->PageLock(p,a) -#define IDirectDrawSurface7_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a) -#define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b) -#define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirectDrawSurface7_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirectDrawSurface7_GetUniquenessValue(p, a) (p)->lpVtbl->GetUniquenessValue(p, a) -#define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p) -#define IDirectDrawSurface7_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IDirectDrawSurface7_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a) -#define IDirectDrawSurface7_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) -#define IDirectDrawSurface7_GetLOD(p,a) (p)->lpVtbl->GetLOD(p,a) -#else -#define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectDrawSurface7_AddRef(p) (p)->AddRef() -#define IDirectDrawSurface7_Release(p) (p)->Release() -#define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) -#define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) -#define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) -#define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) -#define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) -#define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) -#define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) -#define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) -#define IDirectDrawSurface7_Flip(p,a,b) (p)->Flip(a,b) -#define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) -#define IDirectDrawSurface7_GetBltStatus(p,a) (p)->GetBltStatus(a) -#define IDirectDrawSurface7_GetCaps(p,b) (p)->GetCaps(b) -#define IDirectDrawSurface7_GetClipper(p,a) (p)->GetClipper(a) -#define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->GetColorKey(a,b) -#define IDirectDrawSurface7_GetDC(p,a) (p)->GetDC(a) -#define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->GetFlipStatus(a) -#define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) -#define IDirectDrawSurface7_GetPalette(p,a) (p)->GetPalette(a) -#define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->GetPixelFormat(a) -#define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) -#define IDirectDrawSurface7_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectDrawSurface7_IsLost(p) (p)->IsLost() -#define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) -#define IDirectDrawSurface7_ReleaseDC(p,a) (p)->ReleaseDC(a) -#define IDirectDrawSurface7_Restore(p) (p)->Restore() -#define IDirectDrawSurface7_SetClipper(p,a) (p)->SetClipper(a) -#define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->SetColorKey(a,b) -#define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) -#define IDirectDrawSurface7_SetPalette(p,a) (p)->SetPalette(a) -#define IDirectDrawSurface7_Unlock(p,b) (p)->Unlock(b) -#define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) -#define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) -#define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) -#define IDirectDrawSurface7_GetDDInterface(p,a) (p)->GetDDInterface(a) -#define IDirectDrawSurface7_PageLock(p,a) (p)->PageLock(a) -#define IDirectDrawSurface7_PageUnlock(p,a) (p)->PageUnlock(a) -#define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b) -#define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirectDrawSurface7_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirectDrawSurface7_GetUniquenessValue(p, a) (p)->GetUniquenessValue(a) -#define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue() -#define IDirectDrawSurface7_SetPriority(p,a) (p)->SetPriority(a) -#define IDirectDrawSurface7_GetPriority(p,a) (p)->GetPriority(a) -#define IDirectDrawSurface7_SetLOD(p,a) (p)->SetLOD(a) -#define IDirectDrawSurface7_GetLOD(p,a) (p)->GetLOD(a) -#endif - - -/* - * IDirectDrawColorControl - */ -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDrawColorControl -DECLARE_INTERFACE_( IDirectDrawColorControl, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawColorControl methods ***/ - STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; - STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawColorControl_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) -#define IDirectDrawColorControl_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawColorControl_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawColorControl_GetColorControls(p, a) (p)->lpVtbl->GetColorControls(p, a) -#define IDirectDrawColorControl_SetColorControls(p, a) (p)->lpVtbl->SetColorControls(p, a) -#else -#define IDirectDrawColorControl_QueryInterface(p, a, b) (p)->QueryInterface(a, b) -#define IDirectDrawColorControl_AddRef(p) (p)->AddRef() -#define IDirectDrawColorControl_Release(p) (p)->Release() -#define IDirectDrawColorControl_GetColorControls(p, a) (p)->GetColorControls(a) -#define IDirectDrawColorControl_SetColorControls(p, a) (p)->SetColorControls(a) -#endif - -#endif - - -/* - * IDirectDrawGammaControl - */ -#if defined( _WIN32 ) && !defined( _NO_COM ) -#undef INTERFACE -#define INTERFACE IDirectDrawGammaControl -DECLARE_INTERFACE_( IDirectDrawGammaControl, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectDrawGammaControl methods ***/ - STDMETHOD(GetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE; - STDMETHOD(SetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectDrawGammaControl_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) -#define IDirectDrawGammaControl_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawGammaControl_Release(p) (p)->lpVtbl->Release(p) -#define IDirectDrawGammaControl_GetGammaRamp(p, a, b) (p)->lpVtbl->GetGammaRamp(p, a, b) -#define IDirectDrawGammaControl_SetGammaRamp(p, a, b) (p)->lpVtbl->SetGammaRamp(p, a, b) -#else -#define IDirectDrawGammaControl_QueryInterface(p, a, b) (p)->QueryInterface(a, b) -#define IDirectDrawGammaControl_AddRef(p) (p)->AddRef() -#define IDirectDrawGammaControl_Release(p) (p)->Release() -#define IDirectDrawGammaControl_GetGammaRamp(p, a, b) (p)->GetGammaRamp(a, b) -#define IDirectDrawGammaControl_SetGammaRamp(p, a, b) (p)->SetGammaRamp(a, b) -#endif - -#endif - - - -#endif - - -/* - * DDSURFACEDESC - */ -typedef struct _DDSURFACEDESC -{ - DWORD dwSize; // size of the DDSURFACEDESC structure - DWORD dwFlags; // determines what fields are valid - DWORD dwHeight; // height of surface to be created - DWORD dwWidth; // width of input surface - union - { - LONG lPitch; // distance to start of next line (return value only) - DWORD dwLinearSize; // Formless late-allocated optimized surface size - } DUMMYUNIONNAMEN(1); - DWORD dwBackBufferCount; // number of back buffers requested - union - { - DWORD dwMipMapCount; // number of mip-map levels requested - DWORD dwZBufferBitDepth; // depth of Z buffer requested - DWORD dwRefreshRate; // refresh rate (used when display mode is described) - } DUMMYUNIONNAMEN(2); - DWORD dwAlphaBitDepth; // depth of alpha buffer requested - DWORD dwReserved; // reserved - LPVOID lpSurface; // pointer to the associated surface memory - DDCOLORKEY ddckCKDestOverlay; // color key for destination overlay use - DDCOLORKEY ddckCKDestBlt; // color key for destination blt use - DDCOLORKEY ddckCKSrcOverlay; // color key for source overlay use - DDCOLORKEY ddckCKSrcBlt; // color key for source blt use - DDPIXELFORMAT ddpfPixelFormat; // pixel format description of the surface - DDSCAPS ddsCaps; // direct draw surface capabilities -} DDSURFACEDESC; - -/* - * DDSURFACEDESC2 - */ -typedef struct _DDSURFACEDESC2 -{ - DWORD dwSize; // size of the DDSURFACEDESC structure - DWORD dwFlags; // determines what fields are valid - DWORD dwHeight; // height of surface to be created - DWORD dwWidth; // width of input surface - union - { - LONG lPitch; // distance to start of next line (return value only) - DWORD dwLinearSize; // Formless late-allocated optimized surface size - } DUMMYUNIONNAMEN(1); - union - { - DWORD dwBackBufferCount; // number of back buffers requested - DWORD dwDepth; // the depth if this is a volume texture - } DUMMYUNIONNAMEN(5); - union - { - DWORD dwMipMapCount; // number of mip-map levels requestde - // dwZBufferBitDepth removed, use ddpfPixelFormat one instead - DWORD dwRefreshRate; // refresh rate (used when display mode is described) - DWORD dwSrcVBHandle; // The source used in VB::Optimize - } DUMMYUNIONNAMEN(2); - DWORD dwAlphaBitDepth; // depth of alpha buffer requested - DWORD dwReserved; // reserved - LPVOID lpSurface; // pointer to the associated surface memory - union - { - DDCOLORKEY ddckCKDestOverlay; // color key for destination overlay use - DWORD dwEmptyFaceColor; // Physical color for empty cubemap faces - } DUMMYUNIONNAMEN(3); - DDCOLORKEY ddckCKDestBlt; // color key for destination blt use - DDCOLORKEY ddckCKSrcOverlay; // color key for source overlay use - DDCOLORKEY ddckCKSrcBlt; // color key for source blt use - union - { - DDPIXELFORMAT ddpfPixelFormat; // pixel format description of the surface - DWORD dwFVF; // vertex format description of vertex buffers - } DUMMYUNIONNAMEN(4); - DDSCAPS2 ddsCaps; // direct draw surface capabilities - DWORD dwTextureStage; // stage in multitexture cascade -} DDSURFACEDESC2; - -/* - * ddsCaps field is valid. - */ -#define DDSD_CAPS 0x00000001l // default - -/* - * dwHeight field is valid. - */ -#define DDSD_HEIGHT 0x00000002l - -/* - * dwWidth field is valid. - */ -#define DDSD_WIDTH 0x00000004l - -/* - * lPitch is valid. - */ -#define DDSD_PITCH 0x00000008l - -/* - * dwBackBufferCount is valid. - */ -#define DDSD_BACKBUFFERCOUNT 0x00000020l - -/* - * dwZBufferBitDepth is valid. (shouldnt be used in DDSURFACEDESC2) - */ -#define DDSD_ZBUFFERBITDEPTH 0x00000040l - -/* - * dwAlphaBitDepth is valid. - */ -#define DDSD_ALPHABITDEPTH 0x00000080l - - -/* - * lpSurface is valid. - */ -#define DDSD_LPSURFACE 0x00000800l - -/* - * ddpfPixelFormat is valid. - */ -#define DDSD_PIXELFORMAT 0x00001000l - -/* - * ddckCKDestOverlay is valid. - */ -#define DDSD_CKDESTOVERLAY 0x00002000l - -/* - * ddckCKDestBlt is valid. - */ -#define DDSD_CKDESTBLT 0x00004000l - -/* - * ddckCKSrcOverlay is valid. - */ -#define DDSD_CKSRCOVERLAY 0x00008000l - -/* - * ddckCKSrcBlt is valid. - */ -#define DDSD_CKSRCBLT 0x00010000l - -/* - * dwMipMapCount is valid. - */ -#define DDSD_MIPMAPCOUNT 0x00020000l - - /* - * dwRefreshRate is valid - */ -#define DDSD_REFRESHRATE 0x00040000l - -/* - * dwLinearSize is valid - */ -#define DDSD_LINEARSIZE 0x00080000l - -/* - * dwTextureStage is valid - */ -#define DDSD_TEXTURESTAGE 0x00100000l -/* - * dwFVF is valid - */ -#define DDSD_FVF 0x00200000l -/* - * dwSrcVBHandle is valid - */ -#define DDSD_SRCVBHANDLE 0x00400000l - -/* - * dwDepth is valid - */ -#define DDSD_DEPTH 0x00800000l - -/* - * All input fields are valid. - */ -#define DDSD_ALL 0x00fff9eel - -/* - * DDOPTSURFACEDESC - */ -typedef struct _DDOPTSURFACEDESC -{ - DWORD dwSize; // size of the DDOPTSURFACEDESC structure - DWORD dwFlags; // determines what fields are valid - DDSCAPS2 ddSCaps; // Common caps like: Memory type - DDOSCAPS ddOSCaps; // Common caps like: Memory type - GUID guid; // Compression technique GUID - DWORD dwCompressionRatio; // Compression ratio -} DDOPTSURFACEDESC; - -/* - * guid field is valid. - */ -#define DDOSD_GUID 0x00000001l - -/* - * dwCompressionRatio field is valid. - */ -#define DDOSD_COMPRESSION_RATIO 0x00000002l - -/* - * ddSCaps field is valid. - */ -#define DDOSD_SCAPS 0x00000004l - -/* - * ddOSCaps field is valid. - */ -#define DDOSD_OSCAPS 0x00000008l - -/* - * All input fields are valid. - */ -#define DDOSD_ALL 0x0000000fl - -/* - * The surface's optimized pixelformat is compressed - */ -#define DDOSDCAPS_OPTCOMPRESSED 0x00000001l - -/* - * The surface's optimized pixelformat is reordered - */ -#define DDOSDCAPS_OPTREORDERED 0x00000002l - -/* - * The opt surface is a monolithic mipmap - */ -#define DDOSDCAPS_MONOLITHICMIPMAP 0x00000004l - -/* - * The valid Surf caps: - * #define DDSCAPS_SYSTEMMEMORY 0x00000800l - * #define DDSCAPS_VIDEOMEMORY 0x00004000l - * #define DDSCAPS_LOCALVIDMEM 0x10000000l - * #define DDSCAPS_NONLOCALVIDMEM 0x20000000l - */ -#define DDOSDCAPS_VALIDSCAPS 0x30004800l - -/* - * The valid OptSurf caps - */ -#define DDOSDCAPS_VALIDOSCAPS 0x00000007l - - -/* - * DDCOLORCONTROL - */ -typedef struct _DDCOLORCONTROL -{ - DWORD dwSize; - DWORD dwFlags; - LONG lBrightness; - LONG lContrast; - LONG lHue; - LONG lSaturation; - LONG lSharpness; - LONG lGamma; - LONG lColorEnable; - DWORD dwReserved1; -} DDCOLORCONTROL; - - -/* - * lBrightness field is valid. - */ -#define DDCOLOR_BRIGHTNESS 0x00000001l - -/* - * lContrast field is valid. - */ -#define DDCOLOR_CONTRAST 0x00000002l - -/* - * lHue field is valid. - */ -#define DDCOLOR_HUE 0x00000004l - -/* - * lSaturation field is valid. - */ -#define DDCOLOR_SATURATION 0x00000008l - -/* - * lSharpness field is valid. - */ -#define DDCOLOR_SHARPNESS 0x00000010l - -/* - * lGamma field is valid. - */ -#define DDCOLOR_GAMMA 0x00000020l - -/* - * lColorEnable field is valid. - */ -#define DDCOLOR_COLORENABLE 0x00000040l - - - -/*============================================================================ - * - * Direct Draw Capability Flags - * - * These flags are used to describe the capabilities of a given Surface. - * All flags are bit flags. - * - *==========================================================================*/ - -/**************************************************************************** - * - * DIRECTDRAWSURFACE CAPABILITY FLAGS - * - ****************************************************************************/ - -/* - * This bit is reserved. It should not be specified. - */ -#define DDSCAPS_RESERVED1 0x00000001l - -/* - * Indicates that this surface contains alpha-only information. - * (To determine if a surface is RGBA/YUVA, the pixel format must be - * interrogated.) - */ -#define DDSCAPS_ALPHA 0x00000002l - -/* - * Indicates that this surface is a backbuffer. It is generally - * set by CreateSurface when the DDSCAPS_FLIP capability bit is set. - * It indicates that this surface is THE back buffer of a surface - * flipping structure. DirectDraw supports N surfaces in a - * surface flipping structure. Only the surface that immediately - * precedeces the DDSCAPS_FRONTBUFFER has this capability bit set. - * The other surfaces are identified as back buffers by the presence - * of the DDSCAPS_FLIP capability, their attachment order, and the - * absence of the DDSCAPS_FRONTBUFFER and DDSCAPS_BACKBUFFER - * capabilities. The bit is sent to CreateSurface when a standalone - * back buffer is being created. This surface could be attached to - * a front buffer and/or back buffers to form a flipping surface - * structure after the CreateSurface call. See AddAttachments for - * a detailed description of the behaviors in this case. - */ -#define DDSCAPS_BACKBUFFER 0x00000004l - -/* - * Indicates a complex surface structure is being described. A - * complex surface structure results in the creation of more than - * one surface. The additional surfaces are attached to the root - * surface. The complex structure can only be destroyed by - * destroying the root. - */ -#define DDSCAPS_COMPLEX 0x00000008l - -/* - * Indicates that this surface is a part of a surface flipping structure. - * When it is passed to CreateSurface the DDSCAPS_FRONTBUFFER and - * DDSCAP_BACKBUFFER bits are not set. They are set by CreateSurface - * on the resulting creations. The dwBackBufferCount field in the - * DDSURFACEDESC structure must be set to at least 1 in order for - * the CreateSurface call to succeed. The DDSCAPS_COMPLEX capability - * must always be set with creating multiple surfaces through CreateSurface. - */ -#define DDSCAPS_FLIP 0x00000010l - -/* - * Indicates that this surface is THE front buffer of a surface flipping - * structure. It is generally set by CreateSurface when the DDSCAPS_FLIP - * capability bit is set. - * If this capability is sent to CreateSurface then a standalonw front buffer - * is created. This surface will not have the DDSCAPS_FLIP capability. - * It can be attached to other back buffers to form a flipping structure. - * See AddAttachments for a detailed description of the behaviors in this - * case. - */ -#define DDSCAPS_FRONTBUFFER 0x00000020l - -/* - * Indicates that this surface is any offscreen surface that is not an overlay, - * texture, zbuffer, front buffer, back buffer, or alpha surface. It is used - * to identify plain vanilla surfaces. - */ -#define DDSCAPS_OFFSCREENPLAIN 0x00000040l - -/* - * Indicates that this surface is an overlay. It may or may not be directly visible - * depending on whether or not it is currently being overlayed onto the primary - * surface. DDSCAPS_VISIBLE can be used to determine whether or not it is being - * overlayed at the moment. - */ -#define DDSCAPS_OVERLAY 0x00000080l - -/* - * Indicates that unique DirectDrawPalette objects can be created and - * attached to this surface. - */ -#define DDSCAPS_PALETTE 0x00000100l - -/* - * Indicates that this surface is the primary surface. The primary - * surface represents what the user is seeing at the moment. - */ -#define DDSCAPS_PRIMARYSURFACE 0x00000200l - - -/* - * This flag used to be DDSCAPS_PRIMARYSURFACELEFT, which is now - * obsolete. - */ -#define DDSCAPS_RESERVED3 0x00000400l -#define DDSCAPS_PRIMARYSURFACELEFT 0x00000000l - -/* - * Indicates that this surface memory was allocated in system memory - */ -#define DDSCAPS_SYSTEMMEMORY 0x00000800l - -/* - * Indicates that this surface can be used as a 3D texture. It does not - * indicate whether or not the surface is being used for that purpose. - */ -#define DDSCAPS_TEXTURE 0x00001000l - -/* - * Indicates that a surface may be a destination for 3D rendering. This - * bit must be set in order to query for a Direct3D Device Interface - * from this surface. - */ -#define DDSCAPS_3DDEVICE 0x00002000l - -/* - * Indicates that this surface exists in video memory. - */ -#define DDSCAPS_VIDEOMEMORY 0x00004000l - -/* - * Indicates that changes made to this surface are immediately visible. - * It is always set for the primary surface and is set for overlays while - * they are being overlayed and texture maps while they are being textured. - */ -#define DDSCAPS_VISIBLE 0x00008000l - -/* - * Indicates that only writes are permitted to the surface. Read accesses - * from the surface may or may not generate a protection fault, but the - * results of a read from this surface will not be meaningful. READ ONLY. - */ -#define DDSCAPS_WRITEONLY 0x00010000l - -/* - * Indicates that this surface is a z buffer. A z buffer does not contain - * displayable information. Instead it contains bit depth information that is - * used to determine which pixels are visible and which are obscured. - */ -#define DDSCAPS_ZBUFFER 0x00020000l - -/* - * Indicates surface will have a DC associated long term - */ -#define DDSCAPS_OWNDC 0x00040000l - -/* - * Indicates surface should be able to receive live video - */ -#define DDSCAPS_LIVEVIDEO 0x00080000l - -/* - * Indicates surface should be able to have a stream decompressed - * to it by the hardware. - */ -#define DDSCAPS_HWCODEC 0x00100000l - -/* - * Surface is a ModeX surface. - * - */ -#define DDSCAPS_MODEX 0x00200000l - -/* - * Indicates surface is one level of a mip-map. This surface will - * be attached to other DDSCAPS_MIPMAP surfaces to form the mip-map. - * This can be done explicitly, by creating a number of surfaces and - * attaching them with AddAttachedSurface or by implicitly by CreateSurface. - * If this bit is set then DDSCAPS_TEXTURE must also be set. - */ -#define DDSCAPS_MIPMAP 0x00400000l - -/* - * This bit is reserved. It should not be specified. - */ -#define DDSCAPS_RESERVED2 0x00800000l - - -/* - * Indicates that memory for the surface is not allocated until the surface - * is loaded (via the Direct3D texture Load() function). - */ -#define DDSCAPS_ALLOCONLOAD 0x04000000l - -/* - * Indicates that the surface will recieve data from a video port. - */ -#define DDSCAPS_VIDEOPORT 0x08000000l - -/* - * Indicates that a video memory surface is resident in true, local video - * memory rather than non-local video memory. If this flag is specified then - * so must DDSCAPS_VIDEOMEMORY. This flag is mutually exclusive with - * DDSCAPS_NONLOCALVIDMEM. - */ -#define DDSCAPS_LOCALVIDMEM 0x10000000l - -/* - * Indicates that a video memory surface is resident in non-local video - * memory rather than true, local video memory. If this flag is specified - * then so must DDSCAPS_VIDEOMEMORY. This flag is mutually exclusive with - * DDSCAPS_LOCALVIDMEM. - */ -#define DDSCAPS_NONLOCALVIDMEM 0x20000000l - -/* - * Indicates that this surface is a standard VGA mode surface, and not a - * ModeX surface. (This flag will never be set in combination with the - * DDSCAPS_MODEX flag). - */ -#define DDSCAPS_STANDARDVGAMODE 0x40000000l - -/* - * Indicates that this surface will be an optimized surface. This flag is - * currently only valid in conjunction with the DDSCAPS_TEXTURE flag. The surface - * will be created without any underlying video memory until loaded. - */ -#define DDSCAPS_OPTIMIZED 0x80000000l - - - -/* - * This bit is reserved - */ -#define DDSCAPS2_RESERVED4 0x00000002L -#define DDSCAPS2_HARDWAREDEINTERLACE 0x00000000L - -/* - * Indicates to the driver that this surface will be locked very frequently - * (for procedural textures, dynamic lightmaps, etc). Surfaces with this cap - * set must also have DDSCAPS_TEXTURE. This cap cannot be used with - * DDSCAPS2_HINTSTATIC and DDSCAPS2_OPAQUE. - */ -#define DDSCAPS2_HINTDYNAMIC 0x00000004L - -/* - * Indicates to the driver that this surface can be re-ordered/retiled on - * load. This operation will not change the size of the texture. It is - * relatively fast and symmetrical, since the application may lock these - * bits (although it will take a performance hit when doing so). Surfaces - * with this cap set must also have DDSCAPS_TEXTURE. This cap cannot be - * used with DDSCAPS2_HINTDYNAMIC and DDSCAPS2_OPAQUE. - */ -#define DDSCAPS2_HINTSTATIC 0x00000008L - -/* - * Indicates that the client would like this texture surface to be managed by the - * DirectDraw/Direct3D runtime. Surfaces with this cap set must also have - * DDSCAPS_TEXTURE set. - */ -#define DDSCAPS2_TEXTUREMANAGE 0x00000010L - -/* - * These bits are reserved for internal use */ -#define DDSCAPS2_RESERVED1 0x00000020L -#define DDSCAPS2_RESERVED2 0x00000040L - -/* - * Indicates to the driver that this surface will never be locked again. - * The driver is free to optimize this surface via retiling and actual compression. - * All calls to Lock() or Blts from this surface will fail. Surfaces with this - * cap set must also have DDSCAPS_TEXTURE. This cap cannot be used with - * DDSCAPS2_HINTDYNAMIC and DDSCAPS2_HINTSTATIC. - */ -#define DDSCAPS2_OPAQUE 0x00000080L - -/* - * Applications should set this bit at CreateSurface time to indicate that they - * intend to use antialiasing. Only valid if DDSCAPS_3DDEVICE is also set. - */ -#define DDSCAPS2_HINTANTIALIASING 0x00000100L - - -/* - * This flag is used at CreateSurface time to indicate that this set of - * surfaces is a cubic environment map - */ -#define DDSCAPS2_CUBEMAP 0x00000200L - -/* - * These flags preform two functions: - * - At CreateSurface time, they define which of the six cube faces are - * required by the application. - * - After creation, each face in the cubemap will have exactly one of these - * bits set. - */ -#define DDSCAPS2_CUBEMAP_POSITIVEX 0x00000400L -#define DDSCAPS2_CUBEMAP_NEGATIVEX 0x00000800L -#define DDSCAPS2_CUBEMAP_POSITIVEY 0x00001000L -#define DDSCAPS2_CUBEMAP_NEGATIVEY 0x00002000L -#define DDSCAPS2_CUBEMAP_POSITIVEZ 0x00004000L -#define DDSCAPS2_CUBEMAP_NEGATIVEZ 0x00008000L - -/* - * This macro may be used to specify all faces of a cube map at CreateSurface time - */ -#define DDSCAPS2_CUBEMAP_ALLFACES ( DDSCAPS2_CUBEMAP_POSITIVEX |\ - DDSCAPS2_CUBEMAP_NEGATIVEX |\ - DDSCAPS2_CUBEMAP_POSITIVEY |\ - DDSCAPS2_CUBEMAP_NEGATIVEY |\ - DDSCAPS2_CUBEMAP_POSITIVEZ |\ - DDSCAPS2_CUBEMAP_NEGATIVEZ ) - - -/* - * This flag is an additional flag which is present on mipmap sublevels from DX7 onwards - * It enables easier use of GetAttachedSurface rather than EnumAttachedSurfaces for surface - * constructs such as Cube Maps, wherein there are more than one mipmap surface attached - * to the root surface. - * This caps bit is ignored by CreateSurface - */ -#define DDSCAPS2_MIPMAPSUBLEVEL 0x00010000L - -/* This flag indicates that the texture should be managed by D3D only */ -#define DDSCAPS2_D3DTEXTUREMANAGE 0x00020000L - -/* This flag indicates that the managed surface can be safely lost */ -#define DDSCAPS2_DONOTPERSIST 0x00040000L - -/* indicates that this surface is part of a stereo flipping chain */ -#define DDSCAPS2_STEREOSURFACELEFT 0x00080000L - - -/* - * Indicates that the surface is a volume. - * Can be combined with DDSCAPS_MIPMAP to indicate a multi-level volume - */ -#define DDSCAPS2_VOLUME 0x00200000L - -/* - * Indicates that the surface may be locked multiple times by the application. - * This cap cannot be used with DDSCAPS2_OPAQUE. - */ -#define DDSCAPS2_NOTUSERLOCKABLE 0x00400000L - -/* - * Indicates that the vertex buffer data can be used to render points and - * point sprites. - */ -#define DDSCAPS2_POINTS 0x00800000L - -/* - * Indicates that the vertex buffer data can be used to render rt pactches. - */ -#define DDSCAPS2_RTPATCHES 0x01000000L - -/* - * Indicates that the vertex buffer data can be used to render n patches. - */ -#define DDSCAPS2_NPATCHES 0x02000000L - -/* - * This bit is reserved for internal use - */ -#define DDSCAPS2_RESERVED3 0x04000000L - - -/* - * Indicates that the contents of the backbuffer do not have to be preserved - * the contents of the backbuffer after they are presented. - */ -#define DDSCAPS2_DISCARDBACKBUFFER 0x10000000L - -/* - * Indicates that all surfaces in this creation chain should be given an alpha channel. - * This flag will be set on primary surface chains that may have no explicit pixel format - * (and thus take on the format of the current display mode). - * The driver should infer that all these surfaces have a format having an alpha channel. - * (e.g. assume D3DFMT_A8R8G8B8 if the display mode is x888.) - */ -#define DDSCAPS2_ENABLEALPHACHANNEL 0x20000000L - -/* - * Indicates that all surfaces in this creation chain is extended primary surface format. - * This flag will be set on extended primary surface chains that always have explicit pixel - * format and the pixel format is typically GDI (Graphics Device Interface) couldn't handle, - * thus only used with fullscreen application. (e.g. D3DFMT_A2R10G10B10 format) - */ -#define DDSCAPS2_EXTENDEDFORMATPRIMARY 0x40000000L - -/* - * Indicates that all surfaces in this creation chain is additional primary surface. - * This flag will be set on primary surface chains which must present on the adapter - * id provided on dwCaps4. Typically this will be used to create secondary primary surface - * on DualView display adapter. - */ -#define DDSCAPS2_ADDITIONALPRIMARY 0x80000000L - -/* - * This is a mask that indicates the set of bits that may be set - * at createsurface time to indicate number of samples per pixel - * when multisampling - */ -#define DDSCAPS3_MULTISAMPLE_MASK 0x0000001FL - -/* - * This is a mask that indicates the set of bits that may be set - * at createsurface time to indicate the quality level of rendering - * for the current number of samples per pixel - */ -#define DDSCAPS3_MULTISAMPLE_QUALITY_MASK 0x000000E0L -#define DDSCAPS3_MULTISAMPLE_QUALITY_SHIFT 5 - -/* - * This bit is reserved for internal use - */ -#define DDSCAPS3_RESERVED1 0x00000100L - -/* - * This bit is reserved for internal use - */ -#define DDSCAPS3_RESERVED2 0x00000200L - -/* - * This indicates whether this surface has light-weight miplevels - */ -#define DDSCAPS3_LIGHTWEIGHTMIPMAP 0x00000400L - -/* - * This indicates that the mipsublevels for this surface are auto-generated - */ -#define DDSCAPS3_AUTOGENMIPMAP 0x00000800L - -/* - * This indicates that the mipsublevels for this surface are auto-generated - */ -#define DDSCAPS3_DMAP 0x00001000L - - - /**************************************************************************** - * - * DIRECTDRAW DRIVER CAPABILITY FLAGS - * - ****************************************************************************/ - -/* - * Display hardware has 3D acceleration. - */ -#define DDCAPS_3D 0x00000001l - -/* - * Indicates that DirectDraw will support only dest rectangles that are aligned - * on DIRECTDRAWCAPS.dwAlignBoundaryDest boundaries of the surface, respectively. - * READ ONLY. - */ -#define DDCAPS_ALIGNBOUNDARYDEST 0x00000002l - -/* - * Indicates that DirectDraw will support only source rectangles whose sizes in - * BYTEs are DIRECTDRAWCAPS.dwAlignSizeDest multiples, respectively. READ ONLY. - */ -#define DDCAPS_ALIGNSIZEDEST 0x00000004l -/* - * Indicates that DirectDraw will support only source rectangles that are aligned - * on DIRECTDRAWCAPS.dwAlignBoundarySrc boundaries of the surface, respectively. - * READ ONLY. - */ -#define DDCAPS_ALIGNBOUNDARYSRC 0x00000008l - -/* - * Indicates that DirectDraw will support only source rectangles whose sizes in - * BYTEs are DIRECTDRAWCAPS.dwAlignSizeSrc multiples, respectively. READ ONLY. - */ -#define DDCAPS_ALIGNSIZESRC 0x00000010l - -/* - * Indicates that DirectDraw will create video memory surfaces that have a stride - * alignment equal to DIRECTDRAWCAPS.dwAlignStride. READ ONLY. - */ -#define DDCAPS_ALIGNSTRIDE 0x00000020l - -/* - * Display hardware is capable of blt operations. - */ -#define DDCAPS_BLT 0x00000040l - -/* - * Display hardware is capable of asynchronous blt operations. - */ -#define DDCAPS_BLTQUEUE 0x00000080l - -/* - * Display hardware is capable of color space conversions during the blt operation. - */ -#define DDCAPS_BLTFOURCC 0x00000100l - -/* - * Display hardware is capable of stretching during blt operations. - */ -#define DDCAPS_BLTSTRETCH 0x00000200l - -/* - * Display hardware is shared with GDI. - */ -#define DDCAPS_GDI 0x00000400l - -/* - * Display hardware can overlay. - */ -#define DDCAPS_OVERLAY 0x00000800l - -/* - * Set if display hardware supports overlays but can not clip them. - */ -#define DDCAPS_OVERLAYCANTCLIP 0x00001000l - -/* - * Indicates that overlay hardware is capable of color space conversions during - * the overlay operation. - */ -#define DDCAPS_OVERLAYFOURCC 0x00002000l - -/* - * Indicates that stretching can be done by the overlay hardware. - */ -#define DDCAPS_OVERLAYSTRETCH 0x00004000l - -/* - * Indicates that unique DirectDrawPalettes can be created for DirectDrawSurfaces - * other than the primary surface. - */ -#define DDCAPS_PALETTE 0x00008000l - -/* - * Indicates that palette changes can be syncd with the veritcal refresh. - */ -#define DDCAPS_PALETTEVSYNC 0x00010000l - -/* - * Display hardware can return the current scan line. - */ -#define DDCAPS_READSCANLINE 0x00020000l - - -/* - * This flag used to bo DDCAPS_STEREOVIEW, which is now obsolete - */ -#define DDCAPS_RESERVED1 0x00040000l - -/* - * Display hardware is capable of generating a vertical blank interrupt. - */ -#define DDCAPS_VBI 0x00080000l - -/* - * Supports the use of z buffers with blt operations. - */ -#define DDCAPS_ZBLTS 0x00100000l - -/* - * Supports Z Ordering of overlays. - */ -#define DDCAPS_ZOVERLAYS 0x00200000l - -/* - * Supports color key - */ -#define DDCAPS_COLORKEY 0x00400000l - -/* - * Supports alpha surfaces - */ -#define DDCAPS_ALPHA 0x00800000l - -/* - * colorkey is hardware assisted(DDCAPS_COLORKEY will also be set) - */ -#define DDCAPS_COLORKEYHWASSIST 0x01000000l - -/* - * no hardware support at all - */ -#define DDCAPS_NOHARDWARE 0x02000000l - -/* - * Display hardware is capable of color fill with bltter - */ -#define DDCAPS_BLTCOLORFILL 0x04000000l - -/* - * Display hardware is bank switched, and potentially very slow at - * random access to VRAM. - */ -#define DDCAPS_BANKSWITCHED 0x08000000l - -/* - * Display hardware is capable of depth filling Z-buffers with bltter - */ -#define DDCAPS_BLTDEPTHFILL 0x10000000l - -/* - * Display hardware is capable of clipping while bltting. - */ -#define DDCAPS_CANCLIP 0x20000000l - -/* - * Display hardware is capable of clipping while stretch bltting. - */ -#define DDCAPS_CANCLIPSTRETCHED 0x40000000l - -/* - * Display hardware is capable of bltting to or from system memory - */ -#define DDCAPS_CANBLTSYSMEM 0x80000000l - - - /**************************************************************************** - * - * MORE DIRECTDRAW DRIVER CAPABILITY FLAGS (dwCaps2) - * - ****************************************************************************/ - -/* - * Display hardware is certified - */ -#define DDCAPS2_CERTIFIED 0x00000001l - -/* - * Driver cannot interleave 2D operations (lock and blt) to surfaces with - * Direct3D rendering operations between calls to BeginScene() and EndScene() - */ -#define DDCAPS2_NO2DDURING3DSCENE 0x00000002l - -/* - * Display hardware contains a video port - */ -#define DDCAPS2_VIDEOPORT 0x00000004l - -/* - * The overlay can be automatically flipped according to the video port - * VSYNCs, providing automatic doubled buffered display of video port - * data using an overlay - */ -#define DDCAPS2_AUTOFLIPOVERLAY 0x00000008l - -/* - * Overlay can display each field of interlaced data individually while - * it is interleaved in memory without causing jittery artifacts. - */ -#define DDCAPS2_CANBOBINTERLEAVED 0x00000010l - -/* - * Overlay can display each field of interlaced data individually while - * it is not interleaved in memory without causing jittery artifacts. - */ -#define DDCAPS2_CANBOBNONINTERLEAVED 0x00000020l - -/* - * The overlay surface contains color controls (brightness, sharpness, etc.) - */ -#define DDCAPS2_COLORCONTROLOVERLAY 0x00000040l - -/* - * The primary surface contains color controls (gamma, etc.) - */ -#define DDCAPS2_COLORCONTROLPRIMARY 0x00000080l - -/* - * RGBZ -> RGB supported for 16:16 RGB:Z - */ -#define DDCAPS2_CANDROPZ16BIT 0x00000100l - -/* - * Driver supports non-local video memory. - */ -#define DDCAPS2_NONLOCALVIDMEM 0x00000200l - -/* - * Dirver supports non-local video memory but has different capabilities for - * non-local video memory surfaces. If this bit is set then so must - * DDCAPS2_NONLOCALVIDMEM. - */ -#define DDCAPS2_NONLOCALVIDMEMCAPS 0x00000400l - -/* - * Driver neither requires nor prefers surfaces to be pagelocked when performing - * blts involving system memory surfaces - */ -#define DDCAPS2_NOPAGELOCKREQUIRED 0x00000800l - -/* - * Driver can create surfaces which are wider than the primary surface - */ -#define DDCAPS2_WIDESURFACES 0x00001000l - -/* - * Driver supports bob without using a video port by handling the - * DDFLIP_ODD and DDFLIP_EVEN flags specified in Flip. - */ -#define DDCAPS2_CANFLIPODDEVEN 0x00002000l - -/* - * Driver supports bob using hardware - */ -#define DDCAPS2_CANBOBHARDWARE 0x00004000l - -/* - * Driver supports bltting any FOURCC surface to another surface of the same FOURCC - */ -#define DDCAPS2_COPYFOURCC 0x00008000l - - -/* - * Driver supports loadable gamma ramps for the primary surface - */ -#define DDCAPS2_PRIMARYGAMMA 0x00020000l - -/* - * Driver can render in windowed mode. - */ -#define DDCAPS2_CANRENDERWINDOWED 0x00080000l - -/* - * A calibrator is available to adjust the gamma ramp according to the - * physical display properties so that the result will be identical on - * all calibrated systems. - */ -#define DDCAPS2_CANCALIBRATEGAMMA 0x00100000l - -/* - * Indicates that the driver will respond to DDFLIP_INTERVALn flags - */ -#define DDCAPS2_FLIPINTERVAL 0x00200000l - -/* - * Indicates that the driver will respond to DDFLIP_NOVSYNC - */ -#define DDCAPS2_FLIPNOVSYNC 0x00400000l - -/* - * Driver supports management of video memory, if this flag is ON, - * driver manages the texture if requested with DDSCAPS2_TEXTUREMANAGE on - * DirectX manages the texture if this flag is OFF and surface has DDSCAPS2_TEXTUREMANAGE on - */ -#define DDCAPS2_CANMANAGETEXTURE 0x00800000l - -/* - * The Direct3D texture manager uses this cap to decide whether to put managed - * surfaces in non-local video memory. If the cap is set, the texture manager will - * put managed surfaces in non-local vidmem. Drivers that cannot texture from - * local vidmem SHOULD NOT set this cap. - */ -#define DDCAPS2_TEXMANINNONLOCALVIDMEM 0x01000000l - -/* - * Indicates that the driver supports DX7 type of stereo in at least one mode (which may - * not necessarily be the current mode). Applications should use IDirectDraw7 (or higher) - * ::EnumDisplayModes and check the DDSURFACEDESC.ddsCaps.dwCaps2 field for the presence of - * DDSCAPS2_STEREOSURFACELEFT to check if a particular mode supports stereo. The application - * can also use IDirectDraw7(or higher)::GetDisplayMode to check the current mode. - */ -#define DDCAPS2_STEREO 0x02000000L - -/* - * This caps bit is intended for internal DirectDraw use. - * -It is only valid if DDCAPS2_NONLOCALVIDMEMCAPS is set. - * -If this bit is set, then DDCAPS_CANBLTSYSMEM MUST be set by the driver (and - * all the assoicated system memory blt caps must be correct). - * -It implies that the system->video blt caps in DDCAPS also apply to system to - * nonlocal blts. I.e. the dwSVBCaps, dwSVBCKeyCaps, dwSVBFXCaps and dwSVBRops - * members of DDCAPS (DDCORECAPS) are filled in correctly. - * -Any blt from system to nonlocal memory that matches these caps bits will - * be passed to the driver. - * - * NOTE: This is intended to enable the driver itself to do efficient reordering - * of textures. This is NOT meant to imply that hardware can write into AGP memory. - * This operation is not currently supported. - */ -#define DDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL 0x04000000L - -/* - * was DDCAPS2_PUREHAL - */ -#define DDCAPS2_RESERVED1 0x08000000L - -/* - * Driver supports management of video memory, if this flag is ON, - * driver manages the resource if requested with DDSCAPS2_TEXTUREMANAGE on - * DirectX manages the resource if this flag is OFF and surface has DDSCAPS2_TEXTUREMANAGE on - */ -#define DDCAPS2_CANMANAGERESOURCE 0x10000000L - -/* - * Driver supports dynamic textures. This will allow the application to set - * D3DUSAGE_DYNAMIC (DDSCAPS2_HINTDYNAMIC for drivers) at texture create time. - * Video memory dynamic textures WILL be lockable by applications. It is - * expected that these locks will be very efficient (which implies that the - * driver should always maintain a linear copy, a pointer to which can be - * quickly handed out to the application). - */ -#define DDCAPS2_DYNAMICTEXTURES 0x20000000L - -/* - * Driver supports auto-generation of mipmaps. - */ -#define DDCAPS2_CANAUTOGENMIPMAP 0x40000000L - - -/**************************************************************************** - * - * DIRECTDRAW FX ALPHA CAPABILITY FLAGS - * - ****************************************************************************/ - -/* - * Supports alpha blending around the edge of a source color keyed surface. - * For Blt. - */ -#define DDFXALPHACAPS_BLTALPHAEDGEBLEND 0x00000001l - -/* - * Supports alpha information in the pixel format. The bit depth of alpha - * information in the pixel format can be 1,2,4, or 8. The alpha value becomes - * more opaque as the alpha value increases. (0 is transparent.) - * For Blt. - */ -#define DDFXALPHACAPS_BLTALPHAPIXELS 0x00000002l - -/* - * Supports alpha information in the pixel format. The bit depth of alpha - * information in the pixel format can be 1,2,4, or 8. The alpha value - * becomes more transparent as the alpha value increases. (0 is opaque.) - * This flag can only be set if DDCAPS_ALPHA is set. - * For Blt. - */ -#define DDFXALPHACAPS_BLTALPHAPIXELSNEG 0x00000004l - -/* - * Supports alpha only surfaces. The bit depth of an alpha only surface can be - * 1,2,4, or 8. The alpha value becomes more opaque as the alpha value increases. - * (0 is transparent.) - * For Blt. - */ -#define DDFXALPHACAPS_BLTALPHASURFACES 0x00000008l - -/* - * The depth of the alpha channel data can range can be 1,2,4, or 8. - * The NEG suffix indicates that this alpha channel becomes more transparent - * as the alpha value increases. (0 is opaque.) This flag can only be set if - * DDCAPS_ALPHA is set. - * For Blt. - */ -#define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010l - -/* - * Supports alpha blending around the edge of a source color keyed surface. - * For Overlays. - */ -#define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020l - -/* - * Supports alpha information in the pixel format. The bit depth of alpha - * information in the pixel format can be 1,2,4, or 8. The alpha value becomes - * more opaque as the alpha value increases. (0 is transparent.) - * For Overlays. - */ -#define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040l - -/* - * Supports alpha information in the pixel format. The bit depth of alpha - * information in the pixel format can be 1,2,4, or 8. The alpha value - * becomes more transparent as the alpha value increases. (0 is opaque.) - * This flag can only be set if DDCAPS_ALPHA is set. - * For Overlays. - */ -#define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080l - -/* - * Supports alpha only surfaces. The bit depth of an alpha only surface can be - * 1,2,4, or 8. The alpha value becomes more opaque as the alpha value increases. - * (0 is transparent.) - * For Overlays. - */ -#define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100l - -/* - * The depth of the alpha channel data can range can be 1,2,4, or 8. - * The NEG suffix indicates that this alpha channel becomes more transparent - * as the alpha value increases. (0 is opaque.) This flag can only be set if - * DDCAPS_ALPHA is set. - * For Overlays. - */ -#define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200l - -#if DIRECTDRAW_VERSION < 0x0600 -#endif //DIRECTDRAW_VERSION - - -/**************************************************************************** - * - * DIRECTDRAW FX CAPABILITY FLAGS - * - ****************************************************************************/ - -/* - * Uses arithmetic operations to stretch and shrink surfaces during blt - * rather than pixel doubling techniques. Along the Y axis. - */ -#define DDFXCAPS_BLTARITHSTRETCHY 0x00000020l - -/* - * Uses arithmetic operations to stretch during blt - * rather than pixel doubling techniques. Along the Y axis. Only - * works for x1, x2, etc. - */ -#define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010l - -/* - * Supports mirroring left to right in blt. - */ -#define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040l - -/* - * Supports mirroring top to bottom in blt. - */ -#define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080l - -/* - * Supports arbitrary rotation for blts. - */ -#define DDFXCAPS_BLTROTATION 0x00000100l - -/* - * Supports 90 degree rotations for blts. - */ -#define DDFXCAPS_BLTROTATION90 0x00000200l - -/* - * DirectDraw supports arbitrary shrinking of a surface along the - * x axis (horizontal direction) for blts. - */ -#define DDFXCAPS_BLTSHRINKX 0x00000400l - -/* - * DirectDraw supports integer shrinking (1x,2x,) of a surface - * along the x axis (horizontal direction) for blts. - */ -#define DDFXCAPS_BLTSHRINKXN 0x00000800l - -/* - * DirectDraw supports arbitrary shrinking of a surface along the - * y axis (horizontal direction) for blts. - */ -#define DDFXCAPS_BLTSHRINKY 0x00001000l - -/* - * DirectDraw supports integer shrinking (1x,2x,) of a surface - * along the y axis (vertical direction) for blts. - */ -#define DDFXCAPS_BLTSHRINKYN 0x00002000l - -/* - * DirectDraw supports arbitrary stretching of a surface along the - * x axis (horizontal direction) for blts. - */ -#define DDFXCAPS_BLTSTRETCHX 0x00004000l - -/* - * DirectDraw supports integer stretching (1x,2x,) of a surface - * along the x axis (horizontal direction) for blts. - */ -#define DDFXCAPS_BLTSTRETCHXN 0x00008000l - -/* - * DirectDraw supports arbitrary stretching of a surface along the - * y axis (horizontal direction) for blts. - */ -#define DDFXCAPS_BLTSTRETCHY 0x00010000l - -/* - * DirectDraw supports integer stretching (1x,2x,) of a surface - * along the y axis (vertical direction) for blts. - */ -#define DDFXCAPS_BLTSTRETCHYN 0x00020000l - -/* - * Uses arithmetic operations to stretch and shrink surfaces during - * overlay rather than pixel doubling techniques. Along the Y axis - * for overlays. - */ -#define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000l - -/* - * Uses arithmetic operations to stretch surfaces during - * overlay rather than pixel doubling techniques. Along the Y axis - * for overlays. Only works for x1, x2, etc. - */ -#define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008l - -/* - * DirectDraw supports arbitrary shrinking of a surface along the - * x axis (horizontal direction) for overlays. - */ -#define DDFXCAPS_OVERLAYSHRINKX 0x00080000l - -/* - * DirectDraw supports integer shrinking (1x,2x,) of a surface - * along the x axis (horizontal direction) for overlays. - */ -#define DDFXCAPS_OVERLAYSHRINKXN 0x00100000l - -/* - * DirectDraw supports arbitrary shrinking of a surface along the - * y axis (horizontal direction) for overlays. - */ -#define DDFXCAPS_OVERLAYSHRINKY 0x00200000l - -/* - * DirectDraw supports integer shrinking (1x,2x,) of a surface - * along the y axis (vertical direction) for overlays. - */ -#define DDFXCAPS_OVERLAYSHRINKYN 0x00400000l - -/* - * DirectDraw supports arbitrary stretching of a surface along the - * x axis (horizontal direction) for overlays. - */ -#define DDFXCAPS_OVERLAYSTRETCHX 0x00800000l - -/* - * DirectDraw supports integer stretching (1x,2x,) of a surface - * along the x axis (horizontal direction) for overlays. - */ -#define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000l - -/* - * DirectDraw supports arbitrary stretching of a surface along the - * y axis (horizontal direction) for overlays. - */ -#define DDFXCAPS_OVERLAYSTRETCHY 0x02000000l - -/* - * DirectDraw supports integer stretching (1x,2x,) of a surface - * along the y axis (vertical direction) for overlays. - */ -#define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000l - -/* - * DirectDraw supports mirroring of overlays across the vertical axis - */ -#define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000l - -/* - * DirectDraw supports mirroring of overlays across the horizontal axis - */ -#define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000l - -/* - * DirectDraw supports deinterlacing of overlay surfaces - */ -#define DDFXCAPS_OVERLAYDEINTERLACE 0x20000000l - -/* - * Driver can do alpha blending for blits. - */ -#define DDFXCAPS_BLTALPHA 0x00000001l - - -/* - * Driver can do surface-reconstruction filtering for warped blits. - */ -#define DDFXCAPS_BLTFILTER DDFXCAPS_BLTARITHSTRETCHY - -/* - * Driver can do alpha blending for overlays. - */ -#define DDFXCAPS_OVERLAYALPHA 0x00000004l - - -/* - * Driver can do surface-reconstruction filtering for warped overlays. - */ -#define DDFXCAPS_OVERLAYFILTER DDFXCAPS_OVERLAYARITHSTRETCHY - -/**************************************************************************** - * - * DIRECTDRAW STEREO VIEW CAPABILITIES - * - ****************************************************************************/ - -/* - * This flag used to be DDSVCAPS_ENIGMA, which is now obsolete - */ - -#define DDSVCAPS_RESERVED1 0x00000001l - -/* - * This flag used to be DDSVCAPS_FLICKER, which is now obsolete - */ -#define DDSVCAPS_RESERVED2 0x00000002l - -/* - * This flag used to be DDSVCAPS_REDBLUE, which is now obsolete - */ -#define DDSVCAPS_RESERVED3 0x00000004l - -/* - * This flag used to be DDSVCAPS_SPLIT, which is now obsolete - */ -#define DDSVCAPS_RESERVED4 0x00000008l - -/* - * The stereo view is accomplished with switching technology - */ - -#define DDSVCAPS_STEREOSEQUENTIAL 0x00000010L - - - -/**************************************************************************** - * - * DIRECTDRAWPALETTE CAPABILITIES - * - ****************************************************************************/ - -/* - * Index is 4 bits. There are sixteen color entries in the palette table. - */ -#define DDPCAPS_4BIT 0x00000001l - -/* - * Index is onto a 8 bit color index. This field is only valid with the - * DDPCAPS_1BIT, DDPCAPS_2BIT or DDPCAPS_4BIT capability and the target - * surface is in 8bpp. Each color entry is one byte long and is an index - * into destination surface's 8bpp palette. - */ -#define DDPCAPS_8BITENTRIES 0x00000002l - -/* - * Index is 8 bits. There are 256 color entries in the palette table. - */ -#define DDPCAPS_8BIT 0x00000004l - -/* - * Indicates that this DIRECTDRAWPALETTE should use the palette color array - * passed into the lpDDColorArray parameter to initialize the DIRECTDRAWPALETTE - * object. - * This flag is obsolete. DirectDraw always initializes the color array from - * the lpDDColorArray parameter. The definition remains for source-level - * compatibility. - */ -#define DDPCAPS_INITIALIZE 0x00000000l - -/* - * This palette is the one attached to the primary surface. Changing this - * table has immediate effect on the display unless DDPSETPAL_VSYNC is specified - * and supported. - */ -#define DDPCAPS_PRIMARYSURFACE 0x00000010l - -/* - * This palette is the one attached to the primary surface left. Changing - * this table has immediate effect on the display for the left eye unless - * DDPSETPAL_VSYNC is specified and supported. - */ -#define DDPCAPS_PRIMARYSURFACELEFT 0x00000020l - -/* - * This palette can have all 256 entries defined - */ -#define DDPCAPS_ALLOW256 0x00000040l - -/* - * This palette can have modifications to it synced with the monitors - * refresh rate. - */ -#define DDPCAPS_VSYNC 0x00000080l - -/* - * Index is 1 bit. There are two color entries in the palette table. - */ -#define DDPCAPS_1BIT 0x00000100l - -/* - * Index is 2 bit. There are four color entries in the palette table. - */ -#define DDPCAPS_2BIT 0x00000200l - -/* - * The peFlags member of PALETTEENTRY denotes an 8 bit alpha value - */ -#define DDPCAPS_ALPHA 0x00000400l - - -/**************************************************************************** - * - * DIRECTDRAWPALETTE SETENTRY CONSTANTS - * - ****************************************************************************/ - - -/**************************************************************************** - * - * DIRECTDRAWPALETTE GETENTRY CONSTANTS - * - ****************************************************************************/ - -/* 0 is the only legal value */ - -/**************************************************************************** - * - * DIRECTDRAWSURFACE SETPRIVATEDATA CONSTANTS - * - ****************************************************************************/ - -/* - * The passed pointer is an IUnknown ptr. The cbData argument to SetPrivateData - * must be set to sizeof(IUnknown*). DirectDraw will call AddRef through this - * pointer and Release when the private data is destroyed. This includes when - * the surface or palette is destroyed before such priovate data is destroyed. - */ -#define DDSPD_IUNKNOWNPOINTER 0x00000001L - -/* - * Private data is only valid for the current state of the object, - * as determined by the uniqueness value. - */ -#define DDSPD_VOLATILE 0x00000002L - - -/**************************************************************************** - * - * DIRECTDRAWSURFACE SETPALETTE CONSTANTS - * - ****************************************************************************/ - - -/**************************************************************************** - * - * DIRECTDRAW BITDEPTH CONSTANTS - * - * NOTE: These are only used to indicate supported bit depths. These - * are flags only, they are not to be used as an actual bit depth. The - * absolute numbers 1, 2, 4, 8, 16, 24 and 32 are used to indicate actual - * bit depths in a surface or for changing the display mode. - * - ****************************************************************************/ - -/* - * 1 bit per pixel. - */ -#define DDBD_1 0x00004000l - -/* - * 2 bits per pixel. - */ -#define DDBD_2 0x00002000l - -/* - * 4 bits per pixel. - */ -#define DDBD_4 0x00001000l - -/* - * 8 bits per pixel. - */ -#define DDBD_8 0x00000800l - -/* - * 16 bits per pixel. - */ -#define DDBD_16 0x00000400l - -/* - * 24 bits per pixel. - */ -#define DDBD_24 0X00000200l - -/* - * 32 bits per pixel. - */ -#define DDBD_32 0x00000100l - -/**************************************************************************** - * - * DIRECTDRAWSURFACE SET/GET COLOR KEY FLAGS - * - ****************************************************************************/ - -/* - * Set if the structure contains a color space. Not set if the structure - * contains a single color key. - */ -#define DDCKEY_COLORSPACE 0x00000001l - -/* - * Set if the structure specifies a color key or color space which is to be - * used as a destination color key for blt operations. - */ -#define DDCKEY_DESTBLT 0x00000002l - -/* - * Set if the structure specifies a color key or color space which is to be - * used as a destination color key for overlay operations. - */ -#define DDCKEY_DESTOVERLAY 0x00000004l - -/* - * Set if the structure specifies a color key or color space which is to be - * used as a source color key for blt operations. - */ -#define DDCKEY_SRCBLT 0x00000008l - -/* - * Set if the structure specifies a color key or color space which is to be - * used as a source color key for overlay operations. - */ -#define DDCKEY_SRCOVERLAY 0x00000010l - - -/**************************************************************************** - * - * DIRECTDRAW COLOR KEY CAPABILITY FLAGS - * - ****************************************************************************/ - -/* - * Supports transparent blting using a color key to identify the replaceable - * bits of the destination surface for RGB colors. - */ -#define DDCKEYCAPS_DESTBLT 0x00000001l - -/* - * Supports transparent blting using a color space to identify the replaceable - * bits of the destination surface for RGB colors. - */ -#define DDCKEYCAPS_DESTBLTCLRSPACE 0x00000002l - -/* - * Supports transparent blting using a color space to identify the replaceable - * bits of the destination surface for YUV colors. - */ -#define DDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004l - -/* - * Supports transparent blting using a color key to identify the replaceable - * bits of the destination surface for YUV colors. - */ -#define DDCKEYCAPS_DESTBLTYUV 0x00000008l - -/* - * Supports overlaying using colorkeying of the replaceable bits of the surface - * being overlayed for RGB colors. - */ -#define DDCKEYCAPS_DESTOVERLAY 0x00000010l - -/* - * Supports a color space as the color key for the destination for RGB colors. - */ -#define DDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020l - -/* - * Supports a color space as the color key for the destination for YUV colors. - */ -#define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040l - -/* - * Supports only one active destination color key value for visible overlay - * surfaces. - */ -#define DDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080l - -/* - * Supports overlaying using colorkeying of the replaceable bits of the - * surface being overlayed for YUV colors. - */ -#define DDCKEYCAPS_DESTOVERLAYYUV 0x00000100l - -/* - * Supports transparent blting using the color key for the source with - * this surface for RGB colors. - */ -#define DDCKEYCAPS_SRCBLT 0x00000200l - -/* - * Supports transparent blting using a color space for the source with - * this surface for RGB colors. - */ -#define DDCKEYCAPS_SRCBLTCLRSPACE 0x00000400l - -/* - * Supports transparent blting using a color space for the source with - * this surface for YUV colors. - */ -#define DDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800l - -/* - * Supports transparent blting using the color key for the source with - * this surface for YUV colors. - */ -#define DDCKEYCAPS_SRCBLTYUV 0x00001000l - -/* - * Supports overlays using the color key for the source with this - * overlay surface for RGB colors. - */ -#define DDCKEYCAPS_SRCOVERLAY 0x00002000l - -/* - * Supports overlays using a color space as the source color key for - * the overlay surface for RGB colors. - */ -#define DDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000l - -/* - * Supports overlays using a color space as the source color key for - * the overlay surface for YUV colors. - */ -#define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000l - -/* - * Supports only one active source color key value for visible - * overlay surfaces. - */ -#define DDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000l - -/* - * Supports overlays using the color key for the source with this - * overlay surface for YUV colors. - */ -#define DDCKEYCAPS_SRCOVERLAYYUV 0x00020000l - -/* - * there are no bandwidth trade-offs for using colorkey with an overlay - */ -#define DDCKEYCAPS_NOCOSTOVERLAY 0x00040000l - - -/**************************************************************************** - * - * DIRECTDRAW PIXELFORMAT FLAGS - * - ****************************************************************************/ - -/* - * The surface has alpha channel information in the pixel format. - */ -#define DDPF_ALPHAPIXELS 0x00000001l - -/* - * The pixel format contains alpha only information - */ -#define DDPF_ALPHA 0x00000002l - -/* - * The FourCC code is valid. - */ -#define DDPF_FOURCC 0x00000004l - -/* - * The surface is 4-bit color indexed. - */ -#define DDPF_PALETTEINDEXED4 0x00000008l - -/* - * The surface is indexed into a palette which stores indices - * into the destination surface's 8-bit palette. - */ -#define DDPF_PALETTEINDEXEDTO8 0x00000010l - -/* - * The surface is 8-bit color indexed. - */ -#define DDPF_PALETTEINDEXED8 0x00000020l - -/* - * The RGB data in the pixel format structure is valid. - */ -#define DDPF_RGB 0x00000040l - -/* - * The surface will accept pixel data in the format specified - * and compress it during the write. - */ -#define DDPF_COMPRESSED 0x00000080l - -/* - * The surface will accept RGB data and translate it during - * the write to YUV data. The format of the data to be written - * will be contained in the pixel format structure. The DDPF_RGB - * flag will be set. - */ -#define DDPF_RGBTOYUV 0x00000100l - -/* - * pixel format is YUV - YUV data in pixel format struct is valid - */ -#define DDPF_YUV 0x00000200l - -/* - * pixel format is a z buffer only surface - */ -#define DDPF_ZBUFFER 0x00000400l - -/* - * The surface is 1-bit color indexed. - */ -#define DDPF_PALETTEINDEXED1 0x00000800l - -/* - * The surface is 2-bit color indexed. - */ -#define DDPF_PALETTEINDEXED2 0x00001000l - -/* - * The surface contains Z information in the pixels - */ -#define DDPF_ZPIXELS 0x00002000l - -/* - * The surface contains stencil information along with Z - */ -#define DDPF_STENCILBUFFER 0x00004000l - -/* - * Premultiplied alpha format -- the color components have been - * premultiplied by the alpha component. - */ -#define DDPF_ALPHAPREMULT 0x00008000l - - -/* - * Luminance data in the pixel format is valid. - * Use this flag for luminance-only or luminance+alpha surfaces, - * the bit depth is then ddpf.dwLuminanceBitCount. - */ -#define DDPF_LUMINANCE 0x00020000l - -/* - * Luminance data in the pixel format is valid. - * Use this flag when hanging luminance off bumpmap surfaces, - * the bit mask for the luminance portion of the pixel is then - * ddpf.dwBumpLuminanceBitMask - */ -#define DDPF_BUMPLUMINANCE 0x00040000l - -/* - * Bump map dUdV data in the pixel format is valid. - */ -#define DDPF_BUMPDUDV 0x00080000l - - -/*=========================================================================== - * - * - * DIRECTDRAW CALLBACK FLAGS - * - * - *==========================================================================*/ - -/**************************************************************************** - * - * DIRECTDRAW ENUMSURFACES FLAGS - * - ****************************************************************************/ - -/* - * Enumerate all of the surfaces that meet the search criterion. - */ -#define DDENUMSURFACES_ALL 0x00000001l - -/* - * A search hit is a surface that matches the surface description. - */ -#define DDENUMSURFACES_MATCH 0x00000002l - -/* - * A search hit is a surface that does not match the surface description. - */ -#define DDENUMSURFACES_NOMATCH 0x00000004l - -/* - * Enumerate the first surface that can be created which meets the search criterion. - */ -#define DDENUMSURFACES_CANBECREATED 0x00000008l - -/* - * Enumerate the surfaces that already exist that meet the search criterion. - */ -#define DDENUMSURFACES_DOESEXIST 0x00000010l - - -/**************************************************************************** - * - * DIRECTDRAW SETDISPLAYMODE FLAGS - * - ****************************************************************************/ - -/* - * The desired mode is a standard VGA mode - */ -#define DDSDM_STANDARDVGAMODE 0x00000001l - - -/**************************************************************************** - * - * DIRECTDRAW ENUMDISPLAYMODES FLAGS - * - ****************************************************************************/ - -/* - * Enumerate Modes with different refresh rates. EnumDisplayModes guarantees - * that a particular mode will be enumerated only once. This flag specifies whether - * the refresh rate is taken into account when determining if a mode is unique. - */ -#define DDEDM_REFRESHRATES 0x00000001l - -/* - * Enumerate VGA modes. Specify this flag if you wish to enumerate supported VGA - * modes such as mode 0x13 in addition to the usual ModeX modes (which are always - * enumerated if the application has previously called SetCooperativeLevel with the - * DDSCL_ALLOWMODEX flag set). - */ -#define DDEDM_STANDARDVGAMODES 0x00000002L - - -/**************************************************************************** - * - * DIRECTDRAW SETCOOPERATIVELEVEL FLAGS - * - ****************************************************************************/ - -/* - * Exclusive mode owner will be responsible for the entire primary surface. - * GDI can be ignored. used with DD - */ -#define DDSCL_FULLSCREEN 0x00000001l - -/* - * allow CTRL_ALT_DEL to work while in fullscreen exclusive mode - */ -#define DDSCL_ALLOWREBOOT 0x00000002l - -/* - * prevents DDRAW from modifying the application window. - * prevents DDRAW from minimize/restore the application window on activation. - */ -#define DDSCL_NOWINDOWCHANGES 0x00000004l - -/* - * app wants to work as a regular Windows application - */ -#define DDSCL_NORMAL 0x00000008l - -/* - * app wants exclusive access - */ -#define DDSCL_EXCLUSIVE 0x00000010l - - -/* - * app can deal with non-windows display modes - */ -#define DDSCL_ALLOWMODEX 0x00000040l - -/* - * this window will receive the focus messages - */ -#define DDSCL_SETFOCUSWINDOW 0x00000080l - -/* - * this window is associated with the DDRAW object and will - * cover the screen in fullscreen mode - */ -#define DDSCL_SETDEVICEWINDOW 0x00000100l - -/* - * app wants DDRAW to create a window to be associated with the - * DDRAW object - */ -#define DDSCL_CREATEDEVICEWINDOW 0x00000200l - -/* - * App explicitly asks DDRAW/D3D to be multithread safe. This makes D3D - * take the global crtisec more frequently. - */ -#define DDSCL_MULTITHREADED 0x00000400l - -/* - * App specifies that it would like to keep the FPU set up for optimal Direct3D - * performance (single precision and exceptions disabled) so Direct3D - * does not need to explicitly set the FPU each time. This is assumed by - * default in DirectX 7. See also DDSCL_FPUPRESERVE - */ -#define DDSCL_FPUSETUP 0x00000800l - -/* - * App specifies that it needs either double precision FPU or FPU exceptions - * enabled. This makes Direct3D explicitly set the FPU state eah time it is - * called. Setting the flag will reduce Direct3D performance. The flag is - * assumed by default in DirectX 6 and earlier. See also DDSCL_FPUSETUP - */ -#define DDSCL_FPUPRESERVE 0x00001000l - - -/**************************************************************************** - * - * DIRECTDRAW BLT FLAGS - * - ****************************************************************************/ - -/* - * Use the alpha information in the pixel format or the alpha channel surface - * attached to the destination surface as the alpha channel for this blt. - */ -#define DDBLT_ALPHADEST 0x00000001l - -/* - * Use the dwConstAlphaDest field in the DDBLTFX structure as the alpha channel - * for the destination surface for this blt. - */ -#define DDBLT_ALPHADESTCONSTOVERRIDE 0x00000002l - -/* - * The NEG suffix indicates that the destination surface becomes more - * transparent as the alpha value increases. (0 is opaque) - */ -#define DDBLT_ALPHADESTNEG 0x00000004l - -/* - * Use the lpDDSAlphaDest field in the DDBLTFX structure as the alpha - * channel for the destination for this blt. - */ -#define DDBLT_ALPHADESTSURFACEOVERRIDE 0x00000008l - -/* - * Use the dwAlphaEdgeBlend field in the DDBLTFX structure as the alpha channel - * for the edges of the image that border the color key colors. - */ -#define DDBLT_ALPHAEDGEBLEND 0x00000010l - -/* - * Use the alpha information in the pixel format or the alpha channel surface - * attached to the source surface as the alpha channel for this blt. - */ -#define DDBLT_ALPHASRC 0x00000020l - -/* - * Use the dwConstAlphaSrc field in the DDBLTFX structure as the alpha channel - * for the source for this blt. - */ -#define DDBLT_ALPHASRCCONSTOVERRIDE 0x00000040l - -/* - * The NEG suffix indicates that the source surface becomes more transparent - * as the alpha value increases. (0 is opaque) - */ -#define DDBLT_ALPHASRCNEG 0x00000080l - -/* - * Use the lpDDSAlphaSrc field in the DDBLTFX structure as the alpha channel - * for the source for this blt. - */ -#define DDBLT_ALPHASRCSURFACEOVERRIDE 0x00000100l - -/* - * Do this blt asynchronously through the FIFO in the order received. If - * there is no room in the hardware FIFO fail the call. - */ -#define DDBLT_ASYNC 0x00000200l - -/* - * Uses the dwFillColor field in the DDBLTFX structure as the RGB color - * to fill the destination rectangle on the destination surface with. - */ -#define DDBLT_COLORFILL 0x00000400l - -/* - * Uses the dwDDFX field in the DDBLTFX structure to specify the effects - * to use for the blt. - */ -#define DDBLT_DDFX 0x00000800l - -/* - * Uses the dwDDROPS field in the DDBLTFX structure to specify the ROPS - * that are not part of the Win32 API. - */ -#define DDBLT_DDROPS 0x00001000l - -/* - * Use the color key associated with the destination surface. - */ -#define DDBLT_KEYDEST 0x00002000l - -/* - * Use the dckDestColorkey field in the DDBLTFX structure as the color key - * for the destination surface. - */ -#define DDBLT_KEYDESTOVERRIDE 0x00004000l - -/* - * Use the color key associated with the source surface. - */ -#define DDBLT_KEYSRC 0x00008000l - -/* - * Use the dckSrcColorkey field in the DDBLTFX structure as the color key - * for the source surface. - */ -#define DDBLT_KEYSRCOVERRIDE 0x00010000l - -/* - * Use the dwROP field in the DDBLTFX structure for the raster operation - * for this blt. These ROPs are the same as the ones defined in the Win32 API. - */ -#define DDBLT_ROP 0x00020000l - -/* - * Use the dwRotationAngle field in the DDBLTFX structure as the angle - * (specified in 1/100th of a degree) to rotate the surface. - */ -#define DDBLT_ROTATIONANGLE 0x00040000l - -/* - * Z-buffered blt using the z-buffers attached to the source and destination - * surfaces and the dwZBufferOpCode field in the DDBLTFX structure as the - * z-buffer opcode. - */ -#define DDBLT_ZBUFFER 0x00080000l - -/* - * Z-buffered blt using the dwConstDest Zfield and the dwZBufferOpCode field - * in the DDBLTFX structure as the z-buffer and z-buffer opcode respectively - * for the destination. - */ -#define DDBLT_ZBUFFERDESTCONSTOVERRIDE 0x00100000l - -/* - * Z-buffered blt using the lpDDSDestZBuffer field and the dwZBufferOpCode - * field in the DDBLTFX structure as the z-buffer and z-buffer opcode - * respectively for the destination. - */ -#define DDBLT_ZBUFFERDESTOVERRIDE 0x00200000l - -/* - * Z-buffered blt using the dwConstSrcZ field and the dwZBufferOpCode field - * in the DDBLTFX structure as the z-buffer and z-buffer opcode respectively - * for the source. - */ -#define DDBLT_ZBUFFERSRCCONSTOVERRIDE 0x00400000l - -/* - * Z-buffered blt using the lpDDSSrcZBuffer field and the dwZBufferOpCode - * field in the DDBLTFX structure as the z-buffer and z-buffer opcode - * respectively for the source. - */ -#define DDBLT_ZBUFFERSRCOVERRIDE 0x00800000l - -/* - * wait until the device is ready to handle the blt - * this will cause blt to not return DDERR_WASSTILLDRAWING - */ -#define DDBLT_WAIT 0x01000000l - -/* - * Uses the dwFillDepth field in the DDBLTFX structure as the depth value - * to fill the destination rectangle on the destination Z-buffer surface - * with. - */ -#define DDBLT_DEPTHFILL 0x02000000l - - -/* - * Return immediately (with DDERR_WASSTILLDRAWING) if the device is not - * ready to schedule the blt at the time Blt() is called. - */ -#define DDBLT_DONOTWAIT 0x08000000l - -/* - * These flags indicate a presentation blt (i.e. a blt - * that moves surface contents from an offscreen back buffer to the primary - * surface). The driver is not allowed to "queue" more than three such blts. - * The "end" of the presentation blt is indicated, since the - * blt may be clipped, in which case the runtime will call the driver with - * several blts. All blts (even if not clipped) are tagged with DDBLT_PRESENTATION - * and the last (even if not clipped) additionally with DDBLT_LAST_PRESENTATION. - * Thus the true rule is that the driver must not schedule a DDBLT_PRESENTATION - * blt if there are 3 or more DDBLT_PRESENTLAST blts in the hardware pipe. - * If there are such blts in the pipe, the driver should return DDERR_WASSTILLDRAWING - * until the oldest queued DDBLT_LAST_PRESENTATION blts has been retired (i.e. the - * pixels have been actually written to the primary surface). Once the oldest blt - * has been retired, the driver is free to schedule the current blt. - * The goal is to provide a mechanism whereby the device's hardware queue never - * gets more than 3 frames ahead of the frames being generated by the application. - * When excessive queueing occurs, applications become unusable because the application - * visibly lags user input, and such problems make windowed interactive applications impossible. - * Some drivers may not have sufficient knowledge of their hardware's FIFO to know - * when a certain blt has been retired. Such drivers should code cautiously, and - * simply not allow any frames to be queued at all. DDBLT_LAST_PRESENTATION should cause - * such drivers to return DDERR_WASSTILLDRAWING until the accelerator is completely - * finished- exactly as if the application had called Lock on the source surface - * before calling Blt. - * In other words, the driver is allowed and encouraged to - * generate as much latency as it can, but never more than 3 frames worth. - * Implementation detail: Drivers should count blts against the SOURCE surface, not - * against the primary surface. This enables multiple parallel windowed application - * to function more optimally. - * This flag is passed only to DX8 or higher drivers. - * - * APPLICATIONS DO NOT SET THESE FLAGS. THEY ARE SET BY THE DIRECTDRAW RUNTIME. - * - */ -#define DDBLT_PRESENTATION 0x10000000l -#define DDBLT_LAST_PRESENTATION 0x20000000l - -/* - * If DDBLT_EXTENDED_FLAGS is set, then the driver should re-interpret - * other flags according to the definitions that follow. - * For example, bit 0 (0x00000001L) means DDBLT_ALPHADEST, unless - * DDBLT_EXTENDED_FLAGS is also set, in which case bit 0 means - * DDBLT_EXTENDED_LINEAR_CONTENT. - * Only DirectX9 and higher drivers will be given extended blt flags. - * Only flags explicitly mentioned here should be re-interpreted. - * All other flags retain their original meanings. - * - * List of re-interpreted flags: - * - * Bit Hex value New meaning old meaning - * --------------------------------------------------------------- - * 2 0x00000004 DDBLT_EXTENDED_LINEAR_CONTENT DDBLT_ALPHADESTNEG - * 4 0x00000010 DDBLT_EXTENDED_PRESENTATION_STRETCHFACTOR DDBLT_ALPHAEDGEBLEND - * - * - * NOTE: APPLICATIONS SHOULD NOT SET THIS FLAG. THIS FLAG IS INTENDED - * FOR USE BY THE DIRECT3D RUNTIME. - */ -#define DDBLT_EXTENDED_FLAGS 0x40000000l - -/* - * EXTENDED FLAG. SEE DEFINITION OF DDBLT_EXTENDED_FLAGS. - * This flag indidcates that the source surface contains content in a - * linear color space. The driver may perform gamma correction to the - * desktop color space (i.e. sRGB, gamma 2.2) as part of this blt. - * If the device can perform such a conversion as part of the copy, - * the driver should also set D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION - * - * NOTE: APPLICATIONS SHOULD NOT SET THIS FLAG. THIS FLAG IS INTENDED - * FOR USE BY THE DIRECT3D RUNTIME. Use IDirect3DSwapChain9::Present - * and specify D3DPRESENT_LINEAR_CONTENT in order to use this functionality. - */ -#define DDBLT_EXTENDED_LINEAR_CONTENT 0x00000004l - - -/**************************************************************************** - * - * BLTFAST FLAGS - * - ****************************************************************************/ - -#define DDBLTFAST_NOCOLORKEY 0x00000000 -#define DDBLTFAST_SRCCOLORKEY 0x00000001 -#define DDBLTFAST_DESTCOLORKEY 0x00000002 -#define DDBLTFAST_WAIT 0x00000010 -#define DDBLTFAST_DONOTWAIT 0x00000020 - -/**************************************************************************** - * - * FLIP FLAGS - * - ****************************************************************************/ - -#define DDFLIP_WAIT 0x00000001L - -/* - * Indicates that the target surface contains the even field of video data. - * This flag is only valid with an overlay surface. - */ -#define DDFLIP_EVEN 0x00000002L - -/* - * Indicates that the target surface contains the odd field of video data. - * This flag is only valid with an overlay surface. - */ -#define DDFLIP_ODD 0x00000004L - -/* - * Causes DirectDraw to perform the physical flip immediately and return - * to the application. Typically, what was the front buffer but is now the back - * buffer will still be visible (depending on timing) until the next vertical - * retrace. Subsequent operations involving the two flipped surfaces will - * not check to see if the physical flip has finished (i.e. will not return - * DDERR_WASSTILLDRAWING for that reason (but may for other reasons)). - * This allows an application to perform Flips at a higher frequency than the - * monitor refresh rate, but may introduce visible artifacts. - * Only effective if DDCAPS2_FLIPNOVSYNC is set. If that bit is not set, - * DDFLIP_NOVSYNC has no effect. - */ -#define DDFLIP_NOVSYNC 0x00000008L - - -/* - * Flip Interval Flags. These flags indicate how many vertical retraces to wait between - * each flip. The default is one. DirectDraw will return DDERR_WASSTILLDRAWING for each - * surface involved in the flip until the specified number of vertical retraces has - * ocurred. Only effective if DDCAPS2_FLIPINTERVAL is set. If that bit is not set, - * DDFLIP_INTERVALn has no effect. - */ - -/* - * DirectDraw will flip on every other vertical sync - */ -#define DDFLIP_INTERVAL2 0x02000000L - - -/* - * DirectDraw will flip on every third vertical sync - */ -#define DDFLIP_INTERVAL3 0x03000000L - - -/* - * DirectDraw will flip on every fourth vertical sync - */ -#define DDFLIP_INTERVAL4 0x04000000L - -/* - * DirectDraw will flip and display a main stereo surface - */ -#define DDFLIP_STEREO 0x00000010L - -/* - * On IDirectDrawSurface7 and higher interfaces, the default is DDFLIP_WAIT. If you wish - * to override the default and use time when the accelerator is busy (as denoted by - * the DDERR_WASSTILLDRAWING return code) then use DDFLIP_DONOTWAIT. - */ -#define DDFLIP_DONOTWAIT 0x00000020L - - -/**************************************************************************** - * - * DIRECTDRAW SURFACE OVERLAY FLAGS - * - ****************************************************************************/ - -/* - * Use the alpha information in the pixel format or the alpha channel surface - * attached to the destination surface as the alpha channel for the - * destination overlay. - */ -#define DDOVER_ALPHADEST 0x00000001l - -/* - * Use the dwConstAlphaDest field in the DDOVERLAYFX structure as the - * destination alpha channel for this overlay. - */ -#define DDOVER_ALPHADESTCONSTOVERRIDE 0x00000002l - -/* - * The NEG suffix indicates that the destination surface becomes more - * transparent as the alpha value increases. - */ -#define DDOVER_ALPHADESTNEG 0x00000004l - -/* - * Use the lpDDSAlphaDest field in the DDOVERLAYFX structure as the alpha - * channel destination for this overlay. - */ -#define DDOVER_ALPHADESTSURFACEOVERRIDE 0x00000008l - -/* - * Use the dwAlphaEdgeBlend field in the DDOVERLAYFX structure as the alpha - * channel for the edges of the image that border the color key colors. - */ -#define DDOVER_ALPHAEDGEBLEND 0x00000010l - -/* - * Use the alpha information in the pixel format or the alpha channel surface - * attached to the source surface as the source alpha channel for this overlay. - */ -#define DDOVER_ALPHASRC 0x00000020l - -/* - * Use the dwConstAlphaSrc field in the DDOVERLAYFX structure as the source - * alpha channel for this overlay. - */ -#define DDOVER_ALPHASRCCONSTOVERRIDE 0x00000040l - -/* - * The NEG suffix indicates that the source surface becomes more transparent - * as the alpha value increases. - */ -#define DDOVER_ALPHASRCNEG 0x00000080l - -/* - * Use the lpDDSAlphaSrc field in the DDOVERLAYFX structure as the alpha channel - * source for this overlay. - */ -#define DDOVER_ALPHASRCSURFACEOVERRIDE 0x00000100l - -/* - * Turn this overlay off. - */ -#define DDOVER_HIDE 0x00000200l - -/* - * Use the color key associated with the destination surface. - */ -#define DDOVER_KEYDEST 0x00000400l - -/* - * Use the dckDestColorkey field in the DDOVERLAYFX structure as the color key - * for the destination surface - */ -#define DDOVER_KEYDESTOVERRIDE 0x00000800l - -/* - * Use the color key associated with the source surface. - */ -#define DDOVER_KEYSRC 0x00001000l - -/* - * Use the dckSrcColorkey field in the DDOVERLAYFX structure as the color key - * for the source surface. - */ -#define DDOVER_KEYSRCOVERRIDE 0x00002000l - -/* - * Turn this overlay on. - */ -#define DDOVER_SHOW 0x00004000l - -/* - * Add a dirty rect to an emulated overlayed surface. - */ -#define DDOVER_ADDDIRTYRECT 0x00008000l - -/* - * Redraw all dirty rects on an emulated overlayed surface. - */ -#define DDOVER_REFRESHDIRTYRECTS 0x00010000l - -/* - * Redraw the entire surface on an emulated overlayed surface. - */ -#define DDOVER_REFRESHALL 0x00020000l - - -/* - * Use the overlay FX flags to define special overlay FX - */ -#define DDOVER_DDFX 0x00080000l - -/* - * Autoflip the overlay when ever the video port autoflips - */ -#define DDOVER_AUTOFLIP 0x00100000l - -/* - * Display each field of video port data individually without - * causing any jittery artifacts - */ -#define DDOVER_BOB 0x00200000l - -/* - * Indicates that bob/weave decisions should not be overridden by other - * interfaces. - */ -#define DDOVER_OVERRIDEBOBWEAVE 0x00400000l - -/* - * Indicates that the surface memory is composed of interleaved fields. - */ -#define DDOVER_INTERLEAVED 0x00800000l - -/* - * Indicates that bob will be performed using hardware rather than - * software or emulated. - */ -#define DDOVER_BOBHARDWARE 0x01000000l - -/* - * Indicates that overlay FX structure contains valid ARGB scaling factors. - */ -#define DDOVER_ARGBSCALEFACTORS 0x02000000l - -/* - * Indicates that ARGB scaling factors can be degraded to fit driver capabilities. - */ -#define DDOVER_DEGRADEARGBSCALING 0x04000000l - - -/**************************************************************************** - * - * DIRECTDRAWSURFACE LOCK FLAGS - * - ****************************************************************************/ - -/* - * The default. Set to indicate that Lock should return a valid memory pointer - * to the top of the specified rectangle. If no rectangle is specified then a - * pointer to the top of the surface is returned. - */ -#define DDLOCK_SURFACEMEMORYPTR 0x00000000L // default - -/* - * Set to indicate that Lock should wait until it can obtain a valid memory - * pointer before returning. If this bit is set, Lock will never return - * DDERR_WASSTILLDRAWING. - */ -#define DDLOCK_WAIT 0x00000001L - -/* - * Set if an event handle is being passed to Lock. Lock will trigger the event - * when it can return the surface memory pointer requested. - */ -#define DDLOCK_EVENT 0x00000002L - -/* - * Indicates that the surface being locked will only be read from. - */ -#define DDLOCK_READONLY 0x00000010L - -/* - * Indicates that the surface being locked will only be written to - */ -#define DDLOCK_WRITEONLY 0x00000020L - - -/* - * Indicates that a system wide lock should not be taken when this surface - * is locked. This has several advantages (cursor responsiveness, ability - * to call more Windows functions, easier debugging) when locking video - * memory surfaces. However, an application specifying this flag must - * comply with a number of conditions documented in the help file. - * Furthermore, this flag cannot be specified when locking the primary. - */ -#define DDLOCK_NOSYSLOCK 0x00000800L - -/* - * Used only with Direct3D Vertex Buffer Locks. Indicates that no vertices - * that were referred to in Draw*PrimtiveVB calls since the start of the - * frame (or the last lock without this flag) will be modified during the - * lock. This can be useful when one is only appending data to the vertex - * buffer - */ -#define DDLOCK_NOOVERWRITE 0x00001000L - -/* - * Indicates that no assumptions will be made about the contents of the - * surface or vertex buffer during this lock. - * This enables two things: - * - Direct3D or the driver may provide an alternative memory - * area as the vertex buffer. This is useful when one plans to clear the - * contents of the vertex buffer and fill in new data. - * - Drivers sometimes store surface data in a re-ordered format. - * When the application locks the surface, the driver is forced to un-re-order - * the surface data before allowing the application to see the surface contents. - * This flag is a hint to the driver that it can skip the un-re-ordering process - * since the application plans to overwrite every single pixel in the surface - * or locked rectangle (and so erase any un-re-ordered pixels anyway). - * Applications should always set this flag when they intend to overwrite the entire - * surface or locked rectangle. - */ -#define DDLOCK_DISCARDCONTENTS 0x00002000L - /* - * DDLOCK_OKTOSWAP is an older, less informative name for DDLOCK_DISCARDCONTENTS - */ -#define DDLOCK_OKTOSWAP 0x00002000L - -/* - * On IDirectDrawSurface7 and higher interfaces, the default is DDLOCK_WAIT. If you wish - * to override the default and use time when the accelerator is busy (as denoted by - * the DDERR_WASSTILLDRAWING return code) then use DDLOCK_DONOTWAIT. - */ -#define DDLOCK_DONOTWAIT 0x00004000L - -/* - * This indicates volume texture lock with front and back specified. - */ -#define DDLOCK_HASVOLUMETEXTUREBOXRECT 0x00008000L - -/* - * This indicates that the driver should not update dirty rect information for this lock. - */ -#define DDLOCK_NODIRTYUPDATE 0x00010000L - - -/**************************************************************************** - * - * DIRECTDRAWSURFACE PAGELOCK FLAGS - * - ****************************************************************************/ - -/* - * No flags defined at present - */ - - -/**************************************************************************** - * - * DIRECTDRAWSURFACE PAGEUNLOCK FLAGS - * - ****************************************************************************/ - -/* - * No flags defined at present - */ - - -/**************************************************************************** - * - * DIRECTDRAWSURFACE BLT FX FLAGS - * - ****************************************************************************/ - -/* - * If stretching, use arithmetic stretching along the Y axis for this blt. - */ -#define DDBLTFX_ARITHSTRETCHY 0x00000001l - -/* - * Do this blt mirroring the surface left to right. Spin the - * surface around its y-axis. - */ -#define DDBLTFX_MIRRORLEFTRIGHT 0x00000002l - -/* - * Do this blt mirroring the surface up and down. Spin the surface - * around its x-axis. - */ -#define DDBLTFX_MIRRORUPDOWN 0x00000004l - -/* - * Schedule this blt to avoid tearing. - */ -#define DDBLTFX_NOTEARING 0x00000008l - -/* - * Do this blt rotating the surface one hundred and eighty degrees. - */ -#define DDBLTFX_ROTATE180 0x00000010l - -/* - * Do this blt rotating the surface two hundred and seventy degrees. - */ -#define DDBLTFX_ROTATE270 0x00000020l - -/* - * Do this blt rotating the surface ninety degrees. - */ -#define DDBLTFX_ROTATE90 0x00000040l - -/* - * Do this z blt using dwZBufferLow and dwZBufferHigh as range values - * specified to limit the bits copied from the source surface. - */ -#define DDBLTFX_ZBUFFERRANGE 0x00000080l - -/* - * Do this z blt adding the dwZBufferBaseDest to each of the sources z values - * before comparing it with the desting z values. - */ -#define DDBLTFX_ZBUFFERBASEDEST 0x00000100l - -/**************************************************************************** - * - * DIRECTDRAWSURFACE OVERLAY FX FLAGS - * - ****************************************************************************/ - -/* - * If stretching, use arithmetic stretching along the Y axis for this overlay. - */ -#define DDOVERFX_ARITHSTRETCHY 0x00000001l - -/* - * Mirror the overlay across the vertical axis - */ -#define DDOVERFX_MIRRORLEFTRIGHT 0x00000002l - -/* - * Mirror the overlay across the horizontal axis - */ -#define DDOVERFX_MIRRORUPDOWN 0x00000004l - -/* - * Deinterlace the overlay, if possible - */ -#define DDOVERFX_DEINTERLACE 0x00000008l - - -/**************************************************************************** - * - * DIRECTDRAW WAITFORVERTICALBLANK FLAGS - * - ****************************************************************************/ - -/* - * return when the vertical blank interval begins - */ -#define DDWAITVB_BLOCKBEGIN 0x00000001l - -/* - * set up an event to trigger when the vertical blank begins - */ -#define DDWAITVB_BLOCKBEGINEVENT 0x00000002l - -/* - * return when the vertical blank interval ends and display begins - */ -#define DDWAITVB_BLOCKEND 0x00000004l - -/**************************************************************************** - * - * DIRECTDRAW GETFLIPSTATUS FLAGS - * - ****************************************************************************/ - -/* - * is it OK to flip now? - */ -#define DDGFS_CANFLIP 0x00000001l - -/* - * is the last flip finished? - */ -#define DDGFS_ISFLIPDONE 0x00000002l - -/**************************************************************************** - * - * DIRECTDRAW GETBLTSTATUS FLAGS - * - ****************************************************************************/ - -/* - * is it OK to blt now? - */ -#define DDGBS_CANBLT 0x00000001l - -/* - * is the blt to the surface finished? - */ -#define DDGBS_ISBLTDONE 0x00000002l - - -/**************************************************************************** - * - * DIRECTDRAW ENUMOVERLAYZORDER FLAGS - * - ****************************************************************************/ - -/* - * Enumerate overlays back to front. - */ -#define DDENUMOVERLAYZ_BACKTOFRONT 0x00000000l - -/* - * Enumerate overlays front to back - */ -#define DDENUMOVERLAYZ_FRONTTOBACK 0x00000001l - -/**************************************************************************** - * - * DIRECTDRAW UPDATEOVERLAYZORDER FLAGS - * - ****************************************************************************/ - -/* - * Send overlay to front - */ -#define DDOVERZ_SENDTOFRONT 0x00000000l - -/* - * Send overlay to back - */ -#define DDOVERZ_SENDTOBACK 0x00000001l - -/* - * Move Overlay forward - */ -#define DDOVERZ_MOVEFORWARD 0x00000002l - -/* - * Move Overlay backward - */ -#define DDOVERZ_MOVEBACKWARD 0x00000003l - -/* - * Move Overlay in front of relative surface - */ -#define DDOVERZ_INSERTINFRONTOF 0x00000004l - -/* - * Move Overlay in back of relative surface - */ -#define DDOVERZ_INSERTINBACKOF 0x00000005l - - -/**************************************************************************** - * - * DIRECTDRAW SETGAMMARAMP FLAGS - * - ****************************************************************************/ - -/* - * Request calibrator to adjust the gamma ramp according to the physical - * properties of the display so that the result should appear identical - * on all systems. - */ -#define DDSGR_CALIBRATE 0x00000001L - - -/**************************************************************************** - * - * DIRECTDRAW STARTMODETEST FLAGS - * - ****************************************************************************/ - -/* - * Indicates that the mode being tested has passed - */ -#define DDSMT_ISTESTREQUIRED 0x00000001L - - -/**************************************************************************** - * - * DIRECTDRAW EVALUATEMODE FLAGS - * - ****************************************************************************/ - -/* - * Indicates that the mode being tested has passed - */ -#define DDEM_MODEPASSED 0x00000001L - -/* - * Indicates that the mode being tested has failed - */ -#define DDEM_MODEFAILED 0x00000002L - - -/*=========================================================================== - * - * - * DIRECTDRAW RETURN CODES - * - * The return values from DirectDraw Commands and Surface that return an HRESULT - * are codes from DirectDraw concerning the results of the action - * requested by DirectDraw. - * - *==========================================================================*/ - -/* - * Status is OK - * - * Issued by: DirectDraw Commands and all callbacks - */ -#define DD_OK S_OK -#define DD_FALSE S_FALSE - -/**************************************************************************** - * - * DIRECTDRAW ENUMCALLBACK RETURN VALUES - * - * EnumCallback returns are used to control the flow of the DIRECTDRAW and - * DIRECTDRAWSURFACE object enumerations. They can only be returned by - * enumeration callback routines. - * - ****************************************************************************/ - -/* - * stop the enumeration - */ -#define DDENUMRET_CANCEL 0 - -/* - * continue the enumeration - */ -#define DDENUMRET_OK 1 - -/**************************************************************************** - * - * DIRECTDRAW ERRORS - * - * Errors are represented by negative values and cannot be combined. - * - ****************************************************************************/ - -/* - * This object is already initialized - */ -#define DDERR_ALREADYINITIALIZED MAKE_DDHRESULT( 5 ) - -/* - * This surface can not be attached to the requested surface. - */ -#define DDERR_CANNOTATTACHSURFACE MAKE_DDHRESULT( 10 ) - -/* - * This surface can not be detached from the requested surface. - */ -#define DDERR_CANNOTDETACHSURFACE MAKE_DDHRESULT( 20 ) - -/* - * Support is currently not available. - */ -#define DDERR_CURRENTLYNOTAVAIL MAKE_DDHRESULT( 40 ) - -/* - * An exception was encountered while performing the requested operation - */ -#define DDERR_EXCEPTION MAKE_DDHRESULT( 55 ) - -/* - * Generic failure. - */ -#define DDERR_GENERIC E_FAIL - -/* - * Height of rectangle provided is not a multiple of reqd alignment - */ -#define DDERR_HEIGHTALIGN MAKE_DDHRESULT( 90 ) - -/* - * Unable to match primary surface creation request with existing - * primary surface. - */ -#define DDERR_INCOMPATIBLEPRIMARY MAKE_DDHRESULT( 95 ) - -/* - * One or more of the caps bits passed to the callback are incorrect. - */ -#define DDERR_INVALIDCAPS MAKE_DDHRESULT( 100 ) - -/* - * DirectDraw does not support provided Cliplist. - */ -#define DDERR_INVALIDCLIPLIST MAKE_DDHRESULT( 110 ) - -/* - * DirectDraw does not support the requested mode - */ -#define DDERR_INVALIDMODE MAKE_DDHRESULT( 120 ) - -/* - * DirectDraw received a pointer that was an invalid DIRECTDRAW object. - */ -#define DDERR_INVALIDOBJECT MAKE_DDHRESULT( 130 ) - -/* - * One or more of the parameters passed to the callback function are - * incorrect. - */ -#define DDERR_INVALIDPARAMS E_INVALIDARG - -/* - * pixel format was invalid as specified - */ -#define DDERR_INVALIDPIXELFORMAT MAKE_DDHRESULT( 145 ) - -/* - * Rectangle provided was invalid. - */ -#define DDERR_INVALIDRECT MAKE_DDHRESULT( 150 ) - -/* - * Operation could not be carried out because one or more surfaces are locked - */ -#define DDERR_LOCKEDSURFACES MAKE_DDHRESULT( 160 ) - -/* - * There is no 3D present. - */ -#define DDERR_NO3D MAKE_DDHRESULT( 170 ) - -/* - * Operation could not be carried out because there is no alpha accleration - * hardware present or available. - */ -#define DDERR_NOALPHAHW MAKE_DDHRESULT( 180 ) - -/* - * Operation could not be carried out because there is no stereo - * hardware present or available. - */ -#define DDERR_NOSTEREOHARDWARE MAKE_DDHRESULT( 181 ) - -/* - * Operation could not be carried out because there is no hardware - * present which supports stereo surfaces - */ -#define DDERR_NOSURFACELEFT MAKE_DDHRESULT( 182 ) - - - -/* - * no clip list available - */ -#define DDERR_NOCLIPLIST MAKE_DDHRESULT( 205 ) - -/* - * Operation could not be carried out because there is no color conversion - * hardware present or available. - */ -#define DDERR_NOCOLORCONVHW MAKE_DDHRESULT( 210 ) - -/* - * Create function called without DirectDraw object method SetCooperativeLevel - * being called. - */ -#define DDERR_NOCOOPERATIVELEVELSET MAKE_DDHRESULT( 212 ) - -/* - * Surface doesn't currently have a color key - */ -#define DDERR_NOCOLORKEY MAKE_DDHRESULT( 215 ) - -/* - * Operation could not be carried out because there is no hardware support - * of the dest color key. - */ -#define DDERR_NOCOLORKEYHW MAKE_DDHRESULT( 220 ) - -/* - * No DirectDraw support possible with current display driver - */ -#define DDERR_NODIRECTDRAWSUPPORT MAKE_DDHRESULT( 222 ) - -/* - * Operation requires the application to have exclusive mode but the - * application does not have exclusive mode. - */ -#define DDERR_NOEXCLUSIVEMODE MAKE_DDHRESULT( 225 ) - -/* - * Flipping visible surfaces is not supported. - */ -#define DDERR_NOFLIPHW MAKE_DDHRESULT( 230 ) - -/* - * There is no GDI present. - */ -#define DDERR_NOGDI MAKE_DDHRESULT( 240 ) - -/* - * Operation could not be carried out because there is no hardware present - * or available. - */ -#define DDERR_NOMIRRORHW MAKE_DDHRESULT( 250 ) - -/* - * Requested item was not found - */ -#define DDERR_NOTFOUND MAKE_DDHRESULT( 255 ) - -/* - * Operation could not be carried out because there is no overlay hardware - * present or available. - */ -#define DDERR_NOOVERLAYHW MAKE_DDHRESULT( 260 ) - -/* - * Operation could not be carried out because the source and destination - * rectangles are on the same surface and overlap each other. - */ -#define DDERR_OVERLAPPINGRECTS MAKE_DDHRESULT( 270 ) - -/* - * Operation could not be carried out because there is no appropriate raster - * op hardware present or available. - */ -#define DDERR_NORASTEROPHW MAKE_DDHRESULT( 280 ) - -/* - * Operation could not be carried out because there is no rotation hardware - * present or available. - */ -#define DDERR_NOROTATIONHW MAKE_DDHRESULT( 290 ) - -/* - * Operation could not be carried out because there is no hardware support - * for stretching - */ -#define DDERR_NOSTRETCHHW MAKE_DDHRESULT( 310 ) - -/* - * DirectDrawSurface is not in 4 bit color palette and the requested operation - * requires 4 bit color palette. - */ -#define DDERR_NOT4BITCOLOR MAKE_DDHRESULT( 316 ) - -/* - * DirectDrawSurface is not in 4 bit color index palette and the requested - * operation requires 4 bit color index palette. - */ -#define DDERR_NOT4BITCOLORINDEX MAKE_DDHRESULT( 317 ) - -/* - * DirectDraw Surface is not in 8 bit color mode and the requested operation - * requires 8 bit color. - */ -#define DDERR_NOT8BITCOLOR MAKE_DDHRESULT( 320 ) - -/* - * Operation could not be carried out because there is no texture mapping - * hardware present or available. - */ -#define DDERR_NOTEXTUREHW MAKE_DDHRESULT( 330 ) - -/* - * Operation could not be carried out because there is no hardware support - * for vertical blank synchronized operations. - */ -#define DDERR_NOVSYNCHW MAKE_DDHRESULT( 335 ) - -/* - * Operation could not be carried out because there is no hardware support - * for zbuffer blting. - */ -#define DDERR_NOZBUFFERHW MAKE_DDHRESULT( 340 ) - -/* - * Overlay surfaces could not be z layered based on their BltOrder because - * the hardware does not support z layering of overlays. - */ -#define DDERR_NOZOVERLAYHW MAKE_DDHRESULT( 350 ) - -/* - * The hardware needed for the requested operation has already been - * allocated. - */ -#define DDERR_OUTOFCAPS MAKE_DDHRESULT( 360 ) - -/* - * DirectDraw does not have enough memory to perform the operation. - */ -#define DDERR_OUTOFMEMORY E_OUTOFMEMORY - -/* - * DirectDraw does not have enough memory to perform the operation. - */ -#define DDERR_OUTOFVIDEOMEMORY MAKE_DDHRESULT( 380 ) - -/* - * hardware does not support clipped overlays - */ -#define DDERR_OVERLAYCANTCLIP MAKE_DDHRESULT( 382 ) - -/* - * Can only have ony color key active at one time for overlays - */ -#define DDERR_OVERLAYCOLORKEYONLYONEACTIVE MAKE_DDHRESULT( 384 ) - -/* - * Access to this palette is being refused because the palette is already - * locked by another thread. - */ -#define DDERR_PALETTEBUSY MAKE_DDHRESULT( 387 ) - -/* - * No src color key specified for this operation. - */ -#define DDERR_COLORKEYNOTSET MAKE_DDHRESULT( 400 ) - -/* - * This surface is already attached to the surface it is being attached to. - */ -#define DDERR_SURFACEALREADYATTACHED MAKE_DDHRESULT( 410 ) - -/* - * This surface is already a dependency of the surface it is being made a - * dependency of. - */ -#define DDERR_SURFACEALREADYDEPENDENT MAKE_DDHRESULT( 420 ) - -/* - * Access to this surface is being refused because the surface is already - * locked by another thread. - */ -#define DDERR_SURFACEBUSY MAKE_DDHRESULT( 430 ) - -/* - * Access to this surface is being refused because no driver exists - * which can supply a pointer to the surface. - * This is most likely to happen when attempting to lock the primary - * surface when no DCI provider is present. - * Will also happen on attempts to lock an optimized surface. - */ -#define DDERR_CANTLOCKSURFACE MAKE_DDHRESULT( 435 ) - -/* - * Access to Surface refused because Surface is obscured. - */ -#define DDERR_SURFACEISOBSCURED MAKE_DDHRESULT( 440 ) - -/* - * Access to this surface is being refused because the surface is gone. - * The DIRECTDRAWSURFACE object representing this surface should - * have Restore called on it. - */ -#define DDERR_SURFACELOST MAKE_DDHRESULT( 450 ) - -/* - * The requested surface is not attached. - */ -#define DDERR_SURFACENOTATTACHED MAKE_DDHRESULT( 460 ) - -/* - * Height requested by DirectDraw is too large. - */ -#define DDERR_TOOBIGHEIGHT MAKE_DDHRESULT( 470 ) - -/* - * Size requested by DirectDraw is too large -- The individual height and - * width are OK. - */ -#define DDERR_TOOBIGSIZE MAKE_DDHRESULT( 480 ) - -/* - * Width requested by DirectDraw is too large. - */ -#define DDERR_TOOBIGWIDTH MAKE_DDHRESULT( 490 ) - -/* - * Action not supported. - */ -#define DDERR_UNSUPPORTED E_NOTIMPL - -/* - * Pixel format requested is unsupported by DirectDraw - */ -#define DDERR_UNSUPPORTEDFORMAT MAKE_DDHRESULT( 510 ) - -/* - * Bitmask in the pixel format requested is unsupported by DirectDraw - */ -#define DDERR_UNSUPPORTEDMASK MAKE_DDHRESULT( 520 ) - -/* - * The specified stream contains invalid data - */ -#define DDERR_INVALIDSTREAM MAKE_DDHRESULT( 521 ) - -/* - * vertical blank is in progress - */ -#define DDERR_VERTICALBLANKINPROGRESS MAKE_DDHRESULT( 537 ) - -/* - * Informs DirectDraw that the previous Blt which is transfering information - * to or from this Surface is incomplete. - */ -#define DDERR_WASSTILLDRAWING MAKE_DDHRESULT( 540 ) - - -/* - * The specified surface type requires specification of the COMPLEX flag - */ -#define DDERR_DDSCAPSCOMPLEXREQUIRED MAKE_DDHRESULT( 542 ) - - -/* - * Rectangle provided was not horizontally aligned on reqd. boundary - */ -#define DDERR_XALIGN MAKE_DDHRESULT( 560 ) - -/* - * The GUID passed to DirectDrawCreate is not a valid DirectDraw driver - * identifier. - */ -#define DDERR_INVALIDDIRECTDRAWGUID MAKE_DDHRESULT( 561 ) - -/* - * A DirectDraw object representing this driver has already been created - * for this process. - */ -#define DDERR_DIRECTDRAWALREADYCREATED MAKE_DDHRESULT( 562 ) - -/* - * A hardware only DirectDraw object creation was attempted but the driver - * did not support any hardware. - */ -#define DDERR_NODIRECTDRAWHW MAKE_DDHRESULT( 563 ) - -/* - * this process already has created a primary surface - */ -#define DDERR_PRIMARYSURFACEALREADYEXISTS MAKE_DDHRESULT( 564 ) - -/* - * software emulation not available. - */ -#define DDERR_NOEMULATION MAKE_DDHRESULT( 565 ) - -/* - * region passed to Clipper::GetClipList is too small. - */ -#define DDERR_REGIONTOOSMALL MAKE_DDHRESULT( 566 ) - -/* - * an attempt was made to set a clip list for a clipper objec that - * is already monitoring an hwnd. - */ -#define DDERR_CLIPPERISUSINGHWND MAKE_DDHRESULT( 567 ) - -/* - * No clipper object attached to surface object - */ -#define DDERR_NOCLIPPERATTACHED MAKE_DDHRESULT( 568 ) - -/* - * Clipper notification requires an HWND or - * no HWND has previously been set as the CooperativeLevel HWND. - */ -#define DDERR_NOHWND MAKE_DDHRESULT( 569 ) - -/* - * HWND used by DirectDraw CooperativeLevel has been subclassed, - * this prevents DirectDraw from restoring state. - */ -#define DDERR_HWNDSUBCLASSED MAKE_DDHRESULT( 570 ) - -/* - * The CooperativeLevel HWND has already been set. - * It can not be reset while the process has surfaces or palettes created. - */ -#define DDERR_HWNDALREADYSET MAKE_DDHRESULT( 571 ) - -/* - * No palette object attached to this surface. - */ -#define DDERR_NOPALETTEATTACHED MAKE_DDHRESULT( 572 ) - -/* - * No hardware support for 16 or 256 color palettes. - */ -#define DDERR_NOPALETTEHW MAKE_DDHRESULT( 573 ) - -/* - * If a clipper object is attached to the source surface passed into a - * BltFast call. - */ -#define DDERR_BLTFASTCANTCLIP MAKE_DDHRESULT( 574 ) - -/* - * No blter. - */ -#define DDERR_NOBLTHW MAKE_DDHRESULT( 575 ) - -/* - * No DirectDraw ROP hardware. - */ -#define DDERR_NODDROPSHW MAKE_DDHRESULT( 576 ) - -/* - * returned when GetOverlayPosition is called on a hidden overlay - */ -#define DDERR_OVERLAYNOTVISIBLE MAKE_DDHRESULT( 577 ) - -/* - * returned when GetOverlayPosition is called on a overlay that UpdateOverlay - * has never been called on to establish a destionation. - */ -#define DDERR_NOOVERLAYDEST MAKE_DDHRESULT( 578 ) - -/* - * returned when the position of the overlay on the destionation is no longer - * legal for that destionation. - */ -#define DDERR_INVALIDPOSITION MAKE_DDHRESULT( 579 ) - -/* - * returned when an overlay member is called for a non-overlay surface - */ -#define DDERR_NOTAOVERLAYSURFACE MAKE_DDHRESULT( 580 ) - -/* - * An attempt was made to set the cooperative level when it was already - * set to exclusive. - */ -#define DDERR_EXCLUSIVEMODEALREADYSET MAKE_DDHRESULT( 581 ) - -/* - * An attempt has been made to flip a surface that is not flippable. - */ -#define DDERR_NOTFLIPPABLE MAKE_DDHRESULT( 582 ) - -/* - * Can't duplicate primary & 3D surfaces, or surfaces that are implicitly - * created. - */ -#define DDERR_CANTDUPLICATE MAKE_DDHRESULT( 583 ) - -/* - * Surface was not locked. An attempt to unlock a surface that was not - * locked at all, or by this process, has been attempted. - */ -#define DDERR_NOTLOCKED MAKE_DDHRESULT( 584 ) - -/* - * Windows can not create any more DCs, or a DC was requested for a paltte-indexed - * surface when the surface had no palette AND the display mode was not palette-indexed - * (in this case DirectDraw cannot select a proper palette into the DC) - */ -#define DDERR_CANTCREATEDC MAKE_DDHRESULT( 585 ) - -/* - * No DC was ever created for this surface. - */ -#define DDERR_NODC MAKE_DDHRESULT( 586 ) - -/* - * This surface can not be restored because it was created in a different - * mode. - */ -#define DDERR_WRONGMODE MAKE_DDHRESULT( 587 ) - -/* - * This surface can not be restored because it is an implicitly created - * surface. - */ -#define DDERR_IMPLICITLYCREATED MAKE_DDHRESULT( 588 ) - -/* - * The surface being used is not a palette-based surface - */ -#define DDERR_NOTPALETTIZED MAKE_DDHRESULT( 589 ) - - -/* - * The display is currently in an unsupported mode - */ -#define DDERR_UNSUPPORTEDMODE MAKE_DDHRESULT( 590 ) - -/* - * Operation could not be carried out because there is no mip-map - * texture mapping hardware present or available. - */ -#define DDERR_NOMIPMAPHW MAKE_DDHRESULT( 591 ) - -/* - * The requested action could not be performed because the surface was of - * the wrong type. - */ -#define DDERR_INVALIDSURFACETYPE MAKE_DDHRESULT( 592 ) - - -/* - * Device does not support optimized surfaces, therefore no video memory optimized surfaces - */ -#define DDERR_NOOPTIMIZEHW MAKE_DDHRESULT( 600 ) - -/* - * Surface is an optimized surface, but has not yet been allocated any memory - */ -#define DDERR_NOTLOADED MAKE_DDHRESULT( 601 ) - -/* - * Attempt was made to create or set a device window without first setting - * the focus window - */ -#define DDERR_NOFOCUSWINDOW MAKE_DDHRESULT( 602 ) - -/* - * Attempt was made to set a palette on a mipmap sublevel - */ -#define DDERR_NOTONMIPMAPSUBLEVEL MAKE_DDHRESULT( 603 ) - -/* - * A DC has already been returned for this surface. Only one DC can be - * retrieved per surface. - */ -#define DDERR_DCALREADYCREATED MAKE_DDHRESULT( 620 ) - -/* - * An attempt was made to allocate non-local video memory from a device - * that does not support non-local video memory. - */ -#define DDERR_NONONLOCALVIDMEM MAKE_DDHRESULT( 630 ) - -/* - * The attempt to page lock a surface failed. - */ -#define DDERR_CANTPAGELOCK MAKE_DDHRESULT( 640 ) - - -/* - * The attempt to page unlock a surface failed. - */ -#define DDERR_CANTPAGEUNLOCK MAKE_DDHRESULT( 660 ) - -/* - * An attempt was made to page unlock a surface with no outstanding page locks. - */ -#define DDERR_NOTPAGELOCKED MAKE_DDHRESULT( 680 ) - -/* - * There is more data available than the specified buffer size could hold - */ -#define DDERR_MOREDATA MAKE_DDHRESULT( 690 ) - -/* - * The data has expired and is therefore no longer valid. - */ -#define DDERR_EXPIRED MAKE_DDHRESULT( 691 ) - -/* - * The mode test has finished executing. - */ -#define DDERR_TESTFINISHED MAKE_DDHRESULT( 692 ) - -/* - * The mode test has switched to a new mode. - */ -#define DDERR_NEWMODE MAKE_DDHRESULT( 693 ) - -/* - * D3D has not yet been initialized. - */ -#define DDERR_D3DNOTINITIALIZED MAKE_DDHRESULT( 694 ) - -/* - * The video port is not active - */ -#define DDERR_VIDEONOTACTIVE MAKE_DDHRESULT( 695 ) - -/* - * The monitor does not have EDID data. - */ -#define DDERR_NOMONITORINFORMATION MAKE_DDHRESULT( 696 ) - -/* - * The driver does not enumerate display mode refresh rates. - */ -#define DDERR_NODRIVERSUPPORT MAKE_DDHRESULT( 697 ) - -/* - * Surfaces created by one direct draw device cannot be used directly by - * another direct draw device. - */ -#define DDERR_DEVICEDOESNTOWNSURFACE MAKE_DDHRESULT( 699 ) - - - -/* - * An attempt was made to invoke an interface member of a DirectDraw object - * created by CoCreateInstance() before it was initialized. - */ -#define DDERR_NOTINITIALIZED CO_E_NOTINITIALIZED - - -/* Alpha bit depth constants */ - - -#ifdef __cplusplus -}; -#endif - -#ifdef ENABLE_NAMELESS_UNION_PRAGMA -#pragma warning(default:4201) -#endif - -#endif //__DDRAW_INCLUDED__ - -#endif diff --git a/platform/Windows/include/dx/dinput.h b/platform/Windows/include/dx/dinput.h deleted file mode 100644 index f119e7b34..000000000 --- a/platform/Windows/include/dx/dinput.h +++ /dev/null @@ -1,4426 +0,0 @@ -/**************************************************************************** - * - * Copyright (C) 1996-2000 Microsoft Corporation. All Rights Reserved. - * - * File: dinput.h - * Content: DirectInput include file - * - ****************************************************************************/ - -#ifdef _MSC_VER -# include -#else - -// from: http://alleg.sourceforge.net/files/dx9mgw.zip - -#ifndef __DINPUT_INCLUDED__ -#define __DINPUT_INCLUDED__ - -#ifndef DIJ_RINGZERO - -#ifdef _WIN32 -#define COM_NO_WINDOWS_H -#include -#endif - -#endif /* DIJ_RINGZERO */ - -#include "dx_compat.h" // EDuke32 - -#ifdef __cplusplus -extern "C" { -#endif - - - - - -/* - * To build applications for older versions of DirectInput - * - * #define DIRECTINPUT_VERSION [ 0x0300 | 0x0500 | 0x0700 ] - * - * before #include . By default, #include - * will produce a DirectX 8-compatible header file. - * - */ - -#define DIRECTINPUT_HEADER_VERSION 0x0800 -#ifndef DIRECTINPUT_VERSION -#define DIRECTINPUT_VERSION DIRECTINPUT_HEADER_VERSION -#pragma message(__FILE__ ": DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800") -#endif - -#ifndef DIJ_RINGZERO - -/**************************************************************************** - * - * Class IDs - * - ****************************************************************************/ - -DEFINE_GUID(CLSID_DirectInput, 0x25E609E0,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(CLSID_DirectInputDevice, 0x25E609E1,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -DEFINE_GUID(CLSID_DirectInput8, 0x25E609E4,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(CLSID_DirectInputDevice8,0x25E609E5,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -/**************************************************************************** - * - * Interfaces - * - ****************************************************************************/ - -DEFINE_GUID(IID_IDirectInputA, 0x89521360,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputW, 0x89521361,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInput2A, 0x5944E662,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInput2W, 0x5944E663,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInput7A, 0x9A4CB684,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); -DEFINE_GUID(IID_IDirectInput7W, 0x9A4CB685,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); -DEFINE_GUID(IID_IDirectInput8A, 0xBF798030,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00); -DEFINE_GUID(IID_IDirectInput8W, 0xBF798031,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00); -DEFINE_GUID(IID_IDirectInputDeviceA, 0x5944E680,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputDeviceW, 0x5944E681,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputDevice2A,0x5944E682,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputDevice2W,0x5944E683,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputDevice7A,0x57D7C6BC,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); -DEFINE_GUID(IID_IDirectInputDevice7W,0x57D7C6BD,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); -DEFINE_GUID(IID_IDirectInputDevice8A,0x54D41080,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79); -DEFINE_GUID(IID_IDirectInputDevice8W,0x54D41081,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79); -DEFINE_GUID(IID_IDirectInputEffect, 0xE7E1F7C0,0x88D2,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); - -/**************************************************************************** - * - * Predefined object types - * - ****************************************************************************/ - -DEFINE_GUID(GUID_XAxis, 0xA36D02E0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_YAxis, 0xA36D02E1,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_ZAxis, 0xA36D02E2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RxAxis, 0xA36D02F4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RyAxis, 0xA36D02F5,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RzAxis, 0xA36D02E3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Slider, 0xA36D02E4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -DEFINE_GUID(GUID_Button, 0xA36D02F0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Key, 0x55728220,0xD33C,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -DEFINE_GUID(GUID_POV, 0xA36D02F2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -DEFINE_GUID(GUID_Unknown, 0xA36D02F3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -/**************************************************************************** - * - * Predefined product GUIDs - * - ****************************************************************************/ - -DEFINE_GUID(GUID_SysMouse, 0x6F1D2B60,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysKeyboard,0x6F1D2B61,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Joystick ,0x6F1D2B70,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysMouseEm, 0x6F1D2B80,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysMouseEm2,0x6F1D2B81,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysKeyboardEm, 0x6F1D2B82,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysKeyboardEm2,0x6F1D2B83,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -/**************************************************************************** - * - * Predefined force feedback effects - * - ****************************************************************************/ - -DEFINE_GUID(GUID_ConstantForce, 0x13541C20,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_RampForce, 0x13541C21,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Square, 0x13541C22,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Sine, 0x13541C23,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Triangle, 0x13541C24,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_SawtoothUp, 0x13541C25,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_SawtoothDown, 0x13541C26,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Spring, 0x13541C27,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Damper, 0x13541C28,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Inertia, 0x13541C29,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Friction, 0x13541C2A,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_CustomForce, 0x13541C2B,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); - -#endif /* DIJ_RINGZERO */ - -/**************************************************************************** - * - * Interfaces and Structures... - * - ****************************************************************************/ - -#if(DIRECTINPUT_VERSION >= 0x0500) - -/**************************************************************************** - * - * IDirectInputEffect - * - ****************************************************************************/ - -#define DIEFT_ALL 0x00000000 - -#define DIEFT_CONSTANTFORCE 0x00000001 -#define DIEFT_RAMPFORCE 0x00000002 -#define DIEFT_PERIODIC 0x00000003 -#define DIEFT_CONDITION 0x00000004 -#define DIEFT_CUSTOMFORCE 0x00000005 -#define DIEFT_HARDWARE 0x000000FF -#define DIEFT_FFATTACK 0x00000200 -#define DIEFT_FFFADE 0x00000400 -#define DIEFT_SATURATION 0x00000800 -#define DIEFT_POSNEGCOEFFICIENTS 0x00001000 -#define DIEFT_POSNEGSATURATION 0x00002000 -#define DIEFT_DEADBAND 0x00004000 -#define DIEFT_STARTDELAY 0x00008000 -#define DIEFT_GETTYPE(n) LOBYTE(n) - -#define DI_DEGREES 100 -#define DI_FFNOMINALMAX 10000 -#define DI_SECONDS 1000000 - -typedef struct DICONSTANTFORCE { - LONG lMagnitude; -} DICONSTANTFORCE, *LPDICONSTANTFORCE; -typedef const DICONSTANTFORCE *LPCDICONSTANTFORCE; - -typedef struct DIRAMPFORCE { - LONG lStart; - LONG lEnd; -} DIRAMPFORCE, *LPDIRAMPFORCE; -typedef const DIRAMPFORCE *LPCDIRAMPFORCE; - -typedef struct DIPERIODIC { - DWORD dwMagnitude; - LONG lOffset; - DWORD dwPhase; - DWORD dwPeriod; -} DIPERIODIC, *LPDIPERIODIC; -typedef const DIPERIODIC *LPCDIPERIODIC; - -typedef struct DICONDITION { - LONG lOffset; - LONG lPositiveCoefficient; - LONG lNegativeCoefficient; - DWORD dwPositiveSaturation; - DWORD dwNegativeSaturation; - LONG lDeadBand; -} DICONDITION, *LPDICONDITION; -typedef const DICONDITION *LPCDICONDITION; - -typedef struct DICUSTOMFORCE { - DWORD cChannels; - DWORD dwSamplePeriod; - DWORD cSamples; - LPLONG rglForceData; -} DICUSTOMFORCE, *LPDICUSTOMFORCE; -typedef const DICUSTOMFORCE *LPCDICUSTOMFORCE; - - -typedef struct DIENVELOPE { - DWORD dwSize; /* sizeof(DIENVELOPE) */ - DWORD dwAttackLevel; - DWORD dwAttackTime; /* Microseconds */ - DWORD dwFadeLevel; - DWORD dwFadeTime; /* Microseconds */ -} DIENVELOPE, *LPDIENVELOPE; -typedef const DIENVELOPE *LPCDIENVELOPE; - - -/* This structure is defined for DirectX 5.0 compatibility */ -typedef struct DIEFFECT_DX5 { - DWORD dwSize; /* sizeof(DIEFFECT_DX5) */ - DWORD dwFlags; /* DIEFF_* */ - DWORD dwDuration; /* Microseconds */ - DWORD dwSamplePeriod; /* Microseconds */ - DWORD dwGain; - DWORD dwTriggerButton; /* or DIEB_NOTRIGGER */ - DWORD dwTriggerRepeatInterval; /* Microseconds */ - DWORD cAxes; /* Number of axes */ - LPDWORD rgdwAxes; /* Array of axes */ - LPLONG rglDirection; /* Array of directions */ - LPDIENVELOPE lpEnvelope; /* Optional */ - DWORD cbTypeSpecificParams; /* Size of params */ - LPVOID lpvTypeSpecificParams; /* Pointer to params */ -} DIEFFECT_DX5, *LPDIEFFECT_DX5; -typedef const DIEFFECT_DX5 *LPCDIEFFECT_DX5; - -typedef struct DIEFFECT { - DWORD dwSize; /* sizeof(DIEFFECT) */ - DWORD dwFlags; /* DIEFF_* */ - DWORD dwDuration; /* Microseconds */ - DWORD dwSamplePeriod; /* Microseconds */ - DWORD dwGain; - DWORD dwTriggerButton; /* or DIEB_NOTRIGGER */ - DWORD dwTriggerRepeatInterval; /* Microseconds */ - DWORD cAxes; /* Number of axes */ - LPDWORD rgdwAxes; /* Array of axes */ - LPLONG rglDirection; /* Array of directions */ - LPDIENVELOPE lpEnvelope; /* Optional */ - DWORD cbTypeSpecificParams; /* Size of params */ - LPVOID lpvTypeSpecificParams; /* Pointer to params */ -#if(DIRECTINPUT_VERSION >= 0x0600) - DWORD dwStartDelay; /* Microseconds */ -#endif /* DIRECTINPUT_VERSION >= 0x0600 */ -} DIEFFECT, *LPDIEFFECT; -typedef DIEFFECT DIEFFECT_DX6; -typedef LPDIEFFECT LPDIEFFECT_DX6; -typedef const DIEFFECT *LPCDIEFFECT; - - -#if(DIRECTINPUT_VERSION >= 0x0700) -#ifndef DIJ_RINGZERO -typedef struct DIFILEEFFECT{ - DWORD dwSize; - GUID GuidEffect; - LPCDIEFFECT lpDiEffect; - CHAR szFriendlyName[MAX_PATH]; -}DIFILEEFFECT, *LPDIFILEEFFECT; -typedef const DIFILEEFFECT *LPCDIFILEEFFECT; -typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSINFILECALLBACK)(LPCDIFILEEFFECT , LPVOID); -#endif /* DIJ_RINGZERO */ -#endif /* DIRECTINPUT_VERSION >= 0x0700 */ - -#define DIEFF_OBJECTIDS 0x00000001 -#define DIEFF_OBJECTOFFSETS 0x00000002 -#define DIEFF_CARTESIAN 0x00000010 -#define DIEFF_POLAR 0x00000020 -#define DIEFF_SPHERICAL 0x00000040 - -#define DIEP_DURATION 0x00000001 -#define DIEP_SAMPLEPERIOD 0x00000002 -#define DIEP_GAIN 0x00000004 -#define DIEP_TRIGGERBUTTON 0x00000008 -#define DIEP_TRIGGERREPEATINTERVAL 0x00000010 -#define DIEP_AXES 0x00000020 -#define DIEP_DIRECTION 0x00000040 -#define DIEP_ENVELOPE 0x00000080 -#define DIEP_TYPESPECIFICPARAMS 0x00000100 -#if(DIRECTINPUT_VERSION >= 0x0600) -#define DIEP_STARTDELAY 0x00000200 -#define DIEP_ALLPARAMS_DX5 0x000001FF -#define DIEP_ALLPARAMS 0x000003FF -#else /* DIRECTINPUT_VERSION < 0x0600 */ -#define DIEP_ALLPARAMS 0x000001FF -#endif /* DIRECTINPUT_VERSION < 0x0600 */ -#define DIEP_START 0x20000000 -#define DIEP_NORESTART 0x40000000 -#define DIEP_NODOWNLOAD 0x80000000 -#define DIEB_NOTRIGGER 0xFFFFFFFF - -#define DIES_SOLO 0x00000001 -#define DIES_NODOWNLOAD 0x80000000 - -#define DIEGES_PLAYING 0x00000001 -#define DIEGES_EMULATED 0x00000002 - -typedef struct DIEFFESCAPE { - DWORD dwSize; - DWORD dwCommand; - LPVOID lpvInBuffer; - DWORD cbInBuffer; - LPVOID lpvOutBuffer; - DWORD cbOutBuffer; -} DIEFFESCAPE, *LPDIEFFESCAPE; - -#ifndef DIJ_RINGZERO - -#undef INTERFACE -#define INTERFACE IDirectInputEffect - -DECLARE_INTERFACE_(IDirectInputEffect, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputEffect methods ***/ - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; - STDMETHOD(GetEffectGuid)(THIS_ LPGUID) PURE; - STDMETHOD(GetParameters)(THIS_ LPDIEFFECT,DWORD) PURE; - STDMETHOD(SetParameters)(THIS_ LPCDIEFFECT,DWORD) PURE; - STDMETHOD(Start)(THIS_ DWORD,DWORD) PURE; - STDMETHOD(Stop)(THIS) PURE; - STDMETHOD(GetEffectStatus)(THIS_ LPDWORD) PURE; - STDMETHOD(Download)(THIS) PURE; - STDMETHOD(Unload)(THIS) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; -}; - -typedef struct IDirectInputEffect *LPDIRECTINPUTEFFECT; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInputEffect_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputEffect_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputEffect_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInputEffect_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectInputEffect_GetEffectGuid(p,a) (p)->lpVtbl->GetEffectGuid(p,a) -#define IDirectInputEffect_GetParameters(p,a,b) (p)->lpVtbl->GetParameters(p,a,b) -#define IDirectInputEffect_SetParameters(p,a,b) (p)->lpVtbl->SetParameters(p,a,b) -#define IDirectInputEffect_Start(p,a,b) (p)->lpVtbl->Start(p,a,b) -#define IDirectInputEffect_Stop(p) (p)->lpVtbl->Stop(p) -#define IDirectInputEffect_GetEffectStatus(p,a) (p)->lpVtbl->GetEffectStatus(p,a) -#define IDirectInputEffect_Download(p) (p)->lpVtbl->Download(p) -#define IDirectInputEffect_Unload(p) (p)->lpVtbl->Unload(p) -#define IDirectInputEffect_Escape(p,a) (p)->lpVtbl->Escape(p,a) -#else -#define IDirectInputEffect_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputEffect_AddRef(p) (p)->AddRef() -#define IDirectInputEffect_Release(p) (p)->Release() -#define IDirectInputEffect_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectInputEffect_GetEffectGuid(p,a) (p)->GetEffectGuid(a) -#define IDirectInputEffect_GetParameters(p,a,b) (p)->GetParameters(a,b) -#define IDirectInputEffect_SetParameters(p,a,b) (p)->SetParameters(a,b) -#define IDirectInputEffect_Start(p,a,b) (p)->Start(a,b) -#define IDirectInputEffect_Stop(p) (p)->Stop() -#define IDirectInputEffect_GetEffectStatus(p,a) (p)->GetEffectStatus(a) -#define IDirectInputEffect_Download(p) (p)->Download() -#define IDirectInputEffect_Unload(p) (p)->Unload() -#define IDirectInputEffect_Escape(p,a) (p)->Escape(a) -#endif - -#endif /* DIJ_RINGZERO */ - -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ - -/**************************************************************************** - * - * IDirectInputDevice - * - ****************************************************************************/ - -#if DIRECTINPUT_VERSION <= 0x700 -#define DIDEVTYPE_DEVICE 1 -#define DIDEVTYPE_MOUSE 2 -#define DIDEVTYPE_KEYBOARD 3 -#define DIDEVTYPE_JOYSTICK 4 - -#else -#define DI8DEVCLASS_ALL 0 -#define DI8DEVCLASS_DEVICE 1 -#define DI8DEVCLASS_POINTER 2 -#define DI8DEVCLASS_KEYBOARD 3 -#define DI8DEVCLASS_GAMECTRL 4 - -#define DI8DEVTYPE_DEVICE 0x11 -#define DI8DEVTYPE_MOUSE 0x12 -#define DI8DEVTYPE_KEYBOARD 0x13 -#define DI8DEVTYPE_JOYSTICK 0x14 -#define DI8DEVTYPE_GAMEPAD 0x15 -#define DI8DEVTYPE_DRIVING 0x16 -#define DI8DEVTYPE_FLIGHT 0x17 -#define DI8DEVTYPE_1STPERSON 0x18 -#define DI8DEVTYPE_DEVICECTRL 0x19 -#define DI8DEVTYPE_SCREENPOINTER 0x1A -#define DI8DEVTYPE_REMOTE 0x1B -#define DI8DEVTYPE_SUPPLEMENTAL 0x1C -#endif /* DIRECTINPUT_VERSION <= 0x700 */ - -#define DIDEVTYPE_HID 0x00010000 - -#if DIRECTINPUT_VERSION <= 0x700 -#define DIDEVTYPEMOUSE_UNKNOWN 1 -#define DIDEVTYPEMOUSE_TRADITIONAL 2 -#define DIDEVTYPEMOUSE_FINGERSTICK 3 -#define DIDEVTYPEMOUSE_TOUCHPAD 4 -#define DIDEVTYPEMOUSE_TRACKBALL 5 - -#define DIDEVTYPEKEYBOARD_UNKNOWN 0 -#define DIDEVTYPEKEYBOARD_PCXT 1 -#define DIDEVTYPEKEYBOARD_OLIVETTI 2 -#define DIDEVTYPEKEYBOARD_PCAT 3 -#define DIDEVTYPEKEYBOARD_PCENH 4 -#define DIDEVTYPEKEYBOARD_NOKIA1050 5 -#define DIDEVTYPEKEYBOARD_NOKIA9140 6 -#define DIDEVTYPEKEYBOARD_NEC98 7 -#define DIDEVTYPEKEYBOARD_NEC98LAPTOP 8 -#define DIDEVTYPEKEYBOARD_NEC98106 9 -#define DIDEVTYPEKEYBOARD_JAPAN106 10 -#define DIDEVTYPEKEYBOARD_JAPANAX 11 -#define DIDEVTYPEKEYBOARD_J3100 12 - -#define DIDEVTYPEJOYSTICK_UNKNOWN 1 -#define DIDEVTYPEJOYSTICK_TRADITIONAL 2 -#define DIDEVTYPEJOYSTICK_FLIGHTSTICK 3 -#define DIDEVTYPEJOYSTICK_GAMEPAD 4 -#define DIDEVTYPEJOYSTICK_RUDDER 5 -#define DIDEVTYPEJOYSTICK_WHEEL 6 -#define DIDEVTYPEJOYSTICK_HEADTRACKER 7 - -#else -#define DI8DEVTYPEMOUSE_UNKNOWN 1 -#define DI8DEVTYPEMOUSE_TRADITIONAL 2 -#define DI8DEVTYPEMOUSE_FINGERSTICK 3 -#define DI8DEVTYPEMOUSE_TOUCHPAD 4 -#define DI8DEVTYPEMOUSE_TRACKBALL 5 -#define DI8DEVTYPEMOUSE_ABSOLUTE 6 - -#define DI8DEVTYPEKEYBOARD_UNKNOWN 0 -#define DI8DEVTYPEKEYBOARD_PCXT 1 -#define DI8DEVTYPEKEYBOARD_OLIVETTI 2 -#define DI8DEVTYPEKEYBOARD_PCAT 3 -#define DI8DEVTYPEKEYBOARD_PCENH 4 -#define DI8DEVTYPEKEYBOARD_NOKIA1050 5 -#define DI8DEVTYPEKEYBOARD_NOKIA9140 6 -#define DI8DEVTYPEKEYBOARD_NEC98 7 -#define DI8DEVTYPEKEYBOARD_NEC98LAPTOP 8 -#define DI8DEVTYPEKEYBOARD_NEC98106 9 -#define DI8DEVTYPEKEYBOARD_JAPAN106 10 -#define DI8DEVTYPEKEYBOARD_JAPANAX 11 -#define DI8DEVTYPEKEYBOARD_J3100 12 - -#define DI8DEVTYPE_LIMITEDGAMESUBTYPE 1 - -#define DI8DEVTYPEJOYSTICK_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPEJOYSTICK_STANDARD 2 - -#define DI8DEVTYPEGAMEPAD_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPEGAMEPAD_STANDARD 2 -#define DI8DEVTYPEGAMEPAD_TILT 3 - -#define DI8DEVTYPEDRIVING_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPEDRIVING_COMBINEDPEDALS 2 -#define DI8DEVTYPEDRIVING_DUALPEDALS 3 -#define DI8DEVTYPEDRIVING_THREEPEDALS 4 -#define DI8DEVTYPEDRIVING_HANDHELD 5 - -#define DI8DEVTYPEFLIGHT_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPEFLIGHT_STICK 2 -#define DI8DEVTYPEFLIGHT_YOKE 3 -#define DI8DEVTYPEFLIGHT_RC 4 - -#define DI8DEVTYPE1STPERSON_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPE1STPERSON_UNKNOWN 2 -#define DI8DEVTYPE1STPERSON_SIXDOF 3 -#define DI8DEVTYPE1STPERSON_SHOOTER 4 - -#define DI8DEVTYPESCREENPTR_UNKNOWN 2 -#define DI8DEVTYPESCREENPTR_LIGHTGUN 3 -#define DI8DEVTYPESCREENPTR_LIGHTPEN 4 -#define DI8DEVTYPESCREENPTR_TOUCH 5 - -#define DI8DEVTYPEREMOTE_UNKNOWN 2 - -#define DI8DEVTYPEDEVICECTRL_UNKNOWN 2 -#define DI8DEVTYPEDEVICECTRL_COMMSSELECTION 3 -#define DI8DEVTYPEDEVICECTRL_COMMSSELECTION_HARDWIRED 4 - -#define DI8DEVTYPESUPPLEMENTAL_UNKNOWN 2 -#define DI8DEVTYPESUPPLEMENTAL_2NDHANDCONTROLLER 3 -#define DI8DEVTYPESUPPLEMENTAL_HEADTRACKER 4 -#define DI8DEVTYPESUPPLEMENTAL_HANDTRACKER 5 -#define DI8DEVTYPESUPPLEMENTAL_SHIFTSTICKGATE 6 -#define DI8DEVTYPESUPPLEMENTAL_SHIFTER 7 -#define DI8DEVTYPESUPPLEMENTAL_THROTTLE 8 -#define DI8DEVTYPESUPPLEMENTAL_SPLITTHROTTLE 9 -#define DI8DEVTYPESUPPLEMENTAL_COMBINEDPEDALS 10 -#define DI8DEVTYPESUPPLEMENTAL_DUALPEDALS 11 -#define DI8DEVTYPESUPPLEMENTAL_THREEPEDALS 12 -#define DI8DEVTYPESUPPLEMENTAL_RUDDERPEDALS 13 -#endif /* DIRECTINPUT_VERSION <= 0x700 */ - -#define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(dwDevType) -#define GET_DIDEVICE_SUBTYPE(dwDevType) HIBYTE(dwDevType) - -#if(DIRECTINPUT_VERSION >= 0x0500) -/* This structure is defined for DirectX 3.0 compatibility */ -typedef struct DIDEVCAPS_DX3 { - DWORD dwSize; - DWORD dwFlags; - DWORD dwDevType; - DWORD dwAxes; - DWORD dwButtons; - DWORD dwPOVs; -} DIDEVCAPS_DX3, *LPDIDEVCAPS_DX3; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ - -typedef struct DIDEVCAPS { - DWORD dwSize; - DWORD dwFlags; - DWORD dwDevType; - DWORD dwAxes; - DWORD dwButtons; - DWORD dwPOVs; -#if(DIRECTINPUT_VERSION >= 0x0500) - DWORD dwFFSamplePeriod; - DWORD dwFFMinTimeResolution; - DWORD dwFirmwareRevision; - DWORD dwHardwareRevision; - DWORD dwFFDriverVersion; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVCAPS, *LPDIDEVCAPS; - -#define DIDC_ATTACHED 0x00000001 -#define DIDC_POLLEDDEVICE 0x00000002 -#define DIDC_EMULATED 0x00000004 -#define DIDC_POLLEDDATAFORMAT 0x00000008 -#if(DIRECTINPUT_VERSION >= 0x0500) -#define DIDC_FORCEFEEDBACK 0x00000100 -#define DIDC_FFATTACK 0x00000200 -#define DIDC_FFFADE 0x00000400 -#define DIDC_SATURATION 0x00000800 -#define DIDC_POSNEGCOEFFICIENTS 0x00001000 -#define DIDC_POSNEGSATURATION 0x00002000 -#define DIDC_DEADBAND 0x00004000 -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -#define DIDC_STARTDELAY 0x00008000 -#if(DIRECTINPUT_VERSION >= 0x050a) -#define DIDC_ALIAS 0x00010000 -#define DIDC_PHANTOM 0x00020000 -#endif /* DIRECTINPUT_VERSION >= 0x050a */ -#if(DIRECTINPUT_VERSION >= 0x0800) -#define DIDC_HIDDEN 0x00040000 -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - -#define DIDFT_ALL 0x00000000 - -#define DIDFT_RELAXIS 0x00000001 -#define DIDFT_ABSAXIS 0x00000002 -#define DIDFT_AXIS 0x00000003 - -#define DIDFT_PSHBUTTON 0x00000004 -#define DIDFT_TGLBUTTON 0x00000008 -#define DIDFT_BUTTON 0x0000000C - -#define DIDFT_POV 0x00000010 -#define DIDFT_COLLECTION 0x00000040 -#define DIDFT_NODATA 0x00000080 - -#define DIDFT_ANYINSTANCE 0x00FFFF00 -#define DIDFT_INSTANCEMASK DIDFT_ANYINSTANCE -#define DIDFT_MAKEINSTANCE(n) ((WORD)(n) << 8) -#define DIDFT_GETTYPE(n) LOBYTE(n) -#define DIDFT_GETINSTANCE(n) LOWORD((n) >> 8) -#define DIDFT_FFACTUATOR 0x01000000 -#define DIDFT_FFEFFECTTRIGGER 0x02000000 -#if(DIRECTINPUT_VERSION >= 0x050a) -#define DIDFT_OUTPUT 0x10000000 -#define DIDFT_VENDORDEFINED 0x04000000 -#define DIDFT_ALIAS 0x08000000 -#endif /* DIRECTINPUT_VERSION >= 0x050a */ -#ifndef DIDFT_OPTIONAL -#define DIDFT_OPTIONAL 0x80000000 -#endif - -#define DIDFT_ENUMCOLLECTION(n) ((WORD)(n) << 8) -#define DIDFT_NOCOLLECTION 0x00FFFF00 - -#ifndef DIJ_RINGZERO - -typedef struct _DIOBJECTDATAFORMAT { - const GUID *pguid; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; -} DIOBJECTDATAFORMAT, *LPDIOBJECTDATAFORMAT; -typedef const DIOBJECTDATAFORMAT *LPCDIOBJECTDATAFORMAT; - -typedef struct _DIDATAFORMAT { - DWORD dwSize; - DWORD dwObjSize; - DWORD dwFlags; - DWORD dwDataSize; - DWORD dwNumObjs; - LPDIOBJECTDATAFORMAT rgodf; -} DIDATAFORMAT, *LPDIDATAFORMAT; -typedef const DIDATAFORMAT *LPCDIDATAFORMAT; - -#define DIDF_ABSAXIS 0x00000001 -#define DIDF_RELAXIS 0x00000002 - -#ifdef __cplusplus -extern "C" { -#endif -extern const DIDATAFORMAT c_dfDIMouse; - -#if(DIRECTINPUT_VERSION >= 0x0700) -extern const DIDATAFORMAT c_dfDIMouse2; -#endif /* DIRECTINPUT_VERSION >= 0x0700 */ - -extern const DIDATAFORMAT c_dfDIKeyboard; - -#if(DIRECTINPUT_VERSION >= 0x0500) -extern const DIDATAFORMAT c_dfDIJoystick; -extern const DIDATAFORMAT c_dfDIJoystick2; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ - -#ifdef __cplusplus -}; -#endif - - -#if DIRECTINPUT_VERSION > 0x0700 - -typedef struct _DIACTIONA { - UINT_PTR uAppData; - DWORD dwSemantic; - OPTIONAL DWORD dwFlags; - OPTIONAL union { - LPCSTR lptszActionName; - UINT uResIdString; - }; - OPTIONAL GUID guidInstance; - OPTIONAL DWORD dwObjID; - OPTIONAL DWORD dwHow; -} DIACTIONA, *LPDIACTIONA ; -typedef struct _DIACTIONW { - UINT_PTR uAppData; - DWORD dwSemantic; - OPTIONAL DWORD dwFlags; - OPTIONAL union { - LPCWSTR lptszActionName; - UINT uResIdString; - }; - OPTIONAL GUID guidInstance; - OPTIONAL DWORD dwObjID; - OPTIONAL DWORD dwHow; -} DIACTIONW, *LPDIACTIONW ; -#ifdef UNICODE -typedef DIACTIONW DIACTION; -typedef LPDIACTIONW LPDIACTION; -#else -typedef DIACTIONA DIACTION; -typedef LPDIACTIONA LPDIACTION; -#endif // UNICODE - -typedef const DIACTIONA *LPCDIACTIONA; -typedef const DIACTIONW *LPCDIACTIONW; -/*#ifdef UNICODE -typedef DIACTIONW DIACTION; -typedef LPCDIACTIONW LPCDIACTION; -#else -typedef DIACTIONA DIACTION; -typedef LPCDIACTIONA LPCDIACTION; -#endif // UNICODE*/ -typedef const DIACTION *LPCDIACTION; - - -#define DIA_FORCEFEEDBACK 0x00000001 -#define DIA_APPMAPPED 0x00000002 -#define DIA_APPNOMAP 0x00000004 -#define DIA_NORANGE 0x00000008 -#define DIA_APPFIXED 0x00000010 - -#define DIAH_UNMAPPED 0x00000000 -#define DIAH_USERCONFIG 0x00000001 -#define DIAH_APPREQUESTED 0x00000002 -#define DIAH_HWAPP 0x00000004 -#define DIAH_HWDEFAULT 0x00000008 -#define DIAH_DEFAULT 0x00000020 -#define DIAH_ERROR 0x80000000 - -typedef struct _DIACTIONFORMATA { - DWORD dwSize; - DWORD dwActionSize; - DWORD dwDataSize; - DWORD dwNumActions; - LPDIACTIONA rgoAction; - GUID guidActionMap; - DWORD dwGenre; - DWORD dwBufferSize; - OPTIONAL LONG lAxisMin; - OPTIONAL LONG lAxisMax; - OPTIONAL HINSTANCE hInstString; - FILETIME ftTimeStamp; - DWORD dwCRC; - CHAR tszActionMap[MAX_PATH]; -} DIACTIONFORMATA, *LPDIACTIONFORMATA; -typedef struct _DIACTIONFORMATW { - DWORD dwSize; - DWORD dwActionSize; - DWORD dwDataSize; - DWORD dwNumActions; - LPDIACTIONW rgoAction; - GUID guidActionMap; - DWORD dwGenre; - DWORD dwBufferSize; - OPTIONAL LONG lAxisMin; - OPTIONAL LONG lAxisMax; - OPTIONAL HINSTANCE hInstString; - FILETIME ftTimeStamp; - DWORD dwCRC; - WCHAR tszActionMap[MAX_PATH]; -} DIACTIONFORMATW, *LPDIACTIONFORMATW; -#ifdef UNICODE -typedef DIACTIONFORMATW DIACTIONFORMAT; -typedef LPDIACTIONFORMATW LPDIACTIONFORMAT; -#else -typedef DIACTIONFORMATA DIACTIONFORMAT; -typedef LPDIACTIONFORMATA LPDIACTIONFORMAT; -#endif // UNICODE -typedef const DIACTIONFORMATA *LPCDIACTIONFORMATA; -typedef const DIACTIONFORMATW *LPCDIACTIONFORMATW; -/*#ifdef UNICODE -typedef DIACTIONFORMATW DIACTIONFORMAT; -typedef LPCDIACTIONFORMATW LPCDIACTIONFORMAT; -#else -typedef DIACTIONFORMATA DIACTIONFORMAT; -typedef LPCDIACTIONFORMATA LPCDIACTIONFORMAT; -#endif // UNICODE*/ -typedef const DIACTIONFORMAT *LPCDIACTIONFORMAT; - -#define DIAFTS_NEWDEVICELOW 0xFFFFFFFF -#define DIAFTS_NEWDEVICEHIGH 0xFFFFFFFF -#define DIAFTS_UNUSEDDEVICELOW 0x00000000 -#define DIAFTS_UNUSEDDEVICEHIGH 0x00000000 - -#define DIDBAM_DEFAULT 0x00000000 -#define DIDBAM_PRESERVE 0x00000001 -#define DIDBAM_INITIALIZE 0x00000002 -#define DIDBAM_HWDEFAULTS 0x00000004 - -#define DIDSAM_DEFAULT 0x00000000 -#define DIDSAM_NOUSER 0x00000001 -#define DIDSAM_FORCESAVE 0x00000002 - -#define DICD_DEFAULT 0x00000000 -#define DICD_EDIT 0x00000001 - -/* - * The following definition is normally defined in d3dtypes.h - */ -#ifndef D3DCOLOR_DEFINED -typedef DWORD D3DCOLOR; -#define D3DCOLOR_DEFINED -#endif - -typedef struct _DICOLORSET{ - DWORD dwSize; - D3DCOLOR cTextFore; - D3DCOLOR cTextHighlight; - D3DCOLOR cCalloutLine; - D3DCOLOR cCalloutHighlight; - D3DCOLOR cBorder; - D3DCOLOR cControlFill; - D3DCOLOR cHighlightFill; - D3DCOLOR cAreaFill; -} DICOLORSET, *LPDICOLORSET; -typedef const DICOLORSET *LPCDICOLORSET; - - -typedef struct _DICONFIGUREDEVICESPARAMSA{ - DWORD dwSize; - DWORD dwcUsers; - LPSTR lptszUserNames; - DWORD dwcFormats; - LPDIACTIONFORMATA lprgFormats; - HWND hwnd; - DICOLORSET dics; - IUnknown FAR * lpUnkDDSTarget; -} DICONFIGUREDEVICESPARAMSA, *LPDICONFIGUREDEVICESPARAMSA; -typedef struct _DICONFIGUREDEVICESPARAMSW{ - DWORD dwSize; - DWORD dwcUsers; - LPWSTR lptszUserNames; - DWORD dwcFormats; - LPDIACTIONFORMATW lprgFormats; - HWND hwnd; - DICOLORSET dics; - IUnknown FAR * lpUnkDDSTarget; -} DICONFIGUREDEVICESPARAMSW, *LPDICONFIGUREDEVICESPARAMSW; -#ifdef UNICODE -typedef DICONFIGUREDEVICESPARAMSW DICONFIGUREDEVICESPARAMS; -typedef LPDICONFIGUREDEVICESPARAMSW LPDICONFIGUREDEVICESPARAMS; -#else -typedef DICONFIGUREDEVICESPARAMSA DICONFIGUREDEVICESPARAMS; -typedef LPDICONFIGUREDEVICESPARAMSA LPDICONFIGUREDEVICESPARAMS; -#endif // UNICODE -typedef const DICONFIGUREDEVICESPARAMSA *LPCDICONFIGUREDEVICESPARAMSA; -typedef const DICONFIGUREDEVICESPARAMSW *LPCDICONFIGUREDEVICESPARAMSW; -/*#ifdef UNICODE -typedef DICONFIGUREDEVICESPARAMSW DICONFIGUREDEVICESPARAMS; -typedef LPCDICONFIGUREDEVICESPARAMSW LPCDICONFIGUREDEVICESPARAMS; -#else -typedef DICONFIGUREDEVICESPARAMSA DICONFIGUREDEVICESPARAMS; -typedef LPCDICONFIGUREDEVICESPARAMSA LPCDICONFIGUREDEVICESPARAMS; -#endif // UNICODE*/ -typedef const DICONFIGUREDEVICESPARAMS *LPCDICONFIGUREDEVICESPARAMS; - - -#define DIDIFT_CONFIGURATION 0x00000001 -#define DIDIFT_OVERLAY 0x00000002 - -#define DIDAL_CENTERED 0x00000000 -#define DIDAL_LEFTALIGNED 0x00000001 -#define DIDAL_RIGHTALIGNED 0x00000002 -#define DIDAL_MIDDLE 0x00000000 -#define DIDAL_TOPALIGNED 0x00000004 -#define DIDAL_BOTTOMALIGNED 0x00000008 - -typedef struct _DIDEVICEIMAGEINFOA { - CHAR tszImagePath[MAX_PATH]; - DWORD dwFlags; - // These are valid if DIDIFT_OVERLAY is present in dwFlags. - DWORD dwViewID; - RECT rcOverlay; - DWORD dwObjID; - DWORD dwcValidPts; - POINT rgptCalloutLine[5]; - RECT rcCalloutRect; - DWORD dwTextAlign; -} DIDEVICEIMAGEINFOA, *LPDIDEVICEIMAGEINFOA; -typedef struct _DIDEVICEIMAGEINFOW { - WCHAR tszImagePath[MAX_PATH]; - DWORD dwFlags; - // These are valid if DIDIFT_OVERLAY is present in dwFlags. - DWORD dwViewID; - RECT rcOverlay; - DWORD dwObjID; - DWORD dwcValidPts; - POINT rgptCalloutLine[5]; - RECT rcCalloutRect; - DWORD dwTextAlign; -} DIDEVICEIMAGEINFOW, *LPDIDEVICEIMAGEINFOW; -#ifdef UNICODE -typedef DIDEVICEIMAGEINFOW DIDEVICEIMAGEINFO; -typedef LPDIDEVICEIMAGEINFOW LPDIDEVICEIMAGEINFO; -#else -typedef DIDEVICEIMAGEINFOA DIDEVICEIMAGEINFO; -typedef LPDIDEVICEIMAGEINFOA LPDIDEVICEIMAGEINFO; -#endif // UNICODE -typedef const DIDEVICEIMAGEINFOA *LPCDIDEVICEIMAGEINFOA; -typedef const DIDEVICEIMAGEINFOW *LPCDIDEVICEIMAGEINFOW; -/*#ifdef UNICODE -typedef DIDEVICEIMAGEINFOW DIDEVICEIMAGEINFO; -typedef LPCDIDEVICEIMAGEINFOW LPCDIDEVICEIMAGEINFO; -#else -typedef DIDEVICEIMAGEINFOA DIDEVICEIMAGEINFO; -typedef LPCDIDEVICEIMAGEINFOA LPCDIDEVICEIMAGEINFO; -#endif // UNICODE*/ -typedef const DIDEVICEIMAGEINFO *LPCDIDEVICEIMAGEINFO; - -typedef struct _DIDEVICEIMAGEINFOHEADERA { - DWORD dwSize; - DWORD dwSizeImageInfo; - DWORD dwcViews; - DWORD dwcButtons; - DWORD dwcAxes; - DWORD dwcPOVs; - DWORD dwBufferSize; - DWORD dwBufferUsed; - LPDIDEVICEIMAGEINFOA lprgImageInfoArray; -} DIDEVICEIMAGEINFOHEADERA, *LPDIDEVICEIMAGEINFOHEADERA; -typedef struct _DIDEVICEIMAGEINFOHEADERW { - DWORD dwSize; - DWORD dwSizeImageInfo; - DWORD dwcViews; - DWORD dwcButtons; - DWORD dwcAxes; - DWORD dwcPOVs; - DWORD dwBufferSize; - DWORD dwBufferUsed; - LPDIDEVICEIMAGEINFOW lprgImageInfoArray; -} DIDEVICEIMAGEINFOHEADERW, *LPDIDEVICEIMAGEINFOHEADERW; -#ifdef UNICODE -typedef DIDEVICEIMAGEINFOHEADERW DIDEVICEIMAGEINFOHEADER; -typedef LPDIDEVICEIMAGEINFOHEADERW LPDIDEVICEIMAGEINFOHEADER; -#else -typedef DIDEVICEIMAGEINFOHEADERA DIDEVICEIMAGEINFOHEADER; -typedef LPDIDEVICEIMAGEINFOHEADERA LPDIDEVICEIMAGEINFOHEADER; -#endif // UNICODE -typedef const DIDEVICEIMAGEINFOHEADERA *LPCDIDEVICEIMAGEINFOHEADERA; -typedef const DIDEVICEIMAGEINFOHEADERW *LPCDIDEVICEIMAGEINFOHEADERW; -/*#ifdef UNICODE -typedef DIDEVICEIMAGEINFOHEADERW DIDEVICEIMAGEINFOHEADER; -typedef LPCDIDEVICEIMAGEINFOHEADERW LPCDIDEVICEIMAGEINFOHEADER; -#else -typedef DIDEVICEIMAGEINFOHEADERA DIDEVICEIMAGEINFOHEADER; -typedef LPCDIDEVICEIMAGEINFOHEADERA LPCDIDEVICEIMAGEINFOHEADER; -#endif // UNICODE*/ -typedef const DIDEVICEIMAGEINFOHEADER *LPCDIDEVICEIMAGEINFOHEADER; - -#endif /* DIRECTINPUT_VERSION > 0x0700 */ - -#if(DIRECTINPUT_VERSION >= 0x0500) -/* These structures are defined for DirectX 3.0 compatibility */ - -typedef struct DIDEVICEOBJECTINSTANCE_DX3A { - DWORD dwSize; - GUID guidType; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; - CHAR tszName[MAX_PATH]; -} DIDEVICEOBJECTINSTANCE_DX3A, *LPDIDEVICEOBJECTINSTANCE_DX3A; -typedef struct DIDEVICEOBJECTINSTANCE_DX3W { - DWORD dwSize; - GUID guidType; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; - WCHAR tszName[MAX_PATH]; -} DIDEVICEOBJECTINSTANCE_DX3W, *LPDIDEVICEOBJECTINSTANCE_DX3W; -#ifdef UNICODE -typedef DIDEVICEOBJECTINSTANCE_DX3W DIDEVICEOBJECTINSTANCE_DX3; -typedef LPDIDEVICEOBJECTINSTANCE_DX3W LPDIDEVICEOBJECTINSTANCE_DX3; -#else -typedef DIDEVICEOBJECTINSTANCE_DX3A DIDEVICEOBJECTINSTANCE_DX3; -typedef LPDIDEVICEOBJECTINSTANCE_DX3A LPDIDEVICEOBJECTINSTANCE_DX3; -#endif // UNICODE -typedef const DIDEVICEOBJECTINSTANCE_DX3A *LPCDIDEVICEOBJECTINSTANCE_DX3A; -typedef const DIDEVICEOBJECTINSTANCE_DX3W *LPCDIDEVICEOBJECTINSTANCE_DX3W; -typedef const DIDEVICEOBJECTINSTANCE_DX3 *LPCDIDEVICEOBJECTINSTANCE_DX3; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ - -typedef struct DIDEVICEOBJECTINSTANCEA { - DWORD dwSize; - GUID guidType; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; - CHAR tszName[MAX_PATH]; -#if(DIRECTINPUT_VERSION >= 0x0500) - DWORD dwFFMaxForce; - DWORD dwFFForceResolution; - WORD wCollectionNumber; - WORD wDesignatorIndex; - WORD wUsagePage; - WORD wUsage; - DWORD dwDimension; - WORD wExponent; - WORD wReportId; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVICEOBJECTINSTANCEA, *LPDIDEVICEOBJECTINSTANCEA; -typedef struct DIDEVICEOBJECTINSTANCEW { - DWORD dwSize; - GUID guidType; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; - WCHAR tszName[MAX_PATH]; -#if(DIRECTINPUT_VERSION >= 0x0500) - DWORD dwFFMaxForce; - DWORD dwFFForceResolution; - WORD wCollectionNumber; - WORD wDesignatorIndex; - WORD wUsagePage; - WORD wUsage; - DWORD dwDimension; - WORD wExponent; - WORD wReportId; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVICEOBJECTINSTANCEW, *LPDIDEVICEOBJECTINSTANCEW; -#ifdef UNICODE -typedef DIDEVICEOBJECTINSTANCEW DIDEVICEOBJECTINSTANCE; -typedef LPDIDEVICEOBJECTINSTANCEW LPDIDEVICEOBJECTINSTANCE; -#else -typedef DIDEVICEOBJECTINSTANCEA DIDEVICEOBJECTINSTANCE; -typedef LPDIDEVICEOBJECTINSTANCEA LPDIDEVICEOBJECTINSTANCE; -#endif // UNICODE -typedef const DIDEVICEOBJECTINSTANCEA *LPCDIDEVICEOBJECTINSTANCEA; -typedef const DIDEVICEOBJECTINSTANCEW *LPCDIDEVICEOBJECTINSTANCEW; -typedef const DIDEVICEOBJECTINSTANCE *LPCDIDEVICEOBJECTINSTANCE; - -typedef BOOL (FAR PASCAL * LPDIENUMDEVICEOBJECTSCALLBACKA)(LPCDIDEVICEOBJECTINSTANCEA, LPVOID); -typedef BOOL (FAR PASCAL * LPDIENUMDEVICEOBJECTSCALLBACKW)(LPCDIDEVICEOBJECTINSTANCEW, LPVOID); -#ifdef UNICODE -#define LPDIENUMDEVICEOBJECTSCALLBACK LPDIENUMDEVICEOBJECTSCALLBACKW -#else -#define LPDIENUMDEVICEOBJECTSCALLBACK LPDIENUMDEVICEOBJECTSCALLBACKA -#endif // !UNICODE - -#if(DIRECTINPUT_VERSION >= 0x0500) -#define DIDOI_FFACTUATOR 0x00000001 -#define DIDOI_FFEFFECTTRIGGER 0x00000002 -#define DIDOI_POLLED 0x00008000 -#define DIDOI_ASPECTPOSITION 0x00000100 -#define DIDOI_ASPECTVELOCITY 0x00000200 -#define DIDOI_ASPECTACCEL 0x00000300 -#define DIDOI_ASPECTFORCE 0x00000400 -#define DIDOI_ASPECTMASK 0x00000F00 -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -#if(DIRECTINPUT_VERSION >= 0x050a) -#define DIDOI_GUIDISUSAGE 0x00010000 -#endif /* DIRECTINPUT_VERSION >= 0x050a */ - -typedef struct DIPROPHEADER { - DWORD dwSize; - DWORD dwHeaderSize; - DWORD dwObj; - DWORD dwHow; -} DIPROPHEADER, *LPDIPROPHEADER; -typedef const DIPROPHEADER *LPCDIPROPHEADER; - -#define DIPH_DEVICE 0 -#define DIPH_BYOFFSET 1 -#define DIPH_BYID 2 -#if(DIRECTINPUT_VERSION >= 0x050a) -#define DIPH_BYUSAGE 3 -#endif /* DIRECTINPUT_VERSION >= 0x050a */ - -#if(DIRECTINPUT_VERSION >= 0x050a) -#define DIMAKEUSAGEDWORD(UsagePage, Usage) \ - (DWORD)MAKELONG(Usage, UsagePage) -#endif /* DIRECTINPUT_VERSION >= 0x050a */ - -typedef struct DIPROPDWORD { - DIPROPHEADER diph; - DWORD dwData; -} DIPROPDWORD, *LPDIPROPDWORD; -typedef const DIPROPDWORD *LPCDIPROPDWORD; - -#if(DIRECTINPUT_VERSION >= 0x0800) -typedef struct DIPROPPOINTER { - DIPROPHEADER diph; - UINT_PTR uData; -} DIPROPPOINTER, *LPDIPROPPOINTER; -typedef const DIPROPPOINTER *LPCDIPROPPOINTER; -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - -typedef struct DIPROPRANGE { - DIPROPHEADER diph; - LONG lMin; - LONG lMax; -} DIPROPRANGE, *LPDIPROPRANGE; -typedef const DIPROPRANGE *LPCDIPROPRANGE; - -#define DIPROPRANGE_NOMIN ((LONG)0x80000000) -#define DIPROPRANGE_NOMAX ((LONG)0x7FFFFFFF) - -#if(DIRECTINPUT_VERSION >= 0x050a) -typedef struct DIPROPCAL { - DIPROPHEADER diph; - LONG lMin; - LONG lCenter; - LONG lMax; -} DIPROPCAL, *LPDIPROPCAL; -typedef const DIPROPCAL *LPCDIPROPCAL; - -typedef struct DIPROPCALPOV { - DIPROPHEADER diph; - LONG lMin[5]; - LONG lMax[5]; -} DIPROPCALPOV, *LPDIPROPCALPOV; -typedef const DIPROPCALPOV *LPCDIPROPCALPOV; - -typedef struct DIPROPGUIDANDPATH { - DIPROPHEADER diph; - GUID guidClass; - WCHAR wszPath[MAX_PATH]; -} DIPROPGUIDANDPATH, *LPDIPROPGUIDANDPATH; -typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH; - -typedef struct DIPROPSTRING { - DIPROPHEADER diph; - WCHAR wsz[MAX_PATH]; -} DIPROPSTRING, *LPDIPROPSTRING; -typedef const DIPROPSTRING *LPCDIPROPSTRING; - -#endif /* DIRECTINPUT_VERSION >= 0x050a */ - -#if(DIRECTINPUT_VERSION >= 0x0800) -#define MAXCPOINTSNUM 8 - -typedef struct _CPOINT -{ - LONG lP; // raw value - DWORD dwLog; // logical_value / max_logical_value * 10000 -} CPOINT, *PCPOINT; - -typedef struct DIPROPCPOINTS { - DIPROPHEADER diph; - DWORD dwCPointsNum; - CPOINT cp[MAXCPOINTSNUM]; -} DIPROPCPOINTS, *LPDIPROPCPOINTS; -typedef const DIPROPCPOINTS *LPCDIPROPCPOINTS; -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - - -#ifdef __cplusplus -#define MAKEDIPROP(prop) (*(const GUID *)(prop)) -#else -#define MAKEDIPROP(prop) ((REFGUID)(prop)) -#endif - -#define DIPROP_BUFFERSIZE MAKEDIPROP(1) - -#define DIPROP_AXISMODE MAKEDIPROP(2) - -#define DIPROPAXISMODE_ABS 0 -#define DIPROPAXISMODE_REL 1 - -#define DIPROP_GRANULARITY MAKEDIPROP(3) - -#define DIPROP_RANGE MAKEDIPROP(4) - -#define DIPROP_DEADZONE MAKEDIPROP(5) - -#define DIPROP_SATURATION MAKEDIPROP(6) - -#define DIPROP_FFGAIN MAKEDIPROP(7) - -#define DIPROP_FFLOAD MAKEDIPROP(8) - -#define DIPROP_AUTOCENTER MAKEDIPROP(9) - -#define DIPROPAUTOCENTER_OFF 0 -#define DIPROPAUTOCENTER_ON 1 - -#define DIPROP_CALIBRATIONMODE MAKEDIPROP(10) - -#define DIPROPCALIBRATIONMODE_COOKED 0 -#define DIPROPCALIBRATIONMODE_RAW 1 - -#if(DIRECTINPUT_VERSION >= 0x050a) -#define DIPROP_CALIBRATION MAKEDIPROP(11) - -#define DIPROP_GUIDANDPATH MAKEDIPROP(12) - -#define DIPROP_INSTANCENAME MAKEDIPROP(13) - -#define DIPROP_PRODUCTNAME MAKEDIPROP(14) -#endif /* DIRECTINPUT_VERSION >= 0x050a */ - -#if(DIRECTINPUT_VERSION >= 0x05b2) -#define DIPROP_JOYSTICKID MAKEDIPROP(15) - -#define DIPROP_GETPORTDISPLAYNAME MAKEDIPROP(16) - -#endif /* DIRECTINPUT_VERSION >= 0x05b2 */ - -#if(DIRECTINPUT_VERSION >= 0x0700) -#define DIPROP_PHYSICALRANGE MAKEDIPROP(18) - -#define DIPROP_LOGICALRANGE MAKEDIPROP(19) -#endif /* DIRECTINPUT_VERSION >= 0x0700 */ - -#if(DIRECTINPUT_VERSION >= 0x0800) -#define DIPROP_KEYNAME MAKEDIPROP(20) - -#define DIPROP_CPOINTS MAKEDIPROP(21) - -#define DIPROP_APPDATA MAKEDIPROP(22) - -#define DIPROP_SCANCODE MAKEDIPROP(23) - -#define DIPROP_VIDPID MAKEDIPROP(24) - -#define DIPROP_USERNAME MAKEDIPROP(25) - -#define DIPROP_TYPENAME MAKEDIPROP(26) -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - - -typedef struct DIDEVICEOBJECTDATA_DX3 { - DWORD dwOfs; - DWORD dwData; - DWORD dwTimeStamp; - DWORD dwSequence; -} DIDEVICEOBJECTDATA_DX3, *LPDIDEVICEOBJECTDATA_DX3; -typedef const DIDEVICEOBJECTDATA_DX3 *LPCDIDEVICEOBJECTDATA_DX; - -typedef struct DIDEVICEOBJECTDATA { - DWORD dwOfs; - DWORD dwData; - DWORD dwTimeStamp; - DWORD dwSequence; -#if(DIRECTINPUT_VERSION >= 0x0800) - UINT_PTR uAppData; -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ -} DIDEVICEOBJECTDATA, *LPDIDEVICEOBJECTDATA; -typedef const DIDEVICEOBJECTDATA *LPCDIDEVICEOBJECTDATA; - -#define DIGDD_PEEK 0x00000001 - -#define DISEQUENCE_COMPARE(dwSequence1, cmp, dwSequence2) \ - ((int)((dwSequence1) - (dwSequence2)) cmp 0) -#define DISCL_EXCLUSIVE 0x00000001 -#define DISCL_NONEXCLUSIVE 0x00000002 -#define DISCL_FOREGROUND 0x00000004 -#define DISCL_BACKGROUND 0x00000008 -#define DISCL_NOWINKEY 0x00000010 - -#if(DIRECTINPUT_VERSION >= 0x0500) -/* These structures are defined for DirectX 3.0 compatibility */ - -typedef struct DIDEVICEINSTANCE_DX3A { - DWORD dwSize; - GUID guidInstance; - GUID guidProduct; - DWORD dwDevType; - CHAR tszInstanceName[MAX_PATH]; - CHAR tszProductName[MAX_PATH]; -} DIDEVICEINSTANCE_DX3A, *LPDIDEVICEINSTANCE_DX3A; -typedef struct DIDEVICEINSTANCE_DX3W { - DWORD dwSize; - GUID guidInstance; - GUID guidProduct; - DWORD dwDevType; - WCHAR tszInstanceName[MAX_PATH]; - WCHAR tszProductName[MAX_PATH]; -} DIDEVICEINSTANCE_DX3W, *LPDIDEVICEINSTANCE_DX3W; -#ifdef UNICODE -typedef DIDEVICEINSTANCE_DX3W DIDEVICEINSTANCE_DX3; -typedef LPDIDEVICEINSTANCE_DX3W LPDIDEVICEINSTANCE_DX3; -#else -typedef DIDEVICEINSTANCE_DX3A DIDEVICEINSTANCE_DX3; -typedef LPDIDEVICEINSTANCE_DX3A LPDIDEVICEINSTANCE_DX3; -#endif // UNICODE -typedef const DIDEVICEINSTANCE_DX3A *LPCDIDEVICEINSTANCE_DX3A; -typedef const DIDEVICEINSTANCE_DX3W *LPCDIDEVICEINSTANCE_DX3W; -typedef const DIDEVICEINSTANCE_DX3 *LPCDIDEVICEINSTANCE_DX3; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ - -typedef struct DIDEVICEINSTANCEA { - DWORD dwSize; - GUID guidInstance; - GUID guidProduct; - DWORD dwDevType; - CHAR tszInstanceName[MAX_PATH]; - CHAR tszProductName[MAX_PATH]; -#if(DIRECTINPUT_VERSION >= 0x0500) - GUID guidFFDriver; - WORD wUsagePage; - WORD wUsage; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVICEINSTANCEA, *LPDIDEVICEINSTANCEA; -typedef struct DIDEVICEINSTANCEW { - DWORD dwSize; - GUID guidInstance; - GUID guidProduct; - DWORD dwDevType; - WCHAR tszInstanceName[MAX_PATH]; - WCHAR tszProductName[MAX_PATH]; -#if(DIRECTINPUT_VERSION >= 0x0500) - GUID guidFFDriver; - WORD wUsagePage; - WORD wUsage; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVICEINSTANCEW, *LPDIDEVICEINSTANCEW; -#ifdef UNICODE -typedef DIDEVICEINSTANCEW DIDEVICEINSTANCE; -typedef LPDIDEVICEINSTANCEW LPDIDEVICEINSTANCE; -#else -typedef DIDEVICEINSTANCEA DIDEVICEINSTANCE; -typedef LPDIDEVICEINSTANCEA LPDIDEVICEINSTANCE; -#endif // UNICODE - -typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA; -typedef const DIDEVICEINSTANCEW *LPCDIDEVICEINSTANCEW; -/*#ifdef UNICODE -typedef DIDEVICEINSTANCEW DIDEVICEINSTANCE; -typedef LPCDIDEVICEINSTANCEW LPCDIDEVICEINSTANCE; -#else -typedef DIDEVICEINSTANCEA DIDEVICEINSTANCE; -typedef LPCDIDEVICEINSTANCEA LPCDIDEVICEINSTANCE; -#endif // UNICODE*/ -typedef const DIDEVICEINSTANCE *LPCDIDEVICEINSTANCE; - -#undef INTERFACE -#define INTERFACE IDirectInputDeviceW - -DECLARE_INTERFACE_(IDirectInputDeviceW, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputDeviceW methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; -}; - -typedef struct IDirectInputDeviceW *LPDIRECTINPUTDEVICEW; - -#undef INTERFACE -#define INTERFACE IDirectInputDeviceA - -DECLARE_INTERFACE_(IDirectInputDeviceA, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputDeviceA methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; -}; - -typedef struct IDirectInputDeviceA *LPDIRECTINPUTDEVICEA; - -#ifdef UNICODE -#define IID_IDirectInputDevice IID_IDirectInputDeviceW -#define IDirectInputDevice IDirectInputDeviceW -#define IDirectInputDeviceVtbl IDirectInputDeviceWVtbl -#else -#define IID_IDirectInputDevice IID_IDirectInputDeviceA -#define IDirectInputDevice IDirectInputDeviceA -#define IDirectInputDeviceVtbl IDirectInputDeviceAVtbl -#endif -typedef struct IDirectInputDevice *LPDIRECTINPUTDEVICE; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInputDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputDevice_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputDevice_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInputDevice_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IDirectInputDevice_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IDirectInputDevice_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) -#define IDirectInputDevice_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputDevice_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputDevice_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) -#define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) -#define IDirectInputDevice_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) -#define IDirectInputDevice_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) -#define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) -#define IDirectInputDevice_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) -#define IDirectInputDevice_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInputDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#else -#define IDirectInputDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputDevice_AddRef(p) (p)->AddRef() -#define IDirectInputDevice_Release(p) (p)->Release() -#define IDirectInputDevice_GetCapabilities(p,a) (p)->GetCapabilities(a) -#define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) -#define IDirectInputDevice_GetProperty(p,a,b) (p)->GetProperty(a,b) -#define IDirectInputDevice_SetProperty(p,a,b) (p)->SetProperty(a,b) -#define IDirectInputDevice_Acquire(p) (p)->Acquire() -#define IDirectInputDevice_Unacquire(p) (p)->Unacquire() -#define IDirectInputDevice_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) -#define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) -#define IDirectInputDevice_SetDataFormat(p,a) (p)->SetDataFormat(a) -#define IDirectInputDevice_SetEventNotification(p,a) (p)->SetEventNotification(a) -#define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) -#define IDirectInputDevice_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) -#define IDirectInputDevice_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInputDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#endif - -#endif /* DIJ_RINGZERO */ - - -#if(DIRECTINPUT_VERSION >= 0x0500) - -#define DISFFC_RESET 0x00000001 -#define DISFFC_STOPALL 0x00000002 -#define DISFFC_PAUSE 0x00000004 -#define DISFFC_CONTINUE 0x00000008 -#define DISFFC_SETACTUATORSON 0x00000010 -#define DISFFC_SETACTUATORSOFF 0x00000020 - -#define DIGFFS_EMPTY 0x00000001 -#define DIGFFS_STOPPED 0x00000002 -#define DIGFFS_PAUSED 0x00000004 -#define DIGFFS_ACTUATORSON 0x00000010 -#define DIGFFS_ACTUATORSOFF 0x00000020 -#define DIGFFS_POWERON 0x00000040 -#define DIGFFS_POWEROFF 0x00000080 -#define DIGFFS_SAFETYSWITCHON 0x00000100 -#define DIGFFS_SAFETYSWITCHOFF 0x00000200 -#define DIGFFS_USERFFSWITCHON 0x00000400 -#define DIGFFS_USERFFSWITCHOFF 0x00000800 -#define DIGFFS_DEVICELOST 0x80000000 - -#ifndef DIJ_RINGZERO - -typedef struct DIEFFECTINFOA { - DWORD dwSize; - GUID guid; - DWORD dwEffType; - DWORD dwStaticParams; - DWORD dwDynamicParams; - CHAR tszName[MAX_PATH]; -} DIEFFECTINFOA, *LPDIEFFECTINFOA; -typedef struct DIEFFECTINFOW { - DWORD dwSize; - GUID guid; - DWORD dwEffType; - DWORD dwStaticParams; - DWORD dwDynamicParams; - WCHAR tszName[MAX_PATH]; -} DIEFFECTINFOW, *LPDIEFFECTINFOW; -#ifdef UNICODE -typedef DIEFFECTINFOW DIEFFECTINFO; -typedef LPDIEFFECTINFOW LPDIEFFECTINFO; -#else -typedef DIEFFECTINFOA DIEFFECTINFO; -typedef LPDIEFFECTINFOA LPDIEFFECTINFO; -#endif // UNICODE -typedef const DIEFFECTINFOA *LPCDIEFFECTINFOA; -typedef const DIEFFECTINFOW *LPCDIEFFECTINFOW; -typedef const DIEFFECTINFO *LPCDIEFFECTINFO; - -#define DISDD_CONTINUE 0x00000001 - -typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSCALLBACKA)(LPCDIEFFECTINFOA, LPVOID); -typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSCALLBACKW)(LPCDIEFFECTINFOW, LPVOID); -#ifdef UNICODE -#define LPDIENUMEFFECTSCALLBACK LPDIENUMEFFECTSCALLBACKW -#else -#define LPDIENUMEFFECTSCALLBACK LPDIENUMEFFECTSCALLBACKA -#endif // !UNICODE -typedef BOOL (FAR PASCAL * LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFECT, LPVOID); - -#undef INTERFACE -#define INTERFACE IDirectInputDevice2W - -DECLARE_INTERFACE_(IDirectInputDevice2W, IDirectInputDeviceW) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputDeviceW methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; - - /*** IDirectInputDevice2W methods ***/ - STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; -}; - -typedef struct IDirectInputDevice2W *LPDIRECTINPUTDEVICE2W; - -#undef INTERFACE -#define INTERFACE IDirectInputDevice2A - -DECLARE_INTERFACE_(IDirectInputDevice2A, IDirectInputDeviceA) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputDeviceA methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; - - /*** IDirectInputDevice2A methods ***/ - STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; -}; - -typedef struct IDirectInputDevice2A *LPDIRECTINPUTDEVICE2A; - -#ifdef UNICODE -#define IID_IDirectInputDevice2 IID_IDirectInputDevice2W -#define IDirectInputDevice2 IDirectInputDevice2W -#define IDirectInputDevice2Vtbl IDirectInputDevice2WVtbl -#else -#define IID_IDirectInputDevice2 IID_IDirectInputDevice2A -#define IDirectInputDevice2 IDirectInputDevice2A -#define IDirectInputDevice2Vtbl IDirectInputDevice2AVtbl -#endif -typedef struct IDirectInputDevice2 *LPDIRECTINPUTDEVICE2; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInputDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputDevice2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputDevice2_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInputDevice2_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IDirectInputDevice2_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IDirectInputDevice2_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) -#define IDirectInputDevice2_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputDevice2_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) -#define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) -#define IDirectInputDevice2_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) -#define IDirectInputDevice2_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) -#define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) -#define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) -#define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInputDevice2_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) -#define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) -#define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) -#define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) -#define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) -#define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) -#define IDirectInputDevice2_Escape(p,a) (p)->lpVtbl->Escape(p,a) -#define IDirectInputDevice2_Poll(p) (p)->lpVtbl->Poll(p) -#define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) -#else -#define IDirectInputDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputDevice2_AddRef(p) (p)->AddRef() -#define IDirectInputDevice2_Release(p) (p)->Release() -#define IDirectInputDevice2_GetCapabilities(p,a) (p)->GetCapabilities(a) -#define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) -#define IDirectInputDevice2_GetProperty(p,a,b) (p)->GetProperty(a,b) -#define IDirectInputDevice2_SetProperty(p,a,b) (p)->SetProperty(a,b) -#define IDirectInputDevice2_Acquire(p) (p)->Acquire() -#define IDirectInputDevice2_Unacquire(p) (p)->Unacquire() -#define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) -#define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) -#define IDirectInputDevice2_SetDataFormat(p,a) (p)->SetDataFormat(a) -#define IDirectInputDevice2_SetEventNotification(p,a) (p)->SetEventNotification(a) -#define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) -#define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) -#define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInputDevice2_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) -#define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) -#define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) -#define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) -#define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) -#define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) -#define IDirectInputDevice2_Escape(p,a) (p)->Escape(a) -#define IDirectInputDevice2_Poll(p) (p)->Poll() -#define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) -#endif - -#endif /* DIJ_RINGZERO */ - -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ - -#if(DIRECTINPUT_VERSION >= 0x0700) -#define DIFEF_DEFAULT 0x00000000 -#define DIFEF_INCLUDENONSTANDARD 0x00000001 -#define DIFEF_MODIFYIFNEEDED 0x00000010 - -#ifndef DIJ_RINGZERO - -#undef INTERFACE -#define INTERFACE IDirectInputDevice7W - -DECLARE_INTERFACE_(IDirectInputDevice7W, IDirectInputDevice2W) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputDevice2W methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; - STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - - /*** IDirectInputDevice7W methods ***/ - STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE; -}; - -typedef struct IDirectInputDevice7W *LPDIRECTINPUTDEVICE7W; - -#undef INTERFACE -#define INTERFACE IDirectInputDevice7A - -DECLARE_INTERFACE_(IDirectInputDevice7A, IDirectInputDevice2A) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputDevice2A methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; - STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - - /*** IDirectInputDevice7A methods ***/ - STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE; -}; - -typedef struct IDirectInputDevice7A *LPDIRECTINPUTDEVICE7A; - -#ifdef UNICODE -#define IID_IDirectInputDevice7 IID_IDirectInputDevice7W -#define IDirectInputDevice7 IDirectInputDevice7W -#define IDirectInputDevice7Vtbl IDirectInputDevice7WVtbl -#else -#define IID_IDirectInputDevice7 IID_IDirectInputDevice7A -#define IDirectInputDevice7 IDirectInputDevice7A -#define IDirectInputDevice7Vtbl IDirectInputDevice7AVtbl -#endif -typedef struct IDirectInputDevice7 *LPDIRECTINPUTDEVICE7; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInputDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputDevice7_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputDevice7_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInputDevice7_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IDirectInputDevice7_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IDirectInputDevice7_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) -#define IDirectInputDevice7_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputDevice7_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) -#define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) -#define IDirectInputDevice7_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) -#define IDirectInputDevice7_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) -#define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) -#define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) -#define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInputDevice7_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) -#define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) -#define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) -#define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) -#define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) -#define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) -#define IDirectInputDevice7_Escape(p,a) (p)->lpVtbl->Escape(p,a) -#define IDirectInputDevice7_Poll(p) (p)->lpVtbl->Poll(p) -#define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) -#define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d) -#define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d) -#else -#define IDirectInputDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputDevice7_AddRef(p) (p)->AddRef() -#define IDirectInputDevice7_Release(p) (p)->Release() -#define IDirectInputDevice7_GetCapabilities(p,a) (p)->GetCapabilities(a) -#define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) -#define IDirectInputDevice7_GetProperty(p,a,b) (p)->GetProperty(a,b) -#define IDirectInputDevice7_SetProperty(p,a,b) (p)->SetProperty(a,b) -#define IDirectInputDevice7_Acquire(p) (p)->Acquire() -#define IDirectInputDevice7_Unacquire(p) (p)->Unacquire() -#define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) -#define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) -#define IDirectInputDevice7_SetDataFormat(p,a) (p)->SetDataFormat(a) -#define IDirectInputDevice7_SetEventNotification(p,a) (p)->SetEventNotification(a) -#define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) -#define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) -#define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInputDevice7_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) -#define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) -#define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) -#define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) -#define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) -#define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) -#define IDirectInputDevice7_Escape(p,a) (p)->Escape(a) -#define IDirectInputDevice7_Poll(p) (p)->Poll() -#define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) -#define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d) -#define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d) -#endif - -#endif /* DIJ_RINGZERO */ - -#endif /* DIRECTINPUT_VERSION >= 0x0700 */ - -#if(DIRECTINPUT_VERSION >= 0x0800) - -#ifndef DIJ_RINGZERO - -#undef INTERFACE -#define INTERFACE IDirectInputDevice8W - -DECLARE_INTERFACE_(IDirectInputDevice8W, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputDevice8W methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; - STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE; - STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATW,LPCWSTR,DWORD) PURE; - STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATW,LPCWSTR,DWORD) PURE; - STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERW) PURE; -}; - -typedef struct IDirectInputDevice8W *LPDIRECTINPUTDEVICE8W; - -#undef INTERFACE -#define INTERFACE IDirectInputDevice8A - -DECLARE_INTERFACE_(IDirectInputDevice8A, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputDevice8A methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; - STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; - STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE; - STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATA,LPCSTR,DWORD) PURE; - STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATA,LPCSTR,DWORD) PURE; - STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERA) PURE; -}; - -typedef struct IDirectInputDevice8A *LPDIRECTINPUTDEVICE8A; - -#ifdef UNICODE -#define IID_IDirectInputDevice8 IID_IDirectInputDevice8W -#define IDirectInputDevice8 IDirectInputDevice8W -#define IDirectInputDevice8Vtbl IDirectInputDevice8WVtbl -#else -#define IID_IDirectInputDevice8 IID_IDirectInputDevice8A -#define IDirectInputDevice8 IDirectInputDevice8A -#define IDirectInputDevice8Vtbl IDirectInputDevice8AVtbl -#endif -typedef struct IDirectInputDevice8 *LPDIRECTINPUTDEVICE8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInputDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputDevice8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputDevice8_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInputDevice8_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IDirectInputDevice8_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IDirectInputDevice8_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) -#define IDirectInputDevice8_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputDevice8_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) -#define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) -#define IDirectInputDevice8_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) -#define IDirectInputDevice8_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) -#define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) -#define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) -#define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInputDevice8_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) -#define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) -#define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) -#define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) -#define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) -#define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) -#define IDirectInputDevice8_Escape(p,a) (p)->lpVtbl->Escape(p,a) -#define IDirectInputDevice8_Poll(p) (p)->lpVtbl->Poll(p) -#define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) -#define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d) -#define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d) -#define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->lpVtbl->BuildActionMap(p,a,b,c) -#define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->lpVtbl->SetActionMap(p,a,b,c) -#define IDirectInputDevice8_GetImageInfo(p,a) (p)->lpVtbl->GetImageInfo(p,a) -#else -#define IDirectInputDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputDevice8_AddRef(p) (p)->AddRef() -#define IDirectInputDevice8_Release(p) (p)->Release() -#define IDirectInputDevice8_GetCapabilities(p,a) (p)->GetCapabilities(a) -#define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) -#define IDirectInputDevice8_GetProperty(p,a,b) (p)->GetProperty(a,b) -#define IDirectInputDevice8_SetProperty(p,a,b) (p)->SetProperty(a,b) -#define IDirectInputDevice8_Acquire(p) (p)->Acquire() -#define IDirectInputDevice8_Unacquire(p) (p)->Unacquire() -#define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) -#define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) -#define IDirectInputDevice8_SetDataFormat(p,a) (p)->SetDataFormat(a) -#define IDirectInputDevice8_SetEventNotification(p,a) (p)->SetEventNotification(a) -#define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) -#define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) -#define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInputDevice8_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) -#define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) -#define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) -#define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) -#define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) -#define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) -#define IDirectInputDevice8_Escape(p,a) (p)->Escape(a) -#define IDirectInputDevice8_Poll(p) (p)->Poll() -#define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) -#define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d) -#define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d) -#define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->BuildActionMap(a,b,c) -#define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->SetActionMap(a,b,c) -#define IDirectInputDevice8_GetImageInfo(p,a) (p)->GetImageInfo(a) -#endif - -#endif /* DIJ_RINGZERO */ - -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - -/**************************************************************************** - * - * Mouse - * - ****************************************************************************/ - -#ifndef DIJ_RINGZERO - -typedef struct _DIMOUSESTATE { - LONG lX; - LONG lY; - LONG lZ; - BYTE rgbButtons[4]; -} DIMOUSESTATE, *LPDIMOUSESTATE; - -#if DIRECTINPUT_VERSION >= 0x0700 -typedef struct _DIMOUSESTATE2 { - LONG lX; - LONG lY; - LONG lZ; - BYTE rgbButtons[8]; -} DIMOUSESTATE2, *LPDIMOUSESTATE2; -#endif - - -#define DIMOFS_X FIELD_OFFSET(DIMOUSESTATE, lX) -#define DIMOFS_Y FIELD_OFFSET(DIMOUSESTATE, lY) -#define DIMOFS_Z FIELD_OFFSET(DIMOUSESTATE, lZ) -#define DIMOFS_BUTTON0 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 0) -#define DIMOFS_BUTTON1 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 1) -#define DIMOFS_BUTTON2 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 2) -#define DIMOFS_BUTTON3 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 3) -#if (DIRECTINPUT_VERSION >= 0x0700) -#define DIMOFS_BUTTON4 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 4) -#define DIMOFS_BUTTON5 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 5) -#define DIMOFS_BUTTON6 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 6) -#define DIMOFS_BUTTON7 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 7) -#endif -#endif /* DIJ_RINGZERO */ - -/**************************************************************************** - * - * Keyboard - * - ****************************************************************************/ - -#ifndef DIJ_RINGZERO - -/**************************************************************************** - * - * DirectInput keyboard scan codes - * - ****************************************************************************/ -#define DIK_ESCAPE 0x01 -#define DIK_1 0x02 -#define DIK_2 0x03 -#define DIK_3 0x04 -#define DIK_4 0x05 -#define DIK_5 0x06 -#define DIK_6 0x07 -#define DIK_7 0x08 -#define DIK_8 0x09 -#define DIK_9 0x0A -#define DIK_0 0x0B -#define DIK_MINUS 0x0C /* - on main keyboard */ -#define DIK_EQUALS 0x0D -#define DIK_BACK 0x0E /* backspace */ -#define DIK_TAB 0x0F -#define DIK_Q 0x10 -#define DIK_W 0x11 -#define DIK_E 0x12 -#define DIK_R 0x13 -#define DIK_T 0x14 -#define DIK_Y 0x15 -#define DIK_U 0x16 -#define DIK_I 0x17 -#define DIK_O 0x18 -#define DIK_P 0x19 -#define DIK_LBRACKET 0x1A -#define DIK_RBRACKET 0x1B -#define DIK_RETURN 0x1C /* Enter on main keyboard */ -#define DIK_LCONTROL 0x1D -#define DIK_A 0x1E -#define DIK_S 0x1F -#define DIK_D 0x20 -#define DIK_F 0x21 -#define DIK_G 0x22 -#define DIK_H 0x23 -#define DIK_J 0x24 -#define DIK_K 0x25 -#define DIK_L 0x26 -#define DIK_SEMICOLON 0x27 -#define DIK_APOSTROPHE 0x28 -#define DIK_GRAVE 0x29 /* accent grave */ -#define DIK_LSHIFT 0x2A -#define DIK_BACKSLASH 0x2B -#define DIK_Z 0x2C -#define DIK_X 0x2D -#define DIK_C 0x2E -#define DIK_V 0x2F -#define DIK_B 0x30 -#define DIK_N 0x31 -#define DIK_M 0x32 -#define DIK_COMMA 0x33 -#define DIK_PERIOD 0x34 /* . on main keyboard */ -#define DIK_SLASH 0x35 /* / on main keyboard */ -#define DIK_RSHIFT 0x36 -#define DIK_MULTIPLY 0x37 /* * on numeric keypad */ -#define DIK_LMENU 0x38 /* left Alt */ -#define DIK_SPACE 0x39 -#define DIK_CAPITAL 0x3A -#define DIK_F1 0x3B -#define DIK_F2 0x3C -#define DIK_F3 0x3D -#define DIK_F4 0x3E -#define DIK_F5 0x3F -#define DIK_F6 0x40 -#define DIK_F7 0x41 -#define DIK_F8 0x42 -#define DIK_F9 0x43 -#define DIK_F10 0x44 -#define DIK_NUMLOCK 0x45 -#define DIK_SCROLL 0x46 /* Scroll Lock */ -#define DIK_NUMPAD7 0x47 -#define DIK_NUMPAD8 0x48 -#define DIK_NUMPAD9 0x49 -#define DIK_SUBTRACT 0x4A /* - on numeric keypad */ -#define DIK_NUMPAD4 0x4B -#define DIK_NUMPAD5 0x4C -#define DIK_NUMPAD6 0x4D -#define DIK_ADD 0x4E /* + on numeric keypad */ -#define DIK_NUMPAD1 0x4F -#define DIK_NUMPAD2 0x50 -#define DIK_NUMPAD3 0x51 -#define DIK_NUMPAD0 0x52 -#define DIK_DECIMAL 0x53 /* . on numeric keypad */ -#define DIK_OEM_102 0x56 /* <> or \| on RT 102-key keyboard (Non-U.S.) */ -#define DIK_F11 0x57 -#define DIK_F12 0x58 -#define DIK_F13 0x64 /* (NEC PC98) */ -#define DIK_F14 0x65 /* (NEC PC98) */ -#define DIK_F15 0x66 /* (NEC PC98) */ -#define DIK_KANA 0x70 /* (Japanese keyboard) */ -#define DIK_ABNT_C1 0x73 /* /? on Brazilian keyboard */ -#define DIK_CONVERT 0x79 /* (Japanese keyboard) */ -#define DIK_NOCONVERT 0x7B /* (Japanese keyboard) */ -#define DIK_YEN 0x7D /* (Japanese keyboard) */ -#define DIK_ABNT_C2 0x7E /* Numpad . on Brazilian keyboard */ -#define DIK_NUMPADEQUALS 0x8D /* = on numeric keypad (NEC PC98) */ -#define DIK_PREVTRACK 0x90 /* Previous Track (DIK_CIRCUMFLEX on Japanese keyboard) */ -#define DIK_AT 0x91 /* (NEC PC98) */ -#define DIK_COLON 0x92 /* (NEC PC98) */ -#define DIK_UNDERLINE 0x93 /* (NEC PC98) */ -#define DIK_KANJI 0x94 /* (Japanese keyboard) */ -#define DIK_STOP 0x95 /* (NEC PC98) */ -#define DIK_AX 0x96 /* (Japan AX) */ -#define DIK_UNLABELED 0x97 /* (J3100) */ -#define DIK_NEXTTRACK 0x99 /* Next Track */ -#define DIK_NUMPADENTER 0x9C /* Enter on numeric keypad */ -#define DIK_RCONTROL 0x9D -#define DIK_MUTE 0xA0 /* Mute */ -#define DIK_CALCULATOR 0xA1 /* Calculator */ -#define DIK_PLAYPAUSE 0xA2 /* Play / Pause */ -#define DIK_MEDIASTOP 0xA4 /* Media Stop */ -#define DIK_VOLUMEDOWN 0xAE /* Volume - */ -#define DIK_VOLUMEUP 0xB0 /* Volume + */ -#define DIK_WEBHOME 0xB2 /* Web home */ -#define DIK_NUMPADCOMMA 0xB3 /* , on numeric keypad (NEC PC98) */ -#define DIK_DIVIDE 0xB5 /* / on numeric keypad */ -#define DIK_SYSRQ 0xB7 -#define DIK_RMENU 0xB8 /* right Alt */ -#define DIK_PAUSE 0xC5 /* Pause */ -#define DIK_HOME 0xC7 /* Home on arrow keypad */ -#define DIK_UP 0xC8 /* UpArrow on arrow keypad */ -#define DIK_PRIOR 0xC9 /* PgUp on arrow keypad */ -#define DIK_LEFT 0xCB /* LeftArrow on arrow keypad */ -#define DIK_RIGHT 0xCD /* RightArrow on arrow keypad */ -#define DIK_END 0xCF /* End on arrow keypad */ -#define DIK_DOWN 0xD0 /* DownArrow on arrow keypad */ -#define DIK_NEXT 0xD1 /* PgDn on arrow keypad */ -#define DIK_INSERT 0xD2 /* Insert on arrow keypad */ -#define DIK_DELETE 0xD3 /* Delete on arrow keypad */ -#define DIK_LWIN 0xDB /* Left Windows key */ -#define DIK_RWIN 0xDC /* Right Windows key */ -#define DIK_APPS 0xDD /* AppMenu key */ -#define DIK_POWER 0xDE /* System Power */ -#define DIK_SLEEP 0xDF /* System Sleep */ -#define DIK_WAKE 0xE3 /* System Wake */ -#define DIK_WEBSEARCH 0xE5 /* Web Search */ -#define DIK_WEBFAVORITES 0xE6 /* Web Favorites */ -#define DIK_WEBREFRESH 0xE7 /* Web Refresh */ -#define DIK_WEBSTOP 0xE8 /* Web Stop */ -#define DIK_WEBFORWARD 0xE9 /* Web Forward */ -#define DIK_WEBBACK 0xEA /* Web Back */ -#define DIK_MYCOMPUTER 0xEB /* My Computer */ -#define DIK_MAIL 0xEC /* Mail */ -#define DIK_MEDIASELECT 0xED /* Media Select */ - -/* - * Alternate names for keys, to facilitate transition from DOS. - */ -#define DIK_BACKSPACE DIK_BACK /* backspace */ -#define DIK_NUMPADSTAR DIK_MULTIPLY /* * on numeric keypad */ -#define DIK_LALT DIK_LMENU /* left Alt */ -#define DIK_CAPSLOCK DIK_CAPITAL /* CapsLock */ -#define DIK_NUMPADMINUS DIK_SUBTRACT /* - on numeric keypad */ -#define DIK_NUMPADPLUS DIK_ADD /* + on numeric keypad */ -#define DIK_NUMPADPERIOD DIK_DECIMAL /* . on numeric keypad */ -#define DIK_NUMPADSLASH DIK_DIVIDE /* / on numeric keypad */ -#define DIK_RALT DIK_RMENU /* right Alt */ -#define DIK_UPARROW DIK_UP /* UpArrow on arrow keypad */ -#define DIK_PGUP DIK_PRIOR /* PgUp on arrow keypad */ -#define DIK_LEFTARROW DIK_LEFT /* LeftArrow on arrow keypad */ -#define DIK_RIGHTARROW DIK_RIGHT /* RightArrow on arrow keypad */ -#define DIK_DOWNARROW DIK_DOWN /* DownArrow on arrow keypad */ -#define DIK_PGDN DIK_NEXT /* PgDn on arrow keypad */ - -/* - * Alternate names for keys originally not used on US keyboards. - */ -#define DIK_CIRCUMFLEX DIK_PREVTRACK /* Japanese keyboard */ - -#endif /* DIJ_RINGZERO */ - -/**************************************************************************** - * - * Joystick - * - ****************************************************************************/ - -#ifndef DIJ_RINGZERO - -typedef struct DIJOYSTATE { - LONG lX; /* x-axis position */ - LONG lY; /* y-axis position */ - LONG lZ; /* z-axis position */ - LONG lRx; /* x-axis rotation */ - LONG lRy; /* y-axis rotation */ - LONG lRz; /* z-axis rotation */ - LONG rglSlider[2]; /* extra axes positions */ - DWORD rgdwPOV[4]; /* POV directions */ - BYTE rgbButtons[32]; /* 32 buttons */ -} DIJOYSTATE, *LPDIJOYSTATE; - -typedef struct DIJOYSTATE2 { - LONG lX; /* x-axis position */ - LONG lY; /* y-axis position */ - LONG lZ; /* z-axis position */ - LONG lRx; /* x-axis rotation */ - LONG lRy; /* y-axis rotation */ - LONG lRz; /* z-axis rotation */ - LONG rglSlider[2]; /* extra axes positions */ - DWORD rgdwPOV[4]; /* POV directions */ - BYTE rgbButtons[128]; /* 128 buttons */ - LONG lVX; /* x-axis velocity */ - LONG lVY; /* y-axis velocity */ - LONG lVZ; /* z-axis velocity */ - LONG lVRx; /* x-axis angular velocity */ - LONG lVRy; /* y-axis angular velocity */ - LONG lVRz; /* z-axis angular velocity */ - LONG rglVSlider[2]; /* extra axes velocities */ - LONG lAX; /* x-axis acceleration */ - LONG lAY; /* y-axis acceleration */ - LONG lAZ; /* z-axis acceleration */ - LONG lARx; /* x-axis angular acceleration */ - LONG lARy; /* y-axis angular acceleration */ - LONG lARz; /* z-axis angular acceleration */ - LONG rglASlider[2]; /* extra axes accelerations */ - LONG lFX; /* x-axis force */ - LONG lFY; /* y-axis force */ - LONG lFZ; /* z-axis force */ - LONG lFRx; /* x-axis torque */ - LONG lFRy; /* y-axis torque */ - LONG lFRz; /* z-axis torque */ - LONG rglFSlider[2]; /* extra axes forces */ -} DIJOYSTATE2, *LPDIJOYSTATE2; - -#define DIJOFS_X FIELD_OFFSET(DIJOYSTATE, lX) -#define DIJOFS_Y FIELD_OFFSET(DIJOYSTATE, lY) -#define DIJOFS_Z FIELD_OFFSET(DIJOYSTATE, lZ) -#define DIJOFS_RX FIELD_OFFSET(DIJOYSTATE, lRx) -#define DIJOFS_RY FIELD_OFFSET(DIJOYSTATE, lRy) -#define DIJOFS_RZ FIELD_OFFSET(DIJOYSTATE, lRz) -#define DIJOFS_SLIDER(n) (FIELD_OFFSET(DIJOYSTATE, rglSlider) + \ - (n) * sizeof(LONG)) -#define DIJOFS_POV(n) (FIELD_OFFSET(DIJOYSTATE, rgdwPOV) + \ - (n) * sizeof(DWORD)) -#define DIJOFS_BUTTON(n) (FIELD_OFFSET(DIJOYSTATE, rgbButtons) + (n)) -#define DIJOFS_BUTTON0 DIJOFS_BUTTON(0) -#define DIJOFS_BUTTON1 DIJOFS_BUTTON(1) -#define DIJOFS_BUTTON2 DIJOFS_BUTTON(2) -#define DIJOFS_BUTTON3 DIJOFS_BUTTON(3) -#define DIJOFS_BUTTON4 DIJOFS_BUTTON(4) -#define DIJOFS_BUTTON5 DIJOFS_BUTTON(5) -#define DIJOFS_BUTTON6 DIJOFS_BUTTON(6) -#define DIJOFS_BUTTON7 DIJOFS_BUTTON(7) -#define DIJOFS_BUTTON8 DIJOFS_BUTTON(8) -#define DIJOFS_BUTTON9 DIJOFS_BUTTON(9) -#define DIJOFS_BUTTON10 DIJOFS_BUTTON(10) -#define DIJOFS_BUTTON11 DIJOFS_BUTTON(11) -#define DIJOFS_BUTTON12 DIJOFS_BUTTON(12) -#define DIJOFS_BUTTON13 DIJOFS_BUTTON(13) -#define DIJOFS_BUTTON14 DIJOFS_BUTTON(14) -#define DIJOFS_BUTTON15 DIJOFS_BUTTON(15) -#define DIJOFS_BUTTON16 DIJOFS_BUTTON(16) -#define DIJOFS_BUTTON17 DIJOFS_BUTTON(17) -#define DIJOFS_BUTTON18 DIJOFS_BUTTON(18) -#define DIJOFS_BUTTON19 DIJOFS_BUTTON(19) -#define DIJOFS_BUTTON20 DIJOFS_BUTTON(20) -#define DIJOFS_BUTTON21 DIJOFS_BUTTON(21) -#define DIJOFS_BUTTON22 DIJOFS_BUTTON(22) -#define DIJOFS_BUTTON23 DIJOFS_BUTTON(23) -#define DIJOFS_BUTTON24 DIJOFS_BUTTON(24) -#define DIJOFS_BUTTON25 DIJOFS_BUTTON(25) -#define DIJOFS_BUTTON26 DIJOFS_BUTTON(26) -#define DIJOFS_BUTTON27 DIJOFS_BUTTON(27) -#define DIJOFS_BUTTON28 DIJOFS_BUTTON(28) -#define DIJOFS_BUTTON29 DIJOFS_BUTTON(29) -#define DIJOFS_BUTTON30 DIJOFS_BUTTON(30) -#define DIJOFS_BUTTON31 DIJOFS_BUTTON(31) - - -#endif /* DIJ_RINGZERO */ - -/**************************************************************************** - * - * IDirectInput - * - ****************************************************************************/ - -#ifndef DIJ_RINGZERO - -#define DIENUM_STOP 0 -#define DIENUM_CONTINUE 1 - -typedef BOOL (FAR PASCAL * LPDIENUMDEVICESCALLBACKA)(LPCDIDEVICEINSTANCEA, LPVOID); -typedef BOOL (FAR PASCAL * LPDIENUMDEVICESCALLBACKW)(LPCDIDEVICEINSTANCEW, LPVOID); -#ifdef UNICODE -#define LPDIENUMDEVICESCALLBACK LPDIENUMDEVICESCALLBACKW -#else -#define LPDIENUMDEVICESCALLBACK LPDIENUMDEVICESCALLBACKA -#endif // !UNICODE -typedef BOOL (FAR PASCAL * LPDICONFIGUREDEVICESCALLBACK)(IUnknown FAR *, LPVOID); - -#define DIEDFL_ALLDEVICES 0x00000000 -#define DIEDFL_ATTACHEDONLY 0x00000001 -#if(DIRECTINPUT_VERSION >= 0x0500) -#define DIEDFL_FORCEFEEDBACK 0x00000100 -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -#if(DIRECTINPUT_VERSION >= 0x050a) -#define DIEDFL_INCLUDEALIASES 0x00010000 -#define DIEDFL_INCLUDEPHANTOMS 0x00020000 -#endif /* DIRECTINPUT_VERSION >= 0x050a */ -#if(DIRECTINPUT_VERSION >= 0x0800) -#define DIEDFL_INCLUDEHIDDEN 0x00040000 -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - - -#if(DIRECTINPUT_VERSION >= 0x0800) -typedef BOOL (FAR PASCAL * LPDIENUMDEVICESBYSEMANTICSCBA)(LPCDIDEVICEINSTANCEA, LPDIRECTINPUTDEVICE8A, DWORD, DWORD, LPVOID); -typedef BOOL (FAR PASCAL * LPDIENUMDEVICESBYSEMANTICSCBW)(LPCDIDEVICEINSTANCEW, LPDIRECTINPUTDEVICE8W, DWORD, DWORD, LPVOID); -#ifdef UNICODE -#define LPDIENUMDEVICESBYSEMANTICSCB LPDIENUMDEVICESBYSEMANTICSCBW -#else -#define LPDIENUMDEVICESBYSEMANTICSCB LPDIENUMDEVICESBYSEMANTICSCBA -#endif // !UNICODE -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - -#if(DIRECTINPUT_VERSION >= 0x0800) -#define DIEDBS_MAPPEDPRI1 0x00000001 -#define DIEDBS_MAPPEDPRI2 0x00000002 -#define DIEDBS_RECENTDEVICE 0x00000010 -#define DIEDBS_NEWDEVICE 0x00000020 -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - -#if(DIRECTINPUT_VERSION >= 0x0800) -#define DIEDBSFL_ATTACHEDONLY 0x00000000 -#define DIEDBSFL_THISUSER 0x00000010 -#define DIEDBSFL_FORCEFEEDBACK DIEDFL_FORCEFEEDBACK -#define DIEDBSFL_AVAILABLEDEVICES 0x00001000 -#define DIEDBSFL_MULTIMICEKEYBOARDS 0x00002000 -#define DIEDBSFL_NONGAMINGDEVICES 0x00004000 -#define DIEDBSFL_VALID 0x00007110 -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - -#undef INTERFACE -#define INTERFACE IDirectInputW - -DECLARE_INTERFACE_(IDirectInputW, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputW methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; -}; - -typedef struct IDirectInputW *LPDIRECTINPUTW; - -#undef INTERFACE -#define INTERFACE IDirectInputA - -DECLARE_INTERFACE_(IDirectInputA, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputA methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; -}; - -typedef struct IDirectInputA *LPDIRECTINPUTA; - -#ifdef UNICODE -#define IID_IDirectInput IID_IDirectInputW -#define IDirectInput IDirectInputW -#define IDirectInputVtbl IDirectInputWVtbl -#else -#define IID_IDirectInput IID_IDirectInputA -#define IDirectInput IDirectInputA -#define IDirectInputVtbl IDirectInputAVtbl -#endif -typedef struct IDirectInput *LPDIRECTINPUT; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInput_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInput_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInput_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInput_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) -#define IDirectInput_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectInput_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) -#define IDirectInput_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInput_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#else -#define IDirectInput_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInput_AddRef(p) (p)->AddRef() -#define IDirectInput_Release(p) (p)->Release() -#define IDirectInput_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) -#define IDirectInput_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectInput_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) -#define IDirectInput_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInput_Initialize(p,a,b) (p)->Initialize(a,b) -#endif - -#undef INTERFACE -#define INTERFACE IDirectInput2W - -DECLARE_INTERFACE_(IDirectInput2W, IDirectInputW) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputW methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; - - /*** IDirectInput2W methods ***/ - STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE; -}; - -typedef struct IDirectInput2W *LPDIRECTINPUT2W; - -#undef INTERFACE -#define INTERFACE IDirectInput2A - -DECLARE_INTERFACE_(IDirectInput2A, IDirectInputA) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputA methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; - - /*** IDirectInput2A methods ***/ - STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE; -}; - -typedef struct IDirectInput2A *LPDIRECTINPUT2A; - -#ifdef UNICODE -#define IID_IDirectInput2 IID_IDirectInput2W -#define IDirectInput2 IDirectInput2W -#define IDirectInput2Vtbl IDirectInput2WVtbl -#else -#define IID_IDirectInput2 IID_IDirectInput2A -#define IDirectInput2 IDirectInput2A -#define IDirectInput2Vtbl IDirectInput2AVtbl -#endif -typedef struct IDirectInput2 *LPDIRECTINPUT2; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInput2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInput2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInput2_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInput2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) -#define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectInput2_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) -#define IDirectInput2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInput2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectInput2_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) -#else -#define IDirectInput2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInput2_AddRef(p) (p)->AddRef() -#define IDirectInput2_Release(p) (p)->Release() -#define IDirectInput2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) -#define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectInput2_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) -#define IDirectInput2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInput2_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectInput2_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) -#endif - - -#undef INTERFACE -#define INTERFACE IDirectInput7W - -DECLARE_INTERFACE_(IDirectInput7W, IDirectInput2W) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInput2W methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; - STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE; - - /*** IDirectInput7W methods ***/ - STDMETHOD(CreateDeviceEx)(THIS_ REFGUID,REFIID,LPVOID *,LPUNKNOWN) PURE; -}; - -typedef struct IDirectInput7W *LPDIRECTINPUT7W; - -#undef INTERFACE -#define INTERFACE IDirectInput7A - -DECLARE_INTERFACE_(IDirectInput7A, IDirectInput2A) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInput2A methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; - STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE; - - /*** IDirectInput7A methods ***/ - STDMETHOD(CreateDeviceEx)(THIS_ REFGUID,REFIID,LPVOID *,LPUNKNOWN) PURE; -}; - -typedef struct IDirectInput7A *LPDIRECTINPUT7A; - -#ifdef UNICODE -#define IID_IDirectInput7 IID_IDirectInput7W -#define IDirectInput7 IDirectInput7W -#define IDirectInput7Vtbl IDirectInput7WVtbl -#else -#define IID_IDirectInput7 IID_IDirectInput7A -#define IDirectInput7 IDirectInput7A -#define IDirectInput7Vtbl IDirectInput7AVtbl -#endif -typedef struct IDirectInput7 *LPDIRECTINPUT7; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInput7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInput7_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInput7_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInput7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) -#define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectInput7_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) -#define IDirectInput7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInput7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectInput7_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) -#define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d) -#else -#define IDirectInput7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInput7_AddRef(p) (p)->AddRef() -#define IDirectInput7_Release(p) (p)->Release() -#define IDirectInput7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) -#define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectInput7_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) -#define IDirectInput7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInput7_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectInput7_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) -#define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->CreateDeviceEx(a,b,c,d) -#endif - -#if(DIRECTINPUT_VERSION >= 0x0800) -#undef INTERFACE -#define INTERFACE IDirectInput8W - -DECLARE_INTERFACE_(IDirectInput8W, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInput8W methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICE8W *,LPUNKNOWN) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; - STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE; - STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCWSTR,LPDIACTIONFORMATW,LPDIENUMDEVICESBYSEMANTICSCBW,LPVOID,DWORD) PURE; - STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK,LPDICONFIGUREDEVICESPARAMSW,DWORD,LPVOID) PURE; -}; - -typedef struct IDirectInput8W *LPDIRECTINPUT8W; - -#undef INTERFACE -#define INTERFACE IDirectInput8A - -DECLARE_INTERFACE_(IDirectInput8A, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInput8A methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICE8A *,LPUNKNOWN) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; - STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE; - STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCSTR,LPDIACTIONFORMATA,LPDIENUMDEVICESBYSEMANTICSCBA,LPVOID,DWORD) PURE; - STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK,LPDICONFIGUREDEVICESPARAMSA,DWORD,LPVOID) PURE; -}; - -typedef struct IDirectInput8A *LPDIRECTINPUT8A; - -#ifdef UNICODE -#define IID_IDirectInput8 IID_IDirectInput8W -#define IDirectInput8 IDirectInput8W -#define IDirectInput8Vtbl IDirectInput8WVtbl -#else -#define IID_IDirectInput8 IID_IDirectInput8A -#define IDirectInput8 IDirectInput8A -#define IDirectInput8Vtbl IDirectInput8AVtbl -#endif -typedef struct IDirectInput8 *LPDIRECTINPUT8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInput8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInput8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInput8_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInput8_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) -#define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectInput8_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) -#define IDirectInput8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInput8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectInput8_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) -#define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->lpVtbl->EnumDevicesBySemantics(p,a,b,c,d,e) -#define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->lpVtbl->ConfigureDevices(p,a,b,c,d) -#else -#define IDirectInput8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInput8_AddRef(p) (p)->AddRef() -#define IDirectInput8_Release(p) (p)->Release() -#define IDirectInput8_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) -#define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectInput8_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) -#define IDirectInput8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInput8_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectInput8_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) -#define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->EnumDevicesBySemantics(a,b,c,d,e) -#define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->ConfigureDevices(a,b,c,d) -#endif -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - -#if DIRECTINPUT_VERSION > 0x0700 - -extern HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID *ppvOut, LPUNKNOWN punkOuter); - -#else -extern HRESULT WINAPI DirectInputCreateA(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA *ppDI, LPUNKNOWN punkOuter); -extern HRESULT WINAPI DirectInputCreateW(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTW *ppDI, LPUNKNOWN punkOuter); -#ifdef UNICODE -#define DirectInputCreate DirectInputCreateW -#else -#define DirectInputCreate DirectInputCreateA -#endif // !UNICODE - -extern HRESULT WINAPI DirectInputCreateEx(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID *ppvOut, LPUNKNOWN punkOuter); - -#endif /* DIRECTINPUT_VERSION > 0x700 */ - -#endif /* DIJ_RINGZERO */ - - -/**************************************************************************** - * - * Return Codes - * - ****************************************************************************/ - -/* - * The operation completed successfully. - */ -#define DI_OK S_OK - -/* - * The device exists but is not currently attached. - */ -#define DI_NOTATTACHED S_FALSE - -/* - * The device buffer overflowed. Some input was lost. - */ -#define DI_BUFFEROVERFLOW S_FALSE - -/* - * The change in device properties had no effect. - */ -#define DI_PROPNOEFFECT S_FALSE - -/* - * The operation had no effect. - */ -#define DI_NOEFFECT S_FALSE - -/* - * The device is a polled device. As a result, device buffering - * will not collect any data and event notifications will not be - * signalled until GetDeviceState is called. - */ -#define DI_POLLEDDEVICE ((HRESULT)0x00000002L) - -/* - * The parameters of the effect were successfully updated by - * IDirectInputEffect::SetParameters, but the effect was not - * downloaded because the device is not exclusively acquired - * or because the DIEP_NODOWNLOAD flag was passed. - */ -#define DI_DOWNLOADSKIPPED ((HRESULT)0x00000003L) - -/* - * The parameters of the effect were successfully updated by - * IDirectInputEffect::SetParameters, but in order to change - * the parameters, the effect needed to be restarted. - */ -#define DI_EFFECTRESTARTED ((HRESULT)0x00000004L) - -/* - * The parameters of the effect were successfully updated by - * IDirectInputEffect::SetParameters, but some of them were - * beyond the capabilities of the device and were truncated. - */ -#define DI_TRUNCATED ((HRESULT)0x00000008L) - -/* - * The settings have been successfully applied but could not be - * persisted. - */ -#define DI_SETTINGSNOTSAVED ((HRESULT)0x0000000BL) - -/* - * Equal to DI_EFFECTRESTARTED | DI_TRUNCATED. - */ -#define DI_TRUNCATEDANDRESTARTED ((HRESULT)0x0000000CL) - -/* - * A SUCCESS code indicating that settings cannot be modified. - */ -#define DI_WRITEPROTECT ((HRESULT)0x00000013L) - -/* - * The application requires a newer version of DirectInput. - */ -#define DIERR_OLDDIRECTINPUTVERSION \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_OLD_WIN_VERSION) - -/* - * The application was written for an unsupported prerelease version - * of DirectInput. - */ -#define DIERR_BETADIRECTINPUTVERSION \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_RMODE_APP) - -/* - * The object could not be created due to an incompatible driver version - * or mismatched or incomplete driver components. - */ -#define DIERR_BADDRIVERVER \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BAD_DRIVER_LEVEL) - -/* - * The device or device instance or effect is not registered with DirectInput. - */ -#define DIERR_DEVICENOTREG REGDB_E_CLASSNOTREG - -/* - * The requested object does not exist. - */ -#define DIERR_NOTFOUND \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND) - -/* - * The requested object does not exist. - */ -#define DIERR_OBJECTNOTFOUND \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND) - -/* - * An invalid parameter was passed to the returning function, - * or the object was not in a state that admitted the function - * to be called. - */ -#define DIERR_INVALIDPARAM E_INVALIDARG - -/* - * The specified interface is not supported by the object - */ -#define DIERR_NOINTERFACE E_NOINTERFACE - -/* - * An undetermined error occured inside the DInput subsystem - */ -#define DIERR_GENERIC E_FAIL - -/* - * The DInput subsystem couldn't allocate sufficient memory to complete the - * caller's request. - */ -#define DIERR_OUTOFMEMORY E_OUTOFMEMORY - -/* - * The function called is not supported at this time - */ -#define DIERR_UNSUPPORTED E_NOTIMPL - -/* - * This object has not been initialized - */ -#define DIERR_NOTINITIALIZED \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NOT_READY) - -/* - * This object is already initialized - */ -#define DIERR_ALREADYINITIALIZED \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_ALREADY_INITIALIZED) - -/* - * This object does not support aggregation - */ -#define DIERR_NOAGGREGATION CLASS_E_NOAGGREGATION - -/* - * Another app has a higher priority level, preventing this call from - * succeeding. - */ -#define DIERR_OTHERAPPHASPRIO E_ACCESSDENIED - -/* - * Access to the device has been lost. It must be re-acquired. - */ -#define DIERR_INPUTLOST \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_READ_FAULT) - -/* - * The operation cannot be performed while the device is acquired. - */ -#define DIERR_ACQUIRED \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BUSY) - -/* - * The operation cannot be performed unless the device is acquired. - */ -#define DIERR_NOTACQUIRED \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_INVALID_ACCESS) - -/* - * The specified property cannot be changed. - */ -#define DIERR_READONLY E_ACCESSDENIED - -/* - * The device already has an event notification associated with it. - */ -#define DIERR_HANDLEEXISTS E_ACCESSDENIED - -/* - * Data is not yet available. - */ -#ifndef E_PENDING -#define E_PENDING 0x8000000AL -#endif - -/* - * Unable to IDirectInputJoyConfig_Acquire because the user - * does not have sufficient privileges to change the joystick - * configuration. - */ -#define DIERR_INSUFFICIENTPRIVS 0x80040200L - -/* - * The device is full. - */ -#define DIERR_DEVICEFULL 0x80040201L - -/* - * Not all the requested information fit into the buffer. - */ -#define DIERR_MOREDATA 0x80040202L - -/* - * The effect is not downloaded. - */ -#define DIERR_NOTDOWNLOADED 0x80040203L - -/* - * The device cannot be reinitialized because there are still effects - * attached to it. - */ -#define DIERR_HASEFFECTS 0x80040204L - -/* - * The operation cannot be performed unless the device is acquired - * in DISCL_EXCLUSIVE mode. - */ -#define DIERR_NOTEXCLUSIVEACQUIRED 0x80040205L - -/* - * The effect could not be downloaded because essential information - * is missing. For example, no axes have been associated with the - * effect, or no type-specific information has been created. - */ -#define DIERR_INCOMPLETEEFFECT 0x80040206L - -/* - * Attempted to read buffered device data from a device that is - * not buffered. - */ -#define DIERR_NOTBUFFERED 0x80040207L - -/* - * An attempt was made to modify parameters of an effect while it is - * playing. Not all hardware devices support altering the parameters - * of an effect while it is playing. - */ -#define DIERR_EFFECTPLAYING 0x80040208L - -/* - * The operation could not be completed because the device is not - * plugged in. - */ -#define DIERR_UNPLUGGED 0x80040209L - -/* - * SendDeviceData failed because more information was requested - * to be sent than can be sent to the device. Some devices have - * restrictions on how much data can be sent to them. (For example, - * there might be a limit on the number of buttons that can be - * pressed at once.) - */ -#define DIERR_REPORTFULL 0x8004020AL - - -/* - * A mapper file function failed because reading or writing the user or IHV - * settings file failed. - */ -#define DIERR_MAPFILEFAIL 0x8004020BL - - -/*--- DINPUT Mapper Definitions: New for Dx8 ---*/ - - -/*--- Keyboard - Physical Keyboard Device ---*/ - -#define DIKEYBOARD_ESCAPE 0x81000401 -#define DIKEYBOARD_1 0x81000402 -#define DIKEYBOARD_2 0x81000403 -#define DIKEYBOARD_3 0x81000404 -#define DIKEYBOARD_4 0x81000405 -#define DIKEYBOARD_5 0x81000406 -#define DIKEYBOARD_6 0x81000407 -#define DIKEYBOARD_7 0x81000408 -#define DIKEYBOARD_8 0x81000409 -#define DIKEYBOARD_9 0x8100040A -#define DIKEYBOARD_0 0x8100040B -#define DIKEYBOARD_MINUS 0x8100040C /* - on main keyboard */ -#define DIKEYBOARD_EQUALS 0x8100040D -#define DIKEYBOARD_BACK 0x8100040E /* backspace */ -#define DIKEYBOARD_TAB 0x8100040F -#define DIKEYBOARD_Q 0x81000410 -#define DIKEYBOARD_W 0x81000411 -#define DIKEYBOARD_E 0x81000412 -#define DIKEYBOARD_R 0x81000413 -#define DIKEYBOARD_T 0x81000414 -#define DIKEYBOARD_Y 0x81000415 -#define DIKEYBOARD_U 0x81000416 -#define DIKEYBOARD_I 0x81000417 -#define DIKEYBOARD_O 0x81000418 -#define DIKEYBOARD_P 0x81000419 -#define DIKEYBOARD_LBRACKET 0x8100041A -#define DIKEYBOARD_RBRACKET 0x8100041B -#define DIKEYBOARD_RETURN 0x8100041C /* Enter on main keyboard */ -#define DIKEYBOARD_LCONTROL 0x8100041D -#define DIKEYBOARD_A 0x8100041E -#define DIKEYBOARD_S 0x8100041F -#define DIKEYBOARD_D 0x81000420 -#define DIKEYBOARD_F 0x81000421 -#define DIKEYBOARD_G 0x81000422 -#define DIKEYBOARD_H 0x81000423 -#define DIKEYBOARD_J 0x81000424 -#define DIKEYBOARD_K 0x81000425 -#define DIKEYBOARD_L 0x81000426 -#define DIKEYBOARD_SEMICOLON 0x81000427 -#define DIKEYBOARD_APOSTROPHE 0x81000428 -#define DIKEYBOARD_GRAVE 0x81000429 /* accent grave */ -#define DIKEYBOARD_LSHIFT 0x8100042A -#define DIKEYBOARD_BACKSLASH 0x8100042B -#define DIKEYBOARD_Z 0x8100042C -#define DIKEYBOARD_X 0x8100042D -#define DIKEYBOARD_C 0x8100042E -#define DIKEYBOARD_V 0x8100042F -#define DIKEYBOARD_B 0x81000430 -#define DIKEYBOARD_N 0x81000431 -#define DIKEYBOARD_M 0x81000432 -#define DIKEYBOARD_COMMA 0x81000433 -#define DIKEYBOARD_PERIOD 0x81000434 /* . on main keyboard */ -#define DIKEYBOARD_SLASH 0x81000435 /* / on main keyboard */ -#define DIKEYBOARD_RSHIFT 0x81000436 -#define DIKEYBOARD_MULTIPLY 0x81000437 /* * on numeric keypad */ -#define DIKEYBOARD_LMENU 0x81000438 /* left Alt */ -#define DIKEYBOARD_SPACE 0x81000439 -#define DIKEYBOARD_CAPITAL 0x8100043A -#define DIKEYBOARD_F1 0x8100043B -#define DIKEYBOARD_F2 0x8100043C -#define DIKEYBOARD_F3 0x8100043D -#define DIKEYBOARD_F4 0x8100043E -#define DIKEYBOARD_F5 0x8100043F -#define DIKEYBOARD_F6 0x81000440 -#define DIKEYBOARD_F7 0x81000441 -#define DIKEYBOARD_F8 0x81000442 -#define DIKEYBOARD_F9 0x81000443 -#define DIKEYBOARD_F10 0x81000444 -#define DIKEYBOARD_NUMLOCK 0x81000445 -#define DIKEYBOARD_SCROLL 0x81000446 /* Scroll Lock */ -#define DIKEYBOARD_NUMPAD7 0x81000447 -#define DIKEYBOARD_NUMPAD8 0x81000448 -#define DIKEYBOARD_NUMPAD9 0x81000449 -#define DIKEYBOARD_SUBTRACT 0x8100044A /* - on numeric keypad */ -#define DIKEYBOARD_NUMPAD4 0x8100044B -#define DIKEYBOARD_NUMPAD5 0x8100044C -#define DIKEYBOARD_NUMPAD6 0x8100044D -#define DIKEYBOARD_ADD 0x8100044E /* + on numeric keypad */ -#define DIKEYBOARD_NUMPAD1 0x8100044F -#define DIKEYBOARD_NUMPAD2 0x81000450 -#define DIKEYBOARD_NUMPAD3 0x81000451 -#define DIKEYBOARD_NUMPAD0 0x81000452 -#define DIKEYBOARD_DECIMAL 0x81000453 /* . on numeric keypad */ -#define DIKEYBOARD_OEM_102 0x81000456 /* <> or \| on RT 102-key keyboard (Non-U.S.) */ -#define DIKEYBOARD_F11 0x81000457 -#define DIKEYBOARD_F12 0x81000458 -#define DIKEYBOARD_F13 0x81000464 /* (NEC PC98) */ -#define DIKEYBOARD_F14 0x81000465 /* (NEC PC98) */ -#define DIKEYBOARD_F15 0x81000466 /* (NEC PC98) */ -#define DIKEYBOARD_KANA 0x81000470 /* (Japanese keyboard) */ -#define DIKEYBOARD_ABNT_C1 0x81000473 /* /? on Brazilian keyboard */ -#define DIKEYBOARD_CONVERT 0x81000479 /* (Japanese keyboard) */ -#define DIKEYBOARD_NOCONVERT 0x8100047B /* (Japanese keyboard) */ -#define DIKEYBOARD_YEN 0x8100047D /* (Japanese keyboard) */ -#define DIKEYBOARD_ABNT_C2 0x8100047E /* Numpad . on Brazilian keyboard */ -#define DIKEYBOARD_NUMPADEQUALS 0x8100048D /* = on numeric keypad (NEC PC98) */ -#define DIKEYBOARD_PREVTRACK 0x81000490 /* Previous Track (DIK_CIRCUMFLEX on Japanese keyboard) */ -#define DIKEYBOARD_AT 0x81000491 /* (NEC PC98) */ -#define DIKEYBOARD_COLON 0x81000492 /* (NEC PC98) */ -#define DIKEYBOARD_UNDERLINE 0x81000493 /* (NEC PC98) */ -#define DIKEYBOARD_KANJI 0x81000494 /* (Japanese keyboard) */ -#define DIKEYBOARD_STOP 0x81000495 /* (NEC PC98) */ -#define DIKEYBOARD_AX 0x81000496 /* (Japan AX) */ -#define DIKEYBOARD_UNLABELED 0x81000497 /* (J3100) */ -#define DIKEYBOARD_NEXTTRACK 0x81000499 /* Next Track */ -#define DIKEYBOARD_NUMPADENTER 0x8100049C /* Enter on numeric keypad */ -#define DIKEYBOARD_RCONTROL 0x8100049D -#define DIKEYBOARD_MUTE 0x810004A0 /* Mute */ -#define DIKEYBOARD_CALCULATOR 0x810004A1 /* Calculator */ -#define DIKEYBOARD_PLAYPAUSE 0x810004A2 /* Play / Pause */ -#define DIKEYBOARD_MEDIASTOP 0x810004A4 /* Media Stop */ -#define DIKEYBOARD_VOLUMEDOWN 0x810004AE /* Volume - */ -#define DIKEYBOARD_VOLUMEUP 0x810004B0 /* Volume + */ -#define DIKEYBOARD_WEBHOME 0x810004B2 /* Web home */ -#define DIKEYBOARD_NUMPADCOMMA 0x810004B3 /* , on numeric keypad (NEC PC98) */ -#define DIKEYBOARD_DIVIDE 0x810004B5 /* / on numeric keypad */ -#define DIKEYBOARD_SYSRQ 0x810004B7 -#define DIKEYBOARD_RMENU 0x810004B8 /* right Alt */ -#define DIKEYBOARD_PAUSE 0x810004C5 /* Pause */ -#define DIKEYBOARD_HOME 0x810004C7 /* Home on arrow keypad */ -#define DIKEYBOARD_UP 0x810004C8 /* UpArrow on arrow keypad */ -#define DIKEYBOARD_PRIOR 0x810004C9 /* PgUp on arrow keypad */ -#define DIKEYBOARD_LEFT 0x810004CB /* LeftArrow on arrow keypad */ -#define DIKEYBOARD_RIGHT 0x810004CD /* RightArrow on arrow keypad */ -#define DIKEYBOARD_END 0x810004CF /* End on arrow keypad */ -#define DIKEYBOARD_DOWN 0x810004D0 /* DownArrow on arrow keypad */ -#define DIKEYBOARD_NEXT 0x810004D1 /* PgDn on arrow keypad */ -#define DIKEYBOARD_INSERT 0x810004D2 /* Insert on arrow keypad */ -#define DIKEYBOARD_DELETE 0x810004D3 /* Delete on arrow keypad */ -#define DIKEYBOARD_LWIN 0x810004DB /* Left Windows key */ -#define DIKEYBOARD_RWIN 0x810004DC /* Right Windows key */ -#define DIKEYBOARD_APPS 0x810004DD /* AppMenu key */ -#define DIKEYBOARD_POWER 0x810004DE /* System Power */ -#define DIKEYBOARD_SLEEP 0x810004DF /* System Sleep */ -#define DIKEYBOARD_WAKE 0x810004E3 /* System Wake */ -#define DIKEYBOARD_WEBSEARCH 0x810004E5 /* Web Search */ -#define DIKEYBOARD_WEBFAVORITES 0x810004E6 /* Web Favorites */ -#define DIKEYBOARD_WEBREFRESH 0x810004E7 /* Web Refresh */ -#define DIKEYBOARD_WEBSTOP 0x810004E8 /* Web Stop */ -#define DIKEYBOARD_WEBFORWARD 0x810004E9 /* Web Forward */ -#define DIKEYBOARD_WEBBACK 0x810004EA /* Web Back */ -#define DIKEYBOARD_MYCOMPUTER 0x810004EB /* My Computer */ -#define DIKEYBOARD_MAIL 0x810004EC /* Mail */ -#define DIKEYBOARD_MEDIASELECT 0x810004ED /* Media Select */ - - -/*--- MOUSE - Physical Mouse Device ---*/ - -#define DIMOUSE_XAXISAB (0x82000200 |DIMOFS_X ) /* X Axis-absolute: Some mice natively report absolute coordinates */ -#define DIMOUSE_YAXISAB (0x82000200 |DIMOFS_Y ) /* Y Axis-absolute: Some mice natively report absolute coordinates */ -#define DIMOUSE_XAXIS (0x82000300 |DIMOFS_X ) /* X Axis */ -#define DIMOUSE_YAXIS (0x82000300 |DIMOFS_Y ) /* Y Axis */ -#define DIMOUSE_WHEEL (0x82000300 |DIMOFS_Z ) /* Z Axis */ -#define DIMOUSE_BUTTON0 (0x82000400 |DIMOFS_BUTTON0) /* Button 0 */ -#define DIMOUSE_BUTTON1 (0x82000400 |DIMOFS_BUTTON1) /* Button 1 */ -#define DIMOUSE_BUTTON2 (0x82000400 |DIMOFS_BUTTON2) /* Button 2 */ -#define DIMOUSE_BUTTON3 (0x82000400 |DIMOFS_BUTTON3) /* Button 3 */ -#define DIMOUSE_BUTTON4 (0x82000400 |DIMOFS_BUTTON4) /* Button 4 */ -#define DIMOUSE_BUTTON5 (0x82000400 |DIMOFS_BUTTON5) /* Button 5 */ -#define DIMOUSE_BUTTON6 (0x82000400 |DIMOFS_BUTTON6) /* Button 6 */ -#define DIMOUSE_BUTTON7 (0x82000400 |DIMOFS_BUTTON7) /* Button 7 */ - - -/*--- VOICE - Physical Dplay Voice Device ---*/ - -#define DIVOICE_CHANNEL1 0x83000401 -#define DIVOICE_CHANNEL2 0x83000402 -#define DIVOICE_CHANNEL3 0x83000403 -#define DIVOICE_CHANNEL4 0x83000404 -#define DIVOICE_CHANNEL5 0x83000405 -#define DIVOICE_CHANNEL6 0x83000406 -#define DIVOICE_CHANNEL7 0x83000407 -#define DIVOICE_CHANNEL8 0x83000408 -#define DIVOICE_TEAM 0x83000409 -#define DIVOICE_ALL 0x8300040A -#define DIVOICE_RECORDMUTE 0x8300040B -#define DIVOICE_PLAYBACKMUTE 0x8300040C -#define DIVOICE_TRANSMIT 0x8300040D - -#define DIVOICE_VOICECOMMAND 0x83000410 - - -/*--- Driving Simulator - Racing - Vehicle control is primary objective ---*/ -#define DIVIRTUAL_DRIVING_RACE 0x01000000 -#define DIAXIS_DRIVINGR_STEER 0x01008A01 /* Steering */ -#define DIAXIS_DRIVINGR_ACCELERATE 0x01039202 /* Accelerate */ -#define DIAXIS_DRIVINGR_BRAKE 0x01041203 /* Brake-Axis */ -#define DIBUTTON_DRIVINGR_SHIFTUP 0x01000C01 /* Shift to next higher gear */ -#define DIBUTTON_DRIVINGR_SHIFTDOWN 0x01000C02 /* Shift to next lower gear */ -#define DIBUTTON_DRIVINGR_VIEW 0x01001C03 /* Cycle through view options */ -#define DIBUTTON_DRIVINGR_MENU 0x010004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIAXIS_DRIVINGR_ACCEL_AND_BRAKE 0x01014A04 /* Some devices combine accelerate and brake in a single axis */ -#define DIHATSWITCH_DRIVINGR_GLANCE 0x01004601 /* Look around */ -#define DIBUTTON_DRIVINGR_BRAKE 0x01004C04 /* Brake-button */ -#define DIBUTTON_DRIVINGR_DASHBOARD 0x01004405 /* Select next dashboard option */ -#define DIBUTTON_DRIVINGR_AIDS 0x01004406 /* Driver correction aids */ -#define DIBUTTON_DRIVINGR_MAP 0x01004407 /* Display Driving Map */ -#define DIBUTTON_DRIVINGR_BOOST 0x01004408 /* Turbo Boost */ -#define DIBUTTON_DRIVINGR_PIT 0x01004409 /* Pit stop notification */ -#define DIBUTTON_DRIVINGR_ACCELERATE_LINK 0x0103D4E0 /* Fallback Accelerate button */ -#define DIBUTTON_DRIVINGR_STEER_LEFT_LINK 0x0100CCE4 /* Fallback Steer Left button */ -#define DIBUTTON_DRIVINGR_STEER_RIGHT_LINK 0x0100CCEC /* Fallback Steer Right button */ -#define DIBUTTON_DRIVINGR_GLANCE_LEFT_LINK 0x0107C4E4 /* Fallback Glance Left button */ -#define DIBUTTON_DRIVINGR_GLANCE_RIGHT_LINK 0x0107C4EC /* Fallback Glance Right button */ -#define DIBUTTON_DRIVINGR_DEVICE 0x010044FE /* Show input device and controls */ -#define DIBUTTON_DRIVINGR_PAUSE 0x010044FC /* Start / Pause / Restart game */ - -/*--- Driving Simulator - Combat - Combat from within a vehicle is primary objective ---*/ -#define DIVIRTUAL_DRIVING_COMBAT 0x02000000 -#define DIAXIS_DRIVINGC_STEER 0x02008A01 /* Steering */ -#define DIAXIS_DRIVINGC_ACCELERATE 0x02039202 /* Accelerate */ -#define DIAXIS_DRIVINGC_BRAKE 0x02041203 /* Brake-axis */ -#define DIBUTTON_DRIVINGC_FIRE 0x02000C01 /* Fire */ -#define DIBUTTON_DRIVINGC_WEAPONS 0x02000C02 /* Select next weapon */ -#define DIBUTTON_DRIVINGC_TARGET 0x02000C03 /* Select next available target */ -#define DIBUTTON_DRIVINGC_MENU 0x020004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIAXIS_DRIVINGC_ACCEL_AND_BRAKE 0x02014A04 /* Some devices combine accelerate and brake in a single axis */ -#define DIHATSWITCH_DRIVINGC_GLANCE 0x02004601 /* Look around */ -#define DIBUTTON_DRIVINGC_SHIFTUP 0x02004C04 /* Shift to next higher gear */ -#define DIBUTTON_DRIVINGC_SHIFTDOWN 0x02004C05 /* Shift to next lower gear */ -#define DIBUTTON_DRIVINGC_DASHBOARD 0x02004406 /* Select next dashboard option */ -#define DIBUTTON_DRIVINGC_AIDS 0x02004407 /* Driver correction aids */ -#define DIBUTTON_DRIVINGC_BRAKE 0x02004C08 /* Brake-button */ -#define DIBUTTON_DRIVINGC_FIRESECONDARY 0x02004C09 /* Alternative fire button */ -#define DIBUTTON_DRIVINGC_ACCELERATE_LINK 0x0203D4E0 /* Fallback Accelerate button */ -#define DIBUTTON_DRIVINGC_STEER_LEFT_LINK 0x0200CCE4 /* Fallback Steer Left button */ -#define DIBUTTON_DRIVINGC_STEER_RIGHT_LINK 0x0200CCEC /* Fallback Steer Right button */ -#define DIBUTTON_DRIVINGC_GLANCE_LEFT_LINK 0x0207C4E4 /* Fallback Glance Left button */ -#define DIBUTTON_DRIVINGC_GLANCE_RIGHT_LINK 0x0207C4EC /* Fallback Glance Right button */ -#define DIBUTTON_DRIVINGC_DEVICE 0x020044FE /* Show input device and controls */ -#define DIBUTTON_DRIVINGC_PAUSE 0x020044FC /* Start / Pause / Restart game */ - -/*--- Driving Simulator - Tank - Combat from withing a tank is primary objective ---*/ -#define DIVIRTUAL_DRIVING_TANK 0x03000000 -#define DIAXIS_DRIVINGT_STEER 0x03008A01 /* Turn tank left / right */ -#define DIAXIS_DRIVINGT_BARREL 0x03010202 /* Raise / lower barrel */ -#define DIAXIS_DRIVINGT_ACCELERATE 0x03039203 /* Accelerate */ -#define DIAXIS_DRIVINGT_ROTATE 0x03020204 /* Turn barrel left / right */ -#define DIBUTTON_DRIVINGT_FIRE 0x03000C01 /* Fire */ -#define DIBUTTON_DRIVINGT_WEAPONS 0x03000C02 /* Select next weapon */ -#define DIBUTTON_DRIVINGT_TARGET 0x03000C03 /* Selects next available target */ -#define DIBUTTON_DRIVINGT_MENU 0x030004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_DRIVINGT_GLANCE 0x03004601 /* Look around */ -#define DIAXIS_DRIVINGT_BRAKE 0x03045205 /* Brake-axis */ -#define DIAXIS_DRIVINGT_ACCEL_AND_BRAKE 0x03014A06 /* Some devices combine accelerate and brake in a single axis */ -#define DIBUTTON_DRIVINGT_VIEW 0x03005C04 /* Cycle through view options */ -#define DIBUTTON_DRIVINGT_DASHBOARD 0x03005C05 /* Select next dashboard option */ -#define DIBUTTON_DRIVINGT_BRAKE 0x03004C06 /* Brake-button */ -#define DIBUTTON_DRIVINGT_FIRESECONDARY 0x03004C07 /* Alternative fire button */ -#define DIBUTTON_DRIVINGT_ACCELERATE_LINK 0x0303D4E0 /* Fallback Accelerate button */ -#define DIBUTTON_DRIVINGT_STEER_LEFT_LINK 0x0300CCE4 /* Fallback Steer Left button */ -#define DIBUTTON_DRIVINGT_STEER_RIGHT_LINK 0x0300CCEC /* Fallback Steer Right button */ -#define DIBUTTON_DRIVINGT_BARREL_UP_LINK 0x030144E0 /* Fallback Barrel up button */ -#define DIBUTTON_DRIVINGT_BARREL_DOWN_LINK 0x030144E8 /* Fallback Barrel down button */ -#define DIBUTTON_DRIVINGT_ROTATE_LEFT_LINK 0x030244E4 /* Fallback Rotate left button */ -#define DIBUTTON_DRIVINGT_ROTATE_RIGHT_LINK 0x030244EC /* Fallback Rotate right button */ -#define DIBUTTON_DRIVINGT_GLANCE_LEFT_LINK 0x0307C4E4 /* Fallback Glance Left button */ -#define DIBUTTON_DRIVINGT_GLANCE_RIGHT_LINK 0x0307C4EC /* Fallback Glance Right button */ -#define DIBUTTON_DRIVINGT_DEVICE 0x030044FE /* Show input device and controls */ -#define DIBUTTON_DRIVINGT_PAUSE 0x030044FC /* Start / Pause / Restart game */ - -/*--- Flight Simulator - Civilian - Plane control is the primary objective ---*/ -#define DIVIRTUAL_FLYING_CIVILIAN 0x04000000 -#define DIAXIS_FLYINGC_BANK 0x04008A01 /* Roll ship left / right */ -#define DIAXIS_FLYINGC_PITCH 0x04010A02 /* Nose up / down */ -#define DIAXIS_FLYINGC_THROTTLE 0x04039203 /* Throttle */ -#define DIBUTTON_FLYINGC_VIEW 0x04002401 /* Cycle through view options */ -#define DIBUTTON_FLYINGC_DISPLAY 0x04002402 /* Select next dashboard / heads up display option */ -#define DIBUTTON_FLYINGC_GEAR 0x04002C03 /* Gear up / down */ -#define DIBUTTON_FLYINGC_MENU 0x040004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_FLYINGC_GLANCE 0x04004601 /* Look around */ -#define DIAXIS_FLYINGC_BRAKE 0x04046A04 /* Apply Brake */ -#define DIAXIS_FLYINGC_RUDDER 0x04025205 /* Yaw ship left/right */ -#define DIAXIS_FLYINGC_FLAPS 0x04055A06 /* Flaps */ -#define DIBUTTON_FLYINGC_FLAPSUP 0x04006404 /* Increment stepping up until fully retracted */ -#define DIBUTTON_FLYINGC_FLAPSDOWN 0x04006405 /* Decrement stepping down until fully extended */ -#define DIBUTTON_FLYINGC_BRAKE_LINK 0x04046CE0 /* Fallback brake button */ -#define DIBUTTON_FLYINGC_FASTER_LINK 0x0403D4E0 /* Fallback throttle up button */ -#define DIBUTTON_FLYINGC_SLOWER_LINK 0x0403D4E8 /* Fallback throttle down button */ -#define DIBUTTON_FLYINGC_GLANCE_LEFT_LINK 0x0407C4E4 /* Fallback Glance Left button */ -#define DIBUTTON_FLYINGC_GLANCE_RIGHT_LINK 0x0407C4EC /* Fallback Glance Right button */ -#define DIBUTTON_FLYINGC_GLANCE_UP_LINK 0x0407C4E0 /* Fallback Glance Up button */ -#define DIBUTTON_FLYINGC_GLANCE_DOWN_LINK 0x0407C4E8 /* Fallback Glance Down button */ -#define DIBUTTON_FLYINGC_DEVICE 0x040044FE /* Show input device and controls */ -#define DIBUTTON_FLYINGC_PAUSE 0x040044FC /* Start / Pause / Restart game */ - -/*--- Flight Simulator - Military - Aerial combat is the primary objective ---*/ -#define DIVIRTUAL_FLYING_MILITARY 0x05000000 -#define DIAXIS_FLYINGM_BANK 0x05008A01 /* Bank - Roll ship left / right */ -#define DIAXIS_FLYINGM_PITCH 0x05010A02 /* Pitch - Nose up / down */ -#define DIAXIS_FLYINGM_THROTTLE 0x05039203 /* Throttle - faster / slower */ -#define DIBUTTON_FLYINGM_FIRE 0x05000C01 /* Fire */ -#define DIBUTTON_FLYINGM_WEAPONS 0x05000C02 /* Select next weapon */ -#define DIBUTTON_FLYINGM_TARGET 0x05000C03 /* Selects next available target */ -#define DIBUTTON_FLYINGM_MENU 0x050004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_FLYINGM_GLANCE 0x05004601 /* Look around */ -#define DIBUTTON_FLYINGM_COUNTER 0x05005C04 /* Activate counter measures */ -#define DIAXIS_FLYINGM_RUDDER 0x05024A04 /* Rudder - Yaw ship left/right */ -#define DIAXIS_FLYINGM_BRAKE 0x05046205 /* Brake-axis */ -#define DIBUTTON_FLYINGM_VIEW 0x05006405 /* Cycle through view options */ -#define DIBUTTON_FLYINGM_DISPLAY 0x05006406 /* Select next dashboard option */ -#define DIAXIS_FLYINGM_FLAPS 0x05055206 /* Flaps */ -#define DIBUTTON_FLYINGM_FLAPSUP 0x05005407 /* Increment stepping up until fully retracted */ -#define DIBUTTON_FLYINGM_FLAPSDOWN 0x05005408 /* Decrement stepping down until fully extended */ -#define DIBUTTON_FLYINGM_FIRESECONDARY 0x05004C09 /* Alternative fire button */ -#define DIBUTTON_FLYINGM_GEAR 0x0500640A /* Gear up / down */ -#define DIBUTTON_FLYINGM_BRAKE_LINK 0x050464E0 /* Fallback brake button */ -#define DIBUTTON_FLYINGM_FASTER_LINK 0x0503D4E0 /* Fallback throttle up button */ -#define DIBUTTON_FLYINGM_SLOWER_LINK 0x0503D4E8 /* Fallback throttle down button */ -#define DIBUTTON_FLYINGM_GLANCE_LEFT_LINK 0x0507C4E4 /* Fallback Glance Left button */ -#define DIBUTTON_FLYINGM_GLANCE_RIGHT_LINK 0x0507C4EC /* Fallback Glance Right button */ -#define DIBUTTON_FLYINGM_GLANCE_UP_LINK 0x0507C4E0 /* Fallback Glance Up button */ -#define DIBUTTON_FLYINGM_GLANCE_DOWN_LINK 0x0507C4E8 /* Fallback Glance Down button */ -#define DIBUTTON_FLYINGM_DEVICE 0x050044FE /* Show input device and controls */ -#define DIBUTTON_FLYINGM_PAUSE 0x050044FC /* Start / Pause / Restart game */ - -/*--- Flight Simulator - Combat Helicopter - Combat from helicopter is primary objective ---*/ -#define DIVIRTUAL_FLYING_HELICOPTER 0x06000000 -#define DIAXIS_FLYINGH_BANK 0x06008A01 /* Bank - Roll ship left / right */ -#define DIAXIS_FLYINGH_PITCH 0x06010A02 /* Pitch - Nose up / down */ -#define DIAXIS_FLYINGH_COLLECTIVE 0x06018A03 /* Collective - Blade pitch/power */ -#define DIBUTTON_FLYINGH_FIRE 0x06001401 /* Fire */ -#define DIBUTTON_FLYINGH_WEAPONS 0x06001402 /* Select next weapon */ -#define DIBUTTON_FLYINGH_TARGET 0x06001403 /* Selects next available target */ -#define DIBUTTON_FLYINGH_MENU 0x060004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_FLYINGH_GLANCE 0x06004601 /* Look around */ -#define DIAXIS_FLYINGH_TORQUE 0x06025A04 /* Torque - Rotate ship around left / right axis */ -#define DIAXIS_FLYINGH_THROTTLE 0x0603DA05 /* Throttle */ -#define DIBUTTON_FLYINGH_COUNTER 0x06005404 /* Activate counter measures */ -#define DIBUTTON_FLYINGH_VIEW 0x06006405 /* Cycle through view options */ -#define DIBUTTON_FLYINGH_GEAR 0x06006406 /* Gear up / down */ -#define DIBUTTON_FLYINGH_FIRESECONDARY 0x06004C07 /* Alternative fire button */ -#define DIBUTTON_FLYINGH_FASTER_LINK 0x0603DCE0 /* Fallback throttle up button */ -#define DIBUTTON_FLYINGH_SLOWER_LINK 0x0603DCE8 /* Fallback throttle down button */ -#define DIBUTTON_FLYINGH_GLANCE_LEFT_LINK 0x0607C4E4 /* Fallback Glance Left button */ -#define DIBUTTON_FLYINGH_GLANCE_RIGHT_LINK 0x0607C4EC /* Fallback Glance Right button */ -#define DIBUTTON_FLYINGH_GLANCE_UP_LINK 0x0607C4E0 /* Fallback Glance Up button */ -#define DIBUTTON_FLYINGH_GLANCE_DOWN_LINK 0x0607C4E8 /* Fallback Glance Down button */ -#define DIBUTTON_FLYINGH_DEVICE 0x060044FE /* Show input device and controls */ -#define DIBUTTON_FLYINGH_PAUSE 0x060044FC /* Start / Pause / Restart game */ - -/*--- Space Simulator - Combat - Space Simulator with weapons ---*/ -#define DIVIRTUAL_SPACESIM 0x07000000 -#define DIAXIS_SPACESIM_LATERAL 0x07008201 /* Move ship left / right */ -#define DIAXIS_SPACESIM_MOVE 0x07010202 /* Move ship forward/backward */ -#define DIAXIS_SPACESIM_THROTTLE 0x07038203 /* Throttle - Engine speed */ -#define DIBUTTON_SPACESIM_FIRE 0x07000401 /* Fire */ -#define DIBUTTON_SPACESIM_WEAPONS 0x07000402 /* Select next weapon */ -#define DIBUTTON_SPACESIM_TARGET 0x07000403 /* Selects next available target */ -#define DIBUTTON_SPACESIM_MENU 0x070004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_SPACESIM_GLANCE 0x07004601 /* Look around */ -#define DIAXIS_SPACESIM_CLIMB 0x0701C204 /* Climb - Pitch ship up/down */ -#define DIAXIS_SPACESIM_ROTATE 0x07024205 /* Rotate - Turn ship left/right */ -#define DIBUTTON_SPACESIM_VIEW 0x07004404 /* Cycle through view options */ -#define DIBUTTON_SPACESIM_DISPLAY 0x07004405 /* Select next dashboard / heads up display option */ -#define DIBUTTON_SPACESIM_RAISE 0x07004406 /* Raise ship while maintaining current pitch */ -#define DIBUTTON_SPACESIM_LOWER 0x07004407 /* Lower ship while maintaining current pitch */ -#define DIBUTTON_SPACESIM_GEAR 0x07004408 /* Gear up / down */ -#define DIBUTTON_SPACESIM_FIRESECONDARY 0x07004409 /* Alternative fire button */ -#define DIBUTTON_SPACESIM_LEFT_LINK 0x0700C4E4 /* Fallback move left button */ -#define DIBUTTON_SPACESIM_RIGHT_LINK 0x0700C4EC /* Fallback move right button */ -#define DIBUTTON_SPACESIM_FORWARD_LINK 0x070144E0 /* Fallback move forward button */ -#define DIBUTTON_SPACESIM_BACKWARD_LINK 0x070144E8 /* Fallback move backwards button */ -#define DIBUTTON_SPACESIM_FASTER_LINK 0x0703C4E0 /* Fallback throttle up button */ -#define DIBUTTON_SPACESIM_SLOWER_LINK 0x0703C4E8 /* Fallback throttle down button */ -#define DIBUTTON_SPACESIM_TURN_LEFT_LINK 0x070244E4 /* Fallback turn left button */ -#define DIBUTTON_SPACESIM_TURN_RIGHT_LINK 0x070244EC /* Fallback turn right button */ -#define DIBUTTON_SPACESIM_GLANCE_LEFT_LINK 0x0707C4E4 /* Fallback Glance Left button */ -#define DIBUTTON_SPACESIM_GLANCE_RIGHT_LINK 0x0707C4EC /* Fallback Glance Right button */ -#define DIBUTTON_SPACESIM_GLANCE_UP_LINK 0x0707C4E0 /* Fallback Glance Up button */ -#define DIBUTTON_SPACESIM_GLANCE_DOWN_LINK 0x0707C4E8 /* Fallback Glance Down button */ -#define DIBUTTON_SPACESIM_DEVICE 0x070044FE /* Show input device and controls */ -#define DIBUTTON_SPACESIM_PAUSE 0x070044FC /* Start / Pause / Restart game */ - -/*--- Fighting - First Person - Hand to Hand combat is primary objective ---*/ -#define DIVIRTUAL_FIGHTING_HAND2HAND 0x08000000 -#define DIAXIS_FIGHTINGH_LATERAL 0x08008201 /* Sidestep left/right */ -#define DIAXIS_FIGHTINGH_MOVE 0x08010202 /* Move forward/backward */ -#define DIBUTTON_FIGHTINGH_PUNCH 0x08000401 /* Punch */ -#define DIBUTTON_FIGHTINGH_KICK 0x08000402 /* Kick */ -#define DIBUTTON_FIGHTINGH_BLOCK 0x08000403 /* Block */ -#define DIBUTTON_FIGHTINGH_CROUCH 0x08000404 /* Crouch */ -#define DIBUTTON_FIGHTINGH_JUMP 0x08000405 /* Jump */ -#define DIBUTTON_FIGHTINGH_SPECIAL1 0x08000406 /* Apply first special move */ -#define DIBUTTON_FIGHTINGH_SPECIAL2 0x08000407 /* Apply second special move */ -#define DIBUTTON_FIGHTINGH_MENU 0x080004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_FIGHTINGH_SELECT 0x08004408 /* Select special move */ -#define DIHATSWITCH_FIGHTINGH_SLIDE 0x08004601 /* Look around */ -#define DIBUTTON_FIGHTINGH_DISPLAY 0x08004409 /* Shows next on-screen display option */ -#define DIAXIS_FIGHTINGH_ROTATE 0x08024203 /* Rotate - Turn body left/right */ -#define DIBUTTON_FIGHTINGH_DODGE 0x0800440A /* Dodge */ -#define DIBUTTON_FIGHTINGH_LEFT_LINK 0x0800C4E4 /* Fallback left sidestep button */ -#define DIBUTTON_FIGHTINGH_RIGHT_LINK 0x0800C4EC /* Fallback right sidestep button */ -#define DIBUTTON_FIGHTINGH_FORWARD_LINK 0x080144E0 /* Fallback forward button */ -#define DIBUTTON_FIGHTINGH_BACKWARD_LINK 0x080144E8 /* Fallback backward button */ -#define DIBUTTON_FIGHTINGH_DEVICE 0x080044FE /* Show input device and controls */ -#define DIBUTTON_FIGHTINGH_PAUSE 0x080044FC /* Start / Pause / Restart game */ - -/*--- Fighting - First Person Shooting - Navigation and combat are primary objectives ---*/ -#define DIVIRTUAL_FIGHTING_FPS 0x09000000 -#define DIAXIS_FPS_ROTATE 0x09008201 /* Rotate character left/right */ -#define DIAXIS_FPS_MOVE 0x09010202 /* Move forward/backward */ -#define DIBUTTON_FPS_FIRE 0x09000401 /* Fire */ -#define DIBUTTON_FPS_WEAPONS 0x09000402 /* Select next weapon */ -#define DIBUTTON_FPS_APPLY 0x09000403 /* Use item */ -#define DIBUTTON_FPS_SELECT 0x09000404 /* Select next inventory item */ -#define DIBUTTON_FPS_CROUCH 0x09000405 /* Crouch/ climb down/ swim down */ -#define DIBUTTON_FPS_JUMP 0x09000406 /* Jump/ climb up/ swim up */ -#define DIAXIS_FPS_LOOKUPDOWN 0x09018203 /* Look up / down */ -#define DIBUTTON_FPS_STRAFE 0x09000407 /* Enable strafing while active */ -#define DIBUTTON_FPS_MENU 0x090004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_FPS_GLANCE 0x09004601 /* Look around */ -#define DIBUTTON_FPS_DISPLAY 0x09004408 /* Shows next on-screen display option/ map */ -#define DIAXIS_FPS_SIDESTEP 0x09024204 /* Sidestep */ -#define DIBUTTON_FPS_DODGE 0x09004409 /* Dodge */ -#define DIBUTTON_FPS_GLANCEL 0x0900440A /* Glance Left */ -#define DIBUTTON_FPS_GLANCER 0x0900440B /* Glance Right */ -#define DIBUTTON_FPS_FIRESECONDARY 0x0900440C /* Alternative fire button */ -#define DIBUTTON_FPS_ROTATE_LEFT_LINK 0x0900C4E4 /* Fallback rotate left button */ -#define DIBUTTON_FPS_ROTATE_RIGHT_LINK 0x0900C4EC /* Fallback rotate right button */ -#define DIBUTTON_FPS_FORWARD_LINK 0x090144E0 /* Fallback forward button */ -#define DIBUTTON_FPS_BACKWARD_LINK 0x090144E8 /* Fallback backward button */ -#define DIBUTTON_FPS_GLANCE_UP_LINK 0x0901C4E0 /* Fallback look up button */ -#define DIBUTTON_FPS_GLANCE_DOWN_LINK 0x0901C4E8 /* Fallback look down button */ -#define DIBUTTON_FPS_STEP_LEFT_LINK 0x090244E4 /* Fallback step left button */ -#define DIBUTTON_FPS_STEP_RIGHT_LINK 0x090244EC /* Fallback step right button */ -#define DIBUTTON_FPS_DEVICE 0x090044FE /* Show input device and controls */ -#define DIBUTTON_FPS_PAUSE 0x090044FC /* Start / Pause / Restart game */ - -/*--- Fighting - Third Person action - Perspective of camera is behind the main character ---*/ -#define DIVIRTUAL_FIGHTING_THIRDPERSON 0x0A000000 -#define DIAXIS_TPS_TURN 0x0A020201 /* Turn left/right */ -#define DIAXIS_TPS_MOVE 0x0A010202 /* Move forward/backward */ -#define DIBUTTON_TPS_RUN 0x0A000401 /* Run or walk toggle switch */ -#define DIBUTTON_TPS_ACTION 0x0A000402 /* Action Button */ -#define DIBUTTON_TPS_SELECT 0x0A000403 /* Select next weapon */ -#define DIBUTTON_TPS_USE 0x0A000404 /* Use inventory item currently selected */ -#define DIBUTTON_TPS_JUMP 0x0A000405 /* Character Jumps */ -#define DIBUTTON_TPS_MENU 0x0A0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_TPS_GLANCE 0x0A004601 /* Look around */ -#define DIBUTTON_TPS_VIEW 0x0A004406 /* Select camera view */ -#define DIBUTTON_TPS_STEPLEFT 0x0A004407 /* Character takes a left step */ -#define DIBUTTON_TPS_STEPRIGHT 0x0A004408 /* Character takes a right step */ -#define DIAXIS_TPS_STEP 0x0A00C203 /* Character steps left/right */ -#define DIBUTTON_TPS_DODGE 0x0A004409 /* Character dodges or ducks */ -#define DIBUTTON_TPS_INVENTORY 0x0A00440A /* Cycle through inventory */ -#define DIBUTTON_TPS_TURN_LEFT_LINK 0x0A0244E4 /* Fallback turn left button */ -#define DIBUTTON_TPS_TURN_RIGHT_LINK 0x0A0244EC /* Fallback turn right button */ -#define DIBUTTON_TPS_FORWARD_LINK 0x0A0144E0 /* Fallback forward button */ -#define DIBUTTON_TPS_BACKWARD_LINK 0x0A0144E8 /* Fallback backward button */ -#define DIBUTTON_TPS_GLANCE_UP_LINK 0x0A07C4E0 /* Fallback look up button */ -#define DIBUTTON_TPS_GLANCE_DOWN_LINK 0x0A07C4E8 /* Fallback look down button */ -#define DIBUTTON_TPS_GLANCE_LEFT_LINK 0x0A07C4E4 /* Fallback glance up button */ -#define DIBUTTON_TPS_GLANCE_RIGHT_LINK 0x0A07C4EC /* Fallback glance right button */ -#define DIBUTTON_TPS_DEVICE 0x0A0044FE /* Show input device and controls */ -#define DIBUTTON_TPS_PAUSE 0x0A0044FC /* Start / Pause / Restart game */ - -/*--- Strategy - Role Playing - Navigation and problem solving are primary actions ---*/ -#define DIVIRTUAL_STRATEGY_ROLEPLAYING 0x0B000000 -#define DIAXIS_STRATEGYR_LATERAL 0x0B008201 /* sidestep - left/right */ -#define DIAXIS_STRATEGYR_MOVE 0x0B010202 /* move forward/backward */ -#define DIBUTTON_STRATEGYR_GET 0x0B000401 /* Acquire item */ -#define DIBUTTON_STRATEGYR_APPLY 0x0B000402 /* Use selected item */ -#define DIBUTTON_STRATEGYR_SELECT 0x0B000403 /* Select nextitem */ -#define DIBUTTON_STRATEGYR_ATTACK 0x0B000404 /* Attack */ -#define DIBUTTON_STRATEGYR_CAST 0x0B000405 /* Cast Spell */ -#define DIBUTTON_STRATEGYR_CROUCH 0x0B000406 /* Crouch */ -#define DIBUTTON_STRATEGYR_JUMP 0x0B000407 /* Jump */ -#define DIBUTTON_STRATEGYR_MENU 0x0B0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_STRATEGYR_GLANCE 0x0B004601 /* Look around */ -#define DIBUTTON_STRATEGYR_MAP 0x0B004408 /* Cycle through map options */ -#define DIBUTTON_STRATEGYR_DISPLAY 0x0B004409 /* Shows next on-screen display option */ -#define DIAXIS_STRATEGYR_ROTATE 0x0B024203 /* Turn body left/right */ -#define DIBUTTON_STRATEGYR_LEFT_LINK 0x0B00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_STRATEGYR_RIGHT_LINK 0x0B00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_STRATEGYR_FORWARD_LINK 0x0B0144E0 /* Fallback move forward button */ -#define DIBUTTON_STRATEGYR_BACK_LINK 0x0B0144E8 /* Fallback move backward button */ -#define DIBUTTON_STRATEGYR_ROTATE_LEFT_LINK 0x0B0244E4 /* Fallback turn body left button */ -#define DIBUTTON_STRATEGYR_ROTATE_RIGHT_LINK 0x0B0244EC /* Fallback turn body right button */ -#define DIBUTTON_STRATEGYR_DEVICE 0x0B0044FE /* Show input device and controls */ -#define DIBUTTON_STRATEGYR_PAUSE 0x0B0044FC /* Start / Pause / Restart game */ - -/*--- Strategy - Turn based - Navigation and problem solving are primary actions ---*/ -#define DIVIRTUAL_STRATEGY_TURN 0x0C000000 -#define DIAXIS_STRATEGYT_LATERAL 0x0C008201 /* Sidestep left/right */ -#define DIAXIS_STRATEGYT_MOVE 0x0C010202 /* Move forward/backwards */ -#define DIBUTTON_STRATEGYT_SELECT 0x0C000401 /* Select unit or object */ -#define DIBUTTON_STRATEGYT_INSTRUCT 0x0C000402 /* Cycle through instructions */ -#define DIBUTTON_STRATEGYT_APPLY 0x0C000403 /* Apply selected instruction */ -#define DIBUTTON_STRATEGYT_TEAM 0x0C000404 /* Select next team / cycle through all */ -#define DIBUTTON_STRATEGYT_TURN 0x0C000405 /* Indicate turn over */ -#define DIBUTTON_STRATEGYT_MENU 0x0C0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_STRATEGYT_ZOOM 0x0C004406 /* Zoom - in / out */ -#define DIBUTTON_STRATEGYT_MAP 0x0C004407 /* cycle through map options */ -#define DIBUTTON_STRATEGYT_DISPLAY 0x0C004408 /* shows next on-screen display options */ -#define DIBUTTON_STRATEGYT_LEFT_LINK 0x0C00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_STRATEGYT_RIGHT_LINK 0x0C00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_STRATEGYT_FORWARD_LINK 0x0C0144E0 /* Fallback move forward button */ -#define DIBUTTON_STRATEGYT_BACK_LINK 0x0C0144E8 /* Fallback move back button */ -#define DIBUTTON_STRATEGYT_DEVICE 0x0C0044FE /* Show input device and controls */ -#define DIBUTTON_STRATEGYT_PAUSE 0x0C0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Hunting - Hunting ---*/ -#define DIVIRTUAL_SPORTS_HUNTING 0x0D000000 -#define DIAXIS_HUNTING_LATERAL 0x0D008201 /* sidestep left/right */ -#define DIAXIS_HUNTING_MOVE 0x0D010202 /* move forward/backwards */ -#define DIBUTTON_HUNTING_FIRE 0x0D000401 /* Fire selected weapon */ -#define DIBUTTON_HUNTING_AIM 0x0D000402 /* Select aim/move */ -#define DIBUTTON_HUNTING_WEAPON 0x0D000403 /* Select next weapon */ -#define DIBUTTON_HUNTING_BINOCULAR 0x0D000404 /* Look through Binoculars */ -#define DIBUTTON_HUNTING_CALL 0x0D000405 /* Make animal call */ -#define DIBUTTON_HUNTING_MAP 0x0D000406 /* View Map */ -#define DIBUTTON_HUNTING_SPECIAL 0x0D000407 /* Special game operation */ -#define DIBUTTON_HUNTING_MENU 0x0D0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_HUNTING_GLANCE 0x0D004601 /* Look around */ -#define DIBUTTON_HUNTING_DISPLAY 0x0D004408 /* show next on-screen display option */ -#define DIAXIS_HUNTING_ROTATE 0x0D024203 /* Turn body left/right */ -#define DIBUTTON_HUNTING_CROUCH 0x0D004409 /* Crouch/ Climb / Swim down */ -#define DIBUTTON_HUNTING_JUMP 0x0D00440A /* Jump/ Climb up / Swim up */ -#define DIBUTTON_HUNTING_FIRESECONDARY 0x0D00440B /* Alternative fire button */ -#define DIBUTTON_HUNTING_LEFT_LINK 0x0D00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_HUNTING_RIGHT_LINK 0x0D00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_HUNTING_FORWARD_LINK 0x0D0144E0 /* Fallback move forward button */ -#define DIBUTTON_HUNTING_BACK_LINK 0x0D0144E8 /* Fallback move back button */ -#define DIBUTTON_HUNTING_ROTATE_LEFT_LINK 0x0D0244E4 /* Fallback turn body left button */ -#define DIBUTTON_HUNTING_ROTATE_RIGHT_LINK 0x0D0244EC /* Fallback turn body right button */ -#define DIBUTTON_HUNTING_DEVICE 0x0D0044FE /* Show input device and controls */ -#define DIBUTTON_HUNTING_PAUSE 0x0D0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Fishing - Catching Fish is primary objective ---*/ -#define DIVIRTUAL_SPORTS_FISHING 0x0E000000 -#define DIAXIS_FISHING_LATERAL 0x0E008201 /* sidestep left/right */ -#define DIAXIS_FISHING_MOVE 0x0E010202 /* move forward/backwards */ -#define DIBUTTON_FISHING_CAST 0x0E000401 /* Cast line */ -#define DIBUTTON_FISHING_TYPE 0x0E000402 /* Select cast type */ -#define DIBUTTON_FISHING_BINOCULAR 0x0E000403 /* Look through Binocular */ -#define DIBUTTON_FISHING_BAIT 0x0E000404 /* Select type of Bait */ -#define DIBUTTON_FISHING_MAP 0x0E000405 /* View Map */ -#define DIBUTTON_FISHING_MENU 0x0E0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_FISHING_GLANCE 0x0E004601 /* Look around */ -#define DIBUTTON_FISHING_DISPLAY 0x0E004406 /* Show next on-screen display option */ -#define DIAXIS_FISHING_ROTATE 0x0E024203 /* Turn character left / right */ -#define DIBUTTON_FISHING_CROUCH 0x0E004407 /* Crouch/ Climb / Swim down */ -#define DIBUTTON_FISHING_JUMP 0x0E004408 /* Jump/ Climb up / Swim up */ -#define DIBUTTON_FISHING_LEFT_LINK 0x0E00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_FISHING_RIGHT_LINK 0x0E00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_FISHING_FORWARD_LINK 0x0E0144E0 /* Fallback move forward button */ -#define DIBUTTON_FISHING_BACK_LINK 0x0E0144E8 /* Fallback move back button */ -#define DIBUTTON_FISHING_ROTATE_LEFT_LINK 0x0E0244E4 /* Fallback turn body left button */ -#define DIBUTTON_FISHING_ROTATE_RIGHT_LINK 0x0E0244EC /* Fallback turn body right button */ -#define DIBUTTON_FISHING_DEVICE 0x0E0044FE /* Show input device and controls */ -#define DIBUTTON_FISHING_PAUSE 0x0E0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Baseball - Batting - Batter control is primary objective ---*/ -#define DIVIRTUAL_SPORTS_BASEBALL_BAT 0x0F000000 -#define DIAXIS_BASEBALLB_LATERAL 0x0F008201 /* Aim left / right */ -#define DIAXIS_BASEBALLB_MOVE 0x0F010202 /* Aim up / down */ -#define DIBUTTON_BASEBALLB_SELECT 0x0F000401 /* cycle through swing options */ -#define DIBUTTON_BASEBALLB_NORMAL 0x0F000402 /* normal swing */ -#define DIBUTTON_BASEBALLB_POWER 0x0F000403 /* swing for the fence */ -#define DIBUTTON_BASEBALLB_BUNT 0x0F000404 /* bunt */ -#define DIBUTTON_BASEBALLB_STEAL 0x0F000405 /* Base runner attempts to steal a base */ -#define DIBUTTON_BASEBALLB_BURST 0x0F000406 /* Base runner invokes burst of speed */ -#define DIBUTTON_BASEBALLB_SLIDE 0x0F000407 /* Base runner slides into base */ -#define DIBUTTON_BASEBALLB_CONTACT 0x0F000408 /* Contact swing */ -#define DIBUTTON_BASEBALLB_MENU 0x0F0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_BASEBALLB_NOSTEAL 0x0F004409 /* Base runner goes back to a base */ -#define DIBUTTON_BASEBALLB_BOX 0x0F00440A /* Enter or exit batting box */ -#define DIBUTTON_BASEBALLB_LEFT_LINK 0x0F00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_BASEBALLB_RIGHT_LINK 0x0F00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_BASEBALLB_FORWARD_LINK 0x0F0144E0 /* Fallback move forward button */ -#define DIBUTTON_BASEBALLB_BACK_LINK 0x0F0144E8 /* Fallback move back button */ -#define DIBUTTON_BASEBALLB_DEVICE 0x0F0044FE /* Show input device and controls */ -#define DIBUTTON_BASEBALLB_PAUSE 0x0F0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Baseball - Pitching - Pitcher control is primary objective ---*/ -#define DIVIRTUAL_SPORTS_BASEBALL_PITCH 0x10000000 -#define DIAXIS_BASEBALLP_LATERAL 0x10008201 /* Aim left / right */ -#define DIAXIS_BASEBALLP_MOVE 0x10010202 /* Aim up / down */ -#define DIBUTTON_BASEBALLP_SELECT 0x10000401 /* cycle through pitch selections */ -#define DIBUTTON_BASEBALLP_PITCH 0x10000402 /* throw pitch */ -#define DIBUTTON_BASEBALLP_BASE 0x10000403 /* select base to throw to */ -#define DIBUTTON_BASEBALLP_THROW 0x10000404 /* throw to base */ -#define DIBUTTON_BASEBALLP_FAKE 0x10000405 /* Fake a throw to a base */ -#define DIBUTTON_BASEBALLP_MENU 0x100004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_BASEBALLP_WALK 0x10004406 /* Throw intentional walk / pitch out */ -#define DIBUTTON_BASEBALLP_LOOK 0x10004407 /* Look at runners on bases */ -#define DIBUTTON_BASEBALLP_LEFT_LINK 0x1000C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_BASEBALLP_RIGHT_LINK 0x1000C4EC /* Fallback sidestep right button */ -#define DIBUTTON_BASEBALLP_FORWARD_LINK 0x100144E0 /* Fallback move forward button */ -#define DIBUTTON_BASEBALLP_BACK_LINK 0x100144E8 /* Fallback move back button */ -#define DIBUTTON_BASEBALLP_DEVICE 0x100044FE /* Show input device and controls */ -#define DIBUTTON_BASEBALLP_PAUSE 0x100044FC /* Start / Pause / Restart game */ - -/*--- Sports - Baseball - Fielding - Fielder control is primary objective ---*/ -#define DIVIRTUAL_SPORTS_BASEBALL_FIELD 0x11000000 -#define DIAXIS_BASEBALLF_LATERAL 0x11008201 /* Aim left / right */ -#define DIAXIS_BASEBALLF_MOVE 0x11010202 /* Aim up / down */ -#define DIBUTTON_BASEBALLF_NEAREST 0x11000401 /* Switch to fielder nearest to the ball */ -#define DIBUTTON_BASEBALLF_THROW1 0x11000402 /* Make conservative throw */ -#define DIBUTTON_BASEBALLF_THROW2 0x11000403 /* Make aggressive throw */ -#define DIBUTTON_BASEBALLF_BURST 0x11000404 /* Invoke burst of speed */ -#define DIBUTTON_BASEBALLF_JUMP 0x11000405 /* Jump to catch ball */ -#define DIBUTTON_BASEBALLF_DIVE 0x11000406 /* Dive to catch ball */ -#define DIBUTTON_BASEBALLF_MENU 0x110004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_BASEBALLF_SHIFTIN 0x11004407 /* Shift the infield positioning */ -#define DIBUTTON_BASEBALLF_SHIFTOUT 0x11004408 /* Shift the outfield positioning */ -#define DIBUTTON_BASEBALLF_AIM_LEFT_LINK 0x1100C4E4 /* Fallback aim left button */ -#define DIBUTTON_BASEBALLF_AIM_RIGHT_LINK 0x1100C4EC /* Fallback aim right button */ -#define DIBUTTON_BASEBALLF_FORWARD_LINK 0x110144E0 /* Fallback move forward button */ -#define DIBUTTON_BASEBALLF_BACK_LINK 0x110144E8 /* Fallback move back button */ -#define DIBUTTON_BASEBALLF_DEVICE 0x110044FE /* Show input device and controls */ -#define DIBUTTON_BASEBALLF_PAUSE 0x110044FC /* Start / Pause / Restart game */ - -/*--- Sports - Basketball - Offense - Offense ---*/ -#define DIVIRTUAL_SPORTS_BASKETBALL_OFFENSE 0x12000000 -#define DIAXIS_BBALLO_LATERAL 0x12008201 /* left / right */ -#define DIAXIS_BBALLO_MOVE 0x12010202 /* up / down */ -#define DIBUTTON_BBALLO_SHOOT 0x12000401 /* shoot basket */ -#define DIBUTTON_BBALLO_DUNK 0x12000402 /* dunk basket */ -#define DIBUTTON_BBALLO_PASS 0x12000403 /* throw pass */ -#define DIBUTTON_BBALLO_FAKE 0x12000404 /* fake shot or pass */ -#define DIBUTTON_BBALLO_SPECIAL 0x12000405 /* apply special move */ -#define DIBUTTON_BBALLO_PLAYER 0x12000406 /* select next player */ -#define DIBUTTON_BBALLO_BURST 0x12000407 /* invoke burst */ -#define DIBUTTON_BBALLO_CALL 0x12000408 /* call for ball / pass to me */ -#define DIBUTTON_BBALLO_MENU 0x120004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_BBALLO_GLANCE 0x12004601 /* scroll view */ -#define DIBUTTON_BBALLO_SCREEN 0x12004409 /* Call for screen */ -#define DIBUTTON_BBALLO_PLAY 0x1200440A /* Call for specific offensive play */ -#define DIBUTTON_BBALLO_JAB 0x1200440B /* Initiate fake drive to basket */ -#define DIBUTTON_BBALLO_POST 0x1200440C /* Perform post move */ -#define DIBUTTON_BBALLO_TIMEOUT 0x1200440D /* Time Out */ -#define DIBUTTON_BBALLO_SUBSTITUTE 0x1200440E /* substitute one player for another */ -#define DIBUTTON_BBALLO_LEFT_LINK 0x1200C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_BBALLO_RIGHT_LINK 0x1200C4EC /* Fallback sidestep right button */ -#define DIBUTTON_BBALLO_FORWARD_LINK 0x120144E0 /* Fallback move forward button */ -#define DIBUTTON_BBALLO_BACK_LINK 0x120144E8 /* Fallback move back button */ -#define DIBUTTON_BBALLO_DEVICE 0x120044FE /* Show input device and controls */ -#define DIBUTTON_BBALLO_PAUSE 0x120044FC /* Start / Pause / Restart game */ - -/*--- Sports - Basketball - Defense - Defense ---*/ -#define DIVIRTUAL_SPORTS_BASKETBALL_DEFENSE 0x13000000 -#define DIAXIS_BBALLD_LATERAL 0x13008201 /* left / right */ -#define DIAXIS_BBALLD_MOVE 0x13010202 /* up / down */ -#define DIBUTTON_BBALLD_JUMP 0x13000401 /* jump to block shot */ -#define DIBUTTON_BBALLD_STEAL 0x13000402 /* attempt to steal ball */ -#define DIBUTTON_BBALLD_FAKE 0x13000403 /* fake block or steal */ -#define DIBUTTON_BBALLD_SPECIAL 0x13000404 /* apply special move */ -#define DIBUTTON_BBALLD_PLAYER 0x13000405 /* select next player */ -#define DIBUTTON_BBALLD_BURST 0x13000406 /* invoke burst */ -#define DIBUTTON_BBALLD_PLAY 0x13000407 /* call for specific defensive play */ -#define DIBUTTON_BBALLD_MENU 0x130004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_BBALLD_GLANCE 0x13004601 /* scroll view */ -#define DIBUTTON_BBALLD_TIMEOUT 0x13004408 /* Time Out */ -#define DIBUTTON_BBALLD_SUBSTITUTE 0x13004409 /* substitute one player for another */ -#define DIBUTTON_BBALLD_LEFT_LINK 0x1300C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_BBALLD_RIGHT_LINK 0x1300C4EC /* Fallback sidestep right button */ -#define DIBUTTON_BBALLD_FORWARD_LINK 0x130144E0 /* Fallback move forward button */ -#define DIBUTTON_BBALLD_BACK_LINK 0x130144E8 /* Fallback move back button */ -#define DIBUTTON_BBALLD_DEVICE 0x130044FE /* Show input device and controls */ -#define DIBUTTON_BBALLD_PAUSE 0x130044FC /* Start / Pause / Restart game */ - -/*--- Sports - Football - Play - Play selection ---*/ -#define DIVIRTUAL_SPORTS_FOOTBALL_FIELD 0x14000000 -#define DIBUTTON_FOOTBALLP_PLAY 0x14000401 /* cycle through available plays */ -#define DIBUTTON_FOOTBALLP_SELECT 0x14000402 /* select play */ -#define DIBUTTON_FOOTBALLP_HELP 0x14000403 /* Bring up pop-up help */ -#define DIBUTTON_FOOTBALLP_MENU 0x140004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_FOOTBALLP_DEVICE 0x140044FE /* Show input device and controls */ -#define DIBUTTON_FOOTBALLP_PAUSE 0x140044FC /* Start / Pause / Restart game */ - -/*--- Sports - Football - QB - Offense: Quarterback / Kicker ---*/ -#define DIVIRTUAL_SPORTS_FOOTBALL_QBCK 0x15000000 -#define DIAXIS_FOOTBALLQ_LATERAL 0x15008201 /* Move / Aim: left / right */ -#define DIAXIS_FOOTBALLQ_MOVE 0x15010202 /* Move / Aim: up / down */ -#define DIBUTTON_FOOTBALLQ_SELECT 0x15000401 /* Select */ -#define DIBUTTON_FOOTBALLQ_SNAP 0x15000402 /* snap ball - start play */ -#define DIBUTTON_FOOTBALLQ_JUMP 0x15000403 /* jump over defender */ -#define DIBUTTON_FOOTBALLQ_SLIDE 0x15000404 /* Dive/Slide */ -#define DIBUTTON_FOOTBALLQ_PASS 0x15000405 /* throws pass to receiver */ -#define DIBUTTON_FOOTBALLQ_FAKE 0x15000406 /* pump fake pass or fake kick */ -#define DIBUTTON_FOOTBALLQ_MENU 0x150004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_FOOTBALLQ_FAKESNAP 0x15004407 /* Fake snap */ -#define DIBUTTON_FOOTBALLQ_MOTION 0x15004408 /* Send receivers in motion */ -#define DIBUTTON_FOOTBALLQ_AUDIBLE 0x15004409 /* Change offensive play at line of scrimmage */ -#define DIBUTTON_FOOTBALLQ_LEFT_LINK 0x1500C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_FOOTBALLQ_RIGHT_LINK 0x1500C4EC /* Fallback sidestep right button */ -#define DIBUTTON_FOOTBALLQ_FORWARD_LINK 0x150144E0 /* Fallback move forward button */ -#define DIBUTTON_FOOTBALLQ_BACK_LINK 0x150144E8 /* Fallback move back button */ -#define DIBUTTON_FOOTBALLQ_DEVICE 0x150044FE /* Show input device and controls */ -#define DIBUTTON_FOOTBALLQ_PAUSE 0x150044FC /* Start / Pause / Restart game */ - -/*--- Sports - Football - Offense - Offense - Runner ---*/ -#define DIVIRTUAL_SPORTS_FOOTBALL_OFFENSE 0x16000000 -#define DIAXIS_FOOTBALLO_LATERAL 0x16008201 /* Move / Aim: left / right */ -#define DIAXIS_FOOTBALLO_MOVE 0x16010202 /* Move / Aim: up / down */ -#define DIBUTTON_FOOTBALLO_JUMP 0x16000401 /* jump or hurdle over defender */ -#define DIBUTTON_FOOTBALLO_LEFTARM 0x16000402 /* holds out left arm */ -#define DIBUTTON_FOOTBALLO_RIGHTARM 0x16000403 /* holds out right arm */ -#define DIBUTTON_FOOTBALLO_THROW 0x16000404 /* throw pass or lateral ball to another runner */ -#define DIBUTTON_FOOTBALLO_SPIN 0x16000405 /* Spin to avoid defenders */ -#define DIBUTTON_FOOTBALLO_MENU 0x160004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_FOOTBALLO_JUKE 0x16004406 /* Use special move to avoid defenders */ -#define DIBUTTON_FOOTBALLO_SHOULDER 0x16004407 /* Lower shoulder to run over defenders */ -#define DIBUTTON_FOOTBALLO_TURBO 0x16004408 /* Speed burst past defenders */ -#define DIBUTTON_FOOTBALLO_DIVE 0x16004409 /* Dive over defenders */ -#define DIBUTTON_FOOTBALLO_ZOOM 0x1600440A /* Zoom view in / out */ -#define DIBUTTON_FOOTBALLO_SUBSTITUTE 0x1600440B /* substitute one player for another */ -#define DIBUTTON_FOOTBALLO_LEFT_LINK 0x1600C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_FOOTBALLO_RIGHT_LINK 0x1600C4EC /* Fallback sidestep right button */ -#define DIBUTTON_FOOTBALLO_FORWARD_LINK 0x160144E0 /* Fallback move forward button */ -#define DIBUTTON_FOOTBALLO_BACK_LINK 0x160144E8 /* Fallback move back button */ -#define DIBUTTON_FOOTBALLO_DEVICE 0x160044FE /* Show input device and controls */ -#define DIBUTTON_FOOTBALLO_PAUSE 0x160044FC /* Start / Pause / Restart game */ - -/*--- Sports - Football - Defense - Defense ---*/ -#define DIVIRTUAL_SPORTS_FOOTBALL_DEFENSE 0x17000000 -#define DIAXIS_FOOTBALLD_LATERAL 0x17008201 /* Move / Aim: left / right */ -#define DIAXIS_FOOTBALLD_MOVE 0x17010202 /* Move / Aim: up / down */ -#define DIBUTTON_FOOTBALLD_PLAY 0x17000401 /* cycle through available plays */ -#define DIBUTTON_FOOTBALLD_SELECT 0x17000402 /* select player closest to the ball */ -#define DIBUTTON_FOOTBALLD_JUMP 0x17000403 /* jump to intercept or block */ -#define DIBUTTON_FOOTBALLD_TACKLE 0x17000404 /* tackler runner */ -#define DIBUTTON_FOOTBALLD_FAKE 0x17000405 /* hold down to fake tackle or intercept */ -#define DIBUTTON_FOOTBALLD_SUPERTACKLE 0x17000406 /* Initiate special tackle */ -#define DIBUTTON_FOOTBALLD_MENU 0x170004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_FOOTBALLD_SPIN 0x17004407 /* Spin to beat offensive line */ -#define DIBUTTON_FOOTBALLD_SWIM 0x17004408 /* Swim to beat the offensive line */ -#define DIBUTTON_FOOTBALLD_BULLRUSH 0x17004409 /* Bull rush the offensive line */ -#define DIBUTTON_FOOTBALLD_RIP 0x1700440A /* Rip the offensive line */ -#define DIBUTTON_FOOTBALLD_AUDIBLE 0x1700440B /* Change defensive play at the line of scrimmage */ -#define DIBUTTON_FOOTBALLD_ZOOM 0x1700440C /* Zoom view in / out */ -#define DIBUTTON_FOOTBALLD_SUBSTITUTE 0x1700440D /* substitute one player for another */ -#define DIBUTTON_FOOTBALLD_LEFT_LINK 0x1700C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_FOOTBALLD_RIGHT_LINK 0x1700C4EC /* Fallback sidestep right button */ -#define DIBUTTON_FOOTBALLD_FORWARD_LINK 0x170144E0 /* Fallback move forward button */ -#define DIBUTTON_FOOTBALLD_BACK_LINK 0x170144E8 /* Fallback move back button */ -#define DIBUTTON_FOOTBALLD_DEVICE 0x170044FE /* Show input device and controls */ -#define DIBUTTON_FOOTBALLD_PAUSE 0x170044FC /* Start / Pause / Restart game */ - -/*--- Sports - Golf - ---*/ -#define DIVIRTUAL_SPORTS_GOLF 0x18000000 -#define DIAXIS_GOLF_LATERAL 0x18008201 /* Move / Aim: left / right */ -#define DIAXIS_GOLF_MOVE 0x18010202 /* Move / Aim: up / down */ -#define DIBUTTON_GOLF_SWING 0x18000401 /* swing club */ -#define DIBUTTON_GOLF_SELECT 0x18000402 /* cycle between: club / swing strength / ball arc / ball spin */ -#define DIBUTTON_GOLF_UP 0x18000403 /* increase selection */ -#define DIBUTTON_GOLF_DOWN 0x18000404 /* decrease selection */ -#define DIBUTTON_GOLF_TERRAIN 0x18000405 /* shows terrain detail */ -#define DIBUTTON_GOLF_FLYBY 0x18000406 /* view the hole via a flyby */ -#define DIBUTTON_GOLF_MENU 0x180004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_GOLF_SCROLL 0x18004601 /* scroll view */ -#define DIBUTTON_GOLF_ZOOM 0x18004407 /* Zoom view in / out */ -#define DIBUTTON_GOLF_TIMEOUT 0x18004408 /* Call for time out */ -#define DIBUTTON_GOLF_SUBSTITUTE 0x18004409 /* substitute one player for another */ -#define DIBUTTON_GOLF_LEFT_LINK 0x1800C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_GOLF_RIGHT_LINK 0x1800C4EC /* Fallback sidestep right button */ -#define DIBUTTON_GOLF_FORWARD_LINK 0x180144E0 /* Fallback move forward button */ -#define DIBUTTON_GOLF_BACK_LINK 0x180144E8 /* Fallback move back button */ -#define DIBUTTON_GOLF_DEVICE 0x180044FE /* Show input device and controls */ -#define DIBUTTON_GOLF_PAUSE 0x180044FC /* Start / Pause / Restart game */ - -/*--- Sports - Hockey - Offense - Offense ---*/ -#define DIVIRTUAL_SPORTS_HOCKEY_OFFENSE 0x19000000 -#define DIAXIS_HOCKEYO_LATERAL 0x19008201 /* Move / Aim: left / right */ -#define DIAXIS_HOCKEYO_MOVE 0x19010202 /* Move / Aim: up / down */ -#define DIBUTTON_HOCKEYO_SHOOT 0x19000401 /* Shoot */ -#define DIBUTTON_HOCKEYO_PASS 0x19000402 /* pass the puck */ -#define DIBUTTON_HOCKEYO_BURST 0x19000403 /* invoke speed burst */ -#define DIBUTTON_HOCKEYO_SPECIAL 0x19000404 /* invoke special move */ -#define DIBUTTON_HOCKEYO_FAKE 0x19000405 /* hold down to fake pass or kick */ -#define DIBUTTON_HOCKEYO_MENU 0x190004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_HOCKEYO_SCROLL 0x19004601 /* scroll view */ -#define DIBUTTON_HOCKEYO_ZOOM 0x19004406 /* Zoom view in / out */ -#define DIBUTTON_HOCKEYO_STRATEGY 0x19004407 /* Invoke coaching menu for strategy help */ -#define DIBUTTON_HOCKEYO_TIMEOUT 0x19004408 /* Call for time out */ -#define DIBUTTON_HOCKEYO_SUBSTITUTE 0x19004409 /* substitute one player for another */ -#define DIBUTTON_HOCKEYO_LEFT_LINK 0x1900C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_HOCKEYO_RIGHT_LINK 0x1900C4EC /* Fallback sidestep right button */ -#define DIBUTTON_HOCKEYO_FORWARD_LINK 0x190144E0 /* Fallback move forward button */ -#define DIBUTTON_HOCKEYO_BACK_LINK 0x190144E8 /* Fallback move back button */ -#define DIBUTTON_HOCKEYO_DEVICE 0x190044FE /* Show input device and controls */ -#define DIBUTTON_HOCKEYO_PAUSE 0x190044FC /* Start / Pause / Restart game */ - -/*--- Sports - Hockey - Defense - Defense ---*/ -#define DIVIRTUAL_SPORTS_HOCKEY_DEFENSE 0x1A000000 -#define DIAXIS_HOCKEYD_LATERAL 0x1A008201 /* Move / Aim: left / right */ -#define DIAXIS_HOCKEYD_MOVE 0x1A010202 /* Move / Aim: up / down */ -#define DIBUTTON_HOCKEYD_PLAYER 0x1A000401 /* control player closest to the puck */ -#define DIBUTTON_HOCKEYD_STEAL 0x1A000402 /* attempt steal */ -#define DIBUTTON_HOCKEYD_BURST 0x1A000403 /* speed burst or body check */ -#define DIBUTTON_HOCKEYD_BLOCK 0x1A000404 /* block puck */ -#define DIBUTTON_HOCKEYD_FAKE 0x1A000405 /* hold down to fake tackle or intercept */ -#define DIBUTTON_HOCKEYD_MENU 0x1A0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_HOCKEYD_SCROLL 0x1A004601 /* scroll view */ -#define DIBUTTON_HOCKEYD_ZOOM 0x1A004406 /* Zoom view in / out */ -#define DIBUTTON_HOCKEYD_STRATEGY 0x1A004407 /* Invoke coaching menu for strategy help */ -#define DIBUTTON_HOCKEYD_TIMEOUT 0x1A004408 /* Call for time out */ -#define DIBUTTON_HOCKEYD_SUBSTITUTE 0x1A004409 /* substitute one player for another */ -#define DIBUTTON_HOCKEYD_LEFT_LINK 0x1A00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_HOCKEYD_RIGHT_LINK 0x1A00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_HOCKEYD_FORWARD_LINK 0x1A0144E0 /* Fallback move forward button */ -#define DIBUTTON_HOCKEYD_BACK_LINK 0x1A0144E8 /* Fallback move back button */ -#define DIBUTTON_HOCKEYD_DEVICE 0x1A0044FE /* Show input device and controls */ -#define DIBUTTON_HOCKEYD_PAUSE 0x1A0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Hockey - Goalie - Goal tending ---*/ -#define DIVIRTUAL_SPORTS_HOCKEY_GOALIE 0x1B000000 -#define DIAXIS_HOCKEYG_LATERAL 0x1B008201 /* Move / Aim: left / right */ -#define DIAXIS_HOCKEYG_MOVE 0x1B010202 /* Move / Aim: up / down */ -#define DIBUTTON_HOCKEYG_PASS 0x1B000401 /* pass puck */ -#define DIBUTTON_HOCKEYG_POKE 0x1B000402 /* poke / check / hack */ -#define DIBUTTON_HOCKEYG_STEAL 0x1B000403 /* attempt steal */ -#define DIBUTTON_HOCKEYG_BLOCK 0x1B000404 /* block puck */ -#define DIBUTTON_HOCKEYG_MENU 0x1B0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_HOCKEYG_SCROLL 0x1B004601 /* scroll view */ -#define DIBUTTON_HOCKEYG_ZOOM 0x1B004405 /* Zoom view in / out */ -#define DIBUTTON_HOCKEYG_STRATEGY 0x1B004406 /* Invoke coaching menu for strategy help */ -#define DIBUTTON_HOCKEYG_TIMEOUT 0x1B004407 /* Call for time out */ -#define DIBUTTON_HOCKEYG_SUBSTITUTE 0x1B004408 /* substitute one player for another */ -#define DIBUTTON_HOCKEYG_LEFT_LINK 0x1B00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_HOCKEYG_RIGHT_LINK 0x1B00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_HOCKEYG_FORWARD_LINK 0x1B0144E0 /* Fallback move forward button */ -#define DIBUTTON_HOCKEYG_BACK_LINK 0x1B0144E8 /* Fallback move back button */ -#define DIBUTTON_HOCKEYG_DEVICE 0x1B0044FE /* Show input device and controls */ -#define DIBUTTON_HOCKEYG_PAUSE 0x1B0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Mountain Biking - ---*/ -#define DIVIRTUAL_SPORTS_BIKING_MOUNTAIN 0x1C000000 -#define DIAXIS_BIKINGM_TURN 0x1C008201 /* left / right */ -#define DIAXIS_BIKINGM_PEDAL 0x1C010202 /* Pedal faster / slower / brake */ -#define DIBUTTON_BIKINGM_JUMP 0x1C000401 /* jump over obstacle */ -#define DIBUTTON_BIKINGM_CAMERA 0x1C000402 /* switch camera view */ -#define DIBUTTON_BIKINGM_SPECIAL1 0x1C000403 /* perform first special move */ -#define DIBUTTON_BIKINGM_SELECT 0x1C000404 /* Select */ -#define DIBUTTON_BIKINGM_SPECIAL2 0x1C000405 /* perform second special move */ -#define DIBUTTON_BIKINGM_MENU 0x1C0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_BIKINGM_SCROLL 0x1C004601 /* scroll view */ -#define DIBUTTON_BIKINGM_ZOOM 0x1C004406 /* Zoom view in / out */ -#define DIAXIS_BIKINGM_BRAKE 0x1C044203 /* Brake axis */ -#define DIBUTTON_BIKINGM_LEFT_LINK 0x1C00C4E4 /* Fallback turn left button */ -#define DIBUTTON_BIKINGM_RIGHT_LINK 0x1C00C4EC /* Fallback turn right button */ -#define DIBUTTON_BIKINGM_FASTER_LINK 0x1C0144E0 /* Fallback pedal faster button */ -#define DIBUTTON_BIKINGM_SLOWER_LINK 0x1C0144E8 /* Fallback pedal slower button */ -#define DIBUTTON_BIKINGM_BRAKE_BUTTON_LINK 0x1C0444E8 /* Fallback brake button */ -#define DIBUTTON_BIKINGM_DEVICE 0x1C0044FE /* Show input device and controls */ -#define DIBUTTON_BIKINGM_PAUSE 0x1C0044FC /* Start / Pause / Restart game */ - -/*--- Sports: Skiing / Snowboarding / Skateboarding - ---*/ -#define DIVIRTUAL_SPORTS_SKIING 0x1D000000 -#define DIAXIS_SKIING_TURN 0x1D008201 /* left / right */ -#define DIAXIS_SKIING_SPEED 0x1D010202 /* faster / slower */ -#define DIBUTTON_SKIING_JUMP 0x1D000401 /* Jump */ -#define DIBUTTON_SKIING_CROUCH 0x1D000402 /* crouch down */ -#define DIBUTTON_SKIING_CAMERA 0x1D000403 /* switch camera view */ -#define DIBUTTON_SKIING_SPECIAL1 0x1D000404 /* perform first special move */ -#define DIBUTTON_SKIING_SELECT 0x1D000405 /* Select */ -#define DIBUTTON_SKIING_SPECIAL2 0x1D000406 /* perform second special move */ -#define DIBUTTON_SKIING_MENU 0x1D0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_SKIING_GLANCE 0x1D004601 /* scroll view */ -#define DIBUTTON_SKIING_ZOOM 0x1D004407 /* Zoom view in / out */ -#define DIBUTTON_SKIING_LEFT_LINK 0x1D00C4E4 /* Fallback turn left button */ -#define DIBUTTON_SKIING_RIGHT_LINK 0x1D00C4EC /* Fallback turn right button */ -#define DIBUTTON_SKIING_FASTER_LINK 0x1D0144E0 /* Fallback increase speed button */ -#define DIBUTTON_SKIING_SLOWER_LINK 0x1D0144E8 /* Fallback decrease speed button */ -#define DIBUTTON_SKIING_DEVICE 0x1D0044FE /* Show input device and controls */ -#define DIBUTTON_SKIING_PAUSE 0x1D0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Soccer - Offense - Offense ---*/ -#define DIVIRTUAL_SPORTS_SOCCER_OFFENSE 0x1E000000 -#define DIAXIS_SOCCERO_LATERAL 0x1E008201 /* Move / Aim: left / right */ -#define DIAXIS_SOCCERO_MOVE 0x1E010202 /* Move / Aim: up / down */ -#define DIAXIS_SOCCERO_BEND 0x1E018203 /* Bend to soccer shot/pass */ -#define DIBUTTON_SOCCERO_SHOOT 0x1E000401 /* Shoot the ball */ -#define DIBUTTON_SOCCERO_PASS 0x1E000402 /* Pass */ -#define DIBUTTON_SOCCERO_FAKE 0x1E000403 /* Fake */ -#define DIBUTTON_SOCCERO_PLAYER 0x1E000404 /* Select next player */ -#define DIBUTTON_SOCCERO_SPECIAL1 0x1E000405 /* Apply special move */ -#define DIBUTTON_SOCCERO_SELECT 0x1E000406 /* Select special move */ -#define DIBUTTON_SOCCERO_MENU 0x1E0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_SOCCERO_GLANCE 0x1E004601 /* scroll view */ -#define DIBUTTON_SOCCERO_SUBSTITUTE 0x1E004407 /* Substitute one player for another */ -#define DIBUTTON_SOCCERO_SHOOTLOW 0x1E004408 /* Shoot the ball low */ -#define DIBUTTON_SOCCERO_SHOOTHIGH 0x1E004409 /* Shoot the ball high */ -#define DIBUTTON_SOCCERO_PASSTHRU 0x1E00440A /* Make a thru pass */ -#define DIBUTTON_SOCCERO_SPRINT 0x1E00440B /* Sprint / turbo boost */ -#define DIBUTTON_SOCCERO_CONTROL 0x1E00440C /* Obtain control of the ball */ -#define DIBUTTON_SOCCERO_HEAD 0x1E00440D /* Attempt to head the ball */ -#define DIBUTTON_SOCCERO_LEFT_LINK 0x1E00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_SOCCERO_RIGHT_LINK 0x1E00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_SOCCERO_FORWARD_LINK 0x1E0144E0 /* Fallback move forward button */ -#define DIBUTTON_SOCCERO_BACK_LINK 0x1E0144E8 /* Fallback move back button */ -#define DIBUTTON_SOCCERO_DEVICE 0x1E0044FE /* Show input device and controls */ -#define DIBUTTON_SOCCERO_PAUSE 0x1E0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Soccer - Defense - Defense ---*/ -#define DIVIRTUAL_SPORTS_SOCCER_DEFENSE 0x1F000000 -#define DIAXIS_SOCCERD_LATERAL 0x1F008201 /* Move / Aim: left / right */ -#define DIAXIS_SOCCERD_MOVE 0x1F010202 /* Move / Aim: up / down */ -#define DIBUTTON_SOCCERD_BLOCK 0x1F000401 /* Attempt to block shot */ -#define DIBUTTON_SOCCERD_STEAL 0x1F000402 /* Attempt to steal ball */ -#define DIBUTTON_SOCCERD_FAKE 0x1F000403 /* Fake a block or a steal */ -#define DIBUTTON_SOCCERD_PLAYER 0x1F000404 /* Select next player */ -#define DIBUTTON_SOCCERD_SPECIAL 0x1F000405 /* Apply special move */ -#define DIBUTTON_SOCCERD_SELECT 0x1F000406 /* Select special move */ -#define DIBUTTON_SOCCERD_SLIDE 0x1F000407 /* Attempt a slide tackle */ -#define DIBUTTON_SOCCERD_MENU 0x1F0004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_SOCCERD_GLANCE 0x1F004601 /* scroll view */ -#define DIBUTTON_SOCCERD_FOUL 0x1F004408 /* Initiate a foul / hard-foul */ -#define DIBUTTON_SOCCERD_HEAD 0x1F004409 /* Attempt a Header */ -#define DIBUTTON_SOCCERD_CLEAR 0x1F00440A /* Attempt to clear the ball down the field */ -#define DIBUTTON_SOCCERD_GOALIECHARGE 0x1F00440B /* Make the goalie charge out of the box */ -#define DIBUTTON_SOCCERD_SUBSTITUTE 0x1F00440C /* Substitute one player for another */ -#define DIBUTTON_SOCCERD_LEFT_LINK 0x1F00C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_SOCCERD_RIGHT_LINK 0x1F00C4EC /* Fallback sidestep right button */ -#define DIBUTTON_SOCCERD_FORWARD_LINK 0x1F0144E0 /* Fallback move forward button */ -#define DIBUTTON_SOCCERD_BACK_LINK 0x1F0144E8 /* Fallback move back button */ -#define DIBUTTON_SOCCERD_DEVICE 0x1F0044FE /* Show input device and controls */ -#define DIBUTTON_SOCCERD_PAUSE 0x1F0044FC /* Start / Pause / Restart game */ - -/*--- Sports - Racquet - Tennis - Table-Tennis - Squash ---*/ -#define DIVIRTUAL_SPORTS_RACQUET 0x20000000 -#define DIAXIS_RACQUET_LATERAL 0x20008201 /* Move / Aim: left / right */ -#define DIAXIS_RACQUET_MOVE 0x20010202 /* Move / Aim: up / down */ -#define DIBUTTON_RACQUET_SWING 0x20000401 /* Swing racquet */ -#define DIBUTTON_RACQUET_BACKSWING 0x20000402 /* Swing backhand */ -#define DIBUTTON_RACQUET_SMASH 0x20000403 /* Smash shot */ -#define DIBUTTON_RACQUET_SPECIAL 0x20000404 /* Special shot */ -#define DIBUTTON_RACQUET_SELECT 0x20000405 /* Select special shot */ -#define DIBUTTON_RACQUET_MENU 0x200004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_RACQUET_GLANCE 0x20004601 /* scroll view */ -#define DIBUTTON_RACQUET_TIMEOUT 0x20004406 /* Call for time out */ -#define DIBUTTON_RACQUET_SUBSTITUTE 0x20004407 /* Substitute one player for another */ -#define DIBUTTON_RACQUET_LEFT_LINK 0x2000C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_RACQUET_RIGHT_LINK 0x2000C4EC /* Fallback sidestep right button */ -#define DIBUTTON_RACQUET_FORWARD_LINK 0x200144E0 /* Fallback move forward button */ -#define DIBUTTON_RACQUET_BACK_LINK 0x200144E8 /* Fallback move back button */ -#define DIBUTTON_RACQUET_DEVICE 0x200044FE /* Show input device and controls */ -#define DIBUTTON_RACQUET_PAUSE 0x200044FC /* Start / Pause / Restart game */ - -/*--- Arcade- 2D - Side to Side movement ---*/ -#define DIVIRTUAL_ARCADE_SIDE2SIDE 0x21000000 -#define DIAXIS_ARCADES_LATERAL 0x21008201 /* left / right */ -#define DIAXIS_ARCADES_MOVE 0x21010202 /* up / down */ -#define DIBUTTON_ARCADES_THROW 0x21000401 /* throw object */ -#define DIBUTTON_ARCADES_CARRY 0x21000402 /* carry object */ -#define DIBUTTON_ARCADES_ATTACK 0x21000403 /* attack */ -#define DIBUTTON_ARCADES_SPECIAL 0x21000404 /* apply special move */ -#define DIBUTTON_ARCADES_SELECT 0x21000405 /* select special move */ -#define DIBUTTON_ARCADES_MENU 0x210004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_ARCADES_VIEW 0x21004601 /* scroll view left / right / up / down */ -#define DIBUTTON_ARCADES_LEFT_LINK 0x2100C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_ARCADES_RIGHT_LINK 0x2100C4EC /* Fallback sidestep right button */ -#define DIBUTTON_ARCADES_FORWARD_LINK 0x210144E0 /* Fallback move forward button */ -#define DIBUTTON_ARCADES_BACK_LINK 0x210144E8 /* Fallback move back button */ -#define DIBUTTON_ARCADES_VIEW_UP_LINK 0x2107C4E0 /* Fallback scroll view up button */ -#define DIBUTTON_ARCADES_VIEW_DOWN_LINK 0x2107C4E8 /* Fallback scroll view down button */ -#define DIBUTTON_ARCADES_VIEW_LEFT_LINK 0x2107C4E4 /* Fallback scroll view left button */ -#define DIBUTTON_ARCADES_VIEW_RIGHT_LINK 0x2107C4EC /* Fallback scroll view right button */ -#define DIBUTTON_ARCADES_DEVICE 0x210044FE /* Show input device and controls */ -#define DIBUTTON_ARCADES_PAUSE 0x210044FC /* Start / Pause / Restart game */ - -/*--- Arcade - Platform Game - Character moves around on screen ---*/ -#define DIVIRTUAL_ARCADE_PLATFORM 0x22000000 -#define DIAXIS_ARCADEP_LATERAL 0x22008201 /* Left / right */ -#define DIAXIS_ARCADEP_MOVE 0x22010202 /* Up / down */ -#define DIBUTTON_ARCADEP_JUMP 0x22000401 /* Jump */ -#define DIBUTTON_ARCADEP_FIRE 0x22000402 /* Fire */ -#define DIBUTTON_ARCADEP_CROUCH 0x22000403 /* Crouch */ -#define DIBUTTON_ARCADEP_SPECIAL 0x22000404 /* Apply special move */ -#define DIBUTTON_ARCADEP_SELECT 0x22000405 /* Select special move */ -#define DIBUTTON_ARCADEP_MENU 0x220004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_ARCADEP_VIEW 0x22004601 /* Scroll view */ -#define DIBUTTON_ARCADEP_FIRESECONDARY 0x22004406 /* Alternative fire button */ -#define DIBUTTON_ARCADEP_LEFT_LINK 0x2200C4E4 /* Fallback sidestep left button */ -#define DIBUTTON_ARCADEP_RIGHT_LINK 0x2200C4EC /* Fallback sidestep right button */ -#define DIBUTTON_ARCADEP_FORWARD_LINK 0x220144E0 /* Fallback move forward button */ -#define DIBUTTON_ARCADEP_BACK_LINK 0x220144E8 /* Fallback move back button */ -#define DIBUTTON_ARCADEP_VIEW_UP_LINK 0x2207C4E0 /* Fallback scroll view up button */ -#define DIBUTTON_ARCADEP_VIEW_DOWN_LINK 0x2207C4E8 /* Fallback scroll view down button */ -#define DIBUTTON_ARCADEP_VIEW_LEFT_LINK 0x2207C4E4 /* Fallback scroll view left button */ -#define DIBUTTON_ARCADEP_VIEW_RIGHT_LINK 0x2207C4EC /* Fallback scroll view right button */ -#define DIBUTTON_ARCADEP_DEVICE 0x220044FE /* Show input device and controls */ -#define DIBUTTON_ARCADEP_PAUSE 0x220044FC /* Start / Pause / Restart game */ - -/*--- CAD - 2D Object Control - Controls to select and move objects in 2D ---*/ -#define DIVIRTUAL_CAD_2DCONTROL 0x23000000 -#define DIAXIS_2DCONTROL_LATERAL 0x23008201 /* Move view left / right */ -#define DIAXIS_2DCONTROL_MOVE 0x23010202 /* Move view up / down */ -#define DIAXIS_2DCONTROL_INOUT 0x23018203 /* Zoom - in / out */ -#define DIBUTTON_2DCONTROL_SELECT 0x23000401 /* Select Object */ -#define DIBUTTON_2DCONTROL_SPECIAL1 0x23000402 /* Do first special operation */ -#define DIBUTTON_2DCONTROL_SPECIAL 0x23000403 /* Select special operation */ -#define DIBUTTON_2DCONTROL_SPECIAL2 0x23000404 /* Do second special operation */ -#define DIBUTTON_2DCONTROL_MENU 0x230004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_2DCONTROL_HATSWITCH 0x23004601 /* Hat switch */ -#define DIAXIS_2DCONTROL_ROTATEZ 0x23024204 /* Rotate view clockwise / counterclockwise */ -#define DIBUTTON_2DCONTROL_DISPLAY 0x23004405 /* Shows next on-screen display options */ -#define DIBUTTON_2DCONTROL_DEVICE 0x230044FE /* Show input device and controls */ -#define DIBUTTON_2DCONTROL_PAUSE 0x230044FC /* Start / Pause / Restart game */ - -/*--- CAD - 3D object control - Controls to select and move objects within a 3D environment ---*/ -#define DIVIRTUAL_CAD_3DCONTROL 0x24000000 -#define DIAXIS_3DCONTROL_LATERAL 0x24008201 /* Move view left / right */ -#define DIAXIS_3DCONTROL_MOVE 0x24010202 /* Move view up / down */ -#define DIAXIS_3DCONTROL_INOUT 0x24018203 /* Zoom - in / out */ -#define DIBUTTON_3DCONTROL_SELECT 0x24000401 /* Select Object */ -#define DIBUTTON_3DCONTROL_SPECIAL1 0x24000402 /* Do first special operation */ -#define DIBUTTON_3DCONTROL_SPECIAL 0x24000403 /* Select special operation */ -#define DIBUTTON_3DCONTROL_SPECIAL2 0x24000404 /* Do second special operation */ -#define DIBUTTON_3DCONTROL_MENU 0x240004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_3DCONTROL_HATSWITCH 0x24004601 /* Hat switch */ -#define DIAXIS_3DCONTROL_ROTATEX 0x24034204 /* Rotate view forward or up / backward or down */ -#define DIAXIS_3DCONTROL_ROTATEY 0x2402C205 /* Rotate view clockwise / counterclockwise */ -#define DIAXIS_3DCONTROL_ROTATEZ 0x24024206 /* Rotate view left / right */ -#define DIBUTTON_3DCONTROL_DISPLAY 0x24004405 /* Show next on-screen display options */ -#define DIBUTTON_3DCONTROL_DEVICE 0x240044FE /* Show input device and controls */ -#define DIBUTTON_3DCONTROL_PAUSE 0x240044FC /* Start / Pause / Restart game */ - -/*--- CAD - 3D Navigation - Fly through - Controls for 3D modeling ---*/ -#define DIVIRTUAL_CAD_FLYBY 0x25000000 -#define DIAXIS_CADF_LATERAL 0x25008201 /* move view left / right */ -#define DIAXIS_CADF_MOVE 0x25010202 /* move view up / down */ -#define DIAXIS_CADF_INOUT 0x25018203 /* in / out */ -#define DIBUTTON_CADF_SELECT 0x25000401 /* Select Object */ -#define DIBUTTON_CADF_SPECIAL1 0x25000402 /* do first special operation */ -#define DIBUTTON_CADF_SPECIAL 0x25000403 /* Select special operation */ -#define DIBUTTON_CADF_SPECIAL2 0x25000404 /* do second special operation */ -#define DIBUTTON_CADF_MENU 0x250004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_CADF_HATSWITCH 0x25004601 /* Hat switch */ -#define DIAXIS_CADF_ROTATEX 0x25034204 /* Rotate view forward or up / backward or down */ -#define DIAXIS_CADF_ROTATEY 0x2502C205 /* Rotate view clockwise / counterclockwise */ -#define DIAXIS_CADF_ROTATEZ 0x25024206 /* Rotate view left / right */ -#define DIBUTTON_CADF_DISPLAY 0x25004405 /* shows next on-screen display options */ -#define DIBUTTON_CADF_DEVICE 0x250044FE /* Show input device and controls */ -#define DIBUTTON_CADF_PAUSE 0x250044FC /* Start / Pause / Restart game */ - -/*--- CAD - 3D Model Control - Controls for 3D modeling ---*/ -#define DIVIRTUAL_CAD_MODEL 0x26000000 -#define DIAXIS_CADM_LATERAL 0x26008201 /* move view left / right */ -#define DIAXIS_CADM_MOVE 0x26010202 /* move view up / down */ -#define DIAXIS_CADM_INOUT 0x26018203 /* in / out */ -#define DIBUTTON_CADM_SELECT 0x26000401 /* Select Object */ -#define DIBUTTON_CADM_SPECIAL1 0x26000402 /* do first special operation */ -#define DIBUTTON_CADM_SPECIAL 0x26000403 /* Select special operation */ -#define DIBUTTON_CADM_SPECIAL2 0x26000404 /* do second special operation */ -#define DIBUTTON_CADM_MENU 0x260004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIHATSWITCH_CADM_HATSWITCH 0x26004601 /* Hat switch */ -#define DIAXIS_CADM_ROTATEX 0x26034204 /* Rotate view forward or up / backward or down */ -#define DIAXIS_CADM_ROTATEY 0x2602C205 /* Rotate view clockwise / counterclockwise */ -#define DIAXIS_CADM_ROTATEZ 0x26024206 /* Rotate view left / right */ -#define DIBUTTON_CADM_DISPLAY 0x26004405 /* shows next on-screen display options */ -#define DIBUTTON_CADM_DEVICE 0x260044FE /* Show input device and controls */ -#define DIBUTTON_CADM_PAUSE 0x260044FC /* Start / Pause / Restart game */ - -/*--- Control - Media Equipment - Remote ---*/ -#define DIVIRTUAL_REMOTE_CONTROL 0x27000000 -#define DIAXIS_REMOTE_SLIDER 0x27050201 /* Slider for adjustment: volume / color / bass / etc */ -#define DIBUTTON_REMOTE_MUTE 0x27000401 /* Set volume on current device to zero */ -#define DIBUTTON_REMOTE_SELECT 0x27000402 /* Next/previous: channel/ track / chapter / picture / station */ -#define DIBUTTON_REMOTE_PLAY 0x27002403 /* Start or pause entertainment on current device */ -#define DIBUTTON_REMOTE_CUE 0x27002404 /* Move through current media */ -#define DIBUTTON_REMOTE_REVIEW 0x27002405 /* Move through current media */ -#define DIBUTTON_REMOTE_CHANGE 0x27002406 /* Select next device */ -#define DIBUTTON_REMOTE_RECORD 0x27002407 /* Start recording the current media */ -#define DIBUTTON_REMOTE_MENU 0x270004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIAXIS_REMOTE_SLIDER2 0x27054202 /* Slider for adjustment: volume */ -#define DIBUTTON_REMOTE_TV 0x27005C08 /* Select TV */ -#define DIBUTTON_REMOTE_CABLE 0x27005C09 /* Select cable box */ -#define DIBUTTON_REMOTE_CD 0x27005C0A /* Select CD player */ -#define DIBUTTON_REMOTE_VCR 0x27005C0B /* Select VCR */ -#define DIBUTTON_REMOTE_TUNER 0x27005C0C /* Select tuner */ -#define DIBUTTON_REMOTE_DVD 0x27005C0D /* Select DVD player */ -#define DIBUTTON_REMOTE_ADJUST 0x27005C0E /* Enter device adjustment menu */ -#define DIBUTTON_REMOTE_DIGIT0 0x2700540F /* Digit 0 */ -#define DIBUTTON_REMOTE_DIGIT1 0x27005410 /* Digit 1 */ -#define DIBUTTON_REMOTE_DIGIT2 0x27005411 /* Digit 2 */ -#define DIBUTTON_REMOTE_DIGIT3 0x27005412 /* Digit 3 */ -#define DIBUTTON_REMOTE_DIGIT4 0x27005413 /* Digit 4 */ -#define DIBUTTON_REMOTE_DIGIT5 0x27005414 /* Digit 5 */ -#define DIBUTTON_REMOTE_DIGIT6 0x27005415 /* Digit 6 */ -#define DIBUTTON_REMOTE_DIGIT7 0x27005416 /* Digit 7 */ -#define DIBUTTON_REMOTE_DIGIT8 0x27005417 /* Digit 8 */ -#define DIBUTTON_REMOTE_DIGIT9 0x27005418 /* Digit 9 */ -#define DIBUTTON_REMOTE_DEVICE 0x270044FE /* Show input device and controls */ -#define DIBUTTON_REMOTE_PAUSE 0x270044FC /* Start / Pause / Restart game */ - -/*--- Control- Web - Help or Browser ---*/ -#define DIVIRTUAL_BROWSER_CONTROL 0x28000000 -#define DIAXIS_BROWSER_LATERAL 0x28008201 /* Move on screen pointer */ -#define DIAXIS_BROWSER_MOVE 0x28010202 /* Move on screen pointer */ -#define DIBUTTON_BROWSER_SELECT 0x28000401 /* Select current item */ -#define DIAXIS_BROWSER_VIEW 0x28018203 /* Move view up/down */ -#define DIBUTTON_BROWSER_REFRESH 0x28000402 /* Refresh */ -#define DIBUTTON_BROWSER_MENU 0x280004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_BROWSER_SEARCH 0x28004403 /* Use search tool */ -#define DIBUTTON_BROWSER_STOP 0x28004404 /* Cease current update */ -#define DIBUTTON_BROWSER_HOME 0x28004405 /* Go directly to "home" location */ -#define DIBUTTON_BROWSER_FAVORITES 0x28004406 /* Mark current site as favorite */ -#define DIBUTTON_BROWSER_NEXT 0x28004407 /* Select Next page */ -#define DIBUTTON_BROWSER_PREVIOUS 0x28004408 /* Select Previous page */ -#define DIBUTTON_BROWSER_HISTORY 0x28004409 /* Show/Hide History */ -#define DIBUTTON_BROWSER_PRINT 0x2800440A /* Print current page */ -#define DIBUTTON_BROWSER_DEVICE 0x280044FE /* Show input device and controls */ -#define DIBUTTON_BROWSER_PAUSE 0x280044FC /* Start / Pause / Restart game */ - -/*--- Driving Simulator - Giant Walking Robot - Walking tank with weapons ---*/ -#define DIVIRTUAL_DRIVING_MECHA 0x29000000 -#define DIAXIS_MECHA_STEER 0x29008201 /* Turns mecha left/right */ -#define DIAXIS_MECHA_TORSO 0x29010202 /* Tilts torso forward/backward */ -#define DIAXIS_MECHA_ROTATE 0x29020203 /* Turns torso left/right */ -#define DIAXIS_MECHA_THROTTLE 0x29038204 /* Engine Speed */ -#define DIBUTTON_MECHA_FIRE 0x29000401 /* Fire */ -#define DIBUTTON_MECHA_WEAPONS 0x29000402 /* Select next weapon group */ -#define DIBUTTON_MECHA_TARGET 0x29000403 /* Select closest enemy available target */ -#define DIBUTTON_MECHA_REVERSE 0x29000404 /* Toggles throttle in/out of reverse */ -#define DIBUTTON_MECHA_ZOOM 0x29000405 /* Zoom in/out targeting reticule */ -#define DIBUTTON_MECHA_JUMP 0x29000406 /* Fires jump jets */ -#define DIBUTTON_MECHA_MENU 0x290004FD /* Show menu options */ -/*--- Priority 2 controls ---*/ - -#define DIBUTTON_MECHA_CENTER 0x29004407 /* Center torso to legs */ -#define DIHATSWITCH_MECHA_GLANCE 0x29004601 /* Look around */ -#define DIBUTTON_MECHA_VIEW 0x29004408 /* Cycle through view options */ -#define DIBUTTON_MECHA_FIRESECONDARY 0x29004409 /* Alternative fire button */ -#define DIBUTTON_MECHA_LEFT_LINK 0x2900C4E4 /* Fallback steer left button */ -#define DIBUTTON_MECHA_RIGHT_LINK 0x2900C4EC /* Fallback steer right button */ -#define DIBUTTON_MECHA_FORWARD_LINK 0x290144E0 /* Fallback tilt torso forward button */ -#define DIBUTTON_MECHA_BACK_LINK 0x290144E8 /* Fallback tilt toroso backward button */ -#define DIBUTTON_MECHA_ROTATE_LEFT_LINK 0x290244E4 /* Fallback rotate toroso right button */ -#define DIBUTTON_MECHA_ROTATE_RIGHT_LINK 0x290244EC /* Fallback rotate torso left button */ -#define DIBUTTON_MECHA_FASTER_LINK 0x2903C4E0 /* Fallback increase engine speed */ -#define DIBUTTON_MECHA_SLOWER_LINK 0x2903C4E8 /* Fallback decrease engine speed */ -#define DIBUTTON_MECHA_DEVICE 0x290044FE /* Show input device and controls */ -#define DIBUTTON_MECHA_PAUSE 0x290044FC /* Start / Pause / Restart game */ - -/* - * "ANY" semantics can be used as a last resort to get mappings for actions - * that match nothing in the chosen virtual genre. These semantics will be - * mapped at a lower priority that virtual genre semantics. Also, hardware - * vendors will not be able to provide sensible mappings for these unless - * they provide application specific mappings. - */ -#define DIAXIS_ANY_X_1 0xFF00C201 -#define DIAXIS_ANY_X_2 0xFF00C202 -#define DIAXIS_ANY_Y_1 0xFF014201 -#define DIAXIS_ANY_Y_2 0xFF014202 -#define DIAXIS_ANY_Z_1 0xFF01C201 -#define DIAXIS_ANY_Z_2 0xFF01C202 -#define DIAXIS_ANY_R_1 0xFF024201 -#define DIAXIS_ANY_R_2 0xFF024202 -#define DIAXIS_ANY_U_1 0xFF02C201 -#define DIAXIS_ANY_U_2 0xFF02C202 -#define DIAXIS_ANY_V_1 0xFF034201 -#define DIAXIS_ANY_V_2 0xFF034202 -#define DIAXIS_ANY_A_1 0xFF03C201 -#define DIAXIS_ANY_A_2 0xFF03C202 -#define DIAXIS_ANY_B_1 0xFF044201 -#define DIAXIS_ANY_B_2 0xFF044202 -#define DIAXIS_ANY_C_1 0xFF04C201 -#define DIAXIS_ANY_C_2 0xFF04C202 -#define DIAXIS_ANY_S_1 0xFF054201 -#define DIAXIS_ANY_S_2 0xFF054202 - -#define DIAXIS_ANY_1 0xFF004201 -#define DIAXIS_ANY_2 0xFF004202 -#define DIAXIS_ANY_3 0xFF004203 -#define DIAXIS_ANY_4 0xFF004204 - -#define DIPOV_ANY_1 0xFF004601 -#define DIPOV_ANY_2 0xFF004602 -#define DIPOV_ANY_3 0xFF004603 -#define DIPOV_ANY_4 0xFF004604 - -#define DIBUTTON_ANY(instance) ( 0xFF004400 | instance ) - - -#ifdef __cplusplus -}; -#endif - -#endif /* __DINPUT_INCLUDED__ */ - -/**************************************************************************** - * - * Definitions for non-IDirectInput (VJoyD) features defined more recently - * than the current sdk files - * - ****************************************************************************/ - -#ifdef _INC_MMSYSTEM -#ifndef MMNOJOY - -#ifndef __VJOYDX_INCLUDED__ -#define __VJOYDX_INCLUDED__ - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Flag to indicate that the dwReserved2 field of the JOYINFOEX structure - * contains mini-driver specific data to be passed by VJoyD to the mini- - * driver instead of doing a poll. - */ -#define JOY_PASSDRIVERDATA 0x10000000l - -/* - * Informs the joystick driver that the configuration has been changed - * and should be reloaded from the registery. - * dwFlags is reserved and should be set to zero - */ -WINMMAPI MMRESULT WINAPI joyConfigChanged( DWORD dwFlags ); - -#ifndef DIJ_RINGZERO -/* - * Invoke the joystick control panel directly, using the passed window handle - * as the parent of the dialog. This API is only supported for compatibility - * purposes; new applications should use the RunControlPanel method of a - * device interface for a game controller. - * The API is called by using the function pointer returned by - * GetProcAddress( hCPL, TEXT("ShowJoyCPL") ) where hCPL is a HMODULE returned - * by LoadLibrary( TEXT("joy.cpl") ). The typedef is provided to allow - * declaration and casting of an appropriately typed variable. - */ -void WINAPI ShowJoyCPL( HWND hWnd ); -typedef void (WINAPI* LPFNSHOWJOYCPL)( HWND hWnd ); -#endif /* DIJ_RINGZERO */ - - -/* - * Hardware Setting indicating that the device is a headtracker - */ -#define JOY_HWS_ISHEADTRACKER 0x02000000l - -/* - * Hardware Setting indicating that the VxD is used to replace - * the standard analog polling - */ -#define JOY_HWS_ISGAMEPORTDRIVER 0x04000000l - -/* - * Hardware Setting indicating that the driver needs a standard - * gameport in order to communicate with the device. - */ -#define JOY_HWS_ISANALOGPORTDRIVER 0x08000000l - -/* - * Hardware Setting indicating that VJoyD should not load this - * driver, it will be loaded externally and will register with - * VJoyD of it's own accord. - */ -#define JOY_HWS_AUTOLOAD 0x10000000l - -/* - * Hardware Setting indicating that the driver acquires any - * resources needed without needing a devnode through VJoyD. - */ -#define JOY_HWS_NODEVNODE 0x20000000l - - -/* - * Hardware Setting indicating that the device is a gameport bus - */ -#define JOY_HWS_ISGAMEPORTBUS 0x80000000l -#define JOY_HWS_GAMEPORTBUSBUSY 0x00000001l - -/* - * Usage Setting indicating that the settings are volatile and - * should be removed if still present on a reboot. - */ -#define JOY_US_VOLATILE 0x00000008L - -#ifdef __cplusplus -}; -#endif - -#endif /* __VJOYDX_INCLUDED__ */ - -#endif /* not MMNOJOY */ -#endif /* _INC_MMSYSTEM */ - -/**************************************************************************** - * - * Definitions for non-IDirectInput (VJoyD) features defined more recently - * than the current ddk files - * - ****************************************************************************/ - -#ifndef DIJ_RINGZERO - -#ifdef _INC_MMDDK -#ifndef MMNOJOYDEV - -#ifndef __VJOYDXD_INCLUDED__ -#define __VJOYDXD_INCLUDED__ -/* - * Poll type in which the do_other field of the JOYOEMPOLLDATA - * structure contains mini-driver specific data passed from an app. - */ -#define JOY_OEMPOLL_PASSDRIVERDATA 7 - -#endif /* __VJOYDXD_INCLUDED__ */ - -#endif /* not MMNOJOYDEV */ -#endif /* _INC_MMDDK */ - -#endif /* DIJ_RINGZERO */ - -#endif diff --git a/platform/Windows/include/dx/dsound.h b/platform/Windows/include/dx/dsound.h deleted file mode 100644 index 4c56c3375..000000000 --- a/platform/Windows/include/dx/dsound.h +++ /dev/null @@ -1,2353 +0,0 @@ -/*==========================================================================; - * - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * File: dsound.h - * Content: DirectSound include file - * - **************************************************************************/ - -// from: http://alleg.sourceforge.net/files/dx9mgw.zip - -#define COM_NO_WINDOWS_H -#include -#include - -#ifndef DIRECTSOUND_VERSION -#define DIRECTSOUND_VERSION 0x0900 /* Version 9.0 */ -#endif - -#include "dx_compat.h" // EDuke32 - -#ifdef __cplusplus -extern "C" { -#endif // __cplusplus - -#ifndef __DSOUND_INCLUDED__ -#define __DSOUND_INCLUDED__ - -/* Type definitions shared with Direct3D */ - -#ifndef DX_SHARED_DEFINES - -typedef float D3DVALUE, *LPD3DVALUE; - -#ifndef D3DCOLOR_DEFINED -typedef DWORD D3DCOLOR; -#define D3DCOLOR_DEFINED -#endif - -#ifndef LPD3DCOLOR_DEFINED -typedef DWORD *LPD3DCOLOR; -#define LPD3DCOLOR_DEFINED -#endif - -#ifndef D3DVECTOR_DEFINED -typedef struct _D3DVECTOR { - float x; - float y; - float z; -} D3DVECTOR; -#define D3DVECTOR_DEFINED -#endif - -#ifndef LPD3DVECTOR_DEFINED -typedef D3DVECTOR *LPD3DVECTOR; -#define LPD3DVECTOR_DEFINED -#endif - -#define DX_SHARED_DEFINES -#endif // DX_SHARED_DEFINES - -#define _FACDS 0x878 /* DirectSound's facility code */ -#define MAKE_DSHRESULT(code) MAKE_HRESULT(1, _FACDS, code) - -// DirectSound Component GUID {47D4D946-62E8-11CF-93BC-444553540000} -DEFINE_GUID(CLSID_DirectSound, 0x47d4d946, 0x62e8, 0x11cf, 0x93, 0xbc, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0); - -// DirectSound 8.0 Component GUID {3901CC3F-84B5-4FA4-BA35-AA8172B8A09B} -DEFINE_GUID(CLSID_DirectSound8, 0x3901cc3f, 0x84b5, 0x4fa4, 0xba, 0x35, 0xaa, 0x81, 0x72, 0xb8, 0xa0, 0x9b); - -// DirectSound Capture Component GUID {B0210780-89CD-11D0-AF08-00A0C925CD16} -DEFINE_GUID(CLSID_DirectSoundCapture, 0xb0210780, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); - -// DirectSound 8.0 Capture Component GUID {E4BCAC13-7F99-4908-9A8E-74E3BF24B6E1} -DEFINE_GUID(CLSID_DirectSoundCapture8, 0xe4bcac13, 0x7f99, 0x4908, 0x9a, 0x8e, 0x74, 0xe3, 0xbf, 0x24, 0xb6, 0xe1); - -// DirectSound Full Duplex Component GUID {FEA4300C-7959-4147-B26A-2377B9E7A91D} -DEFINE_GUID(CLSID_DirectSoundFullDuplex, 0xfea4300c, 0x7959, 0x4147, 0xb2, 0x6a, 0x23, 0x77, 0xb9, 0xe7, 0xa9, 0x1d); - - -// DirectSound default playback device GUID {DEF00000-9C6D-47ED-AAF1-4DDA8F2B5C03} -DEFINE_GUID(DSDEVID_DefaultPlayback, 0xdef00000, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); - -// DirectSound default capture device GUID {DEF00001-9C6D-47ED-AAF1-4DDA8F2B5C03} -DEFINE_GUID(DSDEVID_DefaultCapture, 0xdef00001, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); - -// DirectSound default device for voice playback {DEF00002-9C6D-47ED-AAF1-4DDA8F2B5C03} -DEFINE_GUID(DSDEVID_DefaultVoicePlayback, 0xdef00002, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); - -// DirectSound default device for voice capture {DEF00003-9C6D-47ED-AAF1-4DDA8F2B5C03} -DEFINE_GUID(DSDEVID_DefaultVoiceCapture, 0xdef00003, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); - - -// -// Forward declarations for interfaces. -// 'struct' not 'class' per the way DECLARE_INTERFACE_ is defined -// - -#ifdef __cplusplus -struct IDirectSound; -struct IDirectSoundBuffer; -struct IDirectSound3DListener; -struct IDirectSound3DBuffer; -struct IDirectSoundCapture; -struct IDirectSoundCaptureBuffer; -struct IDirectSoundNotify; -#endif // __cplusplus - - -// -// DirectSound 8.0 interfaces. -// - -#if DIRECTSOUND_VERSION >= 0x0800 - -#ifdef __cplusplus -struct IDirectSound8; -struct IDirectSoundBuffer8; -struct IDirectSoundCaptureBuffer8; -struct IDirectSoundFXGargle; -struct IDirectSoundFXChorus; -struct IDirectSoundFXFlanger; -struct IDirectSoundFXEcho; -struct IDirectSoundFXDistortion; -struct IDirectSoundFXCompressor; -struct IDirectSoundFXParamEq; -struct IDirectSoundFXWavesReverb; -struct IDirectSoundFXI3DL2Reverb; -struct IDirectSoundCaptureFXAec; -struct IDirectSoundCaptureFXNoiseSuppress; -struct IDirectSoundFullDuplex; -#endif // __cplusplus - -// IDirectSound8, IDirectSoundBuffer8 and IDirectSoundCaptureBuffer8 are the -// only DirectSound 7.0 interfaces with changed functionality in version 8.0. -// The other level 8 interfaces as equivalent to their level 7 counterparts: - -#define IDirectSoundCapture8 IDirectSoundCapture -#define IDirectSound3DListener8 IDirectSound3DListener -#define IDirectSound3DBuffer8 IDirectSound3DBuffer -#define IDirectSoundNotify8 IDirectSoundNotify -#define IDirectSoundFXGargle8 IDirectSoundFXGargle -#define IDirectSoundFXChorus8 IDirectSoundFXChorus -#define IDirectSoundFXFlanger8 IDirectSoundFXFlanger -#define IDirectSoundFXEcho8 IDirectSoundFXEcho -#define IDirectSoundFXDistortion8 IDirectSoundFXDistortion -#define IDirectSoundFXCompressor8 IDirectSoundFXCompressor -#define IDirectSoundFXParamEq8 IDirectSoundFXParamEq -#define IDirectSoundFXWavesReverb8 IDirectSoundFXWavesReverb -#define IDirectSoundFXI3DL2Reverb8 IDirectSoundFXI3DL2Reverb -#define IDirectSoundCaptureFXAec8 IDirectSoundCaptureFXAec -#define IDirectSoundCaptureFXNoiseSuppress8 IDirectSoundCaptureFXNoiseSuppress -#define IDirectSoundFullDuplex8 IDirectSoundFullDuplex - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -typedef struct IDirectSound *LPDIRECTSOUND; -typedef struct IDirectSoundBuffer *LPDIRECTSOUNDBUFFER; -typedef struct IDirectSound3DListener *LPDIRECTSOUND3DLISTENER; -typedef struct IDirectSound3DBuffer *LPDIRECTSOUND3DBUFFER; -typedef struct IDirectSoundCapture *LPDIRECTSOUNDCAPTURE; -typedef struct IDirectSoundCaptureBuffer *LPDIRECTSOUNDCAPTUREBUFFER; -typedef struct IDirectSoundNotify *LPDIRECTSOUNDNOTIFY; - - -#if DIRECTSOUND_VERSION >= 0x0800 - -typedef struct IDirectSoundFXGargle *LPDIRECTSOUNDFXGARGLE; -typedef struct IDirectSoundFXChorus *LPDIRECTSOUNDFXCHORUS; -typedef struct IDirectSoundFXFlanger *LPDIRECTSOUNDFXFLANGER; -typedef struct IDirectSoundFXEcho *LPDIRECTSOUNDFXECHO; -typedef struct IDirectSoundFXDistortion *LPDIRECTSOUNDFXDISTORTION; -typedef struct IDirectSoundFXCompressor *LPDIRECTSOUNDFXCOMPRESSOR; -typedef struct IDirectSoundFXParamEq *LPDIRECTSOUNDFXPARAMEQ; -typedef struct IDirectSoundFXWavesReverb *LPDIRECTSOUNDFXWAVESREVERB; -typedef struct IDirectSoundFXI3DL2Reverb *LPDIRECTSOUNDFXI3DL2REVERB; -typedef struct IDirectSoundCaptureFXAec *LPDIRECTSOUNDCAPTUREFXAEC; -typedef struct IDirectSoundCaptureFXNoiseSuppress *LPDIRECTSOUNDCAPTUREFXNOISESUPPRESS; -typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; - -typedef struct IDirectSound8 *LPDIRECTSOUND8; -typedef struct IDirectSoundBuffer8 *LPDIRECTSOUNDBUFFER8; -typedef struct IDirectSound3DListener8 *LPDIRECTSOUND3DLISTENER8; -typedef struct IDirectSound3DBuffer8 *LPDIRECTSOUND3DBUFFER8; -typedef struct IDirectSoundCapture8 *LPDIRECTSOUNDCAPTURE8; -typedef struct IDirectSoundCaptureBuffer8 *LPDIRECTSOUNDCAPTUREBUFFER8; -typedef struct IDirectSoundNotify8 *LPDIRECTSOUNDNOTIFY8; -typedef struct IDirectSoundFXGargle8 *LPDIRECTSOUNDFXGARGLE8; -typedef struct IDirectSoundFXChorus8 *LPDIRECTSOUNDFXCHORUS8; -typedef struct IDirectSoundFXFlanger8 *LPDIRECTSOUNDFXFLANGER8; -typedef struct IDirectSoundFXEcho8 *LPDIRECTSOUNDFXECHO8; -typedef struct IDirectSoundFXDistortion8 *LPDIRECTSOUNDFXDISTORTION8; -typedef struct IDirectSoundFXCompressor8 *LPDIRECTSOUNDFXCOMPRESSOR8; -typedef struct IDirectSoundFXParamEq8 *LPDIRECTSOUNDFXPARAMEQ8; -typedef struct IDirectSoundFXWavesReverb8 *LPDIRECTSOUNDFXWAVESREVERB8; -typedef struct IDirectSoundFXI3DL2Reverb8 *LPDIRECTSOUNDFXI3DL2REVERB8; -typedef struct IDirectSoundCaptureFXAec8 *LPDIRECTSOUNDCAPTUREFXAEC8; -typedef struct IDirectSoundCaptureFXNoiseSuppress8 *LPDIRECTSOUNDCAPTUREFXNOISESUPPRESS8; -typedef struct IDirectSoundFullDuplex8 *LPDIRECTSOUNDFULLDUPLEX8; - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -// -// IID definitions for the unchanged DirectSound 8.0 interfaces -// - -#if DIRECTSOUND_VERSION >= 0x0800 - -#define IID_IDirectSoundCapture8 IID_IDirectSoundCapture -#define IID_IDirectSound3DListener8 IID_IDirectSound3DListener -#define IID_IDirectSound3DBuffer8 IID_IDirectSound3DBuffer -#define IID_IDirectSoundNotify8 IID_IDirectSoundNotify -#define IID_IDirectSoundFXGargle8 IID_IDirectSoundFXGargle -#define IID_IDirectSoundFXChorus8 IID_IDirectSoundFXChorus -#define IID_IDirectSoundFXFlanger8 IID_IDirectSoundFXFlanger -#define IID_IDirectSoundFXEcho8 IID_IDirectSoundFXEcho -#define IID_IDirectSoundFXDistortion8 IID_IDirectSoundFXDistortion -#define IID_IDirectSoundFXCompressor8 IID_IDirectSoundFXCompressor -#define IID_IDirectSoundFXParamEq8 IID_IDirectSoundFXParamEq -#define IID_IDirectSoundFXWavesReverb8 IID_IDirectSoundFXWavesReverb -#define IID_IDirectSoundFXI3DL2Reverb8 IID_IDirectSoundFXI3DL2Reverb -#define IID_IDirectSoundCaptureFXAec8 IID_IDirectSoundCaptureFXAec -#define IID_IDirectSoundCaptureFXNoiseSuppress8 IID_IDirectSoundCaptureFXNoiseSuppress -#define IID_IDirectSoundFullDuplex8 IID_IDirectSoundFullDuplex - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -// -// Compatibility typedefs -// - -#ifndef _LPCWAVEFORMATEX_DEFINED -#define _LPCWAVEFORMATEX_DEFINED -typedef const WAVEFORMATEX *LPCWAVEFORMATEX; -#endif // _LPCWAVEFORMATEX_DEFINED - -#ifndef __LPCGUID_DEFINED__ -#define __LPCGUID_DEFINED__ -typedef const GUID *LPCGUID; -#endif // __LPCGUID_DEFINED__ - -typedef LPDIRECTSOUND *LPLPDIRECTSOUND; -typedef LPDIRECTSOUNDBUFFER *LPLPDIRECTSOUNDBUFFER; -typedef LPDIRECTSOUND3DLISTENER *LPLPDIRECTSOUND3DLISTENER; -typedef LPDIRECTSOUND3DBUFFER *LPLPDIRECTSOUND3DBUFFER; -typedef LPDIRECTSOUNDCAPTURE *LPLPDIRECTSOUNDCAPTURE; -typedef LPDIRECTSOUNDCAPTUREBUFFER *LPLPDIRECTSOUNDCAPTUREBUFFER; -typedef LPDIRECTSOUNDNOTIFY *LPLPDIRECTSOUNDNOTIFY; - -#if DIRECTSOUND_VERSION >= 0x0800 -typedef LPDIRECTSOUND8 *LPLPDIRECTSOUND8; -typedef LPDIRECTSOUNDBUFFER8 *LPLPDIRECTSOUNDBUFFER8; -typedef LPDIRECTSOUNDCAPTURE8 *LPLPDIRECTSOUNDCAPTURE8; -typedef LPDIRECTSOUNDCAPTUREBUFFER8 *LPLPDIRECTSOUNDCAPTUREBUFFER8; -#endif // DIRECTSOUND_VERSION >= 0x0800 - -// -// Structures -// - -typedef struct _DSCAPS -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwMinSecondarySampleRate; - DWORD dwMaxSecondarySampleRate; - DWORD dwPrimaryBuffers; - DWORD dwMaxHwMixingAllBuffers; - DWORD dwMaxHwMixingStaticBuffers; - DWORD dwMaxHwMixingStreamingBuffers; - DWORD dwFreeHwMixingAllBuffers; - DWORD dwFreeHwMixingStaticBuffers; - DWORD dwFreeHwMixingStreamingBuffers; - DWORD dwMaxHw3DAllBuffers; - DWORD dwMaxHw3DStaticBuffers; - DWORD dwMaxHw3DStreamingBuffers; - DWORD dwFreeHw3DAllBuffers; - DWORD dwFreeHw3DStaticBuffers; - DWORD dwFreeHw3DStreamingBuffers; - DWORD dwTotalHwMemBytes; - DWORD dwFreeHwMemBytes; - DWORD dwMaxContigFreeHwMemBytes; - DWORD dwUnlockTransferRateHwBuffers; - DWORD dwPlayCpuOverheadSwBuffers; - DWORD dwReserved1; - DWORD dwReserved2; -} DSCAPS, *LPDSCAPS; - -typedef const DSCAPS *LPCDSCAPS; - -typedef struct _DSBCAPS -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwBufferBytes; - DWORD dwUnlockTransferRate; - DWORD dwPlayCpuOverhead; -} DSBCAPS, *LPDSBCAPS; - -typedef const DSBCAPS *LPCDSBCAPS; - -#if DIRECTSOUND_VERSION >= 0x0800 - - typedef struct _DSEFFECTDESC - { - DWORD dwSize; - DWORD dwFlags; - GUID guidDSFXClass; - DWORD_PTR dwReserved1; - DWORD_PTR dwReserved2; - } DSEFFECTDESC, *LPDSEFFECTDESC; - typedef const DSEFFECTDESC *LPCDSEFFECTDESC; - - #define DSFX_LOCHARDWARE 0x00000001 - #define DSFX_LOCSOFTWARE 0x00000002 - - enum - { - DSFXR_PRESENT, // 0 - DSFXR_LOCHARDWARE, // 1 - DSFXR_LOCSOFTWARE, // 2 - DSFXR_UNALLOCATED, // 3 - DSFXR_FAILED, // 4 - DSFXR_UNKNOWN, // 5 - DSFXR_SENDLOOP // 6 - }; - - typedef struct _DSCEFFECTDESC - { - DWORD dwSize; - DWORD dwFlags; - GUID guidDSCFXClass; - GUID guidDSCFXInstance; - DWORD dwReserved1; - DWORD dwReserved2; - } DSCEFFECTDESC, *LPDSCEFFECTDESC; - typedef const DSCEFFECTDESC *LPCDSCEFFECTDESC; - - #define DSCFX_LOCHARDWARE 0x00000001 - #define DSCFX_LOCSOFTWARE 0x00000002 - - #define DSCFXR_LOCHARDWARE 0x00000010 - #define DSCFXR_LOCSOFTWARE 0x00000020 - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -typedef struct _DSBUFFERDESC -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwBufferBytes; - DWORD dwReserved; - LPWAVEFORMATEX lpwfxFormat; -#if DIRECTSOUND_VERSION >= 0x0700 - GUID guid3DAlgorithm; -#endif -} DSBUFFERDESC, *LPDSBUFFERDESC; - -typedef const DSBUFFERDESC *LPCDSBUFFERDESC; - -// Older version of this structure: - -typedef struct _DSBUFFERDESC1 -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwBufferBytes; - DWORD dwReserved; - LPWAVEFORMATEX lpwfxFormat; -} DSBUFFERDESC1, *LPDSBUFFERDESC1; - -typedef const DSBUFFERDESC1 *LPCDSBUFFERDESC1; - -typedef struct _DS3DBUFFER -{ - DWORD dwSize; - D3DVECTOR vPosition; - D3DVECTOR vVelocity; - DWORD dwInsideConeAngle; - DWORD dwOutsideConeAngle; - D3DVECTOR vConeOrientation; - LONG lConeOutsideVolume; - D3DVALUE flMinDistance; - D3DVALUE flMaxDistance; - DWORD dwMode; -} DS3DBUFFER, *LPDS3DBUFFER; - -typedef const DS3DBUFFER *LPCDS3DBUFFER; - -typedef struct _DS3DLISTENER -{ - DWORD dwSize; - D3DVECTOR vPosition; - D3DVECTOR vVelocity; - D3DVECTOR vOrientFront; - D3DVECTOR vOrientTop; - D3DVALUE flDistanceFactor; - D3DVALUE flRolloffFactor; - D3DVALUE flDopplerFactor; -} DS3DLISTENER, *LPDS3DLISTENER; - -typedef const DS3DLISTENER *LPCDS3DLISTENER; - -typedef struct _DSCCAPS -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwFormats; - DWORD dwChannels; -} DSCCAPS, *LPDSCCAPS; - -typedef const DSCCAPS *LPCDSCCAPS; - -typedef struct _DSCBUFFERDESC1 -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwBufferBytes; - DWORD dwReserved; - LPWAVEFORMATEX lpwfxFormat; -} DSCBUFFERDESC1, *LPDSCBUFFERDESC1; - -typedef struct _DSCBUFFERDESC -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwBufferBytes; - DWORD dwReserved; - LPWAVEFORMATEX lpwfxFormat; -#if DIRECTSOUND_VERSION >= 0x0800 - DWORD dwFXCount; - LPDSCEFFECTDESC lpDSCFXDesc; -#endif -} DSCBUFFERDESC, *LPDSCBUFFERDESC; - -typedef const DSCBUFFERDESC *LPCDSCBUFFERDESC; - -typedef struct _DSCBCAPS -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwBufferBytes; - DWORD dwReserved; -} DSCBCAPS, *LPDSCBCAPS; - -typedef const DSCBCAPS *LPCDSCBCAPS; - -typedef struct _DSBPOSITIONNOTIFY -{ - DWORD dwOffset; - HANDLE hEventNotify; -} DSBPOSITIONNOTIFY, *LPDSBPOSITIONNOTIFY; - -typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY; - -// -// DirectSound API -// - -typedef BOOL (CALLBACK *LPDSENUMCALLBACKA)(LPGUID, LPCSTR, LPCSTR, LPVOID); -typedef BOOL (CALLBACK *LPDSENUMCALLBACKW)(LPGUID, LPCWSTR, LPCWSTR, LPVOID); - -extern HRESULT WINAPI DirectSoundCreate(LPCGUID pcGuidDevice, LPDIRECTSOUND *ppDS, LPUNKNOWN pUnkOuter); -extern HRESULT WINAPI DirectSoundEnumerateA(LPDSENUMCALLBACKA pDSEnumCallback, LPVOID pContext); -extern HRESULT WINAPI DirectSoundEnumerateW(LPDSENUMCALLBACKW pDSEnumCallback, LPVOID pContext); - -extern HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID pcGuidDevice, LPDIRECTSOUNDCAPTURE *ppDSC, LPUNKNOWN pUnkOuter); -extern HRESULT WINAPI DirectSoundCaptureEnumerateA(LPDSENUMCALLBACKA pDSEnumCallback, LPVOID pContext); -extern HRESULT WINAPI DirectSoundCaptureEnumerateW(LPDSENUMCALLBACKW pDSEnumCallback, LPVOID pContext); - -#if DIRECTSOUND_VERSION >= 0x0800 -extern HRESULT WINAPI DirectSoundCreate8(LPCGUID pcGuidDevice, LPDIRECTSOUND8 *ppDS8, LPUNKNOWN pUnkOuter); -extern HRESULT WINAPI DirectSoundCaptureCreate8(LPCGUID pcGuidDevice, LPDIRECTSOUNDCAPTURE8 *ppDSC8, LPUNKNOWN pUnkOuter); -extern HRESULT WINAPI DirectSoundFullDuplexCreate(LPCGUID pcGuidCaptureDevice, LPCGUID pcGuidRenderDevice, - LPCDSCBUFFERDESC pcDSCBufferDesc, LPCDSBUFFERDESC pcDSBufferDesc, HWND hWnd, - DWORD dwLevel, LPDIRECTSOUNDFULLDUPLEX* ppDSFD, LPDIRECTSOUNDCAPTUREBUFFER8 *ppDSCBuffer8, - LPDIRECTSOUNDBUFFER8 *ppDSBuffer8, LPUNKNOWN pUnkOuter); -#define DirectSoundFullDuplexCreate8 DirectSoundFullDuplexCreate - -extern HRESULT WINAPI GetDeviceID(LPCGUID pGuidSrc, LPGUID pGuidDest); -#endif // DIRECTSOUND_VERSION >= 0x0800 - -#ifdef UNICODE -#define LPDSENUMCALLBACK LPDSENUMCALLBACKW -#define DirectSoundEnumerate DirectSoundEnumerateW -#define DirectSoundCaptureEnumerate DirectSoundCaptureEnumerateW -#else // UNICODE -#define LPDSENUMCALLBACK LPDSENUMCALLBACKA -#define DirectSoundEnumerate DirectSoundEnumerateA -#define DirectSoundCaptureEnumerate DirectSoundCaptureEnumerateA -#endif // UNICODE - -// -// IUnknown -// - -#if !defined(__cplusplus) || defined(CINTERFACE) -#ifndef IUnknown_QueryInterface -#define IUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#endif // IUnknown_QueryInterface -#ifndef IUnknown_AddRef -#define IUnknown_AddRef(p) (p)->lpVtbl->AddRef(p) -#endif // IUnknown_AddRef -#ifndef IUnknown_Release -#define IUnknown_Release(p) (p)->lpVtbl->Release(p) -#endif // IUnknown_Release -#else // !defined(__cplusplus) || defined(CINTERFACE) -#ifndef IUnknown_QueryInterface -#define IUnknown_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#endif // IUnknown_QueryInterface -#ifndef IUnknown_AddRef -#define IUnknown_AddRef(p) (p)->AddRef() -#endif // IUnknown_AddRef -#ifndef IUnknown_Release -#define IUnknown_Release(p) (p)->Release() -#endif // IUnknown_Release -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#ifndef __IReferenceClock_INTERFACE_DEFINED__ -#define __IReferenceClock_INTERFACE_DEFINED__ - -typedef LONGLONG REFERENCE_TIME; -typedef REFERENCE_TIME *LPREFERENCE_TIME; - -DEFINE_GUID(IID_IReferenceClock, 0x56a86897, 0x0ad4, 0x11ce, 0xb0, 0x3a, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70); - -#undef INTERFACE -#define INTERFACE IReferenceClock - -DECLARE_INTERFACE_(IReferenceClock, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IReferenceClock methods - STDMETHOD(GetTime) (THIS_ REFERENCE_TIME *pTime) PURE; - STDMETHOD(AdviseTime) (THIS_ REFERENCE_TIME rtBaseTime, REFERENCE_TIME rtStreamTime, - HANDLE hEvent, LPDWORD pdwAdviseCookie) PURE; - STDMETHOD(AdvisePeriodic) (THIS_ REFERENCE_TIME rtStartTime, REFERENCE_TIME rtPeriodTime, - HANDLE hSemaphore, LPDWORD pdwAdviseCookie) PURE; - STDMETHOD(Unadvise) (THIS_ DWORD dwAdviseCookie) PURE; -}; - -#endif // __IReferenceClock_INTERFACE_DEFINED__ - -#ifndef IReferenceClock_QueryInterface - -#define IReferenceClock_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IReferenceClock_AddRef(p) IUnknown_AddRef(p) -#define IReferenceClock_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a) -#define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d) -#define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d) -#define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IReferenceClock_GetTime(p,a) (p)->GetTime(a) -#define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->AdviseTime(a,b,c,d) -#define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->AdvisePeriodic(a,b,c,d) -#define IReferenceClock_Unadvise(p,a) (p)->Unadvise(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#endif // IReferenceClock_QueryInterface - -// -// IDirectSound -// - -DEFINE_GUID(IID_IDirectSound, 0x279AFA83, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); - -#undef INTERFACE -#define INTERFACE IDirectSound - -DECLARE_INTERFACE_(IDirectSound, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSound methods - STDMETHOD(CreateSoundBuffer) (THIS_ LPCDSBUFFERDESC pcDSBufferDesc, LPDIRECTSOUNDBUFFER *ppDSBuffer, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(GetCaps) (THIS_ LPDSCAPS pDSCaps) PURE; - STDMETHOD(DuplicateSoundBuffer) (THIS_ LPDIRECTSOUNDBUFFER pDSBufferOriginal, LPDIRECTSOUNDBUFFER *ppDSBufferDuplicate) PURE; - STDMETHOD(SetCooperativeLevel) (THIS_ HWND hwnd, DWORD dwLevel) PURE; - STDMETHOD(Compact) (THIS) PURE; - STDMETHOD(GetSpeakerConfig) (THIS_ LPDWORD pdwSpeakerConfig) PURE; - STDMETHOD(SetSpeakerConfig) (THIS_ DWORD dwSpeakerConfig) PURE; - STDMETHOD(Initialize) (THIS_ LPCGUID pcGuidDevice) PURE; -}; - -#define IDirectSound_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSound_AddRef(p) IUnknown_AddRef(p) -#define IDirectSound_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c) -#define IDirectSound_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) -#define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b) -#define IDirectSound_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectSound_Compact(p) (p)->lpVtbl->Compact(p) -#define IDirectSound_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a) -#define IDirectSound_SetSpeakerConfig(p,b) (p)->lpVtbl->SetSpeakerConfig(p,b) -#define IDirectSound_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c) -#define IDirectSound_GetCaps(p,a) (p)->GetCaps(a) -#define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b) -#define IDirectSound_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectSound_Compact(p) (p)->Compact() -#define IDirectSound_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a) -#define IDirectSound_SetSpeakerConfig(p,b) (p)->SetSpeakerConfig(b) -#define IDirectSound_Initialize(p,a) (p)->Initialize(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#if DIRECTSOUND_VERSION >= 0x0800 - -// -// IDirectSound8 -// - -DEFINE_GUID(IID_IDirectSound8, 0xC50A7E93, 0xF395, 0x4834, 0x9E, 0xF6, 0x7F, 0xA9, 0x9D, 0xE5, 0x09, 0x66); - -#undef INTERFACE -#define INTERFACE IDirectSound8 - -DECLARE_INTERFACE_(IDirectSound8, IDirectSound) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSound methods - STDMETHOD(CreateSoundBuffer) (THIS_ LPCDSBUFFERDESC pcDSBufferDesc, LPDIRECTSOUNDBUFFER *ppDSBuffer, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(GetCaps) (THIS_ LPDSCAPS pDSCaps) PURE; - STDMETHOD(DuplicateSoundBuffer) (THIS_ LPDIRECTSOUNDBUFFER pDSBufferOriginal, LPDIRECTSOUNDBUFFER *ppDSBufferDuplicate) PURE; - STDMETHOD(SetCooperativeLevel) (THIS_ HWND hwnd, DWORD dwLevel) PURE; - STDMETHOD(Compact) (THIS) PURE; - STDMETHOD(GetSpeakerConfig) (THIS_ LPDWORD pdwSpeakerConfig) PURE; - STDMETHOD(SetSpeakerConfig) (THIS_ DWORD dwSpeakerConfig) PURE; - STDMETHOD(Initialize) (THIS_ LPCGUID pcGuidDevice) PURE; - - // IDirectSound8 methods - STDMETHOD(VerifyCertification) (THIS_ LPDWORD pdwCertified) PURE; -}; - -#define IDirectSound8_QueryInterface(p,a,b) IDirectSound_QueryInterface(p,a,b) -#define IDirectSound8_AddRef(p) IDirectSound_AddRef(p) -#define IDirectSound8_Release(p) IDirectSound_Release(p) -#define IDirectSound8_CreateSoundBuffer(p,a,b,c) IDirectSound_CreateSoundBuffer(p,a,b,c) -#define IDirectSound8_GetCaps(p,a) IDirectSound_GetCaps(p,a) -#define IDirectSound8_DuplicateSoundBuffer(p,a,b) IDirectSound_DuplicateSoundBuffer(p,a,b) -#define IDirectSound8_SetCooperativeLevel(p,a,b) IDirectSound_SetCooperativeLevel(p,a,b) -#define IDirectSound8_Compact(p) IDirectSound_Compact(p) -#define IDirectSound8_GetSpeakerConfig(p,a) IDirectSound_GetSpeakerConfig(p,a) -#define IDirectSound8_SetSpeakerConfig(p,a) IDirectSound_SetSpeakerConfig(p,a) -#define IDirectSound8_Initialize(p,a) IDirectSound_Initialize(p,a) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSound8_VerifyCertification(p,a) (p)->lpVtbl->VerifyCertification(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSound8_VerifyCertification(p,a) (p)->VerifyCertification(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -// -// IDirectSoundBuffer -// - -DEFINE_GUID(IID_IDirectSoundBuffer, 0x279AFA85, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); - -#undef INTERFACE -#define INTERFACE IDirectSoundBuffer - -DECLARE_INTERFACE_(IDirectSoundBuffer, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundBuffer methods - STDMETHOD(GetCaps) (THIS_ LPDSBCAPS pDSBufferCaps) PURE; - STDMETHOD(GetCurrentPosition) (THIS_ LPDWORD pdwCurrentPlayCursor, LPDWORD pdwCurrentWriteCursor) PURE; - STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, LPDWORD pdwSizeWritten) PURE; - STDMETHOD(GetVolume) (THIS_ LPLONG plVolume) PURE; - STDMETHOD(GetPan) (THIS_ LPLONG plPan) PURE; - STDMETHOD(GetFrequency) (THIS_ LPDWORD pdwFrequency) PURE; - STDMETHOD(GetStatus) (THIS_ LPDWORD pdwStatus) PURE; - STDMETHOD(Initialize) (THIS_ LPDIRECTSOUND pDirectSound, LPCDSBUFFERDESC pcDSBufferDesc) PURE; - STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, - LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; - STDMETHOD(Play) (THIS_ DWORD dwReserved1, DWORD dwPriority, DWORD dwFlags) PURE; - STDMETHOD(SetCurrentPosition) (THIS_ DWORD dwNewPosition) PURE; - STDMETHOD(SetFormat) (THIS_ LPCWAVEFORMATEX pcfxFormat) PURE; - STDMETHOD(SetVolume) (THIS_ LONG lVolume) PURE; - STDMETHOD(SetPan) (THIS_ LONG lPan) PURE; - STDMETHOD(SetFrequency) (THIS_ DWORD dwFrequency) PURE; - STDMETHOD(Stop) (THIS) PURE; - STDMETHOD(Unlock) (THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; - STDMETHOD(Restore) (THIS) PURE; -}; - -#define IDirectSoundBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundBuffer_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundBuffer_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) -#define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) -#define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) -#define IDirectSoundBuffer_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a) -#define IDirectSoundBuffer_GetPan(p,a) (p)->lpVtbl->GetPan(p,a) -#define IDirectSoundBuffer_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a) -#define IDirectSoundBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) -#define IDirectSoundBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) -#define IDirectSoundBuffer_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c) -#define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a) -#define IDirectSoundBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a) -#define IDirectSoundBuffer_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a) -#define IDirectSoundBuffer_SetPan(p,a) (p)->lpVtbl->SetPan(p,a) -#define IDirectSoundBuffer_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a) -#define IDirectSoundBuffer_Stop(p) (p)->lpVtbl->Stop(p) -#define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) -#define IDirectSoundBuffer_Restore(p) (p)->lpVtbl->Restore(p) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundBuffer_GetCaps(p,a) (p)->GetCaps(a) -#define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) -#define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) -#define IDirectSoundBuffer_GetVolume(p,a) (p)->GetVolume(a) -#define IDirectSoundBuffer_GetPan(p,a) (p)->GetPan(a) -#define IDirectSoundBuffer_GetFrequency(p,a) (p)->GetFrequency(a) -#define IDirectSoundBuffer_GetStatus(p,a) (p)->GetStatus(a) -#define IDirectSoundBuffer_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) -#define IDirectSoundBuffer_Play(p,a,b,c) (p)->Play(a,b,c) -#define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a) -#define IDirectSoundBuffer_SetFormat(p,a) (p)->SetFormat(a) -#define IDirectSoundBuffer_SetVolume(p,a) (p)->SetVolume(a) -#define IDirectSoundBuffer_SetPan(p,a) (p)->SetPan(a) -#define IDirectSoundBuffer_SetFrequency(p,a) (p)->SetFrequency(a) -#define IDirectSoundBuffer_Stop(p) (p)->Stop() -#define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) -#define IDirectSoundBuffer_Restore(p) (p)->Restore() -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#if DIRECTSOUND_VERSION >= 0x0800 - -// -// IDirectSoundBuffer8 -// - -DEFINE_GUID(IID_IDirectSoundBuffer8, 0x6825a449, 0x7524, 0x4d82, 0x92, 0x0f, 0x50, 0xe3, 0x6a, 0xb3, 0xab, 0x1e); - -#undef INTERFACE -#define INTERFACE IDirectSoundBuffer8 - -DECLARE_INTERFACE_(IDirectSoundBuffer8, IDirectSoundBuffer) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundBuffer methods - STDMETHOD(GetCaps) (THIS_ LPDSBCAPS pDSBufferCaps) PURE; - STDMETHOD(GetCurrentPosition) (THIS_ LPDWORD pdwCurrentPlayCursor, LPDWORD pdwCurrentWriteCursor) PURE; - STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, LPDWORD pdwSizeWritten) PURE; - STDMETHOD(GetVolume) (THIS_ LPLONG plVolume) PURE; - STDMETHOD(GetPan) (THIS_ LPLONG plPan) PURE; - STDMETHOD(GetFrequency) (THIS_ LPDWORD pdwFrequency) PURE; - STDMETHOD(GetStatus) (THIS_ LPDWORD pdwStatus) PURE; - STDMETHOD(Initialize) (THIS_ LPDIRECTSOUND pDirectSound, LPCDSBUFFERDESC pcDSBufferDesc) PURE; - STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, - LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; - STDMETHOD(Play) (THIS_ DWORD dwReserved1, DWORD dwPriority, DWORD dwFlags) PURE; - STDMETHOD(SetCurrentPosition) (THIS_ DWORD dwNewPosition) PURE; - STDMETHOD(SetFormat) (THIS_ LPCWAVEFORMATEX pcfxFormat) PURE; - STDMETHOD(SetVolume) (THIS_ LONG lVolume) PURE; - STDMETHOD(SetPan) (THIS_ LONG lPan) PURE; - STDMETHOD(SetFrequency) (THIS_ DWORD dwFrequency) PURE; - STDMETHOD(Stop) (THIS) PURE; - STDMETHOD(Unlock) (THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; - STDMETHOD(Restore) (THIS) PURE; - - // IDirectSoundBuffer8 methods - STDMETHOD(SetFX) (THIS_ DWORD dwEffectsCount, LPDSEFFECTDESC pDSFXDesc, LPDWORD pdwResultCodes) PURE; - STDMETHOD(AcquireResources) (THIS_ DWORD dwFlags, DWORD dwEffectsCount, LPDWORD pdwResultCodes) PURE; - STDMETHOD(GetObjectInPath) (THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE; -}; - -// Special GUID meaning "select all objects" for use in GetObjectInPath() -DEFINE_GUID(GUID_All_Objects, 0xaa114de5, 0xc262, 0x4169, 0xa1, 0xc8, 0x23, 0xd6, 0x98, 0xcc, 0x73, 0xb5); - -#define IDirectSoundBuffer8_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundBuffer8_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundBuffer8_Release(p) IUnknown_Release(p) - -#define IDirectSoundBuffer8_GetCaps(p,a) IDirectSoundBuffer_GetCaps(p,a) -#define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) IDirectSoundBuffer_GetCurrentPosition(p,a,b) -#define IDirectSoundBuffer8_GetFormat(p,a,b,c) IDirectSoundBuffer_GetFormat(p,a,b,c) -#define IDirectSoundBuffer8_GetVolume(p,a) IDirectSoundBuffer_GetVolume(p,a) -#define IDirectSoundBuffer8_GetPan(p,a) IDirectSoundBuffer_GetPan(p,a) -#define IDirectSoundBuffer8_GetFrequency(p,a) IDirectSoundBuffer_GetFrequency(p,a) -#define IDirectSoundBuffer8_GetStatus(p,a) IDirectSoundBuffer_GetStatus(p,a) -#define IDirectSoundBuffer8_Initialize(p,a,b) IDirectSoundBuffer_Initialize(p,a,b) -#define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) -#define IDirectSoundBuffer8_Play(p,a,b,c) IDirectSoundBuffer_Play(p,a,b,c) -#define IDirectSoundBuffer8_SetCurrentPosition(p,a) IDirectSoundBuffer_SetCurrentPosition(p,a) -#define IDirectSoundBuffer8_SetFormat(p,a) IDirectSoundBuffer_SetFormat(p,a) -#define IDirectSoundBuffer8_SetVolume(p,a) IDirectSoundBuffer_SetVolume(p,a) -#define IDirectSoundBuffer8_SetPan(p,a) IDirectSoundBuffer_SetPan(p,a) -#define IDirectSoundBuffer8_SetFrequency(p,a) IDirectSoundBuffer_SetFrequency(p,a) -#define IDirectSoundBuffer8_Stop(p) IDirectSoundBuffer_Stop(p) -#define IDirectSoundBuffer8_Unlock(p,a,b,c,d) IDirectSoundBuffer_Unlock(p,a,b,c,d) -#define IDirectSoundBuffer8_Restore(p) IDirectSoundBuffer_Restore(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->lpVtbl->SetFX(p,a,b,c) -#define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->lpVtbl->AcquireResources(p,a,b,c) -#define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->SetFX(a,b,c) -#define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->AcquireResources(a,b,c) -#define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -// -// IDirectSound3DListener -// - -DEFINE_GUID(IID_IDirectSound3DListener, 0x279AFA84, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); - -#undef INTERFACE -#define INTERFACE IDirectSound3DListener - -DECLARE_INTERFACE_(IDirectSound3DListener, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSound3DListener methods - STDMETHOD(GetAllParameters) (THIS_ LPDS3DLISTENER pListener) PURE; - STDMETHOD(GetDistanceFactor) (THIS_ D3DVALUE* pflDistanceFactor) PURE; - STDMETHOD(GetDopplerFactor) (THIS_ D3DVALUE* pflDopplerFactor) PURE; - STDMETHOD(GetOrientation) (THIS_ D3DVECTOR* pvOrientFront, D3DVECTOR* pvOrientTop) PURE; - STDMETHOD(GetPosition) (THIS_ D3DVECTOR* pvPosition) PURE; - STDMETHOD(GetRolloffFactor) (THIS_ D3DVALUE* pflRolloffFactor) PURE; - STDMETHOD(GetVelocity) (THIS_ D3DVECTOR* pvVelocity) PURE; - STDMETHOD(SetAllParameters) (THIS_ LPCDS3DLISTENER pcListener, DWORD dwApply) PURE; - STDMETHOD(SetDistanceFactor) (THIS_ D3DVALUE flDistanceFactor, DWORD dwApply) PURE; - STDMETHOD(SetDopplerFactor) (THIS_ D3DVALUE flDopplerFactor, DWORD dwApply) PURE; - STDMETHOD(SetOrientation) (THIS_ D3DVALUE xFront, D3DVALUE yFront, D3DVALUE zFront, - D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop, DWORD dwApply) PURE; - STDMETHOD(SetPosition) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; - STDMETHOD(SetRolloffFactor) (THIS_ D3DVALUE flRolloffFactor, DWORD dwApply) PURE; - STDMETHOD(SetVelocity) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; - STDMETHOD(CommitDeferredSettings) (THIS) PURE; -}; - -#define IDirectSound3DListener_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSound3DListener_AddRef(p) IUnknown_AddRef(p) -#define IDirectSound3DListener_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSound3DListener_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->lpVtbl->GetDistanceFactor(p,a) -#define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->lpVtbl->GetDopplerFactor(p,a) -#define IDirectSound3DListener_GetOrientation(p,a,b) (p)->lpVtbl->GetOrientation(p,a,b) -#define IDirectSound3DListener_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a) -#define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->lpVtbl->GetRolloffFactor(p,a) -#define IDirectSound3DListener_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a) -#define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b) -#define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->lpVtbl->SetDistanceFactor(p,a,b) -#define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->lpVtbl->SetDopplerFactor(p,a,b) -#define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->lpVtbl->SetOrientation(p,a,b,c,d,e,f,g) -#define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d) -#define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->lpVtbl->SetRolloffFactor(p,a,b) -#define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d) -#define IDirectSound3DListener_CommitDeferredSettings(p) (p)->lpVtbl->CommitDeferredSettings(p) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSound3DListener_GetAllParameters(p,a) (p)->GetAllParameters(a) -#define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->GetDistanceFactor(a) -#define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->GetDopplerFactor(a) -#define IDirectSound3DListener_GetOrientation(p,a,b) (p)->GetOrientation(a,b) -#define IDirectSound3DListener_GetPosition(p,a) (p)->GetPosition(a) -#define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->GetRolloffFactor(a) -#define IDirectSound3DListener_GetVelocity(p,a) (p)->GetVelocity(a) -#define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b) -#define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->SetDistanceFactor(a,b) -#define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->SetDopplerFactor(a,b) -#define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->SetOrientation(a,b,c,d,e,f,g) -#define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d) -#define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->SetRolloffFactor(a,b) -#define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d) -#define IDirectSound3DListener_CommitDeferredSettings(p) (p)->CommitDeferredSettings() -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSound3DBuffer -// - -DEFINE_GUID(IID_IDirectSound3DBuffer, 0x279AFA86, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); - -#undef INTERFACE -#define INTERFACE IDirectSound3DBuffer - -DECLARE_INTERFACE_(IDirectSound3DBuffer, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSound3DBuffer methods - STDMETHOD(GetAllParameters) (THIS_ LPDS3DBUFFER pDs3dBuffer) PURE; - STDMETHOD(GetConeAngles) (THIS_ LPDWORD pdwInsideConeAngle, LPDWORD pdwOutsideConeAngle) PURE; - STDMETHOD(GetConeOrientation) (THIS_ D3DVECTOR* pvOrientation) PURE; - STDMETHOD(GetConeOutsideVolume) (THIS_ LPLONG plConeOutsideVolume) PURE; - STDMETHOD(GetMaxDistance) (THIS_ D3DVALUE* pflMaxDistance) PURE; - STDMETHOD(GetMinDistance) (THIS_ D3DVALUE* pflMinDistance) PURE; - STDMETHOD(GetMode) (THIS_ LPDWORD pdwMode) PURE; - STDMETHOD(GetPosition) (THIS_ D3DVECTOR* pvPosition) PURE; - STDMETHOD(GetVelocity) (THIS_ D3DVECTOR* pvVelocity) PURE; - STDMETHOD(SetAllParameters) (THIS_ LPCDS3DBUFFER pcDs3dBuffer, DWORD dwApply) PURE; - STDMETHOD(SetConeAngles) (THIS_ DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply) PURE; - STDMETHOD(SetConeOrientation) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; - STDMETHOD(SetConeOutsideVolume) (THIS_ LONG lConeOutsideVolume, DWORD dwApply) PURE; - STDMETHOD(SetMaxDistance) (THIS_ D3DVALUE flMaxDistance, DWORD dwApply) PURE; - STDMETHOD(SetMinDistance) (THIS_ D3DVALUE flMinDistance, DWORD dwApply) PURE; - STDMETHOD(SetMode) (THIS_ DWORD dwMode, DWORD dwApply) PURE; - STDMETHOD(SetPosition) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; - STDMETHOD(SetVelocity) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; -}; - -#define IDirectSound3DBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSound3DBuffer_AddRef(p) IUnknown_AddRef(p) -#define IDirectSound3DBuffer_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->lpVtbl->GetConeAngles(p,a,b) -#define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->lpVtbl->GetConeOrientation(p,a) -#define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->lpVtbl->GetConeOutsideVolume(p,a) -#define IDirectSound3DBuffer_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a) -#define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->lpVtbl->GetMinDistance(p,a) -#define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->lpVtbl->GetMaxDistance(p,a) -#define IDirectSound3DBuffer_GetMode(p,a) (p)->lpVtbl->GetMode(p,a) -#define IDirectSound3DBuffer_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a) -#define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b) -#define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->lpVtbl->SetConeAngles(p,a,b,c) -#define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->lpVtbl->SetConeOrientation(p,a,b,c,d) -#define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->lpVtbl->SetConeOutsideVolume(p,a,b) -#define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d) -#define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->lpVtbl->SetMinDistance(p,a,b) -#define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->lpVtbl->SetMaxDistance(p,a,b) -#define IDirectSound3DBuffer_SetMode(p,a,b) (p)->lpVtbl->SetMode(p,a,b) -#define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->GetAllParameters(a) -#define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->GetConeAngles(a,b) -#define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->GetConeOrientation(a) -#define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->GetConeOutsideVolume(a) -#define IDirectSound3DBuffer_GetPosition(p,a) (p)->GetPosition(a) -#define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->GetMinDistance(a) -#define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->GetMaxDistance(a) -#define IDirectSound3DBuffer_GetMode(p,a) (p)->GetMode(a) -#define IDirectSound3DBuffer_GetVelocity(p,a) (p)->GetVelocity(a) -#define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b) -#define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->SetConeAngles(a,b,c) -#define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->SetConeOrientation(a,b,c,d) -#define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->SetConeOutsideVolume(a,b) -#define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d) -#define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->SetMinDistance(a,b) -#define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->SetMaxDistance(a,b) -#define IDirectSound3DBuffer_SetMode(p,a,b) (p)->SetMode(a,b) -#define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundCapture -// - -DEFINE_GUID(IID_IDirectSoundCapture, 0xb0210781, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); - -#undef INTERFACE -#define INTERFACE IDirectSoundCapture - -DECLARE_INTERFACE_(IDirectSoundCapture, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCapture methods - STDMETHOD(CreateCaptureBuffer) (THIS_ LPCDSCBUFFERDESC pcDSCBufferDesc, LPDIRECTSOUNDCAPTUREBUFFER *ppDSCBuffer, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(GetCaps) (THIS_ LPDSCCAPS pDSCCaps) PURE; - STDMETHOD(Initialize) (THIS_ LPCGUID pcGuidDevice) PURE; -}; - -#define IDirectSoundCapture_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundCapture_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundCapture_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->lpVtbl->CreateCaptureBuffer(p,a,b,c) -#define IDirectSoundCapture_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) -#define IDirectSoundCapture_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->CreateCaptureBuffer(a,b,c) -#define IDirectSoundCapture_GetCaps(p,a) (p)->GetCaps(a) -#define IDirectSoundCapture_Initialize(p,a) (p)->Initialize(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundCaptureBuffer -// - -DEFINE_GUID(IID_IDirectSoundCaptureBuffer, 0xb0210782, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); - -#undef INTERFACE -#define INTERFACE IDirectSoundCaptureBuffer - -DECLARE_INTERFACE_(IDirectSoundCaptureBuffer, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCaptureBuffer methods - STDMETHOD(GetCaps) (THIS_ LPDSCBCAPS pDSCBCaps) PURE; - STDMETHOD(GetCurrentPosition) (THIS_ LPDWORD pdwCapturePosition, LPDWORD pdwReadPosition) PURE; - STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, LPDWORD pdwSizeWritten) PURE; - STDMETHOD(GetStatus) (THIS_ LPDWORD pdwStatus) PURE; - STDMETHOD(Initialize) (THIS_ LPDIRECTSOUNDCAPTURE pDirectSoundCapture, LPCDSCBUFFERDESC pcDSCBufferDesc) PURE; - STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, - LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; - STDMETHOD(Start) (THIS_ DWORD dwFlags) PURE; - STDMETHOD(Stop) (THIS) PURE; - STDMETHOD(Unlock) (THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; -}; - -#define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundCaptureBuffer_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundCaptureBuffer_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) -#define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) -#define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) -#define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) -#define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) -#define IDirectSoundCaptureBuffer_Start(p,a) (p)->lpVtbl->Start(p,a) -#define IDirectSoundCaptureBuffer_Stop(p) (p)->lpVtbl->Stop(p) -#define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->GetCaps(a) -#define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) -#define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) -#define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->GetStatus(a) -#define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) -#define IDirectSoundCaptureBuffer_Start(p,a) (p)->Start(a) -#define IDirectSoundCaptureBuffer_Stop(p) (p)->Stop() -#define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - - -#if DIRECTSOUND_VERSION >= 0x0800 - -// -// IDirectSoundCaptureBuffer8 -// - -DEFINE_GUID(IID_IDirectSoundCaptureBuffer8, 0x990df4, 0xdbb, 0x4872, 0x83, 0x3e, 0x6d, 0x30, 0x3e, 0x80, 0xae, 0xb6); - -#undef INTERFACE -#define INTERFACE IDirectSoundCaptureBuffer8 - -DECLARE_INTERFACE_(IDirectSoundCaptureBuffer8, IDirectSoundCaptureBuffer) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCaptureBuffer methods - STDMETHOD(GetCaps) (THIS_ LPDSCBCAPS pDSCBCaps) PURE; - STDMETHOD(GetCurrentPosition) (THIS_ LPDWORD pdwCapturePosition, LPDWORD pdwReadPosition) PURE; - STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, LPDWORD pdwSizeWritten) PURE; - STDMETHOD(GetStatus) (THIS_ LPDWORD pdwStatus) PURE; - STDMETHOD(Initialize) (THIS_ LPDIRECTSOUNDCAPTURE pDirectSoundCapture, LPCDSCBUFFERDESC pcDSCBufferDesc) PURE; - STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, - LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; - STDMETHOD(Start) (THIS_ DWORD dwFlags) PURE; - STDMETHOD(Stop) (THIS) PURE; - STDMETHOD(Unlock) (THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; - - // IDirectSoundCaptureBuffer8 methods - STDMETHOD(GetObjectInPath) (THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE; - STDMETHOD(GetFXStatus) (DWORD dwFXCount, LPDWORD pdwFXStatus) PURE; -}; - -#define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundCaptureBuffer8_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundCaptureBuffer8_Release(p) IUnknown_Release(p) - -#define IDirectSoundCaptureBuffer8_GetCaps(p,a) IDirectSoundCaptureBuffer_GetCaps(p,a) -#define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) -#define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) -#define IDirectSoundCaptureBuffer8_GetStatus(p,a) IDirectSoundCaptureBuffer_GetStatus(p,a) -#define IDirectSoundCaptureBuffer8_Initialize(p,a,b) IDirectSoundCaptureBuffer_Initialize(p,a,b) -#define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) -#define IDirectSoundCaptureBuffer8_Start(p,a) IDirectSoundCaptureBuffer_Start(p,a) -#define IDirectSoundCaptureBuffer8_Stop(p) IDirectSoundCaptureBuffer_Stop(p)) -#define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d) -#define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->lpVtbl->GetFXStatus(p,a,b) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d) -#define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->GetFXStatus(a,b) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -// -// IDirectSoundNotify -// - -DEFINE_GUID(IID_IDirectSoundNotify, 0xb0210783, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); - -#undef INTERFACE -#define INTERFACE IDirectSoundNotify - -DECLARE_INTERFACE_(IDirectSoundNotify, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundNotify methods - STDMETHOD(SetNotificationPositions) (THIS_ DWORD dwPositionNotifies, LPCDSBPOSITIONNOTIFY pcPositionNotifies) PURE; -}; - -#define IDirectSoundNotify_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundNotify_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundNotify_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->lpVtbl->SetNotificationPositions(p,a,b) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->SetNotificationPositions(a,b) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IKsPropertySet -// - -#ifndef _IKsPropertySet_ -#define _IKsPropertySet_ - -#ifdef __cplusplus -// 'struct' not 'class' per the way DECLARE_INTERFACE_ is defined -struct IKsPropertySet; -#endif // __cplusplus - -typedef struct IKsPropertySet *LPKSPROPERTYSET; - -#define KSPROPERTY_SUPPORT_GET 0x00000001 -#define KSPROPERTY_SUPPORT_SET 0x00000002 - -DEFINE_GUID(IID_IKsPropertySet, 0x31efac30, 0x515c, 0x11d0, 0xa9, 0xaa, 0x00, 0xaa, 0x00, 0x61, 0xbe, 0x93); - -#undef INTERFACE -#define INTERFACE IKsPropertySet - -DECLARE_INTERFACE_(IKsPropertySet, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IKsPropertySet methods - STDMETHOD(Get) (THIS_ REFGUID rguidPropSet, ULONG ulId, LPVOID pInstanceData, ULONG ulInstanceLength, - LPVOID pPropertyData, ULONG ulDataLength, PULONG pulBytesReturned) PURE; - STDMETHOD(Set) (THIS_ REFGUID rguidPropSet, ULONG ulId, LPVOID pInstanceData, ULONG ulInstanceLength, - LPVOID pPropertyData, ULONG ulDataLength) PURE; - STDMETHOD(QuerySupport) (THIS_ REFGUID rguidPropSet, ULONG ulId, PULONG pulTypeSupport) PURE; -}; - -#define IKsPropertySet_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IKsPropertySet_AddRef(p) IUnknown_AddRef(p) -#define IKsPropertySet_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->lpVtbl->Get(p,a,b,c,d,e,f,g) -#define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->lpVtbl->Set(p,a,b,c,d,e,f) -#define IKsPropertySet_QuerySupport(p,a,b,c) (p)->lpVtbl->QuerySupport(p,a,b,c) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->Get(a,b,c,d,e,f,g) -#define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->Set(a,b,c,d,e,f) -#define IKsPropertySet_QuerySupport(p,a,b,c) (p)->QuerySupport(a,b,c) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#endif // _IKsPropertySet_ - -#if DIRECTSOUND_VERSION >= 0x0800 - -// -// IDirectSoundFXGargle -// - -DEFINE_GUID(IID_IDirectSoundFXGargle, 0xd616f352, 0xd622, 0x11ce, 0xaa, 0xc5, 0x00, 0x20, 0xaf, 0x0b, 0x99, 0xa3); - -typedef struct _DSFXGargle -{ - DWORD dwRateHz; // Rate of modulation in hz - DWORD dwWaveShape; // DSFXGARGLE_WAVE_xxx -} DSFXGargle, *LPDSFXGargle; - -#define DSFXGARGLE_WAVE_TRIANGLE 0 -#define DSFXGARGLE_WAVE_SQUARE 1 - -typedef const DSFXGargle *LPCDSFXGargle; - -#define DSFXGARGLE_RATEHZ_MIN 1 -#define DSFXGARGLE_RATEHZ_MAX 1000 - -#undef INTERFACE -#define INTERFACE IDirectSoundFXGargle - -DECLARE_INTERFACE_(IDirectSoundFXGargle, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXGargle methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXGargle pcDsFxGargle) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXGargle pDsFxGargle) PURE; -}; - -#define IDirectSoundFXGargle_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXGargle_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXGargle_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundFXChorus -// - -DEFINE_GUID(IID_IDirectSoundFXChorus, 0x880842e3, 0x145f, 0x43e6, 0xa9, 0x34, 0xa7, 0x18, 0x06, 0xe5, 0x05, 0x47); - -typedef struct _DSFXChorus -{ - FLOAT fWetDryMix; - FLOAT fDepth; - FLOAT fFeedback; - FLOAT fFrequency; - LONG lWaveform; // LFO shape; DSFXCHORUS_WAVE_xxx - FLOAT fDelay; - LONG lPhase; -} DSFXChorus, *LPDSFXChorus; - -typedef const DSFXChorus *LPCDSFXChorus; - -#define DSFXCHORUS_WAVE_TRIANGLE 0 -#define DSFXCHORUS_WAVE_SIN 1 - -#define DSFXCHORUS_WETDRYMIX_MIN 0.0f -#define DSFXCHORUS_WETDRYMIX_MAX 100.0f -#define DSFXCHORUS_DEPTH_MIN 0.0f -#define DSFXCHORUS_DEPTH_MAX 100.0f -#define DSFXCHORUS_FEEDBACK_MIN -99.0f -#define DSFXCHORUS_FEEDBACK_MAX 99.0f -#define DSFXCHORUS_FREQUENCY_MIN 0.0f -#define DSFXCHORUS_FREQUENCY_MAX 10.0f -#define DSFXCHORUS_DELAY_MIN 0.0f -#define DSFXCHORUS_DELAY_MAX 20.0f -#define DSFXCHORUS_PHASE_MIN 0 -#define DSFXCHORUS_PHASE_MAX 4 - -#define DSFXCHORUS_PHASE_NEG_180 0 -#define DSFXCHORUS_PHASE_NEG_90 1 -#define DSFXCHORUS_PHASE_ZERO 2 -#define DSFXCHORUS_PHASE_90 3 -#define DSFXCHORUS_PHASE_180 4 - -#undef INTERFACE -#define INTERFACE IDirectSoundFXChorus - -DECLARE_INTERFACE_(IDirectSoundFXChorus, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXChorus methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXChorus pcDsFxChorus) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXChorus pDsFxChorus) PURE; -}; - -#define IDirectSoundFXChorus_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXChorus_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXChorus_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundFXFlanger -// - -DEFINE_GUID(IID_IDirectSoundFXFlanger, 0x903e9878, 0x2c92, 0x4072, 0x9b, 0x2c, 0xea, 0x68, 0xf5, 0x39, 0x67, 0x83); - -typedef struct _DSFXFlanger -{ - FLOAT fWetDryMix; - FLOAT fDepth; - FLOAT fFeedback; - FLOAT fFrequency; - LONG lWaveform; - FLOAT fDelay; - LONG lPhase; -} DSFXFlanger, *LPDSFXFlanger; - -typedef const DSFXFlanger *LPCDSFXFlanger; - -#define DSFXFLANGER_WAVE_TRIANGLE 0 -#define DSFXFLANGER_WAVE_SIN 1 - -#define DSFXFLANGER_WETDRYMIX_MIN 0.0f -#define DSFXFLANGER_WETDRYMIX_MAX 100.0f -#define DSFXFLANGER_FREQUENCY_MIN 0.0f -#define DSFXFLANGER_FREQUENCY_MAX 10.0f -#define DSFXFLANGER_DEPTH_MIN 0.0f -#define DSFXFLANGER_DEPTH_MAX 100.0f -#define DSFXFLANGER_PHASE_MIN 0 -#define DSFXFLANGER_PHASE_MAX 4 -#define DSFXFLANGER_FEEDBACK_MIN -99.0f -#define DSFXFLANGER_FEEDBACK_MAX 99.0f -#define DSFXFLANGER_DELAY_MIN 0.0f -#define DSFXFLANGER_DELAY_MAX 4.0f - -#define DSFXFLANGER_PHASE_NEG_180 0 -#define DSFXFLANGER_PHASE_NEG_90 1 -#define DSFXFLANGER_PHASE_ZERO 2 -#define DSFXFLANGER_PHASE_90 3 -#define DSFXFLANGER_PHASE_180 4 - -#undef INTERFACE -#define INTERFACE IDirectSoundFXFlanger - -DECLARE_INTERFACE_(IDirectSoundFXFlanger, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXFlanger methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXFlanger pcDsFxFlanger) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXFlanger pDsFxFlanger) PURE; -}; - -#define IDirectSoundFXFlanger_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXFlanger_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXFlanger_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundFXEcho -// - -DEFINE_GUID(IID_IDirectSoundFXEcho, 0x8bd28edf, 0x50db, 0x4e92, 0xa2, 0xbd, 0x44, 0x54, 0x88, 0xd1, 0xed, 0x42); - -typedef struct _DSFXEcho -{ - FLOAT fWetDryMix; - FLOAT fFeedback; - FLOAT fLeftDelay; - FLOAT fRightDelay; - LONG lPanDelay; -} DSFXEcho, *LPDSFXEcho; - -typedef const DSFXEcho *LPCDSFXEcho; - -#define DSFXECHO_WETDRYMIX_MIN 0.0f -#define DSFXECHO_WETDRYMIX_MAX 100.0f -#define DSFXECHO_FEEDBACK_MIN 0.0f -#define DSFXECHO_FEEDBACK_MAX 100.0f -#define DSFXECHO_LEFTDELAY_MIN 1.0f -#define DSFXECHO_LEFTDELAY_MAX 2000.0f -#define DSFXECHO_RIGHTDELAY_MIN 1.0f -#define DSFXECHO_RIGHTDELAY_MAX 2000.0f -#define DSFXECHO_PANDELAY_MIN 0 -#define DSFXECHO_PANDELAY_MAX 1 - -#undef INTERFACE -#define INTERFACE IDirectSoundFXEcho - -DECLARE_INTERFACE_(IDirectSoundFXEcho, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXEcho methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXEcho pcDsFxEcho) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXEcho pDsFxEcho) PURE; -}; - -#define IDirectSoundFXEcho_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXEcho_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXEcho_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundFXDistortion -// - -DEFINE_GUID(IID_IDirectSoundFXDistortion, 0x8ecf4326, 0x455f, 0x4d8b, 0xbd, 0xa9, 0x8d, 0x5d, 0x3e, 0x9e, 0x3e, 0x0b); - -typedef struct _DSFXDistortion -{ - FLOAT fGain; - FLOAT fEdge; - FLOAT fPostEQCenterFrequency; - FLOAT fPostEQBandwidth; - FLOAT fPreLowpassCutoff; -} DSFXDistortion, *LPDSFXDistortion; - -typedef const DSFXDistortion *LPCDSFXDistortion; - -#define DSFXDISTORTION_GAIN_MIN -60.0f -#define DSFXDISTORTION_GAIN_MAX 0.0f -#define DSFXDISTORTION_EDGE_MIN 0.0f -#define DSFXDISTORTION_EDGE_MAX 100.0f -#define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MIN 100.0f -#define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MAX 8000.0f -#define DSFXDISTORTION_POSTEQBANDWIDTH_MIN 100.0f -#define DSFXDISTORTION_POSTEQBANDWIDTH_MAX 8000.0f -#define DSFXDISTORTION_PRELOWPASSCUTOFF_MIN 100.0f -#define DSFXDISTORTION_PRELOWPASSCUTOFF_MAX 8000.0f - -#undef INTERFACE -#define INTERFACE IDirectSoundFXDistortion - -DECLARE_INTERFACE_(IDirectSoundFXDistortion, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXDistortion methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXDistortion pcDsFxDistortion) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXDistortion pDsFxDistortion) PURE; -}; - -#define IDirectSoundFXDistortion_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXDistortion_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXDistortion_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundFXCompressor -// - -DEFINE_GUID(IID_IDirectSoundFXCompressor, 0x4bbd1154, 0x62f6, 0x4e2c, 0xa1, 0x5c, 0xd3, 0xb6, 0xc4, 0x17, 0xf7, 0xa0); - -typedef struct _DSFXCompressor -{ - FLOAT fGain; - FLOAT fAttack; - FLOAT fRelease; - FLOAT fThreshold; - FLOAT fRatio; - FLOAT fPredelay; -} DSFXCompressor, *LPDSFXCompressor; - -typedef const DSFXCompressor *LPCDSFXCompressor; - -#define DSFXCOMPRESSOR_GAIN_MIN -60.0f -#define DSFXCOMPRESSOR_GAIN_MAX 60.0f -#define DSFXCOMPRESSOR_ATTACK_MIN 0.01f -#define DSFXCOMPRESSOR_ATTACK_MAX 500.0f -#define DSFXCOMPRESSOR_RELEASE_MIN 50.0f -#define DSFXCOMPRESSOR_RELEASE_MAX 3000.0f -#define DSFXCOMPRESSOR_THRESHOLD_MIN -60.0f -#define DSFXCOMPRESSOR_THRESHOLD_MAX 0.0f -#define DSFXCOMPRESSOR_RATIO_MIN 1.0f -#define DSFXCOMPRESSOR_RATIO_MAX 100.0f -#define DSFXCOMPRESSOR_PREDELAY_MIN 0.0f -#define DSFXCOMPRESSOR_PREDELAY_MAX 4.0f - -#undef INTERFACE -#define INTERFACE IDirectSoundFXCompressor - -DECLARE_INTERFACE_(IDirectSoundFXCompressor, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXCompressor methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXCompressor pcDsFxCompressor) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXCompressor pDsFxCompressor) PURE; -}; - -#define IDirectSoundFXCompressor_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXCompressor_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXCompressor_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundFXParamEq -// - -DEFINE_GUID(IID_IDirectSoundFXParamEq, 0xc03ca9fe, 0xfe90, 0x4204, 0x80, 0x78, 0x82, 0x33, 0x4c, 0xd1, 0x77, 0xda); - -typedef struct _DSFXParamEq -{ - FLOAT fCenter; - FLOAT fBandwidth; - FLOAT fGain; -} DSFXParamEq, *LPDSFXParamEq; - -typedef const DSFXParamEq *LPCDSFXParamEq; - -#define DSFXPARAMEQ_CENTER_MIN 80.0f -#define DSFXPARAMEQ_CENTER_MAX 16000.0f -#define DSFXPARAMEQ_BANDWIDTH_MIN 1.0f -#define DSFXPARAMEQ_BANDWIDTH_MAX 36.0f -#define DSFXPARAMEQ_GAIN_MIN -15.0f -#define DSFXPARAMEQ_GAIN_MAX 15.0f - -#undef INTERFACE -#define INTERFACE IDirectSoundFXParamEq - -DECLARE_INTERFACE_(IDirectSoundFXParamEq, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXParamEq methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXParamEq pcDsFxParamEq) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXParamEq pDsFxParamEq) PURE; -}; - -#define IDirectSoundFXParamEq_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXParamEq_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXParamEq_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundFXI3DL2Reverb -// - -DEFINE_GUID(IID_IDirectSoundFXI3DL2Reverb, 0x4b166a6a, 0x0d66, 0x43f3, 0x80, 0xe3, 0xee, 0x62, 0x80, 0xde, 0xe1, 0xa4); - -typedef struct _DSFXI3DL2Reverb -{ - LONG lRoom; // [-10000, 0] default: -1000 mB - LONG lRoomHF; // [-10000, 0] default: 0 mB - FLOAT flRoomRolloffFactor; // [0.0, 10.0] default: 0.0 - FLOAT flDecayTime; // [0.1, 20.0] default: 1.49s - FLOAT flDecayHFRatio; // [0.1, 2.0] default: 0.83 - LONG lReflections; // [-10000, 1000] default: -2602 mB - FLOAT flReflectionsDelay; // [0.0, 0.3] default: 0.007 s - LONG lReverb; // [-10000, 2000] default: 200 mB - FLOAT flReverbDelay; // [0.0, 0.1] default: 0.011 s - FLOAT flDiffusion; // [0.0, 100.0] default: 100.0 % - FLOAT flDensity; // [0.0, 100.0] default: 100.0 % - FLOAT flHFReference; // [20.0, 20000.0] default: 5000.0 Hz -} DSFXI3DL2Reverb, *LPDSFXI3DL2Reverb; - -typedef const DSFXI3DL2Reverb *LPCDSFXI3DL2Reverb; - -#define DSFX_I3DL2REVERB_ROOM_MIN (-10000) -#define DSFX_I3DL2REVERB_ROOM_MAX 0 -#define DSFX_I3DL2REVERB_ROOM_DEFAULT (-1000) - -#define DSFX_I3DL2REVERB_ROOMHF_MIN (-10000) -#define DSFX_I3DL2REVERB_ROOMHF_MAX 0 -#define DSFX_I3DL2REVERB_ROOMHF_DEFAULT (-100) - -#define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MIN 0.0f -#define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MAX 10.0f -#define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_DEFAULT 0.0f - -#define DSFX_I3DL2REVERB_DECAYTIME_MIN 0.1f -#define DSFX_I3DL2REVERB_DECAYTIME_MAX 20.0f -#define DSFX_I3DL2REVERB_DECAYTIME_DEFAULT 1.49f - -#define DSFX_I3DL2REVERB_DECAYHFRATIO_MIN 0.1f -#define DSFX_I3DL2REVERB_DECAYHFRATIO_MAX 2.0f -#define DSFX_I3DL2REVERB_DECAYHFRATIO_DEFAULT 0.83f - -#define DSFX_I3DL2REVERB_REFLECTIONS_MIN (-10000) -#define DSFX_I3DL2REVERB_REFLECTIONS_MAX 1000 -#define DSFX_I3DL2REVERB_REFLECTIONS_DEFAULT (-2602) - -#define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MIN 0.0f -#define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MAX 0.3f -#define DSFX_I3DL2REVERB_REFLECTIONSDELAY_DEFAULT 0.007f - -#define DSFX_I3DL2REVERB_REVERB_MIN (-10000) -#define DSFX_I3DL2REVERB_REVERB_MAX 2000 -#define DSFX_I3DL2REVERB_REVERB_DEFAULT (200) - -#define DSFX_I3DL2REVERB_REVERBDELAY_MIN 0.0f -#define DSFX_I3DL2REVERB_REVERBDELAY_MAX 0.1f -#define DSFX_I3DL2REVERB_REVERBDELAY_DEFAULT 0.011f - -#define DSFX_I3DL2REVERB_DIFFUSION_MIN 0.0f -#define DSFX_I3DL2REVERB_DIFFUSION_MAX 100.0f -#define DSFX_I3DL2REVERB_DIFFUSION_DEFAULT 100.0f - -#define DSFX_I3DL2REVERB_DENSITY_MIN 0.0f -#define DSFX_I3DL2REVERB_DENSITY_MAX 100.0f -#define DSFX_I3DL2REVERB_DENSITY_DEFAULT 100.0f - -#define DSFX_I3DL2REVERB_HFREFERENCE_MIN 20.0f -#define DSFX_I3DL2REVERB_HFREFERENCE_MAX 20000.0f -#define DSFX_I3DL2REVERB_HFREFERENCE_DEFAULT 5000.0f - -#define DSFX_I3DL2REVERB_QUALITY_MIN 0 -#define DSFX_I3DL2REVERB_QUALITY_MAX 3 -#define DSFX_I3DL2REVERB_QUALITY_DEFAULT 2 - -#undef INTERFACE -#define INTERFACE IDirectSoundFXI3DL2Reverb - -DECLARE_INTERFACE_(IDirectSoundFXI3DL2Reverb, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXI3DL2Reverb methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXI3DL2Reverb pcDsFxI3DL2Reverb) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXI3DL2Reverb pDsFxI3DL2Reverb) PURE; - STDMETHOD(SetPreset) (THIS_ DWORD dwPreset) PURE; - STDMETHOD(GetPreset) (THIS_ LPDWORD pdwPreset) PURE; - STDMETHOD(SetQuality) (THIS_ LONG lQuality) PURE; - STDMETHOD(GetQuality) (THIS_ LONG *plQuality) PURE; -}; - -#define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXI3DL2Reverb_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXI3DL2Reverb_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->lpVtbl->SetPreset(p,a) -#define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->lpVtbl->GetPreset(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->GetAllParameters(a) -#define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->SetPreset(a) -#define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->GetPreset(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundFXWavesReverb -// - -DEFINE_GUID(IID_IDirectSoundFXWavesReverb,0x46858c3a,0x0dc6,0x45e3,0xb7,0x60,0xd4,0xee,0xf1,0x6c,0xb3,0x25); - -typedef struct _DSFXWavesReverb -{ - FLOAT fInGain; // [-96.0,0.0] default: 0.0 dB - FLOAT fReverbMix; // [-96.0,0.0] default: 0.0 db - FLOAT fReverbTime; // [0.001,3000.0] default: 1000.0 ms - FLOAT fHighFreqRTRatio; // [0.001,0.999] default: 0.001 -} DSFXWavesReverb, *LPDSFXWavesReverb; - -typedef const DSFXWavesReverb *LPCDSFXWavesReverb; - -#define DSFX_WAVESREVERB_INGAIN_MIN -96.0f -#define DSFX_WAVESREVERB_INGAIN_MAX 0.0f -#define DSFX_WAVESREVERB_INGAIN_DEFAULT 0.0f -#define DSFX_WAVESREVERB_REVERBMIX_MIN -96.0f -#define DSFX_WAVESREVERB_REVERBMIX_MAX 0.0f -#define DSFX_WAVESREVERB_REVERBMIX_DEFAULT 0.0f -#define DSFX_WAVESREVERB_REVERBTIME_MIN 0.001f -#define DSFX_WAVESREVERB_REVERBTIME_MAX 3000.0f -#define DSFX_WAVESREVERB_REVERBTIME_DEFAULT 1000.0f -#define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MIN 0.001f -#define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MAX 0.999f -#define DSFX_WAVESREVERB_HIGHFREQRTRATIO_DEFAULT 0.001f - -#undef INTERFACE -#define INTERFACE IDirectSoundFXWavesReverb - -DECLARE_INTERFACE_(IDirectSoundFXWavesReverb, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXWavesReverb methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXWavesReverb pcDsFxWavesReverb) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXWavesReverb pDsFxWavesReverb) PURE; -}; - -#define IDirectSoundFXWavesReverb_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFXWavesReverb_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFXWavesReverb_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -// -// IDirectSoundCaptureFXAec -// - -DEFINE_GUID(IID_IDirectSoundCaptureFXAec, 0xad74143d, 0x903d, 0x4ab7, 0x80, 0x66, 0x28, 0xd3, 0x63, 0x03, 0x6d, 0x65); - -typedef struct _DSCFXAec -{ - BOOL fEnable; - BOOL fNoiseFill; - DWORD dwMode; -} DSCFXAec, *LPDSCFXAec; - -typedef const DSCFXAec *LPCDSCFXAec; - -// These match the AEC_MODE_* constants in the DDK's ksmedia.h file -#define DSCFX_AEC_MODE_PASS_THROUGH 0x0 -#define DSCFX_AEC_MODE_HALF_DUPLEX 0x1 -#define DSCFX_AEC_MODE_FULL_DUPLEX 0x2 - -// These match the AEC_STATUS_* constants in ksmedia.h -#define DSCFX_AEC_STATUS_HISTORY_UNINITIALIZED 0x0 -#define DSCFX_AEC_STATUS_HISTORY_CONTINUOUSLY_CONVERGED 0x1 -#define DSCFX_AEC_STATUS_HISTORY_PREVIOUSLY_DIVERGED 0x2 -#define DSCFX_AEC_STATUS_CURRENTLY_CONVERGED 0x8 - -#undef INTERFACE -#define INTERFACE IDirectSoundCaptureFXAec - -DECLARE_INTERFACE_(IDirectSoundCaptureFXAec, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCaptureFXAec methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSCFXAec pDscFxAec) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSCFXAec pDscFxAec) PURE; - STDMETHOD(GetStatus) (THIS_ PDWORD pdwStatus) PURE; - STDMETHOD(Reset) (THIS) PURE; -}; - -#define IDirectSoundCaptureFXAec_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundCaptureFXAec_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundCaptureFXAec_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCaptureFXAec_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundCaptureFXAec_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCaptureFXAec_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundCaptureFXAec_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - - -// -// IDirectSoundCaptureFXNoiseSuppress -// - -DEFINE_GUID(IID_IDirectSoundCaptureFXNoiseSuppress, 0xed311e41, 0xfbae, 0x4175, 0x96, 0x25, 0xcd, 0x8, 0x54, 0xf6, 0x93, 0xca); - -typedef struct _DSCFXNoiseSuppress -{ - BOOL fEnable; -} DSCFXNoiseSuppress, *LPDSCFXNoiseSuppress; - -typedef const DSCFXNoiseSuppress *LPCDSCFXNoiseSuppress; - -#undef INTERFACE -#define INTERFACE IDirectSoundCaptureFXNoiseSuppress - -DECLARE_INTERFACE_(IDirectSoundCaptureFXNoiseSuppress, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCaptureFXNoiseSuppress methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSCFXNoiseSuppress pcDscFxNoiseSuppress) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSCFXNoiseSuppress pDscFxNoiseSuppress) PURE; - STDMETHOD(Reset) (THIS) PURE; -}; - -#define IDirectSoundCaptureFXNoiseSuppress_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundCaptureFXNoiseSuppress_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundCaptureFXNoiseSuppress_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCaptureFXNoiseSuppress_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) -#define IDirectSoundCaptureFXNoiseSuppress_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundCaptureFXNoiseSuppress_SetAllParameters(p,a) (p)->SetAllParameters(a) -#define IDirectSoundCaptureFXNoiseSuppress_GetAllParameters(p,a) (p)->GetAllParameters(a) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - - -// -// IDirectSoundFullDuplex -// - -#ifndef _IDirectSoundFullDuplex_ -#define _IDirectSoundFullDuplex_ - -DEFINE_GUID(IID_IDirectSoundFullDuplex, 0xedcb4c7a, 0xdaab, 0x4216, 0xa4, 0x2e, 0x6c, 0x50, 0x59, 0x6d, 0xdc, 0x1d); - -#undef INTERFACE -#define INTERFACE IDirectSoundFullDuplex - -DECLARE_INTERFACE_(IDirectSoundFullDuplex, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFullDuplex methods - STDMETHOD(Initialize) (THIS_ LPCGUID pCaptureGuid, LPCGUID pRenderGuid, LPCDSCBUFFERDESC lpDscBufferDesc, LPCDSBUFFERDESC lpDsBufferDesc, HWND hWnd, DWORD dwLevel, LPLPDIRECTSOUNDCAPTUREBUFFER8 lplpDirectSoundCaptureBuffer8, LPLPDIRECTSOUNDBUFFER8 lplpDirectSoundBuffer8) PURE; -}; - -#define IDirectSoundFullDuplex_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) -#define IDirectSoundFullDuplex_AddRef(p) IUnknown_AddRef(p) -#define IDirectSoundFullDuplex_Release(p) IUnknown_Release(p) - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Initialize(p,a,b,c,d,e,f,g,h) -#else // !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->Initialize(a,b,c,d,e,f,g,h) -#endif // !defined(__cplusplus) || defined(CINTERFACE) - -#endif // _IDirectSoundFullDuplex_ - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -// -// Return Codes -// - -// The function completed successfully -#define DS_OK S_OK - -// The call succeeded, but we had to substitute the 3D algorithm -#define DS_NO_VIRTUALIZATION MAKE_HRESULT(0, _FACDS, 10) - -// The call failed because resources (such as a priority level) -// were already being used by another caller -#define DSERR_ALLOCATED MAKE_DSHRESULT(10) - -// The control (vol, pan, etc.) requested by the caller is not available -#define DSERR_CONTROLUNAVAIL MAKE_DSHRESULT(30) - -// An invalid parameter was passed to the returning function -#define DSERR_INVALIDPARAM E_INVALIDARG - -// This call is not valid for the current state of this object -#define DSERR_INVALIDCALL MAKE_DSHRESULT(50) - -// An undetermined error occurred inside the DirectSound subsystem -#define DSERR_GENERIC E_FAIL - -// The caller does not have the priority level required for the function to -// succeed -#define DSERR_PRIOLEVELNEEDED MAKE_DSHRESULT(70) - -// Not enough free memory is available to complete the operation -#define DSERR_OUTOFMEMORY E_OUTOFMEMORY - -// The specified WAVE format is not supported -#define DSERR_BADFORMAT MAKE_DSHRESULT(100) - -// The function called is not supported at this time -#define DSERR_UNSUPPORTED E_NOTIMPL - -// No sound driver is available for use -#define DSERR_NODRIVER MAKE_DSHRESULT(120) - -// This object is already initialized -#define DSERR_ALREADYINITIALIZED MAKE_DSHRESULT(130) - -// This object does not support aggregation -#define DSERR_NOAGGREGATION CLASS_E_NOAGGREGATION - -// The buffer memory has been lost, and must be restored -#define DSERR_BUFFERLOST MAKE_DSHRESULT(150) - -// Another app has a higher priority level, preventing this call from -// succeeding -#define DSERR_OTHERAPPHASPRIO MAKE_DSHRESULT(160) - -// This object has not been initialized -#define DSERR_UNINITIALIZED MAKE_DSHRESULT(170) - -// The requested COM interface is not available -#define DSERR_NOINTERFACE E_NOINTERFACE - -// Access is denied -#define DSERR_ACCESSDENIED E_ACCESSDENIED - -// Tried to create a DSBCAPS_CTRLFX buffer shorter than DSBSIZE_FX_MIN milliseconds -#define DSERR_BUFFERTOOSMALL MAKE_DSHRESULT(180) - -// Attempt to use DirectSound 8 functionality on an older DirectSound object -#define DSERR_DS8_REQUIRED MAKE_DSHRESULT(190) - -// A circular loop of send effects was detected -#define DSERR_SENDLOOP MAKE_DSHRESULT(200) - -// The GUID specified in an audiopath file does not match a valid MIXIN buffer -#define DSERR_BADSENDBUFFERGUID MAKE_DSHRESULT(210) - -// The object requested was not found (numerically equal to DMUS_E_NOT_FOUND) -#define DSERR_OBJECTNOTFOUND MAKE_DSHRESULT(4449) - -// The effects requested could not be found on the system, or they were found -// but in the wrong order, or in the wrong hardware/software locations. -#define DSERR_FXUNAVAILABLE MAKE_DSHRESULT(220) - -// -// Flags -// - -#define DSCAPS_PRIMARYMONO 0x00000001 -#define DSCAPS_PRIMARYSTEREO 0x00000002 -#define DSCAPS_PRIMARY8BIT 0x00000004 -#define DSCAPS_PRIMARY16BIT 0x00000008 -#define DSCAPS_CONTINUOUSRATE 0x00000010 -#define DSCAPS_EMULDRIVER 0x00000020 -#define DSCAPS_CERTIFIED 0x00000040 -#define DSCAPS_SECONDARYMONO 0x00000100 -#define DSCAPS_SECONDARYSTEREO 0x00000200 -#define DSCAPS_SECONDARY8BIT 0x00000400 -#define DSCAPS_SECONDARY16BIT 0x00000800 - -#define DSSCL_NORMAL 0x00000001 -#define DSSCL_PRIORITY 0x00000002 -#define DSSCL_EXCLUSIVE 0x00000003 -#define DSSCL_WRITEPRIMARY 0x00000004 - -#define DSSPEAKER_DIRECTOUT 0x00000000 -#define DSSPEAKER_HEADPHONE 0x00000001 -#define DSSPEAKER_MONO 0x00000002 -#define DSSPEAKER_QUAD 0x00000003 -#define DSSPEAKER_STEREO 0x00000004 -#define DSSPEAKER_SURROUND 0x00000005 -#define DSSPEAKER_5POINT1 0x00000006 -#define DSSPEAKER_7POINT1 0x00000007 - -#define DSSPEAKER_GEOMETRY_MIN 0x00000005 // 5 degrees -#define DSSPEAKER_GEOMETRY_NARROW 0x0000000A // 10 degrees -#define DSSPEAKER_GEOMETRY_WIDE 0x00000014 // 20 degrees -#define DSSPEAKER_GEOMETRY_MAX 0x000000B4 // 180 degrees - -#define DSSPEAKER_COMBINED(c, g) ((DWORD)(((BYTE)(c)) | ((DWORD)((BYTE)(g))) << 16)) -#define DSSPEAKER_CONFIG(a) ((BYTE)(a)) -#define DSSPEAKER_GEOMETRY(a) ((BYTE)(((DWORD)(a) >> 16) & 0x00FF)) - -#define DSBCAPS_PRIMARYBUFFER 0x00000001 -#define DSBCAPS_STATIC 0x00000002 -#define DSBCAPS_LOCHARDWARE 0x00000004 -#define DSBCAPS_LOCSOFTWARE 0x00000008 -#define DSBCAPS_CTRL3D 0x00000010 -#define DSBCAPS_CTRLFREQUENCY 0x00000020 -#define DSBCAPS_CTRLPAN 0x00000040 -#define DSBCAPS_CTRLVOLUME 0x00000080 -#define DSBCAPS_CTRLPOSITIONNOTIFY 0x00000100 -#define DSBCAPS_CTRLFX 0x00000200 -#define DSBCAPS_STICKYFOCUS 0x00004000 -#define DSBCAPS_GLOBALFOCUS 0x00008000 -#define DSBCAPS_GETCURRENTPOSITION2 0x00010000 -#define DSBCAPS_MUTE3DATMAXDISTANCE 0x00020000 -#define DSBCAPS_LOCDEFER 0x00040000 - -#define DSBPLAY_LOOPING 0x00000001 -#define DSBPLAY_LOCHARDWARE 0x00000002 -#define DSBPLAY_LOCSOFTWARE 0x00000004 -#define DSBPLAY_TERMINATEBY_TIME 0x00000008 -#define DSBPLAY_TERMINATEBY_DISTANCE 0x000000010 -#define DSBPLAY_TERMINATEBY_PRIORITY 0x000000020 - -#define DSBSTATUS_PLAYING 0x00000001 -#define DSBSTATUS_BUFFERLOST 0x00000002 -#define DSBSTATUS_LOOPING 0x00000004 -#define DSBSTATUS_LOCHARDWARE 0x00000008 -#define DSBSTATUS_LOCSOFTWARE 0x00000010 -#define DSBSTATUS_TERMINATED 0x00000020 - -#define DSBLOCK_FROMWRITECURSOR 0x00000001 -#define DSBLOCK_ENTIREBUFFER 0x00000002 - -#define DSBFREQUENCY_ORIGINAL 0 -#define DSBFREQUENCY_MIN 100 -#if DIRECTSOUND_VERSION >= 0x0900 -#define DSBFREQUENCY_MAX 200000 -#else -#define DSBFREQUENCY_MAX 100000 -#endif - -#define DSBPAN_LEFT -10000 -#define DSBPAN_CENTER 0 -#define DSBPAN_RIGHT 10000 - -#define DSBVOLUME_MIN -10000 -#define DSBVOLUME_MAX 0 - -#define DSBSIZE_MIN 4 -#define DSBSIZE_MAX 0x0FFFFFFF -#define DSBSIZE_FX_MIN 150 // NOTE: Milliseconds, not bytes - -#define DS3DMODE_NORMAL 0x00000000 -#define DS3DMODE_HEADRELATIVE 0x00000001 -#define DS3DMODE_DISABLE 0x00000002 - -#define DS3D_IMMEDIATE 0x00000000 -#define DS3D_DEFERRED 0x00000001 - -#define DS3D_MINDISTANCEFACTOR FLT_MIN -#define DS3D_MAXDISTANCEFACTOR FLT_MAX -#define DS3D_DEFAULTDISTANCEFACTOR 1.0f - -#define DS3D_MINROLLOFFFACTOR 0.0f -#define DS3D_MAXROLLOFFFACTOR 10.0f -#define DS3D_DEFAULTROLLOFFFACTOR 1.0f - -#define DS3D_MINDOPPLERFACTOR 0.0f -#define DS3D_MAXDOPPLERFACTOR 10.0f -#define DS3D_DEFAULTDOPPLERFACTOR 1.0f - -#define DS3D_DEFAULTMINDISTANCE 1.0f -#define DS3D_DEFAULTMAXDISTANCE 1000000000.0f - -#define DS3D_MINCONEANGLE 0 -#define DS3D_MAXCONEANGLE 360 -#define DS3D_DEFAULTCONEANGLE 360 - -#define DS3D_DEFAULTCONEOUTSIDEVOLUME DSBVOLUME_MAX - -// IDirectSoundCapture attributes - -#define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER -#define DSCCAPS_CERTIFIED DSCAPS_CERTIFIED -#define DSCCAPS_MULTIPLECAPTURE 0x00000001 - -// IDirectSoundCaptureBuffer attributes - -#define DSCBCAPS_WAVEMAPPED 0x80000000 - -#if DIRECTSOUND_VERSION >= 0x0800 -#define DSCBCAPS_CTRLFX 0x00000200 -#endif - - -#define DSCBLOCK_ENTIREBUFFER 0x00000001 - -#define DSCBSTATUS_CAPTURING 0x00000001 -#define DSCBSTATUS_LOOPING 0x00000002 - -#define DSCBSTART_LOOPING 0x00000001 - -#define DSBPN_OFFSETSTOP 0xFFFFFFFF - -#define DS_CERTIFIED 0x00000000 -#define DS_UNCERTIFIED 0x00000001 - - -// -// Flags for the I3DL2 effects -// - -// -// I3DL2 Material Presets -// - -enum -{ - DSFX_I3DL2_MATERIAL_PRESET_SINGLEWINDOW, - DSFX_I3DL2_MATERIAL_PRESET_DOUBLEWINDOW, - DSFX_I3DL2_MATERIAL_PRESET_THINDOOR, - DSFX_I3DL2_MATERIAL_PRESET_THICKDOOR, - DSFX_I3DL2_MATERIAL_PRESET_WOODWALL, - DSFX_I3DL2_MATERIAL_PRESET_BRICKWALL, - DSFX_I3DL2_MATERIAL_PRESET_STONEWALL, - DSFX_I3DL2_MATERIAL_PRESET_CURTAIN -}; - -#define I3DL2_MATERIAL_PRESET_SINGLEWINDOW -2800,0.71f -#define I3DL2_MATERIAL_PRESET_DOUBLEWINDOW -5000,0.40f -#define I3DL2_MATERIAL_PRESET_THINDOOR -1800,0.66f -#define I3DL2_MATERIAL_PRESET_THICKDOOR -4400,0.64f -#define I3DL2_MATERIAL_PRESET_WOODWALL -4000,0.50f -#define I3DL2_MATERIAL_PRESET_BRICKWALL -5000,0.60f -#define I3DL2_MATERIAL_PRESET_STONEWALL -6000,0.68f -#define I3DL2_MATERIAL_PRESET_CURTAIN -1200,0.15f - -enum -{ - DSFX_I3DL2_ENVIRONMENT_PRESET_DEFAULT, - DSFX_I3DL2_ENVIRONMENT_PRESET_GENERIC, - DSFX_I3DL2_ENVIRONMENT_PRESET_PADDEDCELL, - DSFX_I3DL2_ENVIRONMENT_PRESET_ROOM, - DSFX_I3DL2_ENVIRONMENT_PRESET_BATHROOM, - DSFX_I3DL2_ENVIRONMENT_PRESET_LIVINGROOM, - DSFX_I3DL2_ENVIRONMENT_PRESET_STONEROOM, - DSFX_I3DL2_ENVIRONMENT_PRESET_AUDITORIUM, - DSFX_I3DL2_ENVIRONMENT_PRESET_CONCERTHALL, - DSFX_I3DL2_ENVIRONMENT_PRESET_CAVE, - DSFX_I3DL2_ENVIRONMENT_PRESET_ARENA, - DSFX_I3DL2_ENVIRONMENT_PRESET_HANGAR, - DSFX_I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY, - DSFX_I3DL2_ENVIRONMENT_PRESET_HALLWAY, - DSFX_I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR, - DSFX_I3DL2_ENVIRONMENT_PRESET_ALLEY, - DSFX_I3DL2_ENVIRONMENT_PRESET_FOREST, - DSFX_I3DL2_ENVIRONMENT_PRESET_CITY, - DSFX_I3DL2_ENVIRONMENT_PRESET_MOUNTAINS, - DSFX_I3DL2_ENVIRONMENT_PRESET_QUARRY, - DSFX_I3DL2_ENVIRONMENT_PRESET_PLAIN, - DSFX_I3DL2_ENVIRONMENT_PRESET_PARKINGLOT, - DSFX_I3DL2_ENVIRONMENT_PRESET_SEWERPIPE, - DSFX_I3DL2_ENVIRONMENT_PRESET_UNDERWATER, - DSFX_I3DL2_ENVIRONMENT_PRESET_SMALLROOM, - DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM, - DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEROOM, - DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL, - DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEHALL, - DSFX_I3DL2_ENVIRONMENT_PRESET_PLATE -}; - -// -// I3DL2 Reverberation Presets Values -// - -#define I3DL2_ENVIRONMENT_PRESET_DEFAULT -1000, -100, 0.0f, 1.49f, 0.83f, -2602, 0.007f, 200, 0.011f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_GENERIC -1000, -100, 0.0f, 1.49f, 0.83f, -2602, 0.007f, 200, 0.011f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_PADDEDCELL -1000,-6000, 0.0f, 0.17f, 0.10f, -1204, 0.001f, 207, 0.002f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_ROOM -1000, -454, 0.0f, 0.40f, 0.83f, -1646, 0.002f, 53, 0.003f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_BATHROOM -1000,-1200, 0.0f, 1.49f, 0.54f, -370, 0.007f, 1030, 0.011f, 100.0f, 60.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_LIVINGROOM -1000,-6000, 0.0f, 0.50f, 0.10f, -1376, 0.003f, -1104, 0.004f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_STONEROOM -1000, -300, 0.0f, 2.31f, 0.64f, -711, 0.012f, 83, 0.017f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_AUDITORIUM -1000, -476, 0.0f, 4.32f, 0.59f, -789, 0.020f, -289, 0.030f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_CONCERTHALL -1000, -500, 0.0f, 3.92f, 0.70f, -1230, 0.020f, -2, 0.029f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_CAVE -1000, 0, 0.0f, 2.91f, 1.30f, -602, 0.015f, -302, 0.022f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_ARENA -1000, -698, 0.0f, 7.24f, 0.33f, -1166, 0.020f, 16, 0.030f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_HANGAR -1000,-1000, 0.0f,10.05f, 0.23f, -602, 0.020f, 198, 0.030f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY -1000,-4000, 0.0f, 0.30f, 0.10f, -1831, 0.002f, -1630, 0.030f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_HALLWAY -1000, -300, 0.0f, 1.49f, 0.59f, -1219, 0.007f, 441, 0.011f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR -1000, -237, 0.0f, 2.70f, 0.79f, -1214, 0.013f, 395, 0.020f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_ALLEY -1000, -270, 0.0f, 1.49f, 0.86f, -1204, 0.007f, -4, 0.011f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_FOREST -1000,-3300, 0.0f, 1.49f, 0.54f, -2560, 0.162f, -613, 0.088f, 79.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_CITY -1000, -800, 0.0f, 1.49f, 0.67f, -2273, 0.007f, -2217, 0.011f, 50.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_MOUNTAINS -1000,-2500, 0.0f, 1.49f, 0.21f, -2780, 0.300f, -2014, 0.100f, 27.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_QUARRY -1000,-1000, 0.0f, 1.49f, 0.83f,-10000, 0.061f, 500, 0.025f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_PLAIN -1000,-2000, 0.0f, 1.49f, 0.50f, -2466, 0.179f, -2514, 0.100f, 21.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_PARKINGLOT -1000, 0, 0.0f, 1.65f, 1.50f, -1363, 0.008f, -1153, 0.012f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_SEWERPIPE -1000,-1000, 0.0f, 2.81f, 0.14f, 429, 0.014f, 648, 0.021f, 80.0f, 60.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_UNDERWATER -1000,-4000, 0.0f, 1.49f, 0.10f, -449, 0.007f, 1700, 0.011f, 100.0f, 100.0f, 5000.0f - -// -// Examples simulating 'musical' reverb presets -// -// Name Decay time Description -// Small Room 1.1s A small size room with a length of 5m or so. -// Medium Room 1.3s A medium size room with a length of 10m or so. -// Large Room 1.5s A large size room suitable for live performances. -// Medium Hall 1.8s A medium size concert hall. -// Large Hall 1.8s A large size concert hall suitable for a full orchestra. -// Plate 1.3s A plate reverb simulation. -// - -#define I3DL2_ENVIRONMENT_PRESET_SMALLROOM -1000, -600, 0.0f, 1.10f, 0.83f, -400, 0.005f, 500, 0.010f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM -1000, -600, 0.0f, 1.30f, 0.83f, -1000, 0.010f, -200, 0.020f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_LARGEROOM -1000, -600, 0.0f, 1.50f, 0.83f, -1600, 0.020f, -1000, 0.040f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL -1000, -600, 0.0f, 1.80f, 0.70f, -1300, 0.015f, -800, 0.030f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_LARGEHALL -1000, -600, 0.0f, 1.80f, 0.70f, -2000, 0.030f, -1400, 0.060f, 100.0f, 100.0f, 5000.0f -#define I3DL2_ENVIRONMENT_PRESET_PLATE -1000, -200, 0.0f, 1.30f, 0.90f, 0, 0.002f, 0, 0.010f, 100.0f, 75.0f, 5000.0f - -// -// DirectSound3D Algorithms -// - -// Default DirectSound3D algorithm {00000000-0000-0000-0000-000000000000} -#define DS3DALG_DEFAULT GUID_NULL - -// No virtualization (Pan3D) {C241333F-1C1B-11d2-94F5-00C04FC28ACA} -DEFINE_GUID(DS3DALG_NO_VIRTUALIZATION, 0xc241333f, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); - -// High-quality HRTF algorithm {C2413340-1C1B-11d2-94F5-00C04FC28ACA} -DEFINE_GUID(DS3DALG_HRTF_FULL, 0xc2413340, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); - -// Lower-quality HRTF algorithm {C2413342-1C1B-11d2-94F5-00C04FC28ACA} -DEFINE_GUID(DS3DALG_HRTF_LIGHT, 0xc2413342, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); - - -#if DIRECTSOUND_VERSION >= 0x0800 - -// -// DirectSound Internal Effect Algorithms -// - - -// Gargle {DAFD8210-5711-4B91-9FE3-F75B7AE279BF} -DEFINE_GUID(GUID_DSFX_STANDARD_GARGLE, 0xdafd8210, 0x5711, 0x4b91, 0x9f, 0xe3, 0xf7, 0x5b, 0x7a, 0xe2, 0x79, 0xbf); - -// Chorus {EFE6629C-81F7-4281-BD91-C9D604A95AF6} -DEFINE_GUID(GUID_DSFX_STANDARD_CHORUS, 0xefe6629c, 0x81f7, 0x4281, 0xbd, 0x91, 0xc9, 0xd6, 0x04, 0xa9, 0x5a, 0xf6); - -// Flanger {EFCA3D92-DFD8-4672-A603-7420894BAD98} -DEFINE_GUID(GUID_DSFX_STANDARD_FLANGER, 0xefca3d92, 0xdfd8, 0x4672, 0xa6, 0x03, 0x74, 0x20, 0x89, 0x4b, 0xad, 0x98); - -// Echo/Delay {EF3E932C-D40B-4F51-8CCF-3F98F1B29D5D} -DEFINE_GUID(GUID_DSFX_STANDARD_ECHO, 0xef3e932c, 0xd40b, 0x4f51, 0x8c, 0xcf, 0x3f, 0x98, 0xf1, 0xb2, 0x9d, 0x5d); - -// Distortion {EF114C90-CD1D-484E-96E5-09CFAF912A21} -DEFINE_GUID(GUID_DSFX_STANDARD_DISTORTION, 0xef114c90, 0xcd1d, 0x484e, 0x96, 0xe5, 0x09, 0xcf, 0xaf, 0x91, 0x2a, 0x21); - -// Compressor/Limiter {EF011F79-4000-406D-87AF-BFFB3FC39D57} -DEFINE_GUID(GUID_DSFX_STANDARD_COMPRESSOR, 0xef011f79, 0x4000, 0x406d, 0x87, 0xaf, 0xbf, 0xfb, 0x3f, 0xc3, 0x9d, 0x57); - -// Parametric Equalization {120CED89-3BF4-4173-A132-3CB406CF3231} -DEFINE_GUID(GUID_DSFX_STANDARD_PARAMEQ, 0x120ced89, 0x3bf4, 0x4173, 0xa1, 0x32, 0x3c, 0xb4, 0x06, 0xcf, 0x32, 0x31); - -// I3DL2 Environmental Reverberation: Reverb (Listener) Effect {EF985E71-D5C7-42D4-BA4D-2D073E2E96F4} -DEFINE_GUID(GUID_DSFX_STANDARD_I3DL2REVERB, 0xef985e71, 0xd5c7, 0x42d4, 0xba, 0x4d, 0x2d, 0x07, 0x3e, 0x2e, 0x96, 0xf4); - -// Waves Reverberation {87FC0268-9A55-4360-95AA-004A1D9DE26C} -DEFINE_GUID(GUID_DSFX_WAVES_REVERB, 0x87fc0268, 0x9a55, 0x4360, 0x95, 0xaa, 0x00, 0x4a, 0x1d, 0x9d, 0xe2, 0x6c); - -// -// DirectSound Capture Effect Algorithms -// - - -// Acoustic Echo Canceller {BF963D80-C559-11D0-8A2B-00A0C9255AC1} -// Matches KSNODETYPE_ACOUSTIC_ECHO_CANCEL in ksmedia.h -DEFINE_GUID(GUID_DSCFX_CLASS_AEC, 0xBF963D80L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1); - -// Microsoft AEC {CDEBB919-379A-488a-8765-F53CFD36DE40} -DEFINE_GUID(GUID_DSCFX_MS_AEC, 0xcdebb919, 0x379a, 0x488a, 0x87, 0x65, 0xf5, 0x3c, 0xfd, 0x36, 0xde, 0x40); - -// System AEC {1C22C56D-9879-4f5b-A389-27996DDC2810} -DEFINE_GUID(GUID_DSCFX_SYSTEM_AEC, 0x1c22c56d, 0x9879, 0x4f5b, 0xa3, 0x89, 0x27, 0x99, 0x6d, 0xdc, 0x28, 0x10); - -// Noise Supression {E07F903F-62FD-4e60-8CDD-DEA7236665B5} -// Matches KSNODETYPE_NOISE_SUPPRESS in post Windows ME DDK's ksmedia.h -DEFINE_GUID(GUID_DSCFX_CLASS_NS, 0xe07f903f, 0x62fd, 0x4e60, 0x8c, 0xdd, 0xde, 0xa7, 0x23, 0x66, 0x65, 0xb5); - -// Microsoft Noise Suppresion {11C5C73B-66E9-4ba1-A0BA-E814C6EED92D} -DEFINE_GUID(GUID_DSCFX_MS_NS, 0x11c5c73b, 0x66e9, 0x4ba1, 0xa0, 0xba, 0xe8, 0x14, 0xc6, 0xee, 0xd9, 0x2d); - -// System Noise Suppresion {5AB0882E-7274-4516-877D-4EEE99BA4FD0} -DEFINE_GUID(GUID_DSCFX_SYSTEM_NS, 0x5ab0882e, 0x7274, 0x4516, 0x87, 0x7d, 0x4e, 0xee, 0x99, 0xba, 0x4f, 0xd0); - -#endif // DIRECTSOUND_VERSION >= 0x0800 - -#endif // __DSOUND_INCLUDED__ - - - -#ifdef __cplusplus -}; -#endif // __cplusplus diff --git a/platform/Windows/include/dx/dx_compat.h b/platform/Windows/include/dx/dx_compat.h deleted file mode 100644 index f5b875529..000000000 --- a/platform/Windows/include/dx/dx_compat.h +++ /dev/null @@ -1,28 +0,0 @@ - -// MinGW-w64 headers are deficient. -// Here, account for CINTERFACE because they don't. -#ifdef REFGUID -# undef REFGUID -#endif -#ifdef REFIID -# undef REFIID -#endif -#ifdef REFCLSID -# undef REFCLSID -#endif -#ifdef REFFMTID -# undef REFFMTID -#endif - -// copied from MinGW's -#if defined (__cplusplus) && !defined (CINTERFACE) -# define REFGUID const GUID& -# define REFIID const IID& -# define REFCLSID const CLSID& -# define REFFMTID const FMTID& -#else -# define REFGUID const GUID* const -# define REFIID const IID* const -# define REFCLSID const CLSID* const -# define REFFMTID const FMTID* const -#endif diff --git a/platform/Windows/include/luajit-2.0/lauxlib.h b/platform/Windows/include/luajit-2.0/lauxlib.h deleted file mode 100644 index fed1491b8..000000000 --- a/platform/Windows/include/luajit-2.0/lauxlib.h +++ /dev/null @@ -1,167 +0,0 @@ -/* -** $Id: lauxlib.h,v 1.88.1.1 2007/12/27 13:02:25 roberto Exp $ -** Auxiliary functions for building Lua libraries -** See Copyright Notice in lua.h -*/ - - -#ifndef lauxlib_h -#define lauxlib_h - - -#include -#include - -#include "lua.h" - - -#define luaL_getn(L,i) ((int)lua_objlen(L, i)) -#define luaL_setn(L,i,j) ((void)0) /* no op! */ - -/* extra error code for `luaL_load' */ -#define LUA_ERRFILE (LUA_ERRERR+1) - -typedef struct luaL_Reg { - const char *name; - lua_CFunction func; -} luaL_Reg; - -LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, - const luaL_Reg *l, int nup); -LUALIB_API void (luaL_register) (lua_State *L, const char *libname, - const luaL_Reg *l); -LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); -LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); -LUALIB_API int (luaL_typerror) (lua_State *L, int narg, const char *tname); -LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg); -LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg, - size_t *l); -LUALIB_API const char *(luaL_optlstring) (lua_State *L, int numArg, - const char *def, size_t *l); -LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int numArg); -LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int nArg, lua_Number def); - -LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg); -LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int nArg, - lua_Integer def); - -LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg); -LUALIB_API void (luaL_checktype) (lua_State *L, int narg, int t); -LUALIB_API void (luaL_checkany) (lua_State *L, int narg); - -LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname); -LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname); - -LUALIB_API void (luaL_where) (lua_State *L, int lvl); -LUALIB_API int (luaL_error) (lua_State *L, const char *fmt, ...); - -LUALIB_API int (luaL_checkoption) (lua_State *L, int narg, const char *def, - const char *const lst[]); - -LUALIB_API int (luaL_ref) (lua_State *L, int t); -LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); - -LUALIB_API int (luaL_loadfile) (lua_State *L, const char *filename); -LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz, - const char *name); -LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s); - -LUALIB_API lua_State *(luaL_newstate) (void); - - -LUALIB_API const char *(luaL_gsub) (lua_State *L, const char *s, const char *p, - const char *r); - -LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx, - const char *fname, int szhint); - -/* From Lua 5.2. */ -LUALIB_API int luaL_fileresult(lua_State *L, int stat, const char *fname); -LUALIB_API int luaL_execresult(lua_State *L, int stat); -LUALIB_API int (luaL_loadfilex) (lua_State *L, const char *filename, - const char *mode); -LUALIB_API int (luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz, - const char *name, const char *mode); -LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, const char *msg, - int level); - - -/* -** =============================================================== -** some useful macros -** =============================================================== -*/ - -#define luaL_argcheck(L, cond,numarg,extramsg) \ - ((void)((cond) || luaL_argerror(L, (numarg), (extramsg)))) -#define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) -#define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) -#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) -#define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d))) -#define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n))) -#define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d))) - -#define luaL_typename(L,i) lua_typename(L, lua_type(L,(i))) - -#define luaL_dofile(L, fn) \ - (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0)) - -#define luaL_dostring(L, s) \ - (luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0)) - -#define luaL_getmetatable(L,n) (lua_getfield(L, LUA_REGISTRYINDEX, (n))) - -#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n))) - -/* -** {====================================================== -** Generic Buffer manipulation -** ======================================================= -*/ - - - -typedef struct luaL_Buffer { - char *p; /* current position in buffer */ - int lvl; /* number of strings in the stack (level) */ - lua_State *L; - char buffer[LUAL_BUFFERSIZE]; -} luaL_Buffer; - -#define luaL_addchar(B,c) \ - ((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \ - (*(B)->p++ = (char)(c))) - -/* compatibility only */ -#define luaL_putchar(B,c) luaL_addchar(B,c) - -#define luaL_addsize(B,n) ((B)->p += (n)) - -LUALIB_API void (luaL_buffinit) (lua_State *L, luaL_Buffer *B); -LUALIB_API char *(luaL_prepbuffer) (luaL_Buffer *B); -LUALIB_API void (luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l); -LUALIB_API void (luaL_addstring) (luaL_Buffer *B, const char *s); -LUALIB_API void (luaL_addvalue) (luaL_Buffer *B); -LUALIB_API void (luaL_pushresult) (luaL_Buffer *B); - - -/* }====================================================== */ - - -/* compatibility with ref system */ - -/* pre-defined references */ -#define LUA_NOREF (-2) -#define LUA_REFNIL (-1) - -#define lua_ref(L,lock) ((lock) ? luaL_ref(L, LUA_REGISTRYINDEX) : \ - (lua_pushstring(L, "unlocked references are obsolete"), lua_error(L), 0)) - -#define lua_unref(L,ref) luaL_unref(L, LUA_REGISTRYINDEX, (ref)) - -#define lua_getref(L,ref) lua_rawgeti(L, LUA_REGISTRYINDEX, (ref)) - - -#define luaL_reg luaL_Reg - -#endif diff --git a/platform/Windows/include/luajit-2.0/lua.h b/platform/Windows/include/luajit-2.0/lua.h deleted file mode 100644 index c83fd3bbe..000000000 --- a/platform/Windows/include/luajit-2.0/lua.h +++ /dev/null @@ -1,393 +0,0 @@ -/* -** $Id: lua.h,v 1.218.1.5 2008/08/06 13:30:12 roberto Exp $ -** Lua - An Extensible Extension Language -** Lua.org, PUC-Rio, Brazil (http://www.lua.org) -** See Copyright Notice at the end of this file -*/ - - -#ifndef lua_h -#define lua_h - -#include -#include - - -#include "luaconf.h" - - -#define LUA_VERSION "Lua 5.1" -#define LUA_RELEASE "Lua 5.1.4" -#define LUA_VERSION_NUM 501 -#define LUA_COPYRIGHT "Copyright (C) 1994-2008 Lua.org, PUC-Rio" -#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo & W. Celes" - - -/* mark for precompiled code (`Lua') */ -#define LUA_SIGNATURE "\033Lua" - -/* option for multiple returns in `lua_pcall' and `lua_call' */ -#define LUA_MULTRET (-1) - - -/* -** pseudo-indices -*/ -#define LUA_REGISTRYINDEX (-10000) -#define LUA_ENVIRONINDEX (-10001) -#define LUA_GLOBALSINDEX (-10002) -#define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) - - -/* thread status; 0 is OK */ -#define LUA_YIELD 1 -#define LUA_ERRRUN 2 -#define LUA_ERRSYNTAX 3 -#define LUA_ERRMEM 4 -#define LUA_ERRERR 5 - - -typedef struct lua_State lua_State; - -typedef int (*lua_CFunction) (lua_State *L); - - -/* -** functions that read/write blocks when loading/dumping Lua chunks -*/ -typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); - -typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); - - -/* -** prototype for memory-allocation functions -*/ -typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); - - -/* -** basic types -*/ -#define LUA_TNONE (-1) - -#define LUA_TNIL 0 -#define LUA_TBOOLEAN 1 -#define LUA_TLIGHTUSERDATA 2 -#define LUA_TNUMBER 3 -#define LUA_TSTRING 4 -#define LUA_TTABLE 5 -#define LUA_TFUNCTION 6 -#define LUA_TUSERDATA 7 -#define LUA_TTHREAD 8 - - - -/* minimum Lua stack available to a C function */ -#define LUA_MINSTACK 20 - - -/* -** generic extra include file -*/ -#if defined(LUA_USER_H) -#include LUA_USER_H -#endif - - -/* type of numbers in Lua */ -typedef LUA_NUMBER lua_Number; - - -/* type for integer functions */ -typedef LUA_INTEGER lua_Integer; - - - -/* -** state manipulation -*/ -LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); -LUA_API void (lua_close) (lua_State *L); -LUA_API lua_State *(lua_newthread) (lua_State *L); - -LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); - - -/* -** basic stack manipulation -*/ -LUA_API int (lua_gettop) (lua_State *L); -LUA_API void (lua_settop) (lua_State *L, int idx); -LUA_API void (lua_pushvalue) (lua_State *L, int idx); -LUA_API void (lua_remove) (lua_State *L, int idx); -LUA_API void (lua_insert) (lua_State *L, int idx); -LUA_API void (lua_replace) (lua_State *L, int idx); -LUA_API int (lua_checkstack) (lua_State *L, int sz); - -LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n); - - -/* -** access functions (stack -> C) -*/ - -LUA_API int (lua_isnumber) (lua_State *L, int idx); -LUA_API int (lua_isstring) (lua_State *L, int idx); -LUA_API int (lua_iscfunction) (lua_State *L, int idx); -LUA_API int (lua_isuserdata) (lua_State *L, int idx); -LUA_API int (lua_type) (lua_State *L, int idx); -LUA_API const char *(lua_typename) (lua_State *L, int tp); - -LUA_API int (lua_equal) (lua_State *L, int idx1, int idx2); -LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2); -LUA_API int (lua_lessthan) (lua_State *L, int idx1, int idx2); - -LUA_API lua_Number (lua_tonumber) (lua_State *L, int idx); -LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); -LUA_API int (lua_toboolean) (lua_State *L, int idx); -LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); -LUA_API size_t (lua_objlen) (lua_State *L, int idx); -LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); -LUA_API void *(lua_touserdata) (lua_State *L, int idx); -LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); -LUA_API const void *(lua_topointer) (lua_State *L, int idx); - - -/* -** push functions (C -> stack) -*/ -LUA_API void (lua_pushnil) (lua_State *L); -LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); -LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); -LUA_API void (lua_pushlstring) (lua_State *L, const char *s, size_t l); -LUA_API void (lua_pushstring) (lua_State *L, const char *s); -LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, - va_list argp); -LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...); -LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n); -LUA_API void (lua_pushboolean) (lua_State *L, int b); -LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p); -LUA_API int (lua_pushthread) (lua_State *L); - - -/* -** get functions (Lua -> stack) -*/ -LUA_API void (lua_gettable) (lua_State *L, int idx); -LUA_API void (lua_getfield) (lua_State *L, int idx, const char *k); -LUA_API void (lua_rawget) (lua_State *L, int idx); -LUA_API void (lua_rawgeti) (lua_State *L, int idx, int n); -LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); -LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); -LUA_API int (lua_getmetatable) (lua_State *L, int objindex); -LUA_API void (lua_getfenv) (lua_State *L, int idx); - - -/* -** set functions (stack -> Lua) -*/ -LUA_API void (lua_settable) (lua_State *L, int idx); -LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); -LUA_API void (lua_rawset) (lua_State *L, int idx); -LUA_API void (lua_rawseti) (lua_State *L, int idx, int n); -LUA_API int (lua_setmetatable) (lua_State *L, int objindex); -LUA_API int (lua_setfenv) (lua_State *L, int idx); - - -/* -** `load' and `call' functions (load and run Lua code) -*/ -LUA_API void (lua_call) (lua_State *L, int nargs, int nresults); -LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); -LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); -LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, - const char *chunkname); - -LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); - - -/* -** coroutine functions -*/ -LUA_API int (lua_yield) (lua_State *L, int nresults); -LUA_API int (lua_resume) (lua_State *L, int narg); -LUA_API int (lua_status) (lua_State *L); - -/* -** garbage-collection function and options -*/ - -#define LUA_GCSTOP 0 -#define LUA_GCRESTART 1 -#define LUA_GCCOLLECT 2 -#define LUA_GCCOUNT 3 -#define LUA_GCCOUNTB 4 -#define LUA_GCSTEP 5 -#define LUA_GCSETPAUSE 6 -#define LUA_GCSETSTEPMUL 7 - -LUA_API int (lua_gc) (lua_State *L, int what, int data); - - -/* -** miscellaneous functions -*/ - -LUA_API int (lua_error) (lua_State *L); - -LUA_API int (lua_next) (lua_State *L, int idx); - -LUA_API void (lua_concat) (lua_State *L, int n); - -LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); -LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud); - - - -/* -** =============================================================== -** some useful macros -** =============================================================== -*/ - -#define lua_pop(L,n) lua_settop(L, -(n)-1) - -#define lua_newtable(L) lua_createtable(L, 0, 0) - -#define lua_register(L,n,f) (lua_pushcfunction(L, (f)), lua_setglobal(L, (n))) - -#define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) - -#define lua_strlen(L,i) lua_objlen(L, (i)) - -#define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) -#define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) -#define lua_islightuserdata(L,n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) -#define lua_isnil(L,n) (lua_type(L, (n)) == LUA_TNIL) -#define lua_isboolean(L,n) (lua_type(L, (n)) == LUA_TBOOLEAN) -#define lua_isthread(L,n) (lua_type(L, (n)) == LUA_TTHREAD) -#define lua_isnone(L,n) (lua_type(L, (n)) == LUA_TNONE) -#define lua_isnoneornil(L, n) (lua_type(L, (n)) <= 0) - -#define lua_pushliteral(L, s) \ - lua_pushlstring(L, "" s, (sizeof(s)/sizeof(char))-1) - -#define lua_setglobal(L,s) lua_setfield(L, LUA_GLOBALSINDEX, (s)) -#define lua_getglobal(L,s) lua_getfield(L, LUA_GLOBALSINDEX, (s)) - -#define lua_tostring(L,i) lua_tolstring(L, (i), NULL) - - - -/* -** compatibility macros and functions -*/ - -#define lua_open() luaL_newstate() - -#define lua_getregistry(L) lua_pushvalue(L, LUA_REGISTRYINDEX) - -#define lua_getgccount(L) lua_gc(L, LUA_GCCOUNT, 0) - -#define lua_Chunkreader lua_Reader -#define lua_Chunkwriter lua_Writer - - -/* hack */ -LUA_API void lua_setlevel (lua_State *from, lua_State *to); - - -/* -** {====================================================================== -** Debug API -** ======================================================================= -*/ - - -/* -** Event codes -*/ -#define LUA_HOOKCALL 0 -#define LUA_HOOKRET 1 -#define LUA_HOOKLINE 2 -#define LUA_HOOKCOUNT 3 -#define LUA_HOOKTAILRET 4 - - -/* -** Event masks -*/ -#define LUA_MASKCALL (1 << LUA_HOOKCALL) -#define LUA_MASKRET (1 << LUA_HOOKRET) -#define LUA_MASKLINE (1 << LUA_HOOKLINE) -#define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) - -typedef struct lua_Debug lua_Debug; /* activation record */ - - -/* Functions to be called by the debuger in specific events */ -typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); - - -LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar); -LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar); -LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n); -LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n); -LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n); -LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n); -LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count); -LUA_API lua_Hook lua_gethook (lua_State *L); -LUA_API int lua_gethookmask (lua_State *L); -LUA_API int lua_gethookcount (lua_State *L); - -/* From Lua 5.2. */ -LUA_API void *lua_upvalueid (lua_State *L, int idx, int n); -LUA_API void lua_upvaluejoin (lua_State *L, int idx1, int n1, int idx2, int n2); -LUA_API int lua_loadx (lua_State *L, lua_Reader reader, void *dt, - const char *chunkname, const char *mode); - - -struct lua_Debug { - int event; - const char *name; /* (n) */ - const char *namewhat; /* (n) `global', `local', `field', `method' */ - const char *what; /* (S) `Lua', `C', `main', `tail' */ - const char *source; /* (S) */ - int currentline; /* (l) */ - int nups; /* (u) number of upvalues */ - int linedefined; /* (S) */ - int lastlinedefined; /* (S) */ - char short_src[LUA_IDSIZE]; /* (S) */ - /* private part */ - int i_ci; /* active function */ -}; - -/* }====================================================================== */ - - -/****************************************************************************** -* Copyright (C) 1994-2008 Lua.org, PUC-Rio. All rights reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the -* "Software"), to deal in the Software without restriction, including -* without limitation the rights to use, copy, modify, merge, publish, -* distribute, sublicense, and/or sell copies of the Software, and to -* permit persons to whom the Software is furnished to do so, subject to -* the following conditions: -* -* The above copyright notice and this permission notice shall be -* included in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -******************************************************************************/ - - -#endif diff --git a/platform/Windows/include/luajit-2.0/lua.hpp b/platform/Windows/include/luajit-2.0/lua.hpp deleted file mode 100644 index 07e9002dc..000000000 --- a/platform/Windows/include/luajit-2.0/lua.hpp +++ /dev/null @@ -1,9 +0,0 @@ -// C++ wrapper for LuaJIT header files. - -extern "C" { -#include "lua.h" -#include "lauxlib.h" -#include "lualib.h" -#include "luajit.h" -} - diff --git a/platform/Windows/include/luajit-2.0/luaconf.h b/platform/Windows/include/luajit-2.0/luaconf.h deleted file mode 100644 index 0dc1936e1..000000000 --- a/platform/Windows/include/luajit-2.0/luaconf.h +++ /dev/null @@ -1,156 +0,0 @@ -/* -** Configuration header. -** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h -*/ - -#ifndef luaconf_h -#define luaconf_h - -#ifndef WINVER -#define WINVER 0x0501 -#endif -#include -#include - -/* Default path for loading Lua and C modules with require(). */ -#if defined(_WIN32) -/* -** In Windows, any exclamation mark ('!') in the path is replaced by the -** path of the directory of the executable file of the current process. -*/ -#define LUA_LDIR "!\\lua\\" -#define LUA_CDIR "!\\" -#define LUA_PATH_DEFAULT \ - ".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" -#define LUA_CPATH_DEFAULT \ - ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll" -#else -/* -** Note to distribution maintainers: do NOT patch the following lines! -** Please read ../doc/install.html#distro and pass PREFIX=/usr instead. -*/ -#ifndef LUA_MULTILIB -#define LUA_MULTILIB "lib" -#endif -#ifndef LUA_LMULTILIB -#define LUA_LMULTILIB "lib" -#endif -#define LUA_LROOT "/usr/local" -#define LUA_LUADIR "/lua/5.1/" -#define LUA_LJDIR "/luajit-2.0.4/" - -#ifdef LUA_ROOT -#define LUA_JROOT LUA_ROOT -#define LUA_RLDIR LUA_ROOT "/share" LUA_LUADIR -#define LUA_RCDIR LUA_ROOT "/" LUA_MULTILIB LUA_LUADIR -#define LUA_RLPATH ";" LUA_RLDIR "?.lua;" LUA_RLDIR "?/init.lua" -#define LUA_RCPATH ";" LUA_RCDIR "?.so" -#else -#define LUA_JROOT LUA_LROOT -#define LUA_RLPATH -#define LUA_RCPATH -#endif - -#define LUA_JPATH ";" LUA_JROOT "/share" LUA_LJDIR "?.lua" -#define LUA_LLDIR LUA_LROOT "/share" LUA_LUADIR -#define LUA_LCDIR LUA_LROOT "/" LUA_LMULTILIB LUA_LUADIR -#define LUA_LLPATH ";" LUA_LLDIR "?.lua;" LUA_LLDIR "?/init.lua" -#define LUA_LCPATH1 ";" LUA_LCDIR "?.so" -#define LUA_LCPATH2 ";" LUA_LCDIR "loadall.so" - -#define LUA_PATH_DEFAULT "./?.lua" LUA_JPATH LUA_LLPATH LUA_RLPATH -#define LUA_CPATH_DEFAULT "./?.so" LUA_LCPATH1 LUA_RCPATH LUA_LCPATH2 -#endif - -/* Environment variable names for path overrides and initialization code. */ -#define LUA_PATH "LUA_PATH" -#define LUA_CPATH "LUA_CPATH" -#define LUA_INIT "LUA_INIT" - -/* Special file system characters. */ -#if defined(_WIN32) -#define LUA_DIRSEP "\\" -#else -#define LUA_DIRSEP "/" -#endif -#define LUA_PATHSEP ";" -#define LUA_PATH_MARK "?" -#define LUA_EXECDIR "!" -#define LUA_IGMARK "-" -#define LUA_PATH_CONFIG \ - LUA_DIRSEP "\n" LUA_PATHSEP "\n" LUA_PATH_MARK "\n" \ - LUA_EXECDIR "\n" LUA_IGMARK - -/* Quoting in error messages. */ -#define LUA_QL(x) "'" x "'" -#define LUA_QS LUA_QL("%s") - -/* Various tunables. */ -#define LUAI_MAXSTACK 65500 /* Max. # of stack slots for a thread (<64K). */ -#define LUAI_MAXCSTACK 64000 /*8000*/ /* Max. # of stack slots for a C func (<10K). */ -#define LUAI_GCPAUSE 200 /* Pause GC until memory is at 200%. */ -#define LUAI_GCMUL 200 /* Run GC at 200% of allocation speed. */ -#define LUA_MAXCAPTURES 32 /* Max. pattern captures. */ - -/* Compatibility with older library function names. */ -#define LUA_COMPAT_MOD /* OLD: math.mod, NEW: math.fmod */ -#define LUA_COMPAT_GFIND /* OLD: string.gfind, NEW: string.gmatch */ - -/* Configuration for the frontend (the luajit executable). */ -#if defined(luajit_c) -#define LUA_PROGNAME "luajit" /* Fallback frontend name. */ -#define LUA_PROMPT "> " /* Interactive prompt. */ -#define LUA_PROMPT2 ">> " /* Continuation prompt. */ -#define LUA_MAXINPUT 512 /* Max. input line length. */ -#endif - -/* Note: changing the following defines breaks the Lua 5.1 ABI. */ -#define LUA_INTEGER ptrdiff_t -#define LUA_IDSIZE 60 /* Size of lua_Debug.short_src. */ -/* -** Size of lauxlib and io.* on-stack buffers. Weird workaround to avoid using -** unreasonable amounts of stack space, but still retain ABI compatibility. -** Blame Lua for depending on BUFSIZ in the ABI, blame **** for wrecking it. -*/ -#define LUAL_BUFFERSIZE (BUFSIZ > 16384 ? 8192 : BUFSIZ) - -/* The following defines are here only for compatibility with luaconf.h -** from the standard Lua distribution. They must not be changed for LuaJIT. -*/ -#define LUA_NUMBER_DOUBLE -#define LUA_NUMBER double -#define LUAI_UACNUMBER double -#define LUA_NUMBER_SCAN "%lf" -#define LUA_NUMBER_FMT "%.14g" -#define lua_number2str(s, n) sprintf((s), LUA_NUMBER_FMT, (n)) -#define LUAI_MAXNUMBER2STR 32 -#define LUA_INTFRMLEN "l" -#define LUA_INTFRM_T long - -/* Linkage of public API functions. */ -#if defined(LUA_BUILD_AS_DLL) -#if defined(LUA_CORE) || defined(LUA_LIB) -#define LUA_API __declspec(dllexport) -#else -#define LUA_API __declspec(dllimport) -#endif -#else -#define LUA_API extern -#endif - -#define LUALIB_API LUA_API - -/* Support for internal assertions. */ -#if defined(LUA_USE_ASSERT) || defined(LUA_USE_APICHECK) -#include -#endif -#ifdef LUA_USE_ASSERT -#define lua_assert(x) assert(x) -#endif -#ifdef LUA_USE_APICHECK -#define luai_apicheck(L, o) { (void)L; assert(o); } -#else -#define luai_apicheck(L, o) { (void)L; } -#endif - -#endif diff --git a/platform/Windows/include/luajit-2.0/luajit.h b/platform/Windows/include/luajit-2.0/luajit.h deleted file mode 100644 index e7adbab61..000000000 --- a/platform/Windows/include/luajit-2.0/luajit.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -** LuaJIT -- a Just-In-Time Compiler for Lua. http://luajit.org/ -** -** Copyright (C) 2005-2016 Mike Pall. All rights reserved. -** -** Permission is hereby granted, free of charge, to any person obtaining -** a copy of this software and associated documentation files (the -** "Software"), to deal in the Software without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Software, and to -** permit persons to whom the Software is furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be -** included in all copies or substantial portions of the Software. -** -** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -** -** [ MIT license: http://www.opensource.org/licenses/mit-license.php ] -*/ - -#ifndef _LUAJIT_H -#define _LUAJIT_H - -#include "lua.h" - -#define LUAJIT_VERSION "LuaJIT 2.0.4" -#define LUAJIT_VERSION_NUM 20004 /* Version 2.0.4 = 02.00.04. */ -#define LUAJIT_VERSION_SYM luaJIT_version_2_0_4 -#define LUAJIT_COPYRIGHT "Copyright (C) 2005-2016 Mike Pall" -#define LUAJIT_URL "http://luajit.org/" - -/* Modes for luaJIT_setmode. */ -#define LUAJIT_MODE_MASK 0x00ff - -enum { - LUAJIT_MODE_ENGINE, /* Set mode for whole JIT engine. */ - LUAJIT_MODE_DEBUG, /* Set debug mode (idx = level). */ - - LUAJIT_MODE_FUNC, /* Change mode for a function. */ - LUAJIT_MODE_ALLFUNC, /* Recurse into subroutine protos. */ - LUAJIT_MODE_ALLSUBFUNC, /* Change only the subroutines. */ - - LUAJIT_MODE_TRACE, /* Flush a compiled trace. */ - - LUAJIT_MODE_WRAPCFUNC = 0x10, /* Set wrapper mode for C function calls. */ - - LUAJIT_MODE_MAX -}; - -/* Flags or'ed in to the mode. */ -#define LUAJIT_MODE_OFF 0x0000 /* Turn feature off. */ -#define LUAJIT_MODE_ON 0x0100 /* Turn feature on. */ -#define LUAJIT_MODE_FLUSH 0x0200 /* Flush JIT-compiled code. */ - -/* LuaJIT public C API. */ - -/* Control the JIT engine. */ -LUA_API int luaJIT_setmode(lua_State *L, int idx, int mode); - -/* Enforce (dynamic) linker error for version mismatches. Call from main. */ -LUA_API void LUAJIT_VERSION_SYM(void); - -#endif diff --git a/platform/Windows/include/luajit-2.0/lualib.h b/platform/Windows/include/luajit-2.0/lualib.h deleted file mode 100644 index 3a549555f..000000000 --- a/platform/Windows/include/luajit-2.0/lualib.h +++ /dev/null @@ -1,43 +0,0 @@ -/* -** Standard library header. -** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h -*/ - -#ifndef _LUALIB_H -#define _LUALIB_H - -#include "lua.h" - -#define LUA_FILEHANDLE "FILE*" - -#define LUA_COLIBNAME "coroutine" -#define LUA_MATHLIBNAME "math" -#define LUA_STRLIBNAME "string" -#define LUA_TABLIBNAME "table" -#define LUA_IOLIBNAME "io" -#define LUA_OSLIBNAME "os" -#define LUA_LOADLIBNAME "package" -#define LUA_DBLIBNAME "debug" -#define LUA_BITLIBNAME "bit" -#define LUA_JITLIBNAME "jit" -#define LUA_FFILIBNAME "ffi" - -LUALIB_API int luaopen_base(lua_State *L); -LUALIB_API int luaopen_math(lua_State *L); -LUALIB_API int luaopen_string(lua_State *L); -LUALIB_API int luaopen_table(lua_State *L); -LUALIB_API int luaopen_io(lua_State *L); -LUALIB_API int luaopen_os(lua_State *L); -LUALIB_API int luaopen_package(lua_State *L); -LUALIB_API int luaopen_debug(lua_State *L); -LUALIB_API int luaopen_bit(lua_State *L); -LUALIB_API int luaopen_jit(lua_State *L); -LUALIB_API int luaopen_ffi(lua_State *L); - -LUALIB_API void luaL_openlibs(lua_State *L); - -#ifndef lua_assert -#define lua_assert(x) ((void)0) -#endif - -#endif diff --git a/platform/Windows/lib/32/libFLAC.lib b/platform/Windows/lib/32/libFLAC.lib deleted file mode 100644 index 21715d49d..000000000 Binary files a/platform/Windows/lib/32/libFLAC.lib and /dev/null differ diff --git a/platform/Windows/lib/32/libdsound.lib b/platform/Windows/lib/32/libdsound.lib deleted file mode 100644 index 225e07ee1..000000000 Binary files a/platform/Windows/lib/32/libdsound.lib and /dev/null differ diff --git a/platform/Windows/lib/32/libdxguid.lib b/platform/Windows/lib/32/libdxguid.lib deleted file mode 100644 index 876a7237f..000000000 Binary files a/platform/Windows/lib/32/libdxguid.lib and /dev/null differ diff --git a/platform/Windows/lib/32/libdxguid_sdl.lib b/platform/Windows/lib/32/libdxguid_sdl.lib deleted file mode 100644 index 0040259f6..000000000 Binary files a/platform/Windows/lib/32/libdxguid_sdl.lib and /dev/null differ diff --git a/platform/Windows/lib/32/liblpeg.lib b/platform/Windows/lib/32/liblpeg.lib deleted file mode 100644 index a79c19df5..000000000 Binary files a/platform/Windows/lib/32/liblpeg.lib and /dev/null differ diff --git a/platform/Windows/lib/32/libluajit.lib b/platform/Windows/lib/32/libluajit.lib deleted file mode 100644 index 49d44fc62..000000000 Binary files a/platform/Windows/lib/32/libluajit.lib and /dev/null differ diff --git a/platform/Windows/lib/32/libxmp-lite.lib b/platform/Windows/lib/32/libxmp-lite.lib deleted file mode 100644 index 2c838893d..000000000 Binary files a/platform/Windows/lib/32/libxmp-lite.lib and /dev/null differ diff --git a/platform/Windows/lib/64/libFLAC.lib b/platform/Windows/lib/64/libFLAC.lib deleted file mode 100644 index abf3b70c0..000000000 Binary files a/platform/Windows/lib/64/libFLAC.lib and /dev/null differ diff --git a/platform/Windows/lib/64/libdsound.lib b/platform/Windows/lib/64/libdsound.lib deleted file mode 100644 index 63332b3b9..000000000 Binary files a/platform/Windows/lib/64/libdsound.lib and /dev/null differ diff --git a/platform/Windows/lib/64/libdxguid.lib b/platform/Windows/lib/64/libdxguid.lib deleted file mode 100644 index d2b4464bc..000000000 Binary files a/platform/Windows/lib/64/libdxguid.lib and /dev/null differ diff --git a/platform/Windows/lib/64/libdxguid_sdl.lib b/platform/Windows/lib/64/libdxguid_sdl.lib deleted file mode 100644 index d45049d85..000000000 Binary files a/platform/Windows/lib/64/libdxguid_sdl.lib and /dev/null differ diff --git a/platform/Windows/lib/64/liblpeg.lib b/platform/Windows/lib/64/liblpeg.lib deleted file mode 100644 index dee172994..000000000 Binary files a/platform/Windows/lib/64/liblpeg.lib and /dev/null differ diff --git a/platform/Windows/lib/64/libluajit.lib b/platform/Windows/lib/64/libluajit.lib deleted file mode 100644 index 960c01ed4..000000000 Binary files a/platform/Windows/lib/64/libluajit.lib and /dev/null differ diff --git a/platform/Windows/lib/64/libxmp-lite.lib b/platform/Windows/lib/64/libxmp-lite.lib deleted file mode 100644 index 6eee1bd90..000000000 Binary files a/platform/Windows/lib/64/libxmp-lite.lib and /dev/null differ diff --git a/platform/Windows/libsmackerdec.vcxproj b/platform/Windows/libsmackerdec.vcxproj deleted file mode 100644 index 22ebde692..000000000 --- a/platform/Windows/libsmackerdec.vcxproj +++ /dev/null @@ -1,207 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - - - - - - - - - 15.0 - {598F0D83-2C1B-4F7C-B04D-7FDD471C8C45} - libsmackerdec - 10.0 - - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - false - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - \ No newline at end of file diff --git a/platform/Windows/libsmackerdec.vcxproj.filters b/platform/Windows/libsmackerdec.vcxproj.filters deleted file mode 100644 index 13241b553..000000000 --- a/platform/Windows/libsmackerdec.vcxproj.filters +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/platform/Windows/libxmp-lite.vcxproj b/platform/Windows/libxmp-lite.vcxproj deleted file mode 100644 index 68f2bb018..000000000 --- a/platform/Windows/libxmp-lite.vcxproj +++ /dev/null @@ -1,245 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 15.0 - Win32Proj - libxmp-lite - {32D4CF70-A3D6-4CEA-81D7-64C743980276} - 10.0 - - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - - - - Level3 - Disabled - HAVE_ROUND;LIBXMP_CORE_PLAYER;LIBXMP_CORE_DISABLE_IT;BUILDING_STATIC;_DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - false - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - Disabled - HAVE_ROUND;LIBXMP_CORE_PLAYER;LIBXMP_CORE_DISABLE_IT;BUILDING_STATIC;_DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - MaxSpeed - true - true - HAVE_ROUND;LIBXMP_CORE_PLAYER;LIBXMP_CORE_DISABLE_IT;BUILDING_STATIC;NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - - Level3 - MaxSpeed - true - true - HAVE_ROUND;LIBXMP_CORE_PLAYER;LIBXMP_CORE_DISABLE_IT;BUILDING_STATIC;NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - \ No newline at end of file diff --git a/platform/Windows/libxmp-lite.vcxproj.filters b/platform/Windows/libxmp-lite.vcxproj.filters deleted file mode 100644 index 24ba72930..000000000 --- a/platform/Windows/libxmp-lite.vcxproj.filters +++ /dev/null @@ -1,154 +0,0 @@ - - - - - {a0c30405-40d5-46d9-b5af-66de9540afc0} - - - {588e1398-59f8-4832-adcc-d0e131606a7c} - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - \ No newline at end of file diff --git a/platform/Windows/mact.vcxproj b/platform/Windows/mact.vcxproj deleted file mode 100644 index a663cfa19..000000000 --- a/platform/Windows/mact.vcxproj +++ /dev/null @@ -1,211 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - - - - - - - - - - - - 15.0 - {BCDE1852-E2C6-4ABB-84FB-5CD431764A9A} - Win32Proj - mact - 10.0 - - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - StaticLibrary - true - v142 - Unicode - - - StaticLibrary - false - v142 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - true - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - false - $(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - false - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - Windows - true - - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - Windows - true - true - true - - - - - - \ No newline at end of file diff --git a/platform/Windows/mact.vcxproj.filters b/platform/Windows/mact.vcxproj.filters deleted file mode 100644 index 737aedde9..000000000 --- a/platform/Windows/mact.vcxproj.filters +++ /dev/null @@ -1,56 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;ipp;xsd - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - \ No newline at end of file diff --git a/platform/Windows/mapster32.vcxproj b/platform/Windows/mapster32.vcxproj deleted file mode 100644 index f36e64120..000000000 --- a/platform/Windows/mapster32.vcxproj +++ /dev/null @@ -1,255 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - 15.0 - {EC8A030F-08E9-45F6-896B-95BEC9E9FC61} - Win32Proj - mapster32 - mapster32 - 10.0 - - - - Application - true - v142 - MultiByte - - - Application - false - v142 - true - MultiByte - - - Application - true - v142 - MultiByte - - - Application - false - v142 - true - MultiByte - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - $(SolutionDir)..\..\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - false - false - - - false - $(SolutionDir)..\..\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - false - - - false - false - $(SolutionDir)..\..\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - false - - - false - $(SolutionDir)..\..\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - false - - - - Level3 - MaxSpeed - true - true - NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - true - Speed - true - stdcpp14 - SyncCThrow - None - - - true - true - true - Windows - UseLinkTimeCodeGeneration - - - - - Level3 - Disabled - _DEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - true - Windows - false - - - - - Level3 - Disabled - _DEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - true - MultiThreadedDebugDLL - false - true - stdcpp14 - SyncCThrow - ProgramDatabase - false - - - true - Windows - - - - - Level3 - MaxSpeed - true - true - NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - NOASM - true - Speed - true - stdcpp14 - SyncCThrow - None - - - true - true - true - Windows - false - UseLinkTimeCodeGeneration - - - - - - - true - true - true - true - - - - - - - - - - - - - - - - - - - - - - - {0029c61b-b63d-4e61-99f2-f4e49aabfc47} - - - {dbecb851-5624-4fa8-9a9d-7169d0f12ff1} - - - {6ac1d997-8dae-4343-8dd8-da2a1ca63212} - - - {32d4cf70-a3d6-4cea-81d7-64c743980276} - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/platform/Windows/mapster32.vcxproj.filters b/platform/Windows/mapster32.vcxproj.filters deleted file mode 100644 index 0538cf414..000000000 --- a/platform/Windows/mapster32.vcxproj.filters +++ /dev/null @@ -1,94 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - {ee09cb31-7362-4130-8d18-bbd79d8b6beb} - - - {0a73384a-1c85-408e-b551-41eee33e3db6} - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files\duke3d_editor - - - Source Files\duke3d_editor - - - Source Files\duke3d_editor - - - Source Files\duke3d_editor - - - Source Files\duke3d_editor - - - Source Files\duke3d_editor - - - Source Files\duke3d_editor - - - Source Files\duke3d_editor - - - Source Files\duke3d_editor - - - Source Files - - - Resource Files - - - - - Header Files - - - Header Files\editor - - - Header Files\editor - - - Header Files\editor - - - Header Files\editor - - - - - Resource Files - - - - - Resource Files - - - \ No newline at end of file diff --git a/platform/Windows/msvc.mak b/platform/Windows/msvc.mak deleted file mode 100644 index 2a86b8925..000000000 --- a/platform/Windows/msvc.mak +++ /dev/null @@ -1,415 +0,0 @@ -# EDuke32 Makefile for Microsoft NMake - -root=..\..\ - -obj=$(root)\obj -source=$(root)\source - -ENGINE=build -ENGINE_ROOT=$(source)\$(ENGINE) -ENGINE_SRC=$(ENGINE_ROOT)\src -ENGINE_INC=$(ENGINE_ROOT)\include -ENGINE_OBJ=$(obj)\$(ENGINE) - -DUKE3D=duke3d -DUKE3D_ROOT=$(source)\$(DUKE3D) -DUKE3D_SRC=$(DUKE3D_ROOT)\src -DUKE3D_OBJ=$(obj)\$(DUKE3D) -DUKE3D_RSRC=$(DUKE3D_ROOT)\rsrc - -MACT=mact -MACT_ROOT=$(source)\$(MACT) -MACT_SRC=$(MACT_ROOT)\src -MACT_INC=$(MACT_ROOT)\include -MACT_OBJ=$(obj)\$(MACT) - -AUDIOLIB=audiolib -AUDIOLIB_ROOT=$(source)\$(AUDIOLIB) -AUDIOLIB_OBJ=$(obj)\$(AUDIOLIB) -AUDIOLIB_INC=$(AUDIOLIB_ROOT)\include -AUDIOLIB_SRC=$(AUDIOLIB_ROOT)\src - -ENET=enet -ENET_ROOT=$(source)\$(ENET) -ENET_OBJ=$(obj)\$(ENET) -ENET_INC=$(ENET_ROOT)\include -ENET_SRC=$(ENET_ROOT)\src - -GLAD=glad -GLAD_ROOT=$(source)\$(GLAD) -GLAD_OBJ=$(obj)\$(GLAD) -GLAD_INC=$(GLAD_ROOT)\include -GLAD_SRC=$(GLAD_ROOT)\src - -LIBXMPLITE=libxmp-lite -LIBXMPLITE_ROOT=$(source)\$(LIBXMPLITE) -LIBXMPLITE_OBJ=$(obj)\$(LIBXMPLITE) -LIBXMPLITE_INC=$(LIBXMPLITE_ROOT)\include -LIBXMPLITE_SRC=$(LIBXMPLITE_ROOT)\src - -o=obj -res=res -asm=masm - - - - -CPLUSPLUS=1 - -!ifndef WINBITS -WINBITS=32 -!endif - -WINLIB=\$(WINBITS) - -!if ($(WINBITS)==32) -WINMACHINE=/MACHINE:X86 -!elseif ($(WINBITS)==64) -WINMACHINE=/MACHINE:X64 -!endif - -# the WDK allows us to link against msvcrt.dll instead of msvcrxxx.dll -# WDKROOT="H:\WinDDK\7600.16385.1" -PLATFORM=$(root)\platform\Windows - -!ifndef RENDERTYPE -RENDERTYPE=WIN -!endif -!ifndef MIXERTYPE -MIXERTYPE=WIN -!endif - -!ifdef DEBUG -# debugging options -flags_cl=/Od /Zi # /analyze -flags_link=/DEBUG -!else -# release options -flags_cl=/O2 /GL /MP # /I$(WDKROOT)\inc\crt /I$(WDKROOT)\inc\api -!if ($(WINBITS)!=64) -flags_cl=$(flags_cl) /arch:SSE -!endif -flags_link=/RELEASE /LTCG # /LIBPATH:$(WDKROOT)\lib\wxp\i386 /LIBPATH:$(WDKROOT)\lib\Crt\i386 -!endif - -ENGINEOPTS=/DUSE_OPENGL /DPOLYMER /DSTARTUP_WINDOW /DUSE_LIBVPX /DHAVE_VORBIS /DHAVE_XMP - -!ifdef CPLUSPLUS -ENGINEOPTS=$(ENGINEOPTS) /TP -!endif - -!if ($(WINBITS)==64) -NOASM=1 -!endif - -CC=cl -AS=ml -LINK=link /nologo /opt:ref -MT=mt -CFLAGS= /MT /J /nologo /std:c++latest $(flags_cl) \ - /I$(DUKE3D_SRC) /I$(ENGINE_INC)\msvc /I$(ENGINE_INC) /I$(MACT_INC) /I$(AUDIOLIB_INC) /I$(ENET_INC) /I$(GLAD_INC) /I$(LIBXMPLITE_INC) \ - /W2 $(ENGINEOPTS) \ - /I$(PLATFORM)\include /DRENDERTYPE$(RENDERTYPE)=1 /DMIXERTYPE$(MIXERTYPE)=1 /DSDL_USEFOLDER /DSDL_TARGET=2 - -ENET_CFLAGS=/I$(ENET_INC) /I$(ENET_SRC) -LIBXMPLITE_CFLAGS=/I$(LIBXMPLITE_INC) /I$(LIBXMPLITE_INC)/libxmp-lite /I$(LIBXMPLITE_SRC) -DHAVE_ROUND -DLIBXMP_CORE_PLAYER -DBUILDING_STATIC -AUDIOLIB_CFLAGS=/I$(AUDIOLIB_INC) /I$(AUDIOLIB_SRC) - -LIBS=user32.lib gdi32.lib shell32.lib winmm.lib ws2_32.lib comctl32.lib shlwapi.lib oleaut32.lib ole32.lib imm32.lib SetupAPI.Lib version.lib \ - libogg.a libvorbis.a libvorbisfile.a libxmp-lite.a libvpx.a dxguid.lib dsound.lib advapi32.lib libcompat-to-msvc.a - -!if ("$(RENDERTYPE)"=="SDL") -LIBS=libSDL2main.a libSDL2.a $(LIBS) -!endif - -LIBS=/NODEFAULTLIB:glu32.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib /NODEFAULTLIB:libcmt.lib \ - /NODEFAULTLIB:libcmtd.lib $(LIBS) - -# NOASM When defined, uses C instead of assembly code -!ifdef NOASM -CFLAGS=$(CFLAGS) /DNOASM -!endif - -ASFLAGS=/nologo /coff /c -EXESUFFIX=.exe -!ifdef DEBUG -CFLAGS=$(CFLAGS) /DDEBUGGINGAIDS /D "_CRT_SECURE_NO_DEPRECATE" -LIBS=$(LIBS) msvcrtd.lib -!else -# comment msvcrt_winxp.obj if not using the WDK -LIBS=$(LIBS) msvcrt.lib # msvcrt_winxp.obj -!endif - -ENGINE_OBJS= \ -!ifdef NOASM - $(ENGINE_OBJ)\a-c.$o \ -!else - $(ENGINE_OBJ)\a.$o \ -!endif - $(ENGINE_OBJ)\animvpx.$o \ - $(ENGINE_OBJ)\baselayer.$o \ - $(ENGINE_OBJ)\cache1d.$o \ - $(ENGINE_OBJ)\klzw.$o \ - $(ENGINE_OBJ)\common.$o \ - $(ENGINE_OBJ)\compat.$o \ - $(ENGINE_OBJ)\crc32.$o \ - $(ENGINE_OBJ)\defs.$o \ - $(ENGINE_OBJ)\colmatch.$o \ - $(ENGINE_OBJ)\engine.$o \ - $(ENGINE_OBJ)\clip.$o \ - $(ENGINE_OBJ)\2d.$o \ - $(ENGINE_OBJ)\tiles.$o \ - $(ENGINE_OBJ)\hash.$o \ - $(ENGINE_OBJ)\palette.$o \ - $(ENGINE_OBJ)\glbuild.$o \ - $(ENGINE_OBJ)\glsurface.$o \ - $(ENGINE_OBJ)\texcache.$o \ - $(ENGINE_OBJ)\kplib.$o \ - $(ENGINE_OBJ)\hightile.$o \ - $(ENGINE_OBJ)\polymost.$o \ - $(ENGINE_OBJ)\polymer.$o \ - $(ENGINE_OBJ)\mdsprite.$o \ - $(ENGINE_OBJ)\voxmodel.$o \ - $(ENGINE_OBJ)\tilepacker.$o \ - $(ENGINE_OBJ)\dxtfilter.$o \ - $(ENGINE_OBJ)\textfont.$o \ - $(ENGINE_OBJ)\smalltextfont.$o \ - $(ENGINE_OBJ)\lz4.$o \ - $(ENGINE_OBJ)\md4.$o \ - $(ENGINE_OBJ)\mmulti_null.$o \ - $(ENGINE_OBJ)\osd.$o \ - $(ENGINE_OBJ)\pragmas.$o \ - $(ENGINE_OBJ)\rev.$o \ - $(ENGINE_OBJ)\scriptfile.$o \ - $(ENGINE_OBJ)\mutex.$o \ - $(ENGINE_OBJ)\winbits.$o \ - $(ENGINE_OBJ)\xxhash.$o \ - $(ENGINE_OBJ)\screenshot.$o \ - $(ENGINE_OBJ)\softsurface.$o \ - $(ENGINE_OBJ)\mhk.$o \ - $(ENGINE_OBJ)\pngwrite.$o \ - $(ENGINE_OBJ)\miniz.$o \ - $(ENGINE_OBJ)\miniz_tinfl.$o \ - $(ENGINE_OBJ)\miniz_tdef.$o \ - $(ENGINE_OBJ)\fix16.$o \ - $(ENGINE_OBJ)\fix16_str.$o \ - $(ENGINE_OBJ)\sjson.$o \ - - -ENGINE_EDITOR_OBJS=$(ENGINE_OBJ)\build.$o \ - $(ENGINE_OBJ)\startwin.editor.$o \ - $(ENGINE_OBJ)\config.$o - -ENET_OBJS=$(ENET_OBJ)\callbacks.$o \ - $(ENET_OBJ)\host.$o \ - $(ENET_OBJ)\list.$o \ - $(ENET_OBJ)\packet.$o \ - $(ENET_OBJ)\peer.$o \ - $(ENET_OBJ)\protocol.$o \ - $(ENET_OBJ)\win32.$o \ - $(ENET_OBJ)\compress.$o - -GLAD_OBJS=$(GLAD_OBJ)\glad.$o \ -!if ("$(RENDERTYPE)"=="WIN") - $(GLAD_OBJ)\glad_wgl.$o -!endif - -LIBXMPLITE_OBJS=$(LIBXMPLITE_OBJ)\control.$o \ - $(LIBXMPLITE_OBJ)\dataio.$o \ - $(LIBXMPLITE_OBJ)\effects.$o \ - $(LIBXMPLITE_OBJ)\filter.$o \ - $(LIBXMPLITE_OBJ)\format.$o \ - $(LIBXMPLITE_OBJ)\hio.$o \ - $(LIBXMPLITE_OBJ)\lfo.$o \ - $(LIBXMPLITE_OBJ)\load.$o \ - $(LIBXMPLITE_OBJ)\load_helpers.$o \ - $(LIBXMPLITE_OBJ)\memio.$o \ - $(LIBXMPLITE_OBJ)\mixer.$o \ - $(LIBXMPLITE_OBJ)\mix_all.$o \ - $(LIBXMPLITE_OBJ)\period.$o \ - $(LIBXMPLITE_OBJ)\player.$o \ - $(LIBXMPLITE_OBJ)\read_event.$o \ - $(LIBXMPLITE_OBJ)\scan.$o \ - $(LIBXMPLITE_OBJ)\smix.$o \ - $(LIBXMPLITE_OBJ)\virtual.$o \ - $(LIBXMPLITE_OBJ)\common.$o \ - $(LIBXMPLITE_OBJ)\itsex.$o \ - $(LIBXMPLITE_OBJ)\it_load.$o \ - $(LIBXMPLITE_OBJ)\mod_load.$o \ - $(LIBXMPLITE_OBJ)\mtm_load.$o \ - $(LIBXMPLITE_OBJ)\s3m_load.$o \ - $(LIBXMPLITE_OBJ)\sample.$o \ - $(LIBXMPLITE_OBJ)\xm_load.$o \ - -AUDIOLIB_OBJS=$(AUDIOLIB_OBJ)\drivers.$o \ - $(AUDIOLIB_OBJ)\fx_man.$o \ - $(AUDIOLIB_OBJ)\multivoc.$o \ - $(AUDIOLIB_OBJ)\mix.$o \ - $(AUDIOLIB_OBJ)\mixst.$o \ - $(AUDIOLIB_OBJ)\pitch.$o \ - $(AUDIOLIB_OBJ)\formats.$o \ - $(AUDIOLIB_OBJ)\vorbis.$o \ - $(AUDIOLIB_OBJ)\flac.$o \ - $(AUDIOLIB_OBJ)\xa.$o \ - $(AUDIOLIB_OBJ)\xmp.$o \ - $(AUDIOLIB_OBJ)\driver_nosound.$o - -MACT_OBJS= \ - $(MACT_OBJ)\control.$o \ - $(MACT_OBJ)\keyboard.$o \ - $(MACT_OBJ)\joystick.$o \ - $(MACT_OBJ)\scriplib.$o \ - $(MACT_OBJ)\animlib.$o - -DUKE3D_OBJS=$(DUKE3D_OBJ)\game.$o \ - $(DUKE3D_OBJ)\actors.$o \ - $(DUKE3D_OBJ)\anim.$o \ - $(DUKE3D_OBJ)\cheats.$o \ - $(DUKE3D_OBJ)\sbar.$o \ - $(DUKE3D_OBJ)\screentext.$o \ - $(DUKE3D_OBJ)\screens.$o \ - $(DUKE3D_OBJ)\cmdline.$o \ - $(DUKE3D_OBJ)\common.$o \ - $(DUKE3D_OBJ)\demo.$o \ - $(DUKE3D_OBJ)\gamedef.$o \ - $(DUKE3D_OBJ)\gameexec.$o \ - $(DUKE3D_OBJ)\gamevars.$o \ - $(DUKE3D_OBJ)\global.$o \ - $(DUKE3D_OBJ)\input.$o \ - $(DUKE3D_OBJ)\menus.$o \ - $(DUKE3D_OBJ)\namesdyn.$o \ - $(DUKE3D_OBJ)\network.$o \ - $(DUKE3D_OBJ)\player.$o \ - $(DUKE3D_OBJ)\premap.$o \ - $(DUKE3D_OBJ)\savegame.$o \ - $(DUKE3D_OBJ)\sector.$o \ - $(DUKE3D_OBJ)\rts.$o \ - $(DUKE3D_OBJ)\config.$o \ - $(DUKE3D_OBJ)\osdfuncs.$o \ - $(DUKE3D_OBJ)\osdcmds.$o \ - $(DUKE3D_OBJ)\grpscan.$o \ - $(DUKE3D_OBJ)\winbits.$o \ - $(DUKE3D_OBJ)\gameres.$(res) \ - $(DUKE3D_OBJ)\startwin.game.$o \ - $(DUKE3D_OBJ)\sounds.$o \ - $(DUKE3D_OBJ)\soundsdyn.$o \ -!ifdef DEBUG - $(DUKE3D_OBJ)\mdump.$o -!endif - -DUKE3D_EDITOR_OBJS=$(DUKE3D_OBJ)\astub.$o \ - $(DUKE3D_OBJ)\common.$o \ - $(DUKE3D_OBJ)\grpscan.$o \ - $(DUKE3D_OBJ)\m32common.$o \ - $(DUKE3D_OBJ)\m32def.$o \ - $(DUKE3D_OBJ)\m32vars.$o \ - $(DUKE3D_OBJ)\m32exec.$o \ - $(DUKE3D_OBJ)\sounds_mapster32.$o \ - $(DUKE3D_OBJ)\buildres.$(res) \ -!ifdef DEBUG - $(DUKE3D_OBJ)\mdump.$o -!endif - -!if ("$(RENDERTYPE)"=="WIN") -ENGINE_OBJS=$(ENGINE_OBJS) $(ENGINE_OBJ)\winlayer.$o $(ENGINE_OBJ)\rawinput.$o -!endif -!if ("$(RENDERTYPE)"=="SDL") -ENGINE_OBJS=$(ENGINE_OBJS) $(ENGINE_OBJ)\sdlayer.$o -DUKE3D_OBJS=$(DUKE3D_OBJS) $(DUKE3D_OBJ)\game_icon.$o -DUKE3D_EDITOR_OBJS=$(DUKE3D_EDITOR_OBJS) $(DUKE3D_OBJ)\build_icon.$o -!endif - -!if ("$(MIXERTYPE)"=="WIN") -DUKE3D_OBJS=$(DUKE3D_OBJS) $(DUKE3D_OBJ)\midi.$o $(DUKE3D_OBJ)\music.$o $(DUKE3D_OBJ)\mpu401.$o -AUDIOLIB_OBJS=$(AUDIOLIB_OBJS) $(AUDIOLIB_OBJ)\driver_directsound.$o -!endif -!if ("$(MIXERTYPE)"=="SDL") -DUKE3D_OBJS=$(DUKE3D_OBJS) $(DUKE3D_OBJ)\sdlmusic.$o -AUDIOLIB_OBJS=$(AUDIOLIB_OBJS) $(AUDIOLIB_OBJ)/driver_sdl.$o -!endif - -DUKE3D_OBJS=$(DUKE3D_OBJS) $(MUSICOBJ) -DUKE3D_EDITOR_OBJS=$(DUKE3D_EDITOR_OBJS) $(MUSICOBJ) - - -CHECKDIR_ENGINE=@if not exist "$(ENGINE_OBJ)" mkdir "$(ENGINE_OBJ)" -CHECKDIR_DUKE3D=@if not exist "$(DUKE3D_OBJ)" mkdir "$(DUKE3D_OBJ)" -CHECKDIR_ENET=@if not exist "$(ENET_OBJ)" mkdir "$(ENET_OBJ)" -CHECKDIR_GLAD=@if not exist "$(GLAD_OBJ)" mkdir "$(GLAD_OBJ)" -CHECKDIR_MACT=@if not exist "$(MACT_OBJ)" mkdir "$(MACT_OBJ)" -CHECKDIR_AUDIOLIB=@if not exist "$(AUDIOLIB_OBJ)" mkdir "$(AUDIOLIB_OBJ)" -CHECKDIR_LIBXMPLITE=@if not exist "$(LIBXMPLITE_OBJ)" mkdir "$(LIBXMPLITE_OBJ)" - -EDUKE32_TARGET=$(root)\eduke32$(EXESUFFIX) -MAPSTER32_TARGET=$(root)\mapster32$(EXESUFFIX) - -# RULES -.SUFFIXES: .masm - -{$(ENGINE_SRC)}.masm{$(ENGINE_OBJ)}.$o: - $(CHECKDIR_ENGINE) - $(AS) /c $(ASFLAGS) /Fo$@ $< - -{$(ENGINE_SRC)}.cpp{$(ENGINE_OBJ)}.$o: - $(CHECKDIR_ENGINE) - $(CC) /c $(CFLAGS) /Fo$@ $< - -{$(ENGINE_SRC)}.c{$(ENGINE_OBJ)}.$o: - $(CHECKDIR_ENGINE) - $(CC) /c $(CFLAGS) /Fo$@ $< - -{$(ENET_SRC)}.c{$(ENET_OBJ)}.$o: - $(CHECKDIR_ENET) - $(CC) /c $(CFLAGS) $(ENET_CFLAGS) /Fo$@ $< - -{$(GLAD_SRC)}.c{$(GLAD_OBJ)}.$o: - $(CHECKDIR_GLAD) - $(CC) /c $(CFLAGS) /Fo$@ $< - -{$(LIBXMPLITE_SRC)}.c{$(LIBXMPLITE_OBJ)}.$o: - $(CHECKDIR_LIBXMPLITE) - $(CC) /c $(CFLAGS) $(LIBXMPLITE_CFLAGS) /Fo$@ $< - -{$(AUDIOLIB_SRC)}.cpp{$(AUDIOLIB_OBJ)}.$o: - $(CHECKDIR_AUDIOLIB) - $(CC) /c $(CFLAGS) $(AUDIOLIB_CFLAGS) /Fo$@ $< - -{$(MACT_SRC)\}.cpp{$(MACT_OBJ)\}.$o: - $(CHECKDIR_MACT) - $(CC) /c $(CFLAGS) /Fo$@ $< - -{$(DUKE3D_RSRC)\}.c{$(DUKE3D_OBJ)\}.$o: - $(CHECKDIR_DUKE3D) - $(CC) /c $(CFLAGS) /Fo$@ $< - -{$(DUKE3D_SRC)\}.cpp{$(DUKE3D_OBJ)\}.$o: - $(CHECKDIR_DUKE3D) - $(CC) /c $(CFLAGS) /Fo$@ $< - -{$(DUKE3D_RSRC)\}.rc{$(DUKE3D_OBJ)\}.$(res): - $(CHECKDIR_DUKE3D) - $(RC) /i$(ENGINE_INC)\ /i$(DUKE3D_SRC)\ /i$(DUKE3D_RSRC)\ /DPOLYMER /fo$@ /r $< - - -# TARGETS - - -all: $(EDUKE32_TARGET) $(MAPSTER32_TARGET) - -$(EDUKE32_TARGET): $(DUKE3D_OBJS) $(ENGINE_OBJS) $(AUDIOLIB_OBJS) $(MACT_OBJS) $(ENET_OBJS) $(GLAD_OBJS) $(LIBXMPLITE_OBJS) - $(LINK) /OUT:$@ /SUBSYSTEM:WINDOWS $(WINMACHINE) /LIBPATH:$(PLATFORM)\lib$(WINLIB) $(flags_link) /MAP $** $(LIBS) - $(MT) -manifest $(DUKE3D_RSRC)\manifest.game.xml -hashupdate -outputresource:$@ -out:$@.manifest - -$(MAPSTER32_TARGET): $(DUKE3D_EDITOR_OBJS) $(ENGINE_OBJS) $(ENGINE_EDITOR_OBJS) $(AUDIOLIB_OBJS) $(GLAD_OBJS) - $(LINK) /OUT:$@ /SUBSYSTEM:WINDOWS $(WINMACHINE) /LIBPATH:$(PLATFORM)\lib$(WINLIB) $(flags_link) /MAP $** $(LIBS) - $(MT) -manifest $(DUKE3D_RSRC)\manifest.build.xml -hashupdate -outputresource:$@ -out:$@.manifest - -!include $(DUKE3D_ROOT)\Dependencies.mak -!include $(ENGINE_ROOT)\Dependencies.mak - -# PHONIES - -clean: - -del /Q $(EDUKE32_TARGET) $(MAPSTER32_TARGET) $(DUKE3D_OBJS) $(DUKE3D_EDITOR_OBJS) $(ENGINE_OBJS) $(ENGINE_EDITOR_OBJS) *.pdb $(root)\*.pdb $(root)\*.map $(root)\*.manifest - -del /Q $(ENET_OBJS) $(LIBXMPLITE_OBJS) $(MACT_OBJS) $(AUDIOLIB_OBJS) $(GLAD_OBJS) -veryclean: clean diff --git a/platform/Windows/nblood.vcxproj b/platform/Windows/nblood.vcxproj deleted file mode 100644 index d920fe589..000000000 --- a/platform/Windows/nblood.vcxproj +++ /dev/null @@ -1,358 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {5407CB5A-4B15-41FA-B79B-8B386A14D275} - nblood - MakeFileProj - v142 - 10.0 - nblood - - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - Application - $(SolutionDir)..\..\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - $(NMakeIncludeSearchPath);..\..\source\build\include;..\..\source\mact\include;..\..\source\audiolib\include;..\..\source\enet\include;..\..\platform\windows\include - nmake /f msvc.mak DEBUG=1 WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all DEBUG=1 WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean DEBUG=1 WINBITS=32 RENDERTYPE=SDL - USE_OPENGL;POLYMER;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean WINBITS=32 RENDERTYPE=SDL - USE_OPENGL;POLYMER;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak DEBUG=1 WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all DEBUG=1 WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean DEBUG=1 WINBITS=64 RENDERTYPE=SDL - USE_OPENGL;POLYMER;NOASM;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean WINBITS=64 RENDERTYPE=SDL - USE_OPENGL;POLYMER;NOASM;SDL_USEFOLDER;SDL_TARGET=2 - - - false - false - false - - - false - false - false - - - false - false - - - false - false - false - - - - false - - - true - MultiThreadedDebugDLL - EnableFastChecks - Level3 - ProgramDatabase - true - true - true - stdcpp14 - Disabled - SyncCThrow - false - _CRT_SECURE_NO_WARNINGS;WIN32;RENDERTYPESDL=1;MIXERTYPEWIN=1;SDL_USEFOLDER;SDL_TARGET=2;USE_OPENGL=1;POLYMER=1;STARTUP_WINDOW;USE_LIBVPX;HAVE_VORBIS;HAVE_XMP;%(PreprocessorDefinitions) - - - - - false - UseLinkTimeCodeGeneration - - - true - true - Speed - true - Level3 - true - true - stdcpp14 - SyncCThrow - None - - - - - true - MultiThreadedDebugDLL - EnableFastChecks - false - Level3 - ProgramDatabase - true - true - true - stdcpp14 - Disabled - SyncCThrow - false - - - - - UseLinkTimeCodeGeneration - - - true - true - Speed - true - Level3 - true - true - stdcpp14 - SyncCThrow - None - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {0029c61b-b63d-4e61-99f2-f4e49aabfc47} - - - {dbecb851-5624-4fa8-9a9d-7169d0f12ff1} - - - {a68cc5e4-567a-44c8-94fe-c1de09aeeb40} - - - {6ac1d997-8dae-4343-8dd8-da2a1ca63212} - - - {598f0d83-2c1b-4f7c-b04d-7fdd471c8c45} - - - {32d4cf70-a3d6-4cea-81d7-64c743980276} - - - {bcde1852-e2c6-4abb-84fb-5cd431764a9a} - - - - - %(PreprocessorDefinitions) - %(PreprocessorDefinitions) - %(PreprocessorDefinitions) - %(PreprocessorDefinitions) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/platform/Windows/nblood.vcxproj.filters b/platform/Windows/nblood.vcxproj.filters deleted file mode 100644 index 84354f785..000000000 --- a/platform/Windows/nblood.vcxproj.filters +++ /dev/null @@ -1,464 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - - - - - Resource Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Resource Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - \ No newline at end of file diff --git a/platform/Windows/props/build_common.props b/platform/Windows/props/build_common.props deleted file mode 100644 index 86386e96f..000000000 --- a/platform/Windows/props/build_common.props +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - _CRT_SECURE_NO_WARNINGS;WIN32;RENDERTYPESDL=1;MIXERTYPEWIN=1;SDL_USEFOLDER;SDL_TARGET=2;USE_OPENGL=1;STARTUP_WINDOW;USE_LIBVPX;HAVE_VORBIS;HAVE_XMP;%(PreprocessorDefinitions) - ./include;./include/vpx/;./include/sdl2/;../../source/build/include;../../source/mact/include;../../source/audiolib/include;../../source/enet/include;../../source/glad/include;../../source/libxmp-lite/include;../../source/libxmp-lite/include/libxmp-lite;../../source/libsmackerdec/include;../../source/thirdparty/include - 4996;4244;4018;4267 - /J %(AdditionalOptions) - - - Shlwapi.lib;Comctl32.lib;version.lib;Imm32.lib;libogg.a;libvorbis.a;libvorbisfile.a;libxmp-lite.a;libvpx.a;dxguid.lib;dsound.lib;winmm.lib;ws2_32.lib;libSDL2main.a;libSDL2.a;libcompat-to-msvc.a;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;SetupAPI.Lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - - - - diff --git a/platform/Windows/props/build_x64.props b/platform/Windows/props/build_x64.props deleted file mode 100644 index 10a8e47e1..000000000 --- a/platform/Windows/props/build_x64.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - NOASM=1;%(PreprocessorDefinitions) - - - .\lib\64\ - - - - \ No newline at end of file diff --git a/platform/Windows/props/build_x86.props b/platform/Windows/props/build_x86.props deleted file mode 100644 index 2a0603ece..000000000 --- a/platform/Windows/props/build_x86.props +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - .\lib\32\ - - - - \ No newline at end of file diff --git a/platform/Windows/rednukem.vcxproj b/platform/Windows/rednukem.vcxproj deleted file mode 100644 index 92afc584e..000000000 --- a/platform/Windows/rednukem.vcxproj +++ /dev/null @@ -1,294 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {44C4B4F0-B489-4612-B9C7-A38503B7FB67} - rednukem - MakeFileProj - v142 - 10.0 - - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - Application - $(SolutionDir)..\..\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - $(NMakeIncludeSearchPath);..\..\source\build\include;..\..\source\mact\include;..\..\source\audiolib\include;..\..\source\enet\include;..\..\platform\windows\include - nmake /f msvc.mak DEBUG=1 WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all DEBUG=1 WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean DEBUG=1 WINBITS=32 RENDERTYPE=SDL - USE_OPENGL;POLYMER;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean WINBITS=32 RENDERTYPE=SDL - USE_OPENGL;POLYMER;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak DEBUG=1 WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all DEBUG=1 WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean DEBUG=1 WINBITS=64 RENDERTYPE=SDL - USE_OPENGL;POLYMER;NOASM;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean WINBITS=64 RENDERTYPE=SDL - USE_OPENGL;POLYMER;NOASM;SDL_USEFOLDER;SDL_TARGET=2 - - - false - false - false - - - false - false - false - - - false - false - - - false - false - - - - false - - - true - MultiThreadedDebugDLL - EnableFastChecks - Level3 - ProgramDatabase - true - true - true - stdcpp14 - Disabled - SyncCThrow - false - - - - - false - UseLinkTimeCodeGeneration - - - true - true - Speed - true - Level3 - true - true - stdcpp14 - SyncCThrow - None - - - - - true - MultiThreadedDebugDLL - EnableFastChecks - false - Level3 - ProgramDatabase - true - true - true - stdcpp14 - Disabled - SyncCThrow - false - - - - - UseLinkTimeCodeGeneration - - - true - true - Speed - true - Level3 - true - true - stdcpp14 - SyncCThrow - None - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - - - - - - {0029c61b-b63d-4e61-99f2-f4e49aabfc47} - - - {dbecb851-5624-4fa8-9a9d-7169d0f12ff1} - - - {a68cc5e4-567a-44c8-94fe-c1de09aeeb40} - - - {6ac1d997-8dae-4343-8dd8-da2a1ca63212} - - - {32d4cf70-a3d6-4cea-81d7-64c743980276} - - - {bcde1852-e2c6-4abb-84fb-5cd431764a9a} - - - - - %(PreprocessorDefinitions) - %(PreprocessorDefinitions) - %(PreprocessorDefinitions) - %(PreprocessorDefinitions) - - - - - - - - - \ No newline at end of file diff --git a/platform/Windows/rednukem.vcxproj.filters b/platform/Windows/rednukem.vcxproj.filters deleted file mode 100644 index 74a965e35..000000000 --- a/platform/Windows/rednukem.vcxproj.filters +++ /dev/null @@ -1,256 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Resource Files - - - - - Resource Files - - - - - Resource Files - - - \ No newline at end of file diff --git a/platform/Windows/voidsw.vcxproj b/platform/Windows/voidsw.vcxproj deleted file mode 100644 index ff4210ea5..000000000 --- a/platform/Windows/voidsw.vcxproj +++ /dev/null @@ -1,383 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {B50E2B28-C3E0-453F-B652-657E7D957E51} - voidsw - MakeFileProj - v142 - 10.0 - - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - Application - $(SolutionDir)..\..\ - $(Platform)\Build\$(ProjectName)\$(Configuration)\ - $(NMakeIncludeSearchPath);..\..\source\build\include;..\..\source\mact\include;..\..\source\audiolib\include;..\..\source\enet\include;..\..\platform\windows\include - nmake /f msvc.mak DEBUG=1 WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all DEBUG=1 WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean DEBUG=1 WINBITS=32 RENDERTYPE=SDL - USE_OPENGL;POLYMER;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all WINBITS=32 RENDERTYPE=SDL - nmake /f msvc.mak veryclean WINBITS=32 RENDERTYPE=SDL - USE_OPENGL;POLYMER;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak DEBUG=1 WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all DEBUG=1 WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean DEBUG=1 WINBITS=64 RENDERTYPE=SDL - USE_OPENGL;POLYMER;NOASM;SDL_USEFOLDER;SDL_TARGET=2 - nmake /f msvc.mak WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean all WINBITS=64 RENDERTYPE=SDL - nmake /f msvc.mak veryclean WINBITS=64 RENDERTYPE=SDL - USE_OPENGL;POLYMER;NOASM;SDL_USEFOLDER;SDL_TARGET=2 - - - false - false - false - - - false - false - false - - - false - false - false - - - false - false - false - - - - false - - - true - MultiThreadedDebugDLL - EnableFastChecks - Level1 - ProgramDatabase - true - true - true - stdcpp14 - Disabled - SyncCThrow - false - - - - - false - UseLinkTimeCodeGeneration - - - true - true - Speed - true - Level1 - true - true - stdcpp14 - SyncCThrow - None - - - - - true - MultiThreadedDebugDLL - EnableFastChecks - false - Level1 - ProgramDatabase - true - true - true - stdcpp14 - Disabled - SyncCThrow - false - - - - - UseLinkTimeCodeGeneration - - - true - true - Speed - true - Level1 - true - true - stdcpp14 - SyncCThrow - None - - - - - - - - - - - - true - true - true - true - - - - - true - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - - - true - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - - - - - - - - - - - - - - - - - - {0029c61b-b63d-4e61-99f2-f4e49aabfc47} - - - {dbecb851-5624-4fa8-9a9d-7169d0f12ff1} - - - {a68cc5e4-567a-44c8-94fe-c1de09aeeb40} - - - {6ac1d997-8dae-4343-8dd8-da2a1ca63212} - - - {32d4cf70-a3d6-4cea-81d7-64c743980276} - - - {bcde1852-e2c6-4abb-84fb-5cd431764a9a} - - - - - %(PreprocessorDefinitions);POLYMER=1 - %(PreprocessorDefinitions);POLYMER=1 - %(PreprocessorDefinitions);POLYMER=1 - %(PreprocessorDefinitions);POLYMER=1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/platform/Windows/voidsw.vcxproj.filters b/platform/Windows/voidsw.vcxproj.filters deleted file mode 100644 index fce33b088..000000000 --- a/platform/Windows/voidsw.vcxproj.filters +++ /dev/null @@ -1,478 +0,0 @@ - - - - - Resource Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files\midi - - - Source Files\midi - - - Source Files\midi - - - - - {099c8183-5e54-495e-9a7e-20e481135367} - - - {a00d853b-669e-4fa4-8ee8-94ccc3830730} - - - {25e7723e-9a9a-4c51-89a8-e8c20c20ff12} - - - {e969efff-b36b-455e-a639-b0d7bfbdd2a0} - - - {7c7b4f6f-d5af-422c-885e-429acbd2e725} - - - - - Resource Files - - - - - Resource Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files\midi - - - Header Files\midi - - - Header Files\midi - - - \ No newline at end of file diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt new file mode 100644 index 000000000..b8fa9b522 --- /dev/null +++ b/source/CMakeLists.txt @@ -0,0 +1,1158 @@ +cmake_minimum_required( VERSION 2.8.7 ) + +include(precompiled_headers) + +if( COMMAND cmake_policy ) + cmake_policy( SET CMP0003 NEW ) +endif() + +include( CheckCXXSourceCompiles ) +include( CheckFunctionExists ) +include( CheckCXXCompilerFlag ) +include( CheckIncludeFile ) +include( CheckIncludeFiles ) +include( CheckLibraryExists ) +include( FindPkgConfig ) + +if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + option( NO_STRIP "Do not strip Release or MinSizeRel builds" ) + # At least some versions of Xcode fail if you strip with the linker + # instead of the separate strip utility. + if( APPLE ) + set( NO_STRIP ON ) + endif() +endif() + +option( DYN_FLUIDSYNTH "Dynamically load fluidsynth" ON ) +option( DYN_OPENAL "Dynamically load OpenAL" ON ) +option( DYN_SNDFILE "Dynamically load libsndfile" ON ) +option( DYN_MPG123 "Dynamically load libmpg123" ON ) + +if( APPLE ) + option( OSX_COCOA_BACKEND "Use native Cocoa backend instead of SDL" ON ) +endif() + +if( ${ZDOOM_TARGET_ARCH} MATCHES "x86_64" ) + set( X64 64 ) +endif() + +if( X64 OR ${ZDOOM_TARGET_ARCH} MATCHES "i386" ) + add_definitions( -DARCH_IA32 ) +endif() + +if( NOT ZDOOM_LIBS ) + set( ZDOOM_LIBS "" ) +endif() + +if( WIN32 ) + if( X64 ) + set( WIN_TYPE Win64 ) + set( XBITS x64 ) + else() + set( WIN_TYPE Win32 ) + set( XBITS x86 ) + endif() + + add_definitions( -D_WIN32 ) + + + if( ( MSVC14 AND NOT CMAKE_GENERATOR_TOOLSET STREQUAL "v140_xp" ) OR # For VS 2015. + ( MSVC15 AND NOT CMAKE_GENERATOR_TOOLSET STREQUAL "v141_xp" ) ) # For VS 2017. + # for modern Windows SDKs the DirectX headers should be available by default. + set( DX_dinput8_LIBRARY dinput8 ) + else() + + find_path( XINPUT_INCLUDE_DIR xinput.h + PATHS ENV DXSDK_DIR + PATH_SUFFIXES Include ) + if( NOT XINPUT_INCLUDE_DIR ) + # Modern versions of the Windows SDK include xinput.h. Unfortunately, + # CMake cannot find this file via find_path, so we check for it using + # CHECK_INCLUDE_FILES. windows.h must be included before xinput.h. + CHECK_INCLUDE_FILES( "windows.h;xinput.h" XINPUT_H_FOUND ) + if( NOT XINPUT_H_FOUND ) + message( WARNING "Could not find xinput.h. XInput will be disabled." ) + add_definitions( -DNO_XINPUT ) + endif() + else() + include_directories( ${XINPUT_INCLUDE_DIR} ) + endif() + + find_library( DX_dinput8_LIBRARY dinput8 + PATHS ENV DXSDK_DIR + PATH_SUFFIXES Lib Lib/${XBITS} ) + if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + find_library( DX_dxguid_LIBRARY dxguid + PATHS ENV DXSDK_DIR + PATH_SUFFIXES Lib Lib/${XBITS} ) + endif() + + # Modern versions of the Windows SDK include dinput8. Unfortunately, + # CMake cannot find these libraries via find_library. + if( NOT DX_dinput8_LIBRARY ) + # If we got this far, assume dinput8 is in the system library path. + set( DX_dinput8_LIBRARY dinput8 ) + endif() + + if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + # Modern versions of the Windows SDK do NOT include dxguid. Its contents + # were moved to dinput8. + if( NOT DX_dxguid_LIBRARY ) + message( STATUS "Could not find dxguid. Build may fail on old Windows SDKs.") + endif() + endif() + endif() + + if( X64 ) + link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../platform/Windows/lib/64) + else() + link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../platform/Windows/lib/32) + endif() + + set( ZDOOM_LIBS + opengl32 + wsock32 + winmm + "${DX_dinput8_LIBRARY}" + ole32 + user32 + gdi32 + comctl32 + comdlg32 + ws2_32 + setupapi + oleaut32 + dbghelp + legacy_stdio_definitions + + shlwapi + version + imm32 + dxguid + dsound + winspool + advapi32 + shell32 + SetupAPI + uuid + odbc32 + odbccp32 + + libSDL2main + libSDL2 + + # this local library crap needs to go away. The Ogg/Vorbis libraries are easy to replace with libsndfile but there doesn't seem to be anything to get a working libvpx that doesn't force linking with MinGW dependencies. + libogg + libvorbis + libvorbisfile + libvpx + libcompat-to-msvc + + ) + + + + + if( NOT ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + set( ZDOOM_LIBS ${ZDOOM_LIBS} DelayImp ) + endif() + + if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + if( DX_dxguid_LIBRARY ) + list( APPEND ZDOOM_LIBS "${DX_dxguid_LIBRARY}" ) + endif() + endif() +else() + if( APPLE ) + set( NO_GTK ON ) + set( DYN_GTK OFF ) + + # Prevent inclusion of fp.h and FixMath.h from Carbon framework + # Declarations from these files are not used but cause the following conflicts: + # - redefinition of 'FixedToFloat' and 'FloatToFixed' macros + # - redefinition of 'pi' as different kind of symbol + add_definitions( -D__FP__ -D__FIXMATH__ ) + else() + option( NO_GTK "Disable GTK+ dialogs (Not applicable to Windows)" ) + option( DYN_GTK "Load GTK+ at runtime instead of compile time" ON ) + + # Use GTK+ for the IWAD picker, if available. + if( NOT NO_GTK ) + pkg_check_modules( GTK3 gtk+-3.0 ) + if( GTK3_FOUND ) + if( NOT DYN_GTK ) + set( ZDOOM_LIBS ${ZDOOM_LIBS} ${GTK3_LIBRARIES} ) + endif() + include_directories( ${GTK3_INCLUDE_DIRS} ) + link_directories( ${GTK3_LIBRARY_DIRS} ) + else() + pkg_check_modules( GTK2 gtk+-2.0 ) + if( GTK2_FOUND ) + if( NOT DYN_GTK ) + set( ZDOOM_LIBS ${ZDOOM_LIBS} ${GTK2_LIBRARIES} ) + endif() + include_directories( ${GTK2_INCLUDE_DIRS} ) + link_directories( ${GTK2_LIBRARY_DIRS} ) + else() + set( NO_GTK ON ) + endif() + endif() + endif() + endif() + + if( NO_GTK ) + add_definitions( -DNO_GTK ) + elseif( DYN_GTK ) + add_definitions( -DDYN_GTK=1 ) + else() + add_definitions( -DDYN_GTK=0 ) + endif() + + # Non-Windows version also needs SDL except native OS X backend + if( NOT APPLE OR NOT OSX_COCOA_BACKEND ) + find_package( SDL2 REQUIRED ) + include_directories( "${SDL2_INCLUDE_DIR}" ) + set( ZDOOM_LIBS ${ZDOOM_LIBS} "${SDL2_LIBRARY}" ) + endif() + + find_path( FPU_CONTROL_DIR fpu_control.h ) + if( FPU_CONTROL_DIR ) + include_directories( ${FPU_CONTROL_DIR} ) + add_definitions( -DHAVE_FPU_CONTROL ) + endif() +endif() + +if( NOT NO_OPENAL ) + if ( NOT DYN_OPENAL ) # DYN_OPENAL uses local copies of the headers. + find_package( OpenAL ) + mark_as_advanced(CLEAR OPENAL_INCLUDE_DIR) + if( OPENAL_INCLUDE_DIR ) + include_directories( ${OPENAL_INCLUDE_DIR} ) + mark_as_advanced(CLEAR OPENAL_LIBRARY) + if( OPENAL_LIBRARY ) + set( ZDOOM_LIBS ${OPENAL_LIBRARY} ${ZDOOM_LIBS} ) + else() + set( NO_OPENAL ON ) + endif() + else() + set( NO_OPENAL ON ) + endif() + else() + add_definitions( -DDYN_OPENAL ) + endif() +endif() + +if( NO_OPENAL ) + add_definitions( -DNO_OPENAL=1 ) + + set(MPG123_FOUND NO) + set(SNDFILE_FOUND NO) +else() + # Search for libSndFile + + if ( NOT DYN_SNDFILE ) + find_package( SndFile ) + endif() + + # Search for libmpg123 + + if ( NOT DYN_MPG123 ) + find_package( MPG123 ) + endif() +endif() + +# Search for FluidSynth + +find_package( FluidSynth ) + +# Decide on SSE setup + +set( SSE_MATTERS NO ) + +# with global use of SSE 2 we do not need special handling for selected files +if (NOT ZDOOM_USE_SSE2) + # SSE only matters on 32-bit targets. We check compiler flags to know if we can do it. + if( CMAKE_SIZEOF_VOID_P MATCHES "4" AND NOT CMAKE_OSX_ARCHITECTURES MATCHES ppc ) + CHECK_CXX_COMPILER_FLAG( "-msse2 -mfpmath=sse" CAN_DO_MFPMATH ) + CHECK_CXX_COMPILER_FLAG( -arch:SSE2 CAN_DO_ARCHSSE2 ) + if( CAN_DO_MFPMATH ) + set( SSE1_ENABLE "-msse -mfpmath=sse" ) + set( SSE2_ENABLE "-msse2 -mfpmath=sse" ) + set( SSE_MATTERS YES ) + elseif( CAN_DO_ARCHSSE2 ) + set( SSE1_ENABLE -arch:SSE ) + set( SSE2_ENABLE -arch:SSE2 ) + set( SSE_MATTERS YES ) + endif() + endif() +endif() + +if( X64 ) + set( HAVE_MMX 1 ) +else( X64 ) + set( SAFE_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ) + + if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmmx") + endif( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + + CHECK_CXX_SOURCE_COMPILES("#include + int main(void) { __m64 v = _m_from_int(0); }" + HAVE_MMX) + + set( CMAKE_CXX_FLAGS ${SAFE_CMAKE_CXX_FLAGS} ) +endif( X64 ) + +CHECK_CXX_SOURCE_COMPILES("#include + int main() { concurrency::parallel_for(0, 1, 1, [](int) { } ); }" + HAVE_PARALLEL_FOR) + +if( NOT HAVE_PARALLEL_FOR ) + CHECK_CXX_SOURCE_COMPILES("#include + int main() { dispatch_apply(1, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(size_t) { }); }" + HAVE_DISPATCH_APPLY) +endif() + +# Set up flags for MSVC +if (MSVC) + set( CMAKE_CXX_FLAGS "/MP ${CMAKE_CXX_FLAGS}" ) +endif (MSVC) + +# Set up flags for GCC + +if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + if( PROFILE ) + set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -pg" ) + set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg" ) + set( CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -pg" ) + set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -pg" ) + endif() + + set( REL_CXX_FLAGS "-fno-rtti" ) + if( NOT PROFILE AND NOT APPLE ) + # On OS X frame pointers are required for exception handling, at least with Clang + set( REL_CXX_FLAGS "${REL_CXX_FLAGS} -fomit-frame-pointer" ) + endif() + set( CMAKE_CXX_FLAGS_RELEASE "${REL_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}" ) + set( CMAKE_CXX_FLAGS_MINSIZEREL "${REL_CXX_FLAGS} ${CMAKE_CXX_FLAGS_MINSIZEREL}" ) + set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${REL_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}" ) + + # Support for the GCC/Clang sanitizers. + set( WITH_ASAN 0 CACHE BOOL "Enable the Address Sanitizer") + if( NOT CMAKE_COMPILER_IS_GNUCXX ) + set( WITH_MSAN 0 CACHE BOOL "Enable the Memory Sanitizer") + endif( NOT CMAKE_COMPILER_IS_GNUCXX ) + set( WITH_UBSAN 0 CACHE BOOL "Enable the Undefined Behavior Sanitizer") + if( WITH_MSAN ) + if ( WITH_ASAN OR WITH_UBSAN ) + message( SEND_ERROR "You can't use MSAN with either ASAN or UBSAN." ) + endif ( WITH_ASAN OR WITH_UBSAN ) + endif( WITH_MSAN ) + + set( SANITIZER_FLAG "" ) + if( WITH_ASAN ) + set( SANITIZER_FLAG "-fsanitize=address" ) + if ( WITH_UBSAN ) + set( SANITIZER_FLAG "${SANITIZER_FLAG},undefined" ) + endif( WITH_UBSAN ) + elseif( WITH_MSAN ) + set( SANITIZER_FLAG "-fsanitize=memory" ) + elseif( WITH_UBSAN ) + set( SANITIZER_FLAG "-fsanitize=undefined" ) + endif( WITH_ASAN ) + + set( CMAKE_CXX_FLAGS "${SANITIZER_FLAG} ${CMAKE_CXX_FLAGS}" ) + set( CMAKE_C_FLAGS "${SANITIZER_FLAG} ${CMAKE_C_FLAGS}" ) + set( CMAKE_EXE_LINKER_FLAGS "${SANITIZER_FLAG} ${CMAKE_EXE_LINKER_FLAGS}" ) + + if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.5") + set( CMAKE_C_FLAGS "-Wno-unused-result ${CMAKE_C_FLAGS}" ) + set( CMAKE_CXX_FLAGS "-Wno-unused-result ${CMAKE_CXX_FLAGS}" ) + endif() + if( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) + if( APPLE OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "3.6" ) + set( CMAKE_CXX_FLAGS "-Wno-inconsistent-missing-override ${CMAKE_CXX_FLAGS}" ) + endif() + endif() + set( CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-missing-field-initializers -ffp-contract=off ${CMAKE_C_FLAGS}" ) + set( CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-missing-field-initializers -ffp-contract=off ${CMAKE_CXX_FLAGS}" ) + + # ARM processors (Raspberry Pi, et al) - enable ARM NEON support. + if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") + set (USE_ARMV8 0 CACHE BOOL "Use ARMv8 instructions - Raspberry Pi 3") + if (USE_ARMV8) + set( CMAKE_CXX_FLAGS "-mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mtune=cortex-a53 -mhard-float -DNO_SSE ${CMAKE_CXX_FLAGS}" ) + else () + set( CMAKE_CXX_FLAGS "-mcpu=cortex-a7 -mfpu=neon-vfpv4 -mtune=cortex-a7 -mhard-float -DNO_SSE ${CMAKE_CXX_FLAGS}" ) + endif () + endif () + + if( NOT X64 AND NOT CAN_DO_MFPMATH ) + set( CMAKE_C_FLAGS "-DNO_SSE ${CMAKE_CXX_FLAGS}" ) + set( CMAKE_CXX_FLAGS "-DNO_SSE ${CMAKE_CXX_FLAGS}" ) + endif() + + # Use the highest C++ standard available since VS2015 compiles with C++14 + # but we only require C++11. The recommended way to do this in CMake is to + # probably to use target_compile_features, but I don't feel like maintaining + # a list of features we use. + CHECK_CXX_COMPILER_FLAG( "-std=gnu++14" CAN_DO_CPP14 ) + if ( CAN_DO_CPP14 ) + set ( CMAKE_CXX_FLAGS "-std=gnu++14 ${CMAKE_CXX_FLAGS}" ) + else () + CHECK_CXX_COMPILER_FLAG( "-std=gnu++1y" CAN_DO_CPP1Y ) + if ( CAN_DO_CPP1Y ) + set ( CMAKE_CXX_FLAGS "-std=gnu++1y ${CMAKE_CXX_FLAGS}" ) + else () + CHECK_CXX_COMPILER_FLAG( "-std=gnu++11" CAN_DO_CPP11 ) + if ( CAN_DO_CPP11 ) + set ( CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}" ) + else () + CHECK_CXX_COMPILER_FLAG( "-std=gnu++0x" CAN_DO_CPP0X ) + if ( CAN_DO_CPP0X ) + set ( CMAKE_CXX_FLAGS "-std=gnu++0x ${CMAKE_CXX_FLAGS}" ) + endif () + endif () + endif () + endif () + + # Remove extra warnings when using the official DirectX headers. + # Also, TDM-GCC 4.4.0 no longer accepts glibc-style printf formats as valid, + # which is a royal pain. The previous version I had been using was fine with them. + # MinGW: switch to the Windows Unicode API. + if( WIN32 ) + set( CMAKE_CXX_FLAGS "-Wno-unknown-pragmas -Wno-comment -Wno-format ${CMAKE_CXX_FLAGS}" ) + set( CMAKE_CXX_FLAGS "-D_UNICODE -DUNICODE ${CMAKE_CXX_FLAGS}" ) + set( CMAKE_CXX_FLAGS "-D_WIN32_WINNT=0x0600 ${CMAKE_CXX_FLAGS}" ) + set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode" ) + endif() + + # Detect FreeBSD and add flags + if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" ) + endif() + + if( NOT NO_STRIP ) + set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -s" ) + set (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} -s" ) + endif() +endif() + +# Check for thread_local keyword, it's optional at the moment + +CHECK_CXX_SOURCE_COMPILES("thread_local int i; int main() { i = 0; }" + HAVE_THREAD_LOCAL) + +if( NOT HAVE_THREAD_LOCAL ) + message( SEND_ERROR "C++ compiler doesn't support thread_local storage duration specifier" ) +endif() + +# Check for functions that may or may not exist. + +CHECK_FUNCTION_EXISTS( filelength FILELENGTH_EXISTS ) +if( FILELENGTH_EXISTS ) + add_definitions( -DHAVE_FILELENGTH=1 ) +endif() + +CHECK_FUNCTION_EXISTS( strupr STRUPR_EXISTS ) +if( NOT STRUPR_EXISTS ) + add_definitions( -DNEED_STRUPR=1 ) +endif() + +CHECK_FUNCTION_EXISTS( stricmp STRICMP_EXISTS ) +if( NOT STRICMP_EXISTS ) + add_definitions( -Dstricmp=strcasecmp ) +endif() + +CHECK_FUNCTION_EXISTS( strnicmp STRNICMP_EXISTS ) +if( NOT STRNICMP_EXISTS ) + add_definitions( -Dstrnicmp=strncasecmp ) +endif() + +if( NOT MSVC ) + add_definitions( -D__forceinline=inline ) +endif() + +if( UNIX ) + CHECK_LIBRARY_EXISTS( rt clock_gettime "" CLOCK_GETTIME_IN_RT ) + if( NOT CLOCK_GETTIME_IN_RT ) + CHECK_FUNCTION_EXISTS( clock_gettime CLOCK_GETTIME_EXISTS ) + if( NOT CLOCK_GETTIME_EXISTS ) + message( STATUS "Could not find clock_gettime. Timing statistics will not be available." ) + add_definitions( -DNO_CLOCK_GETTIME ) + endif() + else() + set( ZDOOM_LIBS ${ZDOOM_LIBS} rt ) + endif() +endif() + +# Flags + +# Update gitinfo.h + +add_custom_target( revision_check ALL + COMMAND updaterevision src/gitinfo.h + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + DEPENDS updaterevision ) + +# Libraries ZDoom needs + +message( STATUS "Fluid synth libs: ${FLUIDSYNTH_LIBRARIES}" ) +set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${GME_LIBRARIES}" "${CMAKE_DL_LIBS}" ) +if (HAVE_VULKAN) + set( ZDOOM_LIBS ${ZDOOM_LIBS} "glslang" "SPIRV" "OGLCompiler") +endif() + +# Ugh... These precompiled dependencies need to go. +if (WIN32) + include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/../platform/windows/include" "${CMAKE_CURRENT_SOURCE_DIR}/../platform/windows/include/vpx" "${CMAKE_CURRENT_SOURCE_DIR}/../platform/windows/include/sdl2") +else () +include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" ) +endif() + + +if( ${HAVE_VM_JIT} ) + add_definitions( -DHAVE_VM_JIT ) + include_directories( "${ASMJIT_INCLUDE_DIR}" ) + set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ASMJIT_LIBRARIES}") +endif() + +if( SNDFILE_FOUND ) + set( ZDOOM_LIBS ${ZDOOM_LIBS} "${SNDFILE_LIBRARIES}" ) + include_directories( "${SNDFILE_INCLUDE_DIRS}" ) +endif() +if( MPG123_FOUND ) + set( ZDOOM_LIBS ${ZDOOM_LIBS} "${MPG123_LIBRARIES}" ) + include_directories( "${MPG123_INCLUDE_DIR}" ) +endif() +if( NOT DYN_FLUIDSYNTH ) + if( FLUIDSYNTH_FOUND ) + set( ZDOOM_LIBS ${ZDOOM_LIBS} "${FLUIDSYNTH_LIBRARIES}" ) + include_directories( "${FLUIDSYNTH_INCLUDE_DIR}" ) + endif() +endif() + + + +# Start defining source files for ZDoom +set( PLAT_WIN32_SOURCES + audiolib/src/driver_directsound.cpp + glad/src/glad_wgl.c + build/src/winbits.cpp + + duke3d/src/startwin.game.cpp + rr/src/startwin.game.cpp + blood/src/startwin.game.cpp + # This needs a rework anyway in order to consolidate the startup dialogs so don't bother to sort in properly. + #startgtk.game.cpp + #startosx.game.mm + + ) + +set( PLAT_POSIX_SOURCES + audiolib/src/driver_sdl.cpp + audiolib/src/sdlmusic.cpp + ) + +set( PLAT_SDL_SOURCES + ) + +set( PLAT_UNIX_SOURCES + build/src/dynamicgtk.cpp + build/src/gtkbits.cpp + ) + +set( PLAT_OSX_SOURCES + build/src/SDLMain.mm + build/src/osxbits.mm + ) + +set( PLAT_COCOA_SOURCES + ) + + + +if( WIN32 ) + #set( SYSTEM_SOURCES_DIR win32 ) + set( SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ) + set( OTHER_SYSTEM_SOURCES ${PLAT_POSIX_SOURCES} ${PLAT_SDL_SOURCES} ${PLAT_OSX_SOURCES} ${PLAT_COCOA_SOURCES} ${PLAT_UNIX_SOURCES} ) + + set( SYSTEM_SOURCES ${SYSTEM_SOURCES} platform/win32/zdoom.rc ) +elseif( APPLE ) + if( OSX_COCOA_BACKEND ) + #set( SYSTEM_SOURCES_DIR posix posix/cocoa ) + set( SYSTEM_SOURCES ${PLAT_COCOA_SOURCES} ) + set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_SDL_SOURCES} ${PLAT_UNIX_SOURCES} ) + else() + #set( SYSTEM_SOURCES_DIR posix posix/sdl ) + set( SYSTEM_SOURCES ${PLAT_SDL_SOURCES} ) + ##set( PLAT_OSX_SOURCES ${PLAT_OSX_SOURCES} posix/sdl/i_system.mm ) + set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_COCOA_SOURCES} ${PLAT_UNIX_SOURCES} ) + endif() + + set( SYSTEM_SOURCES ${SYSTEM_SOURCES} ${PLAT_POSIX_SOURCES} ${PLAT_OSX_SOURCES} ) + + ##set_source_files_properties( posix/osx/zdoom.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources ) + ##set_source_files_properties( posix/osx/iwadpicker_cocoa.mm PROPERTIES COMPILE_FLAGS -fobjc-exceptions ) +else() + #set( SYSTEM_SOURCES_DIR posix posix/sdl ) + set( SYSTEM_SOURCES ${PLAT_POSIX_SOURCES} ${PLAT_SDL_SOURCES} ${PLAT_UNIX_SOURCES} ) + set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_OSX_SOURCES} ${PLAT_COCOA_SOURCES} ) +endif() + + +if( HAVE_PARALLEL_FOR ) + add_definitions( -DHAVE_PARALLEL_FOR=1 ) +elseif( HAVE_DISPATCH_APPLY ) + add_definitions( -DHAVE_DISPATCH_APPLY=1 ) +else() + option( NO_OPENMP "Disable usage of OpenMP" OFF ) + + if( NOT NO_OPENMP ) + include( FindOpenMP ) + + if( OPENMP_FOUND ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}" ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}" ) + endif( OPENMP_FOUND ) + endif( NOT NO_OPENMP ) +endif() + +if (FALSE) # for later +add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/sc_man_scanner.h + COMMAND re2c --no-generation-date -s -o ${CMAKE_CURRENT_BINARY_DIR}/sc_man_scanner.h ${CMAKE_CURRENT_SOURCE_DIR}/utility/sc_man_scanner.re + DEPENDS re2c ${CMAKE_CURRENT_SOURCE_DIR}/utility/sc_man_scanner.re ) + +endif () + +include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) + +if( DYN_SNDFILE) + add_definitions( -DHAVE_SNDFILE -DDYN_SNDFILE ) +elseif( SNDFILE_FOUND ) + add_definitions( -DHAVE_SNDFILE ) +endif() + +if( DYN_MPG123) + add_definitions( -DHAVE_MPG123 -DDYN_MPG123 ) +elseif( MPG123_FOUND ) + add_definitions( -DHAVE_MPG123 ) +endif() + +if( DYN_FLUIDSYNTH ) + add_definitions( -DHAVE_FLUIDSYNTH -DDYN_FLUIDSYNTH ) +elseif( FLUIDSYNTH_FOUND ) + add_definitions( -DHAVE_FLUIDSYNTH ) +endif() + +#option( SEND_ANON_STATS "Enable sending of anonymous hardware statistics" ON ) + +#if( NOT SEND_ANON_STATS ) +# add_definitions( -DNO_SEND_STATS ) +#endif() + + +# Disable ADLMIDI's and OPNMIDI's MIDI Sequencer +add_definitions(-DADLMIDI_DISABLE_MIDI_SEQUENCER) +add_definitions(-DOPNMIDI_DISABLE_MIDI_SEQUENCER) + +# Disable OPNMIDI's experimental yet emulator (using of it has some issues and missing notes in playback) +add_definitions(-DOPNMIDI_DISABLE_GX_EMULATOR) + +# Project files should be aware of the header files. We can GLOB these since +# there's generally a new cpp for every header so this file will get changed +file( GLOB HEADER_FILES + audiolib/include/*.h + audiolib/src/*.h + blood/src/*.h + build/include/*.h + enet/include/enet/*.h + glad/include/glad/*.h + glad/include/Khr/*.h + glbackend/*.h + libsmackerdec/include/*.h + libxmp-lite/include/libxmp-lite/*.h + libxmp-lite/src/*.h + mact/include/*.h + mact/src/*.h + + build/src/*.h + duke3d/src/*.h + rr/src/*.h + #sw/src/*.h Shadow Warrior does not work yet. + thirdparty/include/*.h + thirdparty/include/*.hpp +) + + +# These files will be flagged as "headers" so that they appear in project files +# without being compiled. +set( NOT_COMPILED_SOURCE_FILES + ${OTHER_SYSTEM_SOURCES} + build/src/mingw_main.cpp + build/src/sdlkeytrans.cpp + duke3d/src/gamestructures.cpp + rr/src/gamestructures.cpp + #sc_man_scanner.h + #utility/sc_man_scanner.re +) + + +# Enable fast math for some sources where performance matters (or where the PCH must not be used.) (This would be good for rendering code, but unfortunately that is hopelessly intermingled with the playsim code in engine.cpp.) +set( FASTMATH_SOURCES + # This should better be made a library subproject later, once things are working. + enet/src/callbacks.c + enet/src/compress.c + enet/src/host.c + enet/src/list.c + enet/src/packet.c + enet/src/peer.c + enet/src/protocol.c + enet/src/unix.c # This and the next one are platform safe! + enet/src/win32.c + + # This should better be made a library subproject later, once things are working. + libsmackerdec/src/BitReader.cpp + libsmackerdec/src/FileStream.cpp + libsmackerdec/src/HuffmanVLC.cpp + libsmackerdec/src/LogError.cpp + libsmackerdec/src/SmackerDecoder.cpp + + # This will go away once GZDoom's music backend has been plugged in. + libxmp-lite/src/common.c + libxmp-lite/src/control.c + libxmp-lite/src/dataio.c + libxmp-lite/src/effects.c + libxmp-lite/src/filter.c + libxmp-lite/src/format.c + libxmp-lite/src/hio.c + libxmp-lite/src/itsex.c + libxmp-lite/src/it_load.c + libxmp-lite/src/lfo.c + libxmp-lite/src/load.c + libxmp-lite/src/load_helpers.c + libxmp-lite/src/memio.c + libxmp-lite/src/mixer.c + libxmp-lite/src/mix_all.c + libxmp-lite/src/mod_load.c + libxmp-lite/src/mtm_load.c + libxmp-lite/src/period.c + libxmp-lite/src/player.c + libxmp-lite/src/read_event.c + libxmp-lite/src/s3m_load.c + libxmp-lite/src/sample.c + libxmp-lite/src/scan.c + libxmp-lite/src/smix.c + libxmp-lite/src/virtual.c + libxmp-lite/src/win32.c + libxmp-lite/src/xm_load.c + + # The rest is only here because it is C, not C++ + glad/src/glad.c + + thirdparty/src/lz4.c + thirdparty/src/xxhash.c + + # Will we need this anymore with ZLib being available? + thirdparty/src/miniz.c + thirdparty/src/miniz_tdef.c + thirdparty/src/miniz_tinfl.c + + # These will be exported to a resource file later - until that works they need to be explicitly compiled. + polymost1Vert.glsl.cpp + polymost1Frag.glsl.cpp + + # Another bit of cruft just to make S(hit)DL happy... + sdlappicon.cpp +) + + +set (PCH_SOURCES + audiolib/src/drivers.cpp + audiolib/src/driver_nosound.cpp + audiolib/src/flac.cpp + audiolib/src/formats.cpp + audiolib/src/fx_man.cpp + audiolib/src/gmtimbre.cpp + audiolib/src/midi.cpp + audiolib/src/mix.cpp + audiolib/src/mixst.cpp + audiolib/src/mpu401.cpp + audiolib/src/multivoc.cpp + audiolib/src/music.cpp + audiolib/src/pitch.cpp + audiolib/src/vorbis.cpp + audiolib/src/xa.cpp + audiolib/src/xmp.cpp + + glbackend/gl_hwtexture.cpp + glbackend/gl_samplers.cpp + glbackend/glbackend.cpp + + mact/src/animlib.cpp + mact/src/control.cpp + mact/src/joystick.cpp + mact/src/keyboard.cpp + mact/src/scriplib.cpp + + thirdparty/src/sjson.cpp + thirdparty/src/crc32.cpp + thirdparty/src/fix16.cpp + thirdparty/src/fix16_str.cpp + thirdparty/src/md4.cpp + + # Todo: Split out the license-safe code from this. + build/src/2d.cpp + build/src/a-c.cpp + build/src/animvpx.cpp + build/src/baselayer.cpp + build/src/cache1d.cpp + build/src/clip.cpp + build/src/colmatch.cpp + build/src/common.cpp + build/src/compat.cpp + build/src/defs.cpp + build/src/engine.cpp + build/src/glbuild.cpp + build/src/glsurface.cpp + build/src/hash.cpp + build/src/hightile.cpp + build/src/klzw.cpp + build/src/kplib.cpp + build/src/mdsprite.cpp + build/src/mhk.cpp + build/src/mmulti_null.cpp + build/src/mutex.cpp + build/src/osd.cpp + build/src/palette.cpp + build/src/pngwrite.cpp + build/src/polymost.cpp + build/src/pragmas.cpp + build/src/rev.cpp + build/src/screenshot.cpp + build/src/scriptfile.cpp + build/src/sdlayer.cpp + build/src/smalltextfont.cpp + build/src/softsurface.cpp + build/src/texcache.cpp + build/src/textfont.cpp + build/src/tiles.cpp + build/src/timer.cpp + build/src/vfs.cpp + build/src/voxmodel.cpp + + duke3d/src/actors.cpp + duke3d/src/anim.cpp + duke3d/src/cheats.cpp + duke3d/src/cmdline.cpp + duke3d/src/common.cpp + duke3d/src/config.cpp + duke3d/src/demo.cpp + duke3d/src/game.cpp + duke3d/src/gamedef.cpp + duke3d/src/gameexec.cpp + duke3d/src/gamevars.cpp + duke3d/src/global.cpp + duke3d/src/grpscan.cpp + duke3d/src/input.cpp + duke3d/src/menus.cpp + duke3d/src/namesdyn.cpp + duke3d/src/network.cpp + duke3d/src/osdcmds.cpp + duke3d/src/osdfuncs.cpp + duke3d/src/player.cpp + duke3d/src/premap.cpp + duke3d/src/rts.cpp + duke3d/src/savegame.cpp + duke3d/src/sbar.cpp + duke3d/src/screens.cpp + duke3d/src/screentext.cpp + duke3d/src/sector.cpp + duke3d/src/sounds.cpp + duke3d/src/soundsdyn.cpp + + rr/src/actors.cpp + rr/src/anim.cpp + rr/src/cheats.cpp + rr/src/cmdline.cpp + rr/src/common.cpp + rr/src/config.cpp + rr/src/demo.cpp + rr/src/game.cpp + rr/src/gamedef.cpp + rr/src/gameexec.cpp + rr/src/gamevars.cpp + rr/src/global.cpp + rr/src/grpscan.cpp + rr/src/input.cpp + rr/src/menus.cpp + rr/src/namesdyn.cpp + rr/src/net.cpp + rr/src/osdcmds.cpp + rr/src/osdfuncs.cpp + rr/src/player.cpp + rr/src/premap.cpp + rr/src/rts.cpp + rr/src/savegame.cpp + rr/src/sbar.cpp + rr/src/screens.cpp + rr/src/screentext.cpp + rr/src/sector.cpp + rr/src/sounds.cpp + rr/src/soundsdyn.cpp + + blood/src/actor.cpp + blood/src/ai.cpp + blood/src/aibat.cpp + blood/src/aibeast.cpp + blood/src/aiboneel.cpp + blood/src/aiburn.cpp + blood/src/aicaleb.cpp + blood/src/aicerber.cpp + blood/src/aicult.cpp + blood/src/aigarg.cpp + blood/src/aighost.cpp + blood/src/aigilbst.cpp + blood/src/aihand.cpp + blood/src/aihound.cpp + blood/src/aiinnoc.cpp + blood/src/aipod.cpp + blood/src/airat.cpp + blood/src/aispid.cpp + blood/src/aitchern.cpp + blood/src/aiunicult.cpp + blood/src/aizomba.cpp + blood/src/aizombf.cpp + blood/src/asound.cpp + blood/src/barf.cpp + blood/src/blood.cpp + blood/src/callback.cpp + blood/src/choke.cpp + blood/src/common.cpp + blood/src/config.cpp + blood/src/controls.cpp + blood/src/credits.cpp + blood/src/db.cpp + blood/src/demo.cpp + blood/src/dude.cpp + blood/src/endgame.cpp + blood/src/eventq.cpp + blood/src/fire.cpp + blood/src/fx.cpp + blood/src/gamemenu.cpp + blood/src/gameutil.cpp + blood/src/getopt.cpp + blood/src/gib.cpp + blood/src/globals.cpp + blood/src/inifile.cpp + blood/src/iob.cpp + blood/src/levels.cpp + blood/src/loadsave.cpp + blood/src/map2d.cpp + blood/src/menu.cpp + blood/src/messages.cpp + blood/src/mirrors.cpp + blood/src/misc.cpp + blood/src/network.cpp + blood/src/osdcmd.cpp + blood/src/player.cpp + blood/src/qav.cpp + blood/src/qheap.cpp + blood/src/replace.cpp + blood/src/resource.cpp + blood/src/screen.cpp + blood/src/sectorfx.cpp + blood/src/seq.cpp + blood/src/sfx.cpp + blood/src/sound.cpp + blood/src/tile.cpp + blood/src/trig.cpp + blood/src/triggers.cpp + blood/src/view.cpp + blood/src/warp.cpp + blood/src/weapon.cpp + +) + +if( MSVC ) + enable_precompiled_headers( g_pch.h PCH_SOURCES ) + # The original Build code was written with unsigned chars and unfortunately they still haven't been eliminated entirely. + # All other code should stay with signed chars. What a mess... :( + set_source_files_properties( ${PCH_SOURCES} PROPERTIES COMPILE_FLAGS "/J" ) +else() + # Temporary solution for compilers other than MSVC + set_source_files_properties( ${PCH_SOURCES} PROPERTIES COMPILE_FLAGS "-include g_pch.h" ) +endif() + +add_executable( zdoom WIN32 MACOSX_BUNDLE + ${HEADER_FILES} + ${NOT_COMPILED_SOURCE_FILES} + #__autostart.cpp + ${SYSTEM_SOURCES} + ${FASTMATH_SOURCES} + ${PCH_SOURCES} + #utility/strnatcmp.c + #utility/zstring.cpp + #zzautozend.cpp +) + +set_source_files_properties( ${FASTMATH_SOURCES} PROPERTIES COMPILE_FLAGS ${ZD_FASTMATH_FLAG} ) +set_source_files_properties( xlat/parse_xlat.cpp PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.c" ) +set_source_files_properties( utility/sc_man.cpp PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/sc_man_scanner.h" ) +set_source_files_properties( ${NOT_COMPILED_SOURCE_FILES} PROPERTIES HEADER_FILE_ONLY TRUE ) + + +if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS") + # [BL] Solaris requires these to be explicitly linked. + set( ZDOOM_LIBS ${ZDOOM_LIBS} nsl socket) +endif() + +if( UNIX ) + find_package( Backtrace ) + if(Backtrace_FOUND) + set( ZDOOM_LIBS ${ZDOOM_LIBS} ${Backtrace_LIBRARIES} ) + endif() +endif() + +target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma ) + +include_directories( + build/include + mact/include + audiolib/include + enet/include + glad/include + libxmp-lite/include + libxmp-lite/include/libxmp-lite + libsmackerdec/include + thirdparty/include + + ${CMAKE_BINARY_DIR}/libraries/gdtoa + #${SYSTEM_SOURCES_DIR} +) + +add_dependencies( zdoom revision_check ) + +# Due to some quirks, we need to do this in this order +if( NOT ZDOOM_OUTPUT_OLDSTYLE ) + # RUNTIME_OUTPUT_DIRECTORY does not exist in CMake 2.4. + # Linux distributions are slow to adopt 2.6. :( + set_target_properties( zdoom PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ZDOOM_OUTPUT_DIR} ) + set_target_properties( zdoom PROPERTIES OUTPUT_NAME ${ZDOOM_EXE_NAME} ) +else() + set_target_properties( zdoom PROPERTIES + RUNTIME_OUTPUT_NAME ${ZDOOM_EXE_NAME} + RUNTIME_OUTPUT_DIRECTORY_RELEASE ${ZDOOM_OUTPUT_DIR} + RUNTIME_OUTPUT_NAME_DEBUG ${ZDOOM_EXE_NAME}d + RUNTIME_OUTPUT_DIRECTORY_DEBUG ${ZDOOM_OUTPUT_DIR} + RUNTIME_OUTPUT_NAME_MINSIZEREL ${ZDOOM_EXE_NAME}msr + RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL ${ZDOOM_OUTPUT_DIR} + RUNTIME_OUTPUT_NAME_RELWITHDEBINFO ${ZDOOM_EXE_NAME}rd + RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${ZDOOM_OUTPUT_DIR} + ) +endif() + +if( MSVC ) + option( ZDOOM_GENERATE_MAPFILE "Generate .map file for debugging." OFF ) + set( LINKERSTUFF "/MANIFEST:NO" ) + + if( ZDOOM_GENERATE_MAPFILE ) + set( LINKERSTUFF "${LINKERSTUFF} /MAP" ) + endif() + set_target_properties(zdoom PROPERTIES LINK_FLAGS ${LINKERSTUFF}) + + add_custom_command(TARGET zdoom POST_BUILD + COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\platform\\win32\\zdoom.exe.manifest\" -outputresource:\"$\"\;\#1 + COMMENT "Adding manifest..." + ) + +endif() + +if( NOT WIN32 AND NOT APPLE ) + FILE( WRITE ${CMAKE_CURRENT_BINARY_DIR}/link-make "if [ ! -e ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME} ]; then ln -sf ${CMAKE_CURRENT_BINARY_DIR}/${ZDOOM_EXE_NAME} ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME}; fi" ) + add_custom_command( TARGET zdoom POST_BUILD + COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make + COMMAND /bin/sh -c ${CMAKE_CURRENT_BINARY_DIR}/link-make ) +endif() + +#add_custom_command(TARGET zdoom POST_BUILD +# COMMAND ${CMAKE_COMMAND} -E copy_if_different +# ${CMAKE_SOURCE_DIR}/soundfont/gzdoom.sf2 $/soundfonts/gzdoom.sf2 +# COMMAND ${CMAKE_COMMAND} -E copy_if_different +# ${CMAKE_SOURCE_DIR}/fm_banks/GENMIDI.GS.wopl $/fm_banks/GENMIDI.GS.wopl +# COMMAND ${CMAKE_COMMAND} -E copy_if_different +# ${CMAKE_SOURCE_DIR}/fm_banks/gs-by-papiezak-and-sneakernets.wopn $/fm_banks/gs-by-papiezak-and-sneakernets.wopn +#) + +if( CMAKE_COMPILER_IS_GNUCXX ) + # GCC misoptimizes this file + #set_source_files_properties( oplsynth/fmopl.cpp PROPERTIES COMPILE_FLAGS "-fno-tree-dominator-opts -fno-tree-fre" ) +endif() +#if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) + # Need to enable intrinsics for these files. +# if( SSE_MATTERS ) +# set_source_files_properties( +# utility/x86.cpp +# PROPERTIES COMPILE_FLAGS "-msse2 -mmmx" ) +# endif() +#endif() + +if( APPLE ) + set( LINK_FRAMEWORKS "-framework Cocoa -framework IOKit -framework OpenGL") + + if( HAVE_VULKAN ) + set( LINK_FRAMEWORKS "${LINK_FRAMEWORKS} -framework QuartzCore" ) + endif() + + set_target_properties(zdoom PROPERTIES + LINK_FLAGS "${LINK_FRAMEWORKS}" + MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/posix/osx/zdoom-info.plist" ) + + # Dymanic libraries like libvulkan.dylib or libMoltenVK.dylib will be loaded by dlopen() + # if placed in the directory with the main executable + set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rpath @executable_path" ) +endif() + +if( WIN32 ) + set( INSTALL_PATH . CACHE STRING "Directory where the zdoom executable will be placed during install." ) +else() + set( INSTALL_PATH bin CACHE STRING "Directory where the zdoom executable will be placed during install." ) +endif() +install(TARGETS zdoom + DESTINATION ${INSTALL_PATH} + COMPONENT "Game executable") + +source_group("Utility\\Audiolib" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/audiolib/.+") +source_group("Utility\\Audiolib Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/audiolib/include/.+") +source_group("Utility\\Audiolib Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/audiolib/src/.+") +source_group("Utility\\ENet" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/enet/.+") +source_group("Utility\\ENet Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/enet/include/enet/.+") +source_group("Utility\\ENet Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/enet/src/.+") +source_group("Utility\\Glad" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/glad/.+") +source_group("Utility\\Glad Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/glad/include/glad/.+") +source_group("Utility\\Glad Khr Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/glad/include/Khr/.+") +source_group("Utility\\Glad Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/glad/src/.+") +source_group("Utility\\Smackerdec" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/smackerdec/.+") +source_group("Utility\\Smackerdec\\Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/libsmackerdec/include/.+") +source_group("Utility\\Smackerdec\\Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/libsmackerdec/src/.+") +source_group("Utility\\XMP-Lite" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/libxmp-lite/.+") +source_group("Utility\\XMP-Lite Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/libxmp-lite/include/libxmp-lite/.+") +source_group("Utility\\XMP-Lite Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/libxmp-lite/src/.+") +source_group("Utility\\Mact" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/mact/.+") +source_group("Utility\\Mact Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/mact/include/.+") +source_group("Utility\\Mact Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/mact/src/.+") +source_group("Utility\\Third Party" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/.+") +source_group("Utility\\Third Party Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/include/.+") +source_group("Utility\\Third Party Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/src/.+") +source_group("OpenGL Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/glbackend/.+") +source_group("Build Engine" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/build/.+") +source_group("Build Engine\\Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/build/include/.+") +source_group("Build Engine\\Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/build/src/.+") +#source_group("Game Frontends\\EDuke32\\Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/duke3d/.h") +source_group("Game Frontends\\EDuke32\\Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/duke3d/.+") +#source_group("Game Frontends\\RedNukem\\Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rr/.h") +source_group("Game Frontends\\RedNukem\\Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rr/.+") +#source_group("Game Frontends\\NBlood\\Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/blood/.h") +source_group("Game Frontends\\NBlood\\Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/blood/.+") + \ No newline at end of file diff --git a/source/audiolib/src/driver_directsound.cpp b/source/audiolib/src/driver_directsound.cpp index b1192485c..89928e03c 100644 --- a/source/audiolib/src/driver_directsound.cpp +++ b/source/audiolib/src/driver_directsound.cpp @@ -248,7 +248,7 @@ int32_t DirectSoundDrv_PCM_Init(int32_t *mixrate, int32_t *numchannels, void * i if (FAILED(err = IDirectSound_CreateSoundBuffer(lpds, &bufdesc, &lpdsbsec, 0))) return DirectSound_Error(err, DSErr_CreateSoundBufferSecondary); - if (FAILED(err = IDirectSoundBuffer_QueryInterface(lpdsbsec, &IID_IDirectSoundNotify, (LPVOID *)&lpdsnotify))) + if (FAILED(err = IDirectSoundBuffer_QueryInterface(lpdsbsec, IID_IDirectSoundNotify, (LPVOID *)&lpdsnotify))) return DirectSound_Error(err, DSErr_Notify); for (int i = 0; i < MIXBUFFERPOSITIONS; i++) diff --git a/source/audiolib/src/xmp.cpp b/source/audiolib/src/xmp.cpp index cf55854bf..155f8dd9a 100644 --- a/source/audiolib/src/xmp.cpp +++ b/source/audiolib/src/xmp.cpp @@ -7,7 +7,6 @@ #include "multivoc.h" #include "_multivc.h" -#define BUILDING_STATIC #include "libxmp-lite/xmp.h" typedef struct { diff --git a/source/blood/src/common.cpp b/source/blood/src/common.cpp index 7b221a039..2c5b62075 100644 --- a/source/blood/src/common.cpp +++ b/source/blood/src/common.cpp @@ -110,7 +110,7 @@ void G_ExtPreInit(int32_t argc,char const * const * argv) g_useCwd = G_CheckCmdSwitch(argc, argv, "-usecwd"); #ifdef _WIN32 - GetModuleFileName(NULL,g_rootDir,BMAX_PATH); + GetModuleFileNameA(NULL,g_rootDir,BMAX_PATH); Bcorrectfilename(g_rootDir,1); //chdir(g_rootDir); #else diff --git a/source/blood/src/db.cpp b/source/blood/src/db.cpp index e4321f50a..84baf093d 100644 --- a/source/blood/src/db.cpp +++ b/source/blood/src/db.cpp @@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "build.h" #include "compat.h" #include "common_game.h" -#include "crc32.h" +#include "crc32_.h" //#include "actor.h" #include "globals.h" @@ -1283,7 +1283,6 @@ int dbLoadMap(const char *pPath, int *pX, int *pY, int *pZ, short *pAngle, short int dbSaveMap(const char *pPath, int nX, int nY, int nZ, short nAngle, short nSector) { char sMapExt[BMAX_PATH]; - char sBakExt[BMAX_PATH]; int16_t tpskyoff[256]; int nSpriteNum; psky_t *pSky = tileSetupSky(0); diff --git a/source/blood/src/replace.cpp b/source/blood/src/replace.cpp index c91448826..decb98dd2 100644 --- a/source/blood/src/replace.cpp +++ b/source/blood/src/replace.cpp @@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "compat.h" #include "common_game.h" -#include "crc32.h" +#include "crc32_.h" #include "globals.h" #include "tile.h" diff --git a/source/blood/src/resource.cpp b/source/blood/src/resource.cpp index e2743223b..f9752af6c 100644 --- a/source/blood/src/resource.cpp +++ b/source/blood/src/resource.cpp @@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include #include #include -#include "crc32.h" +#include "crc32_.h" #include "compat.h" #include "cache1d.h" #ifdef WITHKPLIB diff --git a/source/blood/src/startwin.game.cpp b/source/blood/src/startwin.game.cpp index ab84ad944..d8e0c8b9d 100644 --- a/source/blood/src/startwin.game.cpp +++ b/source/blood/src/startwin.game.cpp @@ -53,6 +53,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "startwin.game.h" #include "windows_inc.h" +#pragma warning(disable:4244) // There's just a bit too much of these in here... + BEGIN_BLD_NS @@ -343,9 +345,9 @@ static INT_PTR CALLBACK ConfigPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, L static void SetPage(int pageNum) { HWND tab = GetDlgItem(startupdlg, WIN_STARTWIN_TABCTL); - auto const cur = SendMessage(tab, TCM_GETCURSEL, 0, 0); + auto const cur = SendMessageA(tab, TCM_GETCURSEL, 0, 0); ShowWindow(pages[cur], SW_HIDE); - SendMessage(tab, TCM_SETCURSEL, pageNum, 0); + SendMessageA(tab, TCM_SETCURSEL, pageNum, 0); ShowWindow(pages[pageNum], SW_SHOW); mode = pageNum; @@ -419,7 +421,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, hbmp = LoadBitmap((HINSTANCE)win_gethinstance(), MAKEINTRESOURCE(RSRC_BMP)); HWND hwnd = GetDlgItem(hwndDlg, WIN_STARTWIN_BITMAP); - SendMessage(hwnd, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hbmp); + SendMessageA(hwnd, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hbmp); RECT r; GetClientRect(hwnd, &r); @@ -452,23 +454,23 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, // Add tabs to the tab control { - static char textSetup[] = TEXT("Setup"); - static char textMessageLog[] = TEXT("Message Log"); + static char textSetup[] = "Setup"; + static char textMessageLog[] = "Message Log"; hwnd = GetDlgItem(hwndDlg, WIN_STARTWIN_TABCTL); - TCITEM tab = {}; + TCITEMA tab = {}; tab.mask = TCIF_TEXT; tab.pszText = textSetup; - SendMessage(hwnd, TCM_INSERTITEM, (WPARAM)TAB_CONFIG, (LPARAM)&tab); + SendMessageA(hwnd, TCM_INSERTITEM, (WPARAM)TAB_CONFIG, (LPARAM)&tab); tab.mask = TCIF_TEXT; tab.pszText = textMessageLog; - SendMessage(hwnd, TCM_INSERTITEM, (WPARAM)TAB_MESSAGES, (LPARAM)&tab); + SendMessageA(hwnd, TCM_INSERTITEM, (WPARAM)TAB_MESSAGES, (LPARAM)&tab); // Work out the position and size of the area inside the tab control for the pages ZeroMemory(&r, sizeof(r)); GetClientRect(hwnd, &r); - SendMessage(hwnd, TCM_ADJUSTRECT, FALSE, (LPARAM)&r); + SendMessageA(hwnd, TCM_ADJUSTRECT, FALSE, (LPARAM)&r); r.right -= r.left-1; r.bottom -= r.top-1; r.top += rtab.top; @@ -485,7 +487,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, GetClientRect(pages[TAB_MESSAGES], &r); r.right -= GetSystemMetrics(SM_CXVSCROLL)+4; r.left = r.top = 0; - SendMessage(pages[TAB_MESSAGES], EM_SETRECTNP,0,(LPARAM)&r); + SendMessageA(pages[TAB_MESSAGES], EM_SETRECTNP,0,(LPARAM)&r); // Set a tab stop in the game data listbox { @@ -494,7 +496,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, } SetFocus(GetDlgItem(hwndDlg, WIN_STARTWIN_START)); - SetWindowText(hwndDlg, apptitle); + SetWindowTextA(hwndDlg, apptitle); } return FALSE; } @@ -503,7 +505,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, { auto nmhdr = (LPNMHDR)lParam; if (nmhdr->idFrom != WIN_STARTWIN_TABCTL) break; - int const cur = SendMessage(nmhdr->hwndFrom, TCM_GETCURSEL,0,0); + int const cur = SendMessageA(nmhdr->hwndFrom, TCM_GETCURSEL,0,0); switch (nmhdr->code) { case TCN_SELCHANGING: @@ -597,15 +599,15 @@ int32_t startwin_puts(const char *buf) static HWND dactrl = NULL; if (!dactrl) dactrl = GetDlgItem(startupdlg, WIN_STARTWIN_TABCTL); - int const vis = ((int)SendMessage(dactrl, TCM_GETCURSEL,0,0) == TAB_MESSAGES); + int const vis = ((int)SendMessageA(dactrl, TCM_GETCURSEL,0,0) == TAB_MESSAGES); if (vis) - SendMessage(edctl, WM_SETREDRAW, FALSE, 0); + SendMessageA(edctl, WM_SETREDRAW, FALSE, 0); - int const curlen = SendMessage(edctl, WM_GETTEXTLENGTH, 0,0); - SendMessage(edctl, EM_SETSEL, (WPARAM)curlen, (LPARAM)curlen); + int const curlen = SendMessageA(edctl, WM_GETTEXTLENGTH, 0,0); + SendMessageA(edctl, EM_SETSEL, (WPARAM)curlen, (LPARAM)curlen); - int const numlines = SendMessage(edctl, EM_GETLINECOUNT, 0, 0); + int const numlines = SendMessageA(edctl, EM_GETLINECOUNT, 0, 0); static bool newline = false; const char *p = buf; @@ -613,7 +615,7 @@ int32_t startwin_puts(const char *buf) { if (newline) { - SendMessage(edctl, EM_REPLACESEL, 0, (LPARAM)"\r\n"); + SendMessageA(edctl, EM_REPLACESEL, 0, (LPARAM)"\r\n"); newline = false; } const char *q = p; @@ -640,14 +642,14 @@ int32_t startwin_puts(const char *buf) workbuf[q-p] = 0; p = q; } - SendMessage(edctl, EM_REPLACESEL, 0, (LPARAM)workbuf); + SendMessageA(edctl, EM_REPLACESEL, 0, (LPARAM)workbuf); } - int const newnumlines = SendMessage(edctl, EM_GETLINECOUNT, 0, 0); - SendMessage(edctl, EM_LINESCROLL, 0, newnumlines - numlines); + int const newnumlines = SendMessageA(edctl, EM_GETLINECOUNT, 0, 0); + SendMessageA(edctl, EM_LINESCROLL, 0, newnumlines - numlines); if (vis) - SendMessage(edctl, WM_SETREDRAW, TRUE, 0); + SendMessageA(edctl, WM_SETREDRAW, TRUE, 0); return 0; } @@ -655,7 +657,7 @@ int32_t startwin_puts(const char *buf) int32_t startwin_settitle(const char *str) { if (!startupdlg) return 1; - SetWindowText(startupdlg, str); + SetWindowTextA(startupdlg, str); return 0; } diff --git a/source/build/include/build.h b/source/build/include/build.h index 86f924dc1..f21553e07 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -800,8 +800,8 @@ EXTERN int16_t nextspritesect[MAXSPRITES], nextspritestat[MAXSPRITES]; EXTERN vec2_16_t tilesiz[MAXTILES]; -EXTERN char picsiz[MAXTILES]; -EXTERN char walock[MAXTILES]; +EXTERN uint8_t picsiz[MAXTILES]; +EXTERN uint8_t walock[MAXTILES]; extern const char pow2char_[]; static CONSTEXPR const int32_t pow2long[32] = @@ -1115,7 +1115,7 @@ void videoClearViewableArea(int32_t dacol); void videoClearScreen(int32_t dacol); void renderDrawMapView(int32_t dax, int32_t day, int32_t zoome, int16_t ang); void rotatesprite_(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, + int8_t dashade, uint8_t dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, int32_t cx1, int32_t cy1, int32_t cx2, int32_t cy2); void renderDrawLine(int32_t x1, int32_t y1, int32_t x2, int32_t y2, char col); void drawlinergb(int32_t x1, int32_t y1, int32_t x2, int32_t y2, palette_t p); @@ -1127,26 +1127,26 @@ void Buninitart(void); ////////// specialized rotatesprite wrappers for (very) often used cases ////////// static FORCE_INLINE void rotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat, + int8_t dashade, uint8_t dapalnum, int32_t dastat, int32_t cx1, int32_t cy1, int32_t cx2, int32_t cy2) { rotatesprite_(sx, sy, z, a, picnum, dashade, dapalnum, dastat, 0, 0, cx1, cy1, cx2, cy2); } // Don't clip at all, i.e. the whole screen real estate is available: static FORCE_INLINE void rotatesprite_fs(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat) + int8_t dashade, uint8_t dapalnum, int32_t dastat) { rotatesprite_(sx, sy, z, a, picnum, dashade, dapalnum, dastat, 0, 0, 0,0,xdim-1,ydim-1); } static FORCE_INLINE void rotatesprite_fs_alpha(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat, uint8_t alpha) + int8_t dashade, uint8_t dapalnum, int32_t dastat, uint8_t alpha) { rotatesprite_(sx, sy, z, a, picnum, dashade, dapalnum, dastat, alpha, 0, 0, 0, xdim-1, ydim-1); } static FORCE_INLINE void rotatesprite_win(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat) + int8_t dashade, uint8_t dapalnum, int32_t dastat) { rotatesprite_(sx, sy, z, a, picnum, dashade, dapalnum, dastat, 0, 0, windowxy1.x,windowxy1.y,windowxy2.x,windowxy2.y); } diff --git a/source/build/include/cache1d.h b/source/build/include/cache1d.h index 280895305..c161fe0a3 100644 --- a/source/build/include/cache1d.h +++ b/source/build/include/cache1d.h @@ -18,7 +18,7 @@ extern int32_t kpzbufsiz; extern int32_t kpzbufload(const char *); void cacheInitBuffer(intptr_t dacachestart, int32_t dacachesize); -void cacheAllocateBlock(intptr_t *newhandle, int32_t newbytes, char *newlockptr); +void cacheAllocateBlock(intptr_t *newhandle, int32_t newbytes, uint8_t *newlockptr); void cacheAgeEntries(void); #ifdef USE_PHYSFS @@ -120,7 +120,7 @@ typedef struct { intptr_t *hand; int32_t leng; - char * lock; + uint8_t * lock; } cactype; enum { diff --git a/source/build/include/glbuild.h b/source/build/include/glbuild.h index 360213b7a..1826a603b 100644 --- a/source/build/include/glbuild.h +++ b/source/build/include/glbuild.h @@ -146,9 +146,4 @@ int32_t loadwgl(const char *driver); int32_t unloadwgl(void); #endif -#ifdef POLYMER -int32_t loadglulibrary(const char *driver); -int32_t unloadglulibrary(void); -#endif - #endif diff --git a/source/build/include/kplib.h b/source/build/include/kplib.h index d7c73bcfe..c3033a283 100644 --- a/source/build/include/kplib.h +++ b/source/build/include/kplib.h @@ -48,7 +48,7 @@ extern int32_t kzfindfile (char *); //you alloc buf, returns 1:found,0:~found //like stricmp(st0,st1) except: '/' == '\' -extern char toupperlookup[256]; +extern uint8_t toupperlookup[256]; static inline int32_t filnamcmp(const char *j, const char *i) { // If we reach at the end of both strings, we are done diff --git a/source/build/include/palette.h b/source/build/include/palette.h index 53e021118..4906f8e9c 100644 --- a/source/build/include/palette.h +++ b/source/build/include/palette.h @@ -37,7 +37,7 @@ extern uint32_t PaletteIndexFullbrights[8]; #define SetPaletteIndexFullbright(col) (PaletteIndexFullbrights[(col)>>5] |= (1u<<((col)&31))) typedef struct { - char r, g, b, f; + uint8_t r, g, b, f; } palette_t; typedef struct { uint8_t r, g, b; diff --git a/source/build/include/pngwrite.h b/source/build/include/pngwrite.h index 7423dd3ed..8620efd78 100644 --- a/source/build/include/pngwrite.h +++ b/source/build/include/pngwrite.h @@ -1,7 +1,7 @@ #ifndef __PNGWRITE_H__ #define __PNGWRITE_H__ -#include "miniz.h" +#include #include "vfs.h" diff --git a/source/build/include/polymost.h b/source/build/include/polymost.h index 4085f2a01..fb2c98a54 100644 --- a/source/build/include/polymost.h +++ b/source/build/include/polymost.h @@ -42,7 +42,7 @@ void uploadpalswap(int32_t palookupnum); void polymost_drawsprite(int32_t snum); void polymost_drawmaskwall(int32_t damaskwallcnt); void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, int32_t cx1, int32_t cy1, int32_t cx2, int32_t cy2, int32_t uniqid); + int8_t dashade, uint8_t dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, int32_t cx1, int32_t cy1, int32_t cx2, int32_t cy2, int32_t uniqid); void polymost_fillpolygon(int32_t npoints); void polymost_initosdfuncs(void); void polymost_drawrooms(void); diff --git a/source/build/include/rawinput.h b/source/build/include/rawinput.h deleted file mode 100644 index 942e1ad8d..000000000 --- a/source/build/include/rawinput.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef rawinput_h_ -#define rawinput_h_ - -#include "compat.h" - -void RI_PollDevices(BOOL loop); -void RI_ProcessMessage(MSG *msg); -BOOL RI_CaptureInput(BOOL grab, HWND target); - -#ifndef VK_LBUTTON -#define VK_LBUTTON 0x01 -#endif -#ifndef VK_RBUTTON -#define VK_RBUTTON 0x02 -#endif -#ifndef VK_CANCEL -#define VK_CANCEL 0x03 -#endif -#ifndef VK_MBUTTON -#define VK_MBUTTON 0x04 /* NOT contiguous with L & RBUTTON */ -#endif - -#endif // rawinput_h_ - diff --git a/source/build/include/sdlappicon.h b/source/build/include/sdlappicon.h index 1922c962a..68bb97bcc 100644 --- a/source/build/include/sdlappicon.h +++ b/source/build/include/sdlappicon.h @@ -1,5 +1,5 @@ struct sdlappicon { - Sint32 width,height; - Uint8 *pixels; + int width,height; + const char *pixels; }; diff --git a/source/build/include/winbits.h b/source/build/include/winbits.h index 65a6734b5..e4c8af38a 100644 --- a/source/build/include/winbits.h +++ b/source/build/include/winbits.h @@ -14,27 +14,12 @@ extern int64_t win_timerfreq; extern char silentvideomodeswitch; -extern BOOL CheckWinVersion(void); -extern void win_allowtaskswitching(int32_t onf); - -#if defined(RENDERTYPEWIN) || SDL_MAJOR_VERSION==1 -extern int32_t win_inittimer(void); -extern uint64_t win_getu64ticks(void); -#endif - extern void win_open(void); extern void win_init(void); extern void win_setvideomode(int32_t c); extern void win_uninit(void); extern void win_close(void); -extern void Win_GetOriginalLayoutName(void); -extern void Win_SetKeyboardLayoutUS(int); - -extern void ShowErrorBox(const char *m); - -extern LPTSTR GetWindowsErrorMsg(DWORD code); - extern int32_t addsearchpath_ProgramFiles(const char *p); extern int32_t win_buildargs(char **argvbuf); \ No newline at end of file diff --git a/source/build/include/windows_inc.h b/source/build/include/windows_inc.h index 7a57ef04b..2cc281ab3 100644 --- a/source/build/include/windows_inc.h +++ b/source/build/include/windows_inc.h @@ -73,7 +73,7 @@ # ifndef CINTERFACE # define CINTERFACE # endif -# include "dx/ddraw.h" +# include # undef NEED_DDRAW_H #endif @@ -83,7 +83,7 @@ # ifndef CINTERFACE # define CINTERFACE # endif -# include "dx/dinput.h" +# include # undef NEED_DINPUT_H # if defined (_MSC_VER) || !defined(__cplusplus) @@ -116,7 +116,7 @@ # ifndef CINTERFACE # define CINTERFACE # endif -# include "dx/dsound.h" +# include # undef NEED_DSOUND_H #endif diff --git a/source/build/src/cache1d.cpp b/source/build/src/cache1d.cpp index 9595bd7ba..74dc88ef7 100644 --- a/source/build/src/cache1d.cpp +++ b/source/build/src/cache1d.cpp @@ -104,7 +104,7 @@ int32_t kpzbufload(char const * const filnam) #if !defined DEBUG_ALLOCACHE_AS_MALLOC static int32_t cachesize = 0; -static char zerochar = 0; +static uint8_t zerochar = 0; static intptr_t cachestart = 0; static int32_t lockrecip[200]; @@ -112,7 +112,7 @@ int32_t cacnum = 0; cactype cac[MAXCACHEOBJECTS]; #endif -char toupperlookup[256] = +uint8_t toupperlookup[256] = { 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, @@ -161,7 +161,7 @@ void cacheInitBuffer(intptr_t dacachestart, int32_t dacachesize) } #ifdef DEBUG_ALLOCACHE_AS_MALLOC -void cacheAllocateBlock(intptr_t *newhandle, int32_t newbytes, char *newlockptr) +void cacheAllocateBlock(intptr_t *newhandle, int32_t newbytes, uint8_t *newlockptr) { UNREFERENCED_PARAMETER(newlockptr); @@ -222,7 +222,7 @@ int32_t cacheFindBlock(int32_t newbytes, int32_t *besto, int32_t *bestz) return bestval; } -void cacheAllocateBlock(intptr_t* newhandle, int32_t newbytes, char* newlockptr) +void cacheAllocateBlock(intptr_t* newhandle, int32_t newbytes, uint8_t* newlockptr) { // Make all requests a multiple of the system page size int const pageSize = Bgetpagesize(); diff --git a/source/build/src/compat.cpp b/source/build/src/compat.cpp index 92513d773..010141c58 100644 --- a/source/build/src/compat.cpp +++ b/source/build/src/compat.cpp @@ -81,46 +81,16 @@ void set_memerr_handler(void(*handlerfunc)(int32_t, const char *, const char *)) char *Bgethomedir(void) { #ifdef _WIN32 - int32_t loaded = 0; - auto hShell32 = GetModuleHandle("shell32.dll"); - if (hShell32 == NULL) + char appdata[MAX_PATH]; + + if (SUCCEEDED(SHGetSpecialFolderPathA(NULL, appdata, CSIDL_APPDATA, FALSE))) { - hShell32 = LoadLibrary("shell32.dll"); - loaded = 1; + return Xstrdup(appdata); } - - if (hShell32 == NULL) - return NULL; - - using SHGSFPA_t = BOOL (WINAPI *)(HWND, LPTSTR, int, BOOL); - auto aSHGetSpecialFolderPathA = (SHGSFPA_t)(void (*)(void))GetProcAddress(hShell32, "SHGetSpecialFolderPathA"); - - if (aSHGetSpecialFolderPathA != NULL) - { - TCHAR appdata[MAX_PATH]; - - if (SUCCEEDED(aSHGetSpecialFolderPathA(NULL, appdata, CSIDL_APPDATA, FALSE))) - { - if (loaded) - FreeLibrary(hShell32); - return Xstrdup(appdata); - } - } - - if (loaded) - FreeLibrary(hShell32); return NULL; #elif defined EDUKE32_OSX return osx_gethomedir(); -#elif defined(GEKKO) - // return current drive's name - char *drv, cwd[BMAX_PATH] = {0}; - buildvfs_getcwd(cwd, BMAX_PATH); - drv = strchr(cwd, ':'); - if (drv) - drv[1] = '\0'; - return Xstrdup(cwd); #else char *e = getenv("HOME"); if (!e) return NULL; @@ -133,9 +103,9 @@ char *Bgetappdir(void) char *dir = NULL; #ifdef _WIN32 - TCHAR appdir[MAX_PATH]; + char appdir[MAX_PATH]; - if (GetModuleFileName(NULL, appdir, MAX_PATH) > 0) { + if (GetModuleFileNameA(NULL, appdir, MAX_PATH) > 0) { // trim off the filename char *slash = Bstrrchr(appdir, '\\'); if (slash) slash[0] = 0; @@ -600,40 +570,18 @@ int Bgetpagesize(void) // // Bgetsysmemsize() -- gets the amount of system memory in the machine // -#ifdef _WIN32 -typedef BOOL (WINAPI *aGlobalMemoryStatusExType)(LPMEMORYSTATUSEX); -#endif uint32_t Bgetsysmemsize(void) { uint32_t siz = UINT32_MAX; #ifdef _WIN32 - HMODULE lib = LoadLibrary("KERNEL32.DLL"); + //WinNT + MEMORYSTATUSEX memst; + memst.dwLength = sizeof(MEMORYSTATUSEX); + if (GlobalMemoryStatusEx(&memst)) + siz = min(UINT32_MAX, memst.ullTotalPhys); - if (lib) - { - aGlobalMemoryStatusExType aGlobalMemoryStatusEx = - (aGlobalMemoryStatusExType)(void (*)(void))GetProcAddress(lib, "GlobalMemoryStatusEx"); - - if (aGlobalMemoryStatusEx) - { - //WinNT - MEMORYSTATUSEX memst; - memst.dwLength = sizeof(MEMORYSTATUSEX); - if (aGlobalMemoryStatusEx(&memst)) - siz = min(UINT32_MAX, memst.ullTotalPhys); - } - - if (!aGlobalMemoryStatusEx || siz == 0) - { - initprintf("Bgetsysmemsize(): error determining system memory size!\n"); - siz = UINT32_MAX; - } - - FreeLibrary(lib); - } - else initprintf("Bgetsysmemsize(): unable to load KERNEL32.DLL!\n"); #elif (defined(_SC_PAGE_SIZE) || defined(_SC_PAGESIZE)) && defined(_SC_PHYS_PAGES) && !defined(GEKKO) #ifdef _SC_PAGE_SIZE int64_t const scpagesiz = sysconf(_SC_PAGE_SIZE); @@ -653,16 +601,3 @@ uint32_t Bgetsysmemsize(void) return siz; } -#ifdef GEKKO -int access(const char *pathname, int mode) -{ - struct stat st; - if (stat(pathname, &st)==-1) - return -1; - - // TODO: Check mode against st_mode - UNREFERENCED_PARAMETER(mode); - - return 0; -} -#endif diff --git a/source/build/src/config.cpp b/source/build/src/config.cpp deleted file mode 100644 index 5f8fdc929..000000000 --- a/source/build/src/config.cpp +++ /dev/null @@ -1,691 +0,0 @@ -// Evil and Nasty Configuration File Reader for KenBuild -// by Jonathon Fowler - -#include "compat.h" -#include "build.h" -#include "editor.h" -#include "osd.h" -#include "cache1d.h" -#include "baselayer.h" -#include "renderlayer.h" - -#include "vfs.h" - -static double clampd(double d, double mind, double maxd) -{ - if (d != d || dmaxd) - d = maxd; - return d; -} - -static int32_t readconfig(buildvfs_FILE fp, const char *key, char *value, uint32_t len) -{ - char buf[1000], *k, *v, *eq; - int32_t x=0; - - if (len < 1) return 0; - - buildvfs_rewind(fp); - - while (1) - { - if (!buildvfs_fgets(buf, 1000, fp)) return 0; - - if (buf[0] == ';') continue; - - eq = Bstrchr(buf, '='); - if (!eq) continue; - - k = buf; - v = eq+1; - - while (*k == ' ' || *k == '\t') k++; - *(eq--) = 0; - while ((*eq == ' ' || *eq == '\t') && eq>=k) *(eq--) = 0; - - if (Bstrcasecmp(k, key)) continue; - - while (*v == ' ' || *v == '\t') v++; - eq = v + Bstrlen(v)-1; - - while ((*eq == ' ' || *eq == '\t' || *eq == '\r' || *eq == '\n') && eq>=v) *(eq--) = 0; - - value[--len] = 0; - do value[x] = v[x]; while (v[x++] != 0 && len-- > 0); - - return x-1; - } -} - -extern int16_t brightness; -extern char default_buildkeys[NUMBUILDKEYS]; -static char *const keys = default_buildkeys; -static int32_t default_grid=9; -extern int32_t AmbienceToggle, MixRate; -extern int32_t ParentalLock; - -/* - * SETUP.DAT - * 0 = video mode (0:chained 1:vesa 2:screen buffered 3/4/5:tseng/paradise/s3 6:red-blue) - * 1 = sound (0:none) - * 2 = music (0:none) - * 3 = input (0:keyboard 1:+mouse) - * 4 = multiplayer (0:single 1-4:com 5-11:ipx) - * 5&0xf0 = com speed - * 5&0x0f = com irq - * 6&0xf0 = chained y-res - * 6&0x0f = chained x-res or vesa mode - * 7&0xf0 = sound samplerate - * 7&0x01 = sound quality - * 7&0x02 = 8/16 bit - * 7&0x04 = mono/stereo - * - * bytes 8 to 26 are key settings: - * 0 = Forward (0xc8) - * 1 = Backward (0xd0) - * 2 = Turn left (0xcb) - * 3 = Turn right (0xcd) - * 4 = Run (0x2a) - * 5 = Strafe (0x9d) - * 6 = Fire (0x1d) - * 7 = Use (0x39) - * 8 = Stand high (0x1e) - * 9 = Stand low (0x2c) - * 10 = Look up (0xd1) - * 11 = Look down (0xc9) - * 12 = Strafe left (0x33) - * 13 = Strafe right (0x34) - * 14 = 2D/3D switch (0x9c) - * 15 = View cycle (0x1c) - * 16 = 2D Zoom in (0xd) - * 17 = 2D Zoom out (0xc) - * 18 = Chat (0xf) - */ - -int32_t loadsetup(const char *fn) -{ - buildvfs_FILE fp; -#define VL 1024 - char val[VL]; - int32_t i; - - if ((fp = buildvfs_fopen_read(fn)) == NULL) return -1; - - if (readconfig(fp, "forcesetup", val, VL) > 0) forcesetup = (atoi_safe(val) != 0); - if (readconfig(fp, "fullscreen", val, VL) > 0) fullscreen = (atoi_safe(val) != 0); - - if (readconfig(fp, "xdim2d", val, VL) > 0) xdim2d = atoi_safe(val); - if (readconfig(fp, "ydim2d", val, VL) > 0) ydim2d = atoi_safe(val); - if (readconfig(fp, "xdim3d", val, VL) > 0) xdimgame = atoi_safe(val); - if (readconfig(fp, "ydim3d", val, VL) > 0) ydimgame = atoi_safe(val); - - if (readconfig(fp, "bpp", val, VL) > 0) bppgame = atoi_safe(val); - - if (readconfig(fp, "editorgridextent", val, VL) > 0) - { - int32_t tmp = atoi_safe(val); - editorgridextent = clamp(tmp, 65536, BXY_MAX); - } - - if (readconfig(fp, "grid", val, VL) > 0) - { - grid = atoi_safe(val); - default_grid = grid; - autogrid = (grid==9); - grid = clamp(grid, 0, 8); - } -#ifdef POLYMER - if (readconfig(fp, "rendmode", val, VL) > 0) { i = atoi_safe(val); glrendmode = i; } -#endif - if (readconfig(fp, "vid_gamma", val, VL) > 0) g_videoGamma = clampd(Bstrtod(val, NULL), 0.0, 10.0); - if (readconfig(fp, "vid_brightness", val, VL) > 0) g_videoBrightness = clampd(Bstrtod(val, NULL), 0.0, 10.0); - if (readconfig(fp, "vid_contrast", val, VL) > 0) g_videoContrast = clampd(Bstrtod(val, NULL), 0.0, 10.0); -#ifdef RENDERTYPEWIN - if (readconfig(fp, "maxrefreshfreq", val, VL) > 0) maxrefreshfreq = atoi_safe(val); -#endif -#ifdef USE_OPENGL - if (readconfig(fp, "lazytileselector", val, VL) > 0) g_lazy_tileselector = !!atoi_safe(val); -#endif - if (readconfig(fp, "gameexecutable", val, VL) > 0) - Bstrcpy(game_executable, val); - -#if 1 - if (readconfig(fp, "keyforward", val, VL) > 0) keys[BK_MOVEFORWARD] = Bstrtol(val, NULL, 16); - if (readconfig(fp, "keybackward", val, VL) > 0) keys[BK_MOVEBACKWARD] = Bstrtol(val, NULL, 16); - if (readconfig(fp, "keyturnleft", val, VL) > 0) keys[BK_TURNLEFT] = Bstrtol(val, NULL, 16); - if (readconfig(fp, "keyturnright", val, VL) > 0) keys[BK_TURNRIGHT] = Bstrtol(val, NULL, 16); - if (readconfig(fp, "keyrun", val, VL) > 0) keys[BK_RUN] = Bstrtol(val, NULL, 16); - if (readconfig(fp, "keystrafe", val, VL) > 0) keys[BK_STRAFE] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "keyfire", val, VL) > 0) keys[BK_SHOOT] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "keyuse", val, VL) > 0) keys[BK_OPEN] = Bstrtol(val, NULL, 16); - if (readconfig(fp, "keystandhigh", val, VL) > 0) keys[BK_MOVEUP] = Bstrtol(val, NULL, 16); - if (readconfig(fp, "keystandlow", val, VL) > 0) keys[BK_MOVEDOWN] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "keylookup", val, VL) > 0) keys[BK_LOOKUP] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "keylookdown", val, VL) > 0) keys[BK_LOOKDOWN] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "keystrafeleft", val, VL) > 0) keys[BK_STRAFELEFT] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "keystraferight", val, VL) > 0) keys[BK_STRAFERIGHT] = Bstrtol(val, NULL, 16); - if (readconfig(fp, "key2dmode", val, VL) > 0) keys[BK_MODE2D_3D] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "keyviewcycle", val, VL) > 0) keys[BK_PLAYERVIEW] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "key2dzoomin", val, VL) > 0) keys[BK_ZOOMIN] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "key2dzoomout", val, VL) > 0) keys[BK_ZOOMOUT] = Bstrtol(val, NULL, 16); -// if (readconfig(fp, "keychat", val, VL) > 0) keys[BK_MESSAGE] = Bstrtol(val, NULL, 16); -#endif - - if (readconfig(fp, "windowpositioning", val, VL) > 0) windowpos = atoi_safe(val); - windowx = -1; - if (readconfig(fp, "windowposx", val, VL) > 0) windowx = atoi_safe(val); - windowy = -1; - if (readconfig(fp, "windowposy", val, VL) > 0) windowy = atoi_safe(val); - - if (readconfig(fp, "keyconsole", val, VL) > 0) - { - keys[BK_CONSOLE] = Bstrtol(val, NULL, 16); - OSD_CaptureKey(keys[BK_CONSOLE]); - } - - if (readconfig(fp, "mousesensitivity", val, VL) > 0) msens = Bstrtod(val, NULL); - - if (readconfig(fp, "mousenavigation", val, VL) > 0) unrealedlook = !!atoi_safe(val); - - if (readconfig(fp, "mousenavigationaccel", val, VL) > 0) pk_uedaccel = atoi_safe(val); - - if (readconfig(fp, "quickmapcycling", val, VL) > 0) quickmapcycling = !!atoi_safe(val); - - if (readconfig(fp, "sideview_reversehorizrot", val, VL) > 0) sideview_reversehrot = !!atoi_safe(val); - if (readconfig(fp, "revertCTRL", val, VL) > 0) revertCTRL = !!atoi_safe(val); - - if (readconfig(fp, "scrollamount", val, VL) > 0) scrollamount = atoi_safe(val); - - if (readconfig(fp, "turnaccel", val, VL) > 0) pk_turnaccel = atoi_safe(val); - - if (readconfig(fp, "turndecel", val, VL) > 0) pk_turndecel = atoi_safe(val); - - if (readconfig(fp, "autosavesec", val, VL) > 0) autosave = max(0, atoi_safe(val)); - if (readconfig(fp, "autocorruptchecksec", val, VL) > 0) autocorruptcheck = max(0, atoi_safe(val)); - if (readconfig(fp, "corruptcheck_noalreadyrefd", val, VL) > 0) - corruptcheck_noalreadyrefd = !!atoi_safe(val); - if (readconfig(fp, "corruptcheck_game_duke3d", val, VL) > 0) - corruptcheck_game_duke3d = !!atoi_safe(val); - if (readconfig(fp, "corruptcheck_heinum", val, VL) > 0) - corruptcheck_heinum = clamp(atoi_safe(val), 0, 2); - if (readconfig(fp, "fixmaponsave_sprites", val, VL) > 0) - fixmaponsave_sprites = !!atoi_safe(val); - if (readconfig(fp, "keeptexturestretch", val, VL) > 0) - keeptexturestretch = !!atoi_safe(val); - - if (readconfig(fp, "showheightindicators", val, VL) > 0) - showheightindicators = clamp(atoi_safe(val), 0, 2); - if (readconfig(fp, "showambiencesounds", val, VL) > 0) - showambiencesounds = clamp(atoi_safe(val), 0, 2); - - if (readconfig(fp, "pathsearchmode", val, VL) > 0) - pathsearchmode = clamp(atoi_safe(val), 0, 1); - - if (readconfig(fp, "pointhighlightdist", val, VL) > 0) - pointhighlightdist = atoi_safe(val); - - if (readconfig(fp, "linehighlightdist", val, VL) > 0) - linehighlightdist = atoi_safe(val); - - if (readconfig(fp, "2d3dmode", val, VL) > 0) - m32_2d3dmode = clamp(atoi_safe(val), 0, 1); - - if (readconfig(fp, "2d3dsize", val, VL) > 0) - m32_2d3dsize = clamp(atoi_safe(val), 3, 5); - - if (readconfig(fp, "2d3d_x", val, VL) > 0) - m32_2d3d.x = clamp(atoi_safe(val), 0, 0xffff); - - if (readconfig(fp, "2d3d_y", val, VL) > 0) - m32_2d3d.y = clamp(atoi_safe(val), 0, 0xffff); - - if (readconfig(fp, "autogray", val, VL) > 0) - autogray = !!atoi_safe(val); -// if (readconfig(fp, "showinnergray", val, VL) > 0) -// showinnergray = !!atoi_safe(val); - - if (readconfig(fp, "graphicsmode", val, VL) > 0) - graphicsmode = clamp(atoi_safe(val), 0, 2); - - if (readconfig(fp, "samplerate", val, VL) > 0) MixRate = clamp(atoi_safe(val), 8000, 48000); - if (readconfig(fp, "ambiencetoggle", val, VL) > 0) AmbienceToggle = !!atoi_safe(val); - if (readconfig(fp, "parlock", val, VL) > 0) ParentalLock = !!atoi_safe(val); - - if (readconfig(fp, "osdtryscript", val, VL) > 0) m32_osd_tryscript = !!atoi_safe(val); - - if (readconfig(fp, "remap", val, VL) > 0) - { - char *p=val; - uint32_t v1,v2; - - while (*p) - { - if (!sscanf(p,"%x",&v1))break; - if ((p=strchr(p,'-'))==0)break; - p++; - if (!sscanf(p,"%x",&v2))break; - g_keyRemapTable[v1]=v2; - initprintf("Remap %X key to %X\n",v1,v2); - if ((p=strchr(p,','))==0)break; - p++; - } - } - - // load m32script history - for (i=0; ihistory.maxlines); i++) - { - DO_FREE_AND_NULL(osd->history.buf[i]); - OSD_SetHistory(i, scripthist[scripthistend-1-i]); - - osd->history.lines++; - osd->history.total++; - } - - scripthistend %= SCRIPTHISTSIZ; - - buildvfs_fclose(fp); - - return 0; -} - -void writesettings(void) // save binds and aliases to _m32_settings.cfg -{ - buildvfs_FILE fp; - char *ptr = Xstrdup(setupfilename); - char tempbuf[128]; - - if (!Bstrcmp(setupfilename, defaultsetupfilename)) - Bsprintf(tempbuf, "m32_settings.cfg"); - else Bsprintf(tempbuf, "%s_m32_settings.cfg", strtok(ptr, ".")); - - fp = buildvfs_fopen_write(tempbuf); - - if (fp) - { - Bfprintf(fp,"// this file is automatically generated by %s\n", AppProperName); - - OSD_WriteAliases(fp); - OSD_WriteCvars(fp); - - buildvfs_fclose(fp); - - if (!Bstrcmp(setupfilename, defaultsetupfilename)) - OSD_Printf("Wrote m32_settings.cfg\n"); - else OSD_Printf("Wrote %s_m32_settings.cfg\n",ptr); - - Xfree(ptr); - return; - } - - if (!Bstrcmp(setupfilename, defaultsetupfilename)) - OSD_Printf("Error writing m32_settings.cfg: %s\n", strerror(errno)); - else OSD_Printf("Error writing %s_m32_settings.cfg: %s\n",ptr,strerror(errno)); - - Xfree(ptr); -} - -int32_t writesetup(const char *fn) -{ - buildvfs_FILE fp; - int32_t i,j,first=1; - - fp = buildvfs_fopen_write(fn); - if (!fp) return -1; - - Bfprintf(fp, - ";; NOTE: key-value pairs ending in a trailing ';;' will NOT be read from this\n" - ";; file, but from m32_settings.cfg, potentially under a different name.\n" - "\n" - "; Always show configuration options on startup\n" - "; 0 - No\n" - "; 1 - Yes\n" - "forcesetup = %d\n" - "\n" - "; Video mode selection\n" - "; 0 - Windowed\n" - "; 1 - Fullscreen\n" - "fullscreen = %d\n" - "\n" - "; Video resolution\n" - "xdim2d = %d\n" - "ydim2d = %d\n" - "xdim3d = %d\n" - "ydim3d = %d\n" - "\n" - "; 3D-mode colour depth\n" - "bpp = %d\n" - "\n" -#ifdef USE_OPENGL - "vsync = %d ;;\n" - "\n" -#endif -#ifdef POLYMER - "; Rendering mode\n" - "rendmode = %d\n" - "\n" -#endif - "; Grid limits\n" - "editorgridextent = %d\n" - "; Startup grid size (0-8, 9 is automatic)\n" - "grid = %d\n" - "\n" -#ifdef USE_OPENGL - ";; OpenGL mode options\n" - "usemodels = %d ;;\n" - "usehightile = %d ;;\n" - "; Enabling lazytileselector allows the tile display to interrupt\n" - "; drawing hightiles so you can quickly browse without waiting\n" - "; for all of them to load. Set to 0 if you experience flickering.\n" - "lazytileselector = %d\n" - "; glusetexcache: 0:no, 1:yes, 2:compressed\n" - "; For best performance, keep this setting in sync with EDuke32\n" - "glusetexcache = %d ;;\n" - "glusememcache = %d ;;\n" - "gltexfiltermode = %d ;;\n" - "glanisotropy = %d ;;\n" - "r_downsize = %d ;;\n" - "r_texcompr = %d ;;\n" - "r_shadescale = %g ;;\n" - "r_usenewshading = %d ;;\n" -# ifdef POLYMER - "r_pr_artmapping = %d ;;\n" -# endif - "\n" -#endif - "; Use new aspect determination code? (classic/Polymost)\n" - "r_usenewaspect = %d ;;\n" -#ifndef RENDERTYPEWIN - "; Screen aspect for fullscreen, in the form WWHH (e.g. 1609 for 16:9).\n" - "; A value of 0 means to assume that the pixel aspect is square.\n" - "r_screenxy = %d ;;\n" -#endif - "\n" - -#ifdef RENDERTYPEWIN - "; Maximum OpenGL mode refresh rate (Windows only, in Hertz)\n" - "maxrefreshfreq = %d\n" - "\n" -#endif - "; Window positioning, 0 = center, 1 = memory\n" - "windowpositioning = %d\n" - "windowposx = %d\n" - "windowposy = %d\n" - "\n" - "; 3D mode brightness setting\n" - "vid_gamma = %g\n" - "vid_brightness = %g\n" - "vid_contrast = %g\n" - "\n" - "; Game executable used for map testing\n" - "gameexecutable = %s\n" - "\n" -#if 0 - "; Sound sample frequency\n" - "; 0 - 6 KHz\n" - "; 1 - 8 KHz\n" - "; 2 - 11.025 KHz\n" - "; 3 - 16 KHz\n" - "; 4 - 22.05 KHz\n" - "; 5 - 32 KHz\n" - "; 6 - 44.1 KHz\n" - "samplerate = %d\n" - "\n" - "; Music playback\n" - "; 0 - Off\n" - "; 1 - On\n" - "music = %d\n" - "\n" -#endif - "; Mouse sensitivity\n" - "mousesensitivity = %g\n" - "\n" - "; Mouse navigation\n" - "; 0 - No\n" - "; 1 - Yes\n" - "mousenavigation = %d\n" - "\n" - "; Mouse navigation acceleration\n" - "mousenavigationaccel = %d\n" - "\n" - "; Quick map cycling (SHIFT)+CTRL+X\n" - "; 0 - No\n" - "; 1 - Yes\n" - "quickmapcycling = %d\n" - "\n" - "; Reverse meaning of Q and W keys in side view mode\n" - "sideview_reversehorizrot = %d\n" - "\n" - "; Revert CTRL for tile selction\n" - "; 0 - WHEEL:scrolling, CTRL+WHEEL:zooming\n" - "; 1 - CTRL+WHEEL:scrolling, WHEEL:zooming\n" - "revertCTRL = %d\n" - "\n" - "; Scroll amount for WHEEL in the tile selection\n" - "scrollamount = %d\n" - "\n" - "; Turning acceleration+declaration\n" - "turnaccel = %d\n" - "\n" - "; Turning deceleration\n" - "turndecel = %d\n" - "\n" - "; Autosave map interval (seconds)\n" - "autosavesec = %d\n" - "\n" - "; Auto corruption check interval (seconds)\n" - "autocorruptchecksec = %d\n" - "\n" - "; Ignore 'already referenced wall' warnings\n" - "corruptcheck_noalreadyrefd = %d\n" - "\n" - "; Flag Duke3D issues\n" - "corruptcheck_game_duke3d = %d\n" - "\n" - "; Auto-correct inconsistent ceilingstat/floorstat bit 2 and .heinum?\n" - "; Set to 2, also warn on 'corruptcheck'.\n" - "corruptcheck_heinum = %d\n" - "\n" - "; Fix sprite sectnums when saving a map or entering 3D mode\n" - "fixmaponsave_sprites = %d\n" - "\n" - "; Keep texture stretching when dragging wall vertices\n" - "keeptexturestretch = %d\n" - "\n" - "; Height indicators (0:none, 1:only 2-sided&different, 2:all)\n" - "showheightindicators = %d\n" - "\n" - "; Ambience sound circles (0:none, 1:only in current sector, 2:all)\n" - "showambiencesounds = %d\n" - "\n" - "; Default filesystem mode\n" - "pathsearchmode = %d\n" - "\n" - "; Experimental 2d/3d hybrid mode\n" - "2d3dmode = %d\n" - "2d3dsize = %d\n" - "2d3d_x = %d\n" - "2d3d_y = %d\n" - "\n" - "; Point and line highlight/selection distances\n" - "pointhighlightdist = %d\n" - "linehighlightdist = %d\n" - "\n" - "; TROR: Automatic grayout of plain (non-extended) sectors,\n" - "; toggled with Ctrl-A:\n" - "autogray = %d\n" -// "; TROR: Show inner gray walls, toggled with Ctrl-Alt-A:\n" -// "showinnergray = %d\n" - "\n" - "; 2D mode display type (0:classic, 1:textured, 2:textured/animated)\n" - "graphicsmode = %d\n" - "\n" - "; Sample rate in Hz\n" - "samplerate = %d\n" - "; Ambient sounds in 3D mode (0:off, 1:on)\n" - "ambiencetoggle = %d\n" - "parlock = %d\n" - "\n" - "; Try executing m32script on invalid command in the OSD? This makes\n" - "; typing m32script commands into the OSD directly possible.\n" - "osdtryscript = %d\n" - "\n" -#if 1 - "; Key Settings\n" - "; Here's a map of all the keyboard scan codes: NOTE: values are listed in hex!\n" - "; +---------------------------------------------------------------------------------------------+\n" - "; | 01 3B 3C 3D 3E 3F 40 41 42 43 44 57 58 46 |\n" - "; |ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 SCROLL |\n" - "; | |\n" - "; |29 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E D2 C7 C9 45 B5 37 4A |\n" - "; | ` '1' '2' '3' '4' '5' '6' '7' '8' '9' '0' - = BACK INS HOME PGUP NUMLK KP/ KP* KP- |\n" - "; | |\n" - "; | 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 2B D3 CF D1 47 48 49 4E |\n" - "; |TAB Q W E R T Y U I O P [ ] \\ DEL END PGDN KP7 KP8 KP9 KP+ |\n" - "; | |\n" - "; | 3A 1E 1F 20 21 22 23 24 25 26 27 28 1C 4B 4C 4D |\n" - "; |CAPS A S D F G H J K L ; ' ENTER KP4 KP5 KP6 9C |\n" - "; | KPENTER|\n" - "; | 2A 2C 2D 2E 2F 30 31 32 33 34 35 36 C8 4F 50 51 |\n" - "; |LSHIFT Z X C V B N M , . / RSHIFT UP KP1 KP2 KP3 |\n" - "; | |\n" - "; | 1D 38 39 B8 9D CB D0 CD 52 53 |\n" - "; |LCTRL LALT SPACE RALT RCTRL LEFT DOWN RIGHT KP0 KP. |\n" - "; +---------------------------------------------------------------------------------------------+\n" - "\n" - "keyforward = %X\n" - "keybackward = %X\n" - "keyturnleft = %X\n" - "keyturnright = %X\n" - "keyrun = %X\n" - "keystrafe = %X\n" -// "keyfire = %X\n" -// "keyuse = %X\n" - "keystandhigh = %X\n" - "keystandlow = %X\n" -// "keylookup = %X\n" -// "keylookdown = %X\n" -// "keystrafeleft = %X\n" -// "keystraferight = %X\n" - "key2dmode = %X\n" -// "keyviewcycle = %X\n" -// "key2dzoomin = %X\n" -// "key2dzoomout = %X\n" -// "keychat = %X\n" -#endif -// "; Console key scancode, in hex\n" - "keyconsole = %X\n" - "\n" - "; This option allows you to remap keys in case some of them are not available\n" - "; (like on a notebook). It has to be a comma-separated list of SOURCE-TARGET\n" - "; scancode values, looked up in the keyboard map above. This also means that\n" - "; the key positions count, not their labels for non-US keyboards.\n" - ";\n" - "; Example:\n" - "; 1. Map the backslash key (0x2B) to KPENTER (9C), since portable devices\n" - "; often don't have the latter\n" - "; 2. make KP0 (0x52) function as KP5 (0x4C), countering the inability to pan\n" - "; using Shift-KP5-KP8/2 in 3D mode\n" - "; remap = 2B-9C,52-4C\n" - "remap = ", - - forcesetup, fullscreen, xdim2d, ydim2d, xdimgame, ydimgame, bppgame, -#ifdef USE_OPENGL - vsync, -#endif -#ifdef POLYMER - glrendmode, -#endif - editorgridextent, clamp(default_grid, 0, 9), -#ifdef USE_OPENGL - usemodels, usehightile, g_lazy_tileselector, - glusetexcache, glusememcache, gltexfiltermode, glanisotropy,r_downsize,glusetexcompr, - shadescale, r_usenewshading, -# ifdef POLYMER - pr_artmapping, -# endif -#endif - r_usenewaspect, -#ifndef RENDERTYPEWIN - r_screenxy, -#else - maxrefreshfreq, -#endif - windowpos, windowx, windowy, - vid_gamma_3d>=0?vid_gamma_3d:g_videoGamma, - vid_brightness_3d>=0?vid_brightness_3d:g_videoBrightness, - vid_contrast_3d>=0?vid_contrast_3d:g_videoContrast, - game_executable, -#if 0 - option[7]>>4, option[2], -#endif - msens, unrealedlook, pk_uedaccel, quickmapcycling, - sideview_reversehrot, - revertCTRL,scrollamount,pk_turnaccel,pk_turndecel,autosave,autocorruptcheck, - corruptcheck_noalreadyrefd, corruptcheck_game_duke3d, - corruptcheck_heinum, fixmaponsave_sprites, keeptexturestretch, - showheightindicators,showambiencesounds,pathsearchmode, - m32_2d3dmode,m32_2d3dsize,m32_2d3d.x, m32_2d3d.y, - pointhighlightdist, linehighlightdist, - autogray, //showinnergray, - graphicsmode, - MixRate,AmbienceToggle,ParentalLock, !!m32_osd_tryscript, - - keys[BK_MOVEFORWARD], - keys[BK_MOVEBACKWARD], - keys[BK_TURNLEFT], - keys[BK_TURNRIGHT], - keys[BK_RUN], - keys[BK_STRAFE], -// keys[BK_SHOOT], -// keys[BK_OPEN], - keys[BK_MOVEUP], - keys[BK_MOVEDOWN], -// keys[BK_LOOKUP], -// keys[BK_LOOKDOWN], -// keys[BK_STRAFELEFT], -// keys[BK_STRAFERIGHT], - keys[BK_MODE2D_3D], -// keys[BK_PLAYERVIEW], -// keys[BK_ZOOMIN], -// keys[BK_ZOOMOUT], -// keys[BK_MESSAGE], - keys[BK_CONSOLE] - ); - - for (i=0; i<256; i++) - if (g_keyRemapTable[i]!=i) - { - Bfprintf(fp,first?"%02X-%02X":",%02X-%02X",i,g_keyRemapTable[i]); - first=0; - } - Bfprintf(fp,"\n\n"); - - // save m32script history - Bfprintf(fp,"; Mapster32-script history\n"); - first = 1; - for (i=scripthistend, j=0; first || i!=scripthistend; i=(i+1)%SCRIPTHISTSIZ, first=0) - { - if (scripthist[i]) - Bfprintf(fp, "hist%d = %s\n", j++, scripthist[i]); - } - - buildvfs_fclose(fp); - - writesettings(); - - return 0; -} diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index db9f1d67b..f3ac84a58 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -15,7 +15,7 @@ #include "colmatch.h" #include "common.h" #include "compat.h" -#include "crc32.h" +#include "crc32_.h" #include "engine_priv.h" #include "lz4.h" #include "osd.h" @@ -117,7 +117,7 @@ int32_t novoxmips = 1; #else # define DISTRECIPSIZ 131072 #endif -static char voxlock[MAXVOXELS][MAXVOXMIPS]; +static uint8_t voxlock[MAXVOXELS][MAXVOXMIPS]; int32_t voxscale[MAXVOXELS]; static int32_t ggxinc[MAXXSIZ+1], ggyinc[MAXXSIZ+1]; @@ -1437,7 +1437,7 @@ typedef struct int32_t sx, sy, z; int16_t a, picnum; int8_t dashade; - char dapalnum, dastat; + uint8_t dapalnum, dastat; uint8_t daalpha, dablend; char pagesleft; int32_t cx1, cy1, cx2, cy2; @@ -6912,7 +6912,7 @@ void dorotspr_handle_bit2(int32_t *sxptr, int32_t *syptr, int32_t *z, int32_t da // //JBF 20031206: Thanks to Ken's hunting, s/(rx1|ry1|rx2|ry2)/n\1/ in this function static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, + int8_t dashade, uint8_t dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, int32_t cx1, int32_t cy1, int32_t cx2, int32_t cy2, int32_t uniqid) { @@ -11994,7 +11994,7 @@ void renderFlushPerms(void) // rotatesprite // void rotatesprite_(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, + int8_t dashade, uint8_t dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, int32_t cx1, int32_t cy1, int32_t cx2, int32_t cy2) { int32_t i; diff --git a/source/build/src/engine_priv.h b/source/build/src/engine_priv.h index 08488a33f..f7a3f39a1 100644 --- a/source/build/src/engine_priv.h +++ b/source/build/src/engine_priv.h @@ -105,7 +105,7 @@ extern int16_t searchbottomwall, searchisbottom; extern char inpreparemirror; -extern char picsiz[MAXTILES]; +extern uint8_t picsiz[MAXTILES]; extern int16_t sectorborder[256]; extern int32_t qsetmode; extern int32_t hitallsprites; diff --git a/source/build/src/glbuild.cpp b/source/build/src/glbuild.cpp index fba41da85..c404c78bd 100644 --- a/source/build/src/glbuild.cpp +++ b/source/build/src/glbuild.cpp @@ -177,106 +177,7 @@ static void *glugetproc_(const char *s, int32_t *err, int32_t fatal) #define GLUGETPROCSOFT(s) glugetproc_(s,&err,0) #endif -int32_t loadglulibrary(const char *driver) -{ -#if defined DYNAMIC_GLU - int32_t err=0; -#if defined _WIN32 - if (hGLUDLL) return 0; -#endif - - if (!driver) - { -#ifdef _WIN32 - driver = "glu32.dll"; -#elif defined __APPLE__ - driver = "/System/Library/Frameworks/OpenGL.framework/OpenGL"; // FIXME: like I know anything about Apple. Hah. -#elif defined __OpenBSD__ - driver = "libGLU.so"; -#else - driver = "libGLU.so.1"; -#endif - } - -#if defined _WIN32 - hGLUDLL = LoadLibrary(driver); - if (!hGLUDLL) -#else - gluhandle = dlopen(driver, RTLD_NOW|RTLD_GLOBAL); - if (!gluhandle) -#endif - { - initprintf("Failed loading \"%s\"\n",driver); - return -1; - } - - glulibrary = Xstrdup(driver); - - bgluTessBeginContour = (bgluTessBeginContourProcPtr) GLUGETPROC("gluTessBeginContour"); - bgluTessBeginPolygon = (bgluTessBeginPolygonProcPtr) GLUGETPROC("gluTessBeginPolygon"); - bgluTessCallback = (bgluTessCallbackProcPtr) GLUGETPROC("gluTessCallback"); - bgluTessEndContour = (bgluTessEndContourProcPtr) GLUGETPROC("gluTessEndContour"); - bgluTessEndPolygon = (bgluTessEndPolygonProcPtr) GLUGETPROC("gluTessEndPolygon"); - bgluTessNormal = (bgluTessNormalProcPtr) GLUGETPROC("gluTessNormal"); - bgluTessProperty = (bgluTessPropertyProcPtr) GLUGETPROC("gluTessProperty"); - bgluTessVertex = (bgluTessVertexProcPtr) GLUGETPROC("gluTessVertex"); - bgluNewTess = (bgluNewTessProcPtr) GLUGETPROC("gluNewTess"); - bgluDeleteTess = (bgluDeleteTessProcPtr) GLUGETPROC("gluDeleteTess"); - - bgluPerspective = (bgluPerspectiveProcPtr) GLUGETPROC("gluPerspective"); - - bgluErrorString = (bgluErrorStringProcPtr) GLUGETPROC("gluErrorString"); - - bgluProject = (bgluProjectProcPtr) GLUGETPROC("gluProject"); - bgluUnProject = (bgluUnProjectProcPtr) GLUGETPROC("gluUnProject"); - - //if (err) unloadglulibrary(); - return err; -#else - UNREFERENCED_PARAMETER(driver); - return 0; -#endif -} - -int32_t unloadglulibrary(void) -{ -#if defined DYNAMIC_GLU -#if defined _WIN32 - if (!hGLUDLL) return 0; -#endif - - DO_FREE_AND_NULL(glulibrary); - -#if defined _WIN32 - FreeLibrary(hGLUDLL); - hGLUDLL = NULL; -#else - if (gluhandle) dlclose(gluhandle); - gluhandle = NULL; -#endif - - bgluTessBeginContour = (bgluTessBeginContourProcPtr) NULL; - bgluTessBeginPolygon = (bgluTessBeginPolygonProcPtr) NULL; - bgluTessCallback = (bgluTessCallbackProcPtr) NULL; - bgluTessEndContour = (bgluTessEndContourProcPtr) NULL; - bgluTessEndPolygon = (bgluTessEndPolygonProcPtr) NULL; - bgluTessNormal = (bgluTessNormalProcPtr) NULL; - bgluTessProperty = (bgluTessPropertyProcPtr) NULL; - bgluTessVertex = (bgluTessVertexProcPtr) NULL; - bgluNewTess = (bgluNewTessProcPtr) NULL; - bgluDeleteTess = (bgluDeleteTessProcPtr) NULL; - - bgluPerspective = (bgluPerspectiveProcPtr) NULL; - - bgluErrorString = (bgluErrorStringProcPtr) NULL; - - bgluProject = (bgluProjectProcPtr) NULL; - bgluUnProject = (bgluUnProjectProcPtr) NULL; -#endif - - return 0; -} //////// glGenTextures/glDeleteTextures debugging //////// diff --git a/source/build/src/kplib.cpp b/source/build/src/kplib.cpp index 6216d6ff7..67cd9c46a 100644 --- a/source/build/src/kplib.cpp +++ b/source/build/src/kplib.cpp @@ -2450,7 +2450,7 @@ intptr_t kzopen(const char *filnam) #if defined(_WIN32) static HANDLE hfind = INVALID_HANDLE_VALUE; -static WIN32_FIND_DATA findata; +static WIN32_FIND_DATAA findata; #else #include #define MAX_PATH 260 @@ -2502,7 +2502,7 @@ int32_t kzfindfile(char *filnam) Bmemcpy(filnam,newildst,wildstpathleng); #if defined(_WIN32) - hfind = FindFirstFile(newildst,&findata); + hfind = FindFirstFileA(newildst,&findata); if (hfind == INVALID_HANDLE_VALUE) { if (!kzhashbuf) return 0; srchstat = 2; continue; } if (findata.dwFileAttributes&FILE_ATTRIBUTE_HIDDEN) continue; @@ -2535,7 +2535,7 @@ int32_t kzfindfile(char *filnam) { Bmemcpy(filnam,newildst,wildstpathleng); #if defined(_WIN32) - if (!FindNextFile(hfind,&findata)) + if (!FindNextFileA(hfind,&findata)) { FindClose(hfind); hfind = INVALID_HANDLE_VALUE; if (!kzhashbuf) return 0; srchstat = 2; break; } if (findata.dwFileAttributes&FILE_ATTRIBUTE_HIDDEN) continue; i = wildstpathleng; diff --git a/source/build/src/lunatic.cpp b/source/build/src/lunatic.cpp deleted file mode 100644 index d3c44508b..000000000 --- a/source/build/src/lunatic.cpp +++ /dev/null @@ -1,252 +0,0 @@ -/* The Lunatic Interpreter, part of EDuke32. Common, engine-side stuff. */ - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef USE_LUAJIT_2_1 -# include -# include -# include -#else -# include -# include -# include -#endif - -#ifdef __cplusplus -} -#endif - -#include "build.h" -#include "cache1d.h" -#include "osd.h" - -#include "lunatic.h" - -#include "vfs.h" - - -////////// HELPER FUNCTIONS ////////// - -// Lua-registry key for debug.traceback -static uint8_t debug_traceback_key; - -void L_CheckAndRegisterFunction(lua_State *L, void *regkeyaddr) -{ - luaL_checktype(L, -1, LUA_TFUNCTION); - - lua_pushlightuserdata(L, regkeyaddr); // 3, push address - lua_pushvalue(L, -2); // 4, push copy of lua function - - lua_settable(L, LUA_REGISTRYINDEX); // "registry[regkeyaddr] = ", pop 2 -} - -static void L_SetupDebugTraceback(lua_State *L) -{ - // get debug.traceback - lua_getglobal(L, "debug"); - lua_getfield(L, -1, "traceback"); - Bassert(lua_isfunction(L, -1)); - L_CheckAndRegisterFunction(L, &debug_traceback_key); - lua_pop(L, 2); -} - -void L_PushDebugTraceback(lua_State *L) -{ - // get debug.traceback - lua_pushlightuserdata(L, &debug_traceback_key); - lua_gettable(L, LUA_REGISTRYINDEX); - Bassert(lua_isfunction(L, -1)); -} - - -static int32_t read_whole_file(const char *fn, char **retbufptr) -{ - int32_t flen, i; - char *buf; - - *retbufptr = NULL; - - buildvfs_kfd fid = kopen4load(fn, 0); // TODO: g_loadFromGroupOnly, kopen4loadfrommod ? - - if (fid == buildvfs_kfd_invalid) - return 1; - - flen = kfilelength(fid); - if (flen == 0) - { - kclose(fid); - return 5; - } - - buf = (char *)Xmalloc(flen+1); - - i = kread(fid, buf, flen); - kclose(fid); - - if (i != flen) - { - Xfree(buf); - return 2; - } - - buf[flen] = 0; - *retbufptr = buf; - - return 0; -} - - -////////// EXTERNAL FUNCTIONS ////////// - -// 0: success, <0: failure -int L_CreateState(L_State *estate, const char *name, void (*StateSetupFunc)(lua_State *)) -{ - lua_State *L; - - estate->name = Xstrdup(name); - - L = estate->L = luaL_newstate(); - - if (!estate->L) - { - DO_FREE_AND_NULL(estate->name); - return -2; - } - - luaL_openlibs(L); - L_SetupDebugTraceback(L); - if (StateSetupFunc) - StateSetupFunc(L); - - if (lua_gettop(L)==0) - L_PushDebugTraceback(L); - // Otherwise, it is assumed that StateSetupFunc pushed a custom traceback - // function onto the stack. - - Bassert(lua_gettop(L)==1); - - return 0; -} - -void L_DestroyState(L_State *estate) -{ - if (!L_IsInitialized(estate)) - return; - - DO_FREE_AND_NULL(estate->name); - - lua_close(estate->L); - estate->L = NULL; -} - -static void L_OnOutOfMem(void) -{ - OSD_Printf("Out of memory in Lunatic.\n"); - engineUnInit(); - exit(127); -} - -void (*L_ErrorFunc)(const char *) = NULL; -void (*L_OutOfMemFunc)(void) = L_OnOutOfMem; - -int L_HandleError(lua_State *L, int errcode, void (*ErrorPrintFunc)(const char *)) -{ - if (errcode == LUA_ERRMEM) - L_OutOfMemFunc(); - - if (errcode == LUA_ERRRUN || errcode == LUA_ERRERR) - { - if (lua_isboolean(L, -1)) - { - int32_t killit = lua_toboolean(L, -1); - lua_pop(L, 1); - return killit; - } - else - { - const char *errstr = (lua_type(L, -1)==LUA_TSTRING) ? - lua_tostring(L, -1) : "??? (error message not a string)"; - - ErrorPrintFunc(errstr); - if (L_ErrorFunc) - L_ErrorFunc(errstr); - lua_pop(L, 1); - return -1; - } - } - - /* unreachable */ -#ifndef NDEBUG - Bassert(0); -#endif - - return 0; -} - -static void L_ErrorPrint(const char *errmsg) -{ - OSD_Printf(OSD_ERROR "runtime error: %s\n", errmsg); -} - -// size < 0: length of is determined using strlen() -// size >= 0: size given, for loading of LuaJIT bytecode -int L_RunString(L_State *estate, char const *buf, int size, const char *name) -{ - int32_t i; - lua_State *L = estate->L; - - // -- lua -- - Bassert(lua_gettop(L)==1); - // on top: a traceback function - Bassert(lua_iscfunction(L, 1)); - - if (size < 0) - i = luaL_loadstring(L, buf); - else - i = luaL_loadbuffer(L, buf, size, name); - Bassert(lua_gettop(L)==2); - - if (i == LUA_ERRMEM) - L_OutOfMemFunc(); - - if (i == LUA_ERRSYNTAX) - { - OSD_Printf(OSD_ERROR "state \"%s\" syntax error: %s\n", estate->name, - lua_tostring(L, -1)); // get err msg - lua_pop(L, 1); // pop errmsg - return 3; - } - - // call the lua chunk! - i = lua_pcall(L, 0, 0, 1); - Bassert(lua_gettop(L) == 1 + (i!=0)); - - if (i != 0) - L_HandleError(L, i, &L_ErrorPrint); - - Bassert(lua_gettop(L)==1); - - return i ? 4 : 0; -} - -// -1: alloc failure -// 0: success -// 1: didn't find file -// 2: couldn't read whole file -// 3: syntax error in lua file -// 4: runtime error while executing lua file -// 5: empty file -int L_RunOnce(L_State *estate, const char *fn) -{ - char *buf; - int32_t i = read_whole_file(fn, &buf); - - if (i != 0) - return i; - - int const retval = L_RunString(estate, buf, -1, fn); - Xfree(buf); - return retval; -} diff --git a/source/build/src/osd.cpp b/source/build/src/osd.cpp index 232291301..18e2dd3b7 100644 --- a/source/build/src/osd.cpp +++ b/source/build/src/osd.cpp @@ -4,7 +4,7 @@ #include "build.h" #include "cache1d.h" -#include "crc32.h" +#include "crc32_.h" #include "compat.h" #include "baselayer.h" #include "osd.h" diff --git a/source/build/src/pngwrite.cpp b/source/build/src/pngwrite.cpp index b10f7dfcb..a91c37afe 100644 --- a/source/build/src/pngwrite.cpp +++ b/source/build/src/pngwrite.cpp @@ -1,6 +1,6 @@ #include "compat.h" #include "pngwrite.h" -#include "crc32.h" +#include "crc32_.h" #include "vfs.h" @@ -17,13 +17,13 @@ static FORCE_INLINE void png_write_uint32(uint32_t const in) static void png_write_chunk(uint32_t const size, char const *const type, uint8_t const *const data, uint32_t flags) { - mz_ulong chunk_size = (flags & CHUNK_COMPRESSED) ? compressBound(size) : size; + uLongf chunk_size = (flags & CHUNK_COMPRESSED) ? compressBound(size) : size; uint8_t * const chunk = (uint8_t *) Xcalloc(1, 4 + chunk_size); Bmemcpy(chunk, type, 4); if (flags & CHUNK_COMPRESSED) - compress(chunk + 4, (mz_ulong *) &chunk_size, data, size); + compress(chunk + 4, (uLongf *) &chunk_size, data, size); else Bmemcpy(chunk + 4, data, size); diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 00e5ab1aa..64fda1a25 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -6784,7 +6784,7 @@ EDUKE32_STATIC_ASSERT((int)RS_YFLIP == (int)HUDFLAG_FLIPPED); //cx1,... clip window (actual screen coords) void polymost_dorotatespritemodel(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, int32_t uniqid) + int8_t dashade, uint8_t dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, int32_t uniqid) { float d, cosang, sinang, cosang2, sinang2; float m[4][4]; @@ -7022,7 +7022,7 @@ void polymost_dorotatespritemodel(int32_t sx, int32_t sy, int32_t z, int16_t a, } void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, - int8_t dashade, char dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, + int8_t dashade, uint8_t dapalnum, int32_t dastat, uint8_t daalpha, uint8_t dablend, int32_t cx1, int32_t cy1, int32_t cx2, int32_t cy2, int32_t uniqid) { if (usemodels && tile2model[picnum].hudmem[(dastat&4)>>2]) diff --git a/source/build/src/rawinput.cpp b/source/build/src/rawinput.cpp deleted file mode 100644 index e83e03b64..000000000 --- a/source/build/src/rawinput.cpp +++ /dev/null @@ -1,315 +0,0 @@ - -#include "windows_inc.h" - -#include "compat.h" -#include "rawinput.h" -#include "winlayer.h" -#include "scancodes.h" -#include "build.h" - -static BOOL rawinput_started = 0; -static uint8_t KeyboardState[256] = {0}; // VKeys - -extern bool g_mouseEnabled, g_mouseGrabbed; -extern void keySetState(int32_t key, int32_t state); - -//#define MASK_DOWN (1<<(i<<1)) -//#define MASK_UP (MASK_DOWN<<1) -#ifndef GET_RAWINPUT_CODE_WPARAM -#define GET_RAWINPUT_CODE_WPARAM(wParam) ((wParam) & 0xff) -#endif - -static inline void RI_ProcessMouse(const RAWMOUSE *rmouse) -{ - int32_t i, mask; - int8_t MWheel = 0; - - if (!g_mouseGrabbed || !appactive) - return; - - g_mousePos.x += rmouse->lLastX; - g_mousePos.y += rmouse->lLastY; - - if (rmouse->usFlags & MOUSE_MOVE_ABSOLUTE) - { - // untested... maybe devices like wacom tablets set this flag? - POINT pos = { xdim>>1, ydim>>1 }; - - ClientToScreen((HWND)win_gethwnd(), &pos); - - g_mousePos.x -= pos.x; - g_mousePos.y -= pos.y; - } - - for (i = 0, mask = (1<<0); mask <= (1<<8); i++, mask<<=2) - { - // usButtonFlags: - // 1<<0: left down -> 1 / 1<<0 - // 1<<2: middle down -> 2 / 1<<1 - // 1<<4: right down -> 3 / 1<<2 - // 1<<6: x1 down -> 4 / 1<<3 - // ----------- mwheel here - // 1<<8: x2 down -> 7 / 1<<6 - - if (mask == 1<<8) - i = 6; - - if (rmouse->usButtonFlags & mask) // button down - { - if (g_mouseCallback) - g_mouseCallback(i+1, 1); - g_mouseBits |= 1<usButtonFlags & (mask<<1)) // button up - { - if (g_mouseCallback) - g_mouseCallback(i+1, 0); - g_mouseBits &= ~(1<usButtonFlags & RI_MOUSE_WHEEL) ? rmouse->usButtonData : 0; - - if (MWheel > 0) // wheel up - { - g_mouseBits |= 16; - if (g_mouseCallback) g_mouseCallback(5, 1); - } - else if (MWheel < 0) // wheel down - { - g_mouseBits |= 32; - if (g_mouseCallback) g_mouseCallback(6, 1); - } -} - -static inline void RI_ProcessKeyboard(const RAWKEYBOARD *rkbd) -{ - uint8_t key = rkbd->MakeCode, VKey = rkbd->VKey; - - // for some reason rkbd->MakeCode is wrong for these - // even though rkbd->VKey is right... - - switch (VKey) - { - case VK_SHIFT: - if (rkbd->Flags & RI_KEY_E0) - VKey = VK_RSHIFT, key = sc_RightShift; - break; - case VK_CONTROL: - if (rkbd->Flags & RI_KEY_E0) - VKey = VK_RCONTROL, key = sc_RightControl; - break; - case VK_MENU: - if (rkbd->Flags & RI_KEY_E0) - VKey = VK_RMENU, key = sc_RightAlt; - break; - case VK_UP: - case VK_NUMPAD8: - if (rkbd->Flags & RI_KEY_E0) - VKey = VK_UP, key = sc_UpArrow; - else - VKey = VK_NUMPAD8, key = sc_kpad_8; - break; - case VK_DOWN: - case VK_NUMPAD2: - if (rkbd->Flags & RI_KEY_E0) - VKey = VK_DOWN, key = sc_DownArrow; - else - VKey = VK_NUMPAD2, key = sc_kpad_2; - break; - case VK_LEFT: - case VK_NUMPAD4: - if (rkbd->Flags & RI_KEY_E0) - VKey = VK_LEFT, key = sc_LeftArrow; - else - VKey = VK_NUMPAD4, key = sc_kpad_4; - break; - case VK_RIGHT: - case VK_NUMPAD6: - if (rkbd->Flags & RI_KEY_E0) - VKey = VK_RIGHT, key = sc_RightArrow; - else - VKey = VK_NUMPAD6, key = sc_kpad_6; - break; - case VK_DIVIDE: -#if 0 - if (rkbd->Flags & RI_KEY_E0) - key = sc_Slash; - else -#endif - key = sc_kpad_Slash; - break; - case VK_INSERT: - key = sc_Insert; - break; - case VK_HOME: - key = sc_Home; - break; - case VK_DELETE: - key = sc_Delete; - break; - case VK_END: - key = sc_End; - break; - case VK_PRIOR: - key = sc_PgUp; - break; - case VK_NEXT: - key = sc_PgDn; - break; - case VK_RETURN: - if (rkbd->Flags & RI_KEY_E0) - key = sc_kpad_Enter; - break; - case VK_PAUSE: - KeyboardState[VKey] = 1 - (rkbd->Flags & RI_KEY_BREAK); - if (rkbd->Flags & RI_KEY_BREAK) - return; - - keySetState(sc_Pause, 1); - - if (keypresscallback) - keypresscallback(sc_Pause, 1); - case 0xFF: - return; - } - - KeyboardState[VKey] = 1 - (rkbd->Flags & RI_KEY_BREAK); - - if (OSD_HandleScanCode(key, KeyboardState[VKey] > 0)) - { - keySetState(key, KeyboardState[VKey] != 0); - - if (keypresscallback) - keypresscallback(key, KeyboardState[VKey] != 0); - } - - if (rkbd->Flags & RI_KEY_BREAK) return; - if (((g_keyAsciiEnd+1)&(KEYFIFOSIZ-1)) == g_keyAsciiPos) return; - if ((g_keyAsciiEnd - g_keyAsciiPos) > 0) return; - - { - uint8_t buf[2]; - - if (ToAscii(VKey, key, &KeyboardState[0], (LPWORD)&buf[0], 0) != 1) return; - if ((OSD_OSDKey() < 128) && (Btolower(g_keyAsciiTable[OSD_OSDKey()]) == Btolower(buf[0]))) return; - if (OSD_HandleChar(buf[0]) == 0) return; - - g_keyAsciiFIFO[g_keyAsciiEnd] = buf[0]; - g_keyAsciiEnd = ((g_keyAsciiEnd+1)&(KEYFIFOSIZ-1)); - } -} - -// keyboard is always captured regardless of what we tell this function -BOOL RI_CaptureInput(BOOL grab, HWND target) -{ - RAWINPUTDEVICE raw[2]; - - raw[0].usUsagePage = 0x01; - raw[0].usUsage = 0x02; - raw[0].dwFlags = grab ? (RIDEV_NOLEGACY | RIDEV_CAPTUREMOUSE) : 0; - raw[0].hwndTarget = grab ? target : NULL; - - raw[1].usUsagePage = 0x01; - raw[1].usUsage = 0x06; - raw[1].dwFlags = 0; - raw[1].hwndTarget = target; - - g_mouseGrabbed = grab; - - return (RegisterRawInputDevices(raw, 2, sizeof(raw[0])) == FALSE); -} - -void RI_ProcessMessage(MSG *msg) -{ - if (GET_RAWINPUT_CODE_WPARAM(msg->wParam) == RIM_INPUT) - { - UINT dwSize = sizeof(RAWINPUT); - RAWINPUT raw; - - GetRawInputData((HRAWINPUT)msg->lParam, RID_INPUT, &raw, &dwSize, sizeof(RAWINPUTHEADER)); - - if (raw.header.dwType == RIM_TYPEKEYBOARD) - RI_ProcessKeyboard(&raw.data.keyboard); - else if (raw.header.dwType == RIM_TYPEMOUSE) - RI_ProcessMouse(&raw.data.mouse); - } - - DefWindowProc(msg->hwnd, msg->message, msg->wParam, msg->lParam); -} - -void RI_PollDevices(BOOL loop) -{ - int32_t i; - MSG msg; - - if (!rawinput_started) - { - if (RI_CaptureInput(1, (HWND)win_gethwnd())) - return; - rawinput_started = 1; - } - - if (inputchecked) - { - if (g_mouseCallback) - { - if (g_mouseBits & 16) - g_mouseCallback(5, 0); - if (g_mouseBits & 32) - g_mouseCallback(6, 0); - } - g_mouseBits &= ~(16|32); - } - - // snapshot the whole keyboard state so we can translate key presses into ascii later - for (i = 0; i < 256; i++) - KeyboardState[i] = GetAsyncKeyState(i) >> 8; - - while (loop && PeekMessage(&msg, 0, WM_INPUT, WM_INPUT, PM_REMOVE | PM_QS_INPUT)) - RI_ProcessMessage(&msg); - - if (g_mouseGrabbed && appactive) - { - // center the cursor in the window - POINT pt = { xdim>>1, ydim>>1 }; - - ClientToScreen((HWND)win_gethwnd(), &pt); - SetCursorPos(pt.x, pt.y); - } -} - -void mouseInit(void) -{ - if (!g_mouseEnabled) - mouseGrabInput(g_mouseEnabled = g_mouseLockedToWindow); -} - -void mouseUninit(void) -{ - if (!g_mouseEnabled) return; - mouseGrabInput(g_mouseEnabled = 0); -} - -void mouseGrabInput(bool grab) -{ - static POINT pos; - static int32_t d = 0; - - if (!g_mouseEnabled) return; - - if (!g_mouseGrabbed || !d) - { - GetCursorPos(&pos); - d++; - } - - ShowCursor(grab == 0); - RI_CaptureInput(grab, (HWND)win_gethwnd()); - SetCursorPos(pos.x, pos.y); -} - -void mouseLockToWindow(char a) -{ - UNREFERENCED_PARAMETER(a); -} diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index 97542e8c0..a61ff4a10 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -2,7 +2,7 @@ // Use SDL 1.2 or 2.0 from http://www.libsdl.org #include -#include > +#include #include #include "a.h" @@ -158,7 +158,7 @@ int32_t wm_msgbox(const char *name, const char *fmt, ...) #if defined EDUKE32_OSX return osx_msgbox(name, buf); #elif defined _WIN32 - MessageBox(win_gethwnd(),buf,name,MB_OK|MB_TASKMODAL); + MessageBoxA(win_gethwnd(),buf,name,MB_OK|MB_TASKMODAL); return 0; #elif defined EDUKE32_TOUCH_DEVICES initprintf("wm_msgbox called. Message: %s: %s",name,buf); @@ -204,7 +204,7 @@ int32_t wm_ynbox(const char *name, const char *fmt, ...) #if defined EDUKE32_OSX return osx_ynbox(name, buf); #elif defined _WIN32 - return (MessageBox(win_gethwnd(),buf,name,MB_YESNO|MB_ICONQUESTION|MB_TASKMODAL) == IDYES); + return (MessageBoxA(win_gethwnd(),buf,name,MB_YESNO|MB_ICONQUESTION|MB_TASKMODAL) == IDYES); #elif defined EDUKE32_TOUCH_DEVICES initprintf("wm_ynbox called, this is bad! Message: %s: %s",name,buf); initprintf("Returning false.."); @@ -348,6 +348,14 @@ namespace Duke { extern GameInterface Interface; } +namespace Redneck +{ + extern GameInterface Interface; +} +namespace Blood +{ + extern GameInterface Interface; +} void ChooseGame() { @@ -379,13 +387,15 @@ void ChooseGame() //API call succeeded, now , check return values if (nResult == 1000) { - //gi = &Duke::Interface; + gi = &Duke::Interface; } else if (nResult == 1001) { + gi = &Redneck::Interface; } else if (nResult == 1002) { + gi = &Blood::Interface; } } if (gi == nullptr) exit(1); @@ -437,11 +447,6 @@ int main(int argc, char *argv[]) win_open(); - if (!CheckWinVersion()) - { - MessageBox(0, "This application requires a newer Windows version to run.", apptitle, MB_OK | MB_ICONSTOP); - return -1; - } #elif defined(HAVE_GTK2) // Pre-initialize SDL video system in order to make sure XInitThreads() is called // before GTK starts talking to X11. @@ -613,13 +618,6 @@ int32_t initsystem(void) initprintf("Failed loading OpenGL Driver. GL modes will be unavailable. Error: %s\n", SDL_GetError()); nogl = 1; } -#ifdef POLYMER - if (loadglulibrary(getenv("BUILD_GLULIB"))) - { - initprintf("Failed loading GLU. GL modes will be unavailable. Error: %s\n", SDL_GetError()); - nogl = 1; - } -#endif #endif #ifndef _WIN32 @@ -660,9 +658,6 @@ void uninitsystem(void) # if SDL_MAJOR_VERSION!=1 SDL_GL_UnloadLibrary(); # endif -# ifdef POLYMER - unloadglulibrary(); -# endif #endif } @@ -910,10 +905,6 @@ int32_t initinput(void) { int32_t i; -#ifdef _WIN32 - Win_GetOriginalLayoutName(); - Win_SetKeyboardLayoutUS(1); -#endif #if defined EDUKE32_OSX // force OS X to operate in >1 button mouse mode so that LMB isn't adulterated @@ -1845,7 +1836,7 @@ int32_t videoSetGamma(void) } #if !defined __APPLE__ && !defined EDUKE32_TOUCH_DEVICES -extern "C" struct sdlappicon sdlappicon; +extern struct sdlappicon sdlappicon; static inline SDL_Surface *loadappicon(void) { SDL_Surface *surf = SDL_CreateRGBSurfaceFrom((void *)sdlappicon.pixels, sdlappicon.width, sdlappicon.height, 32, @@ -2220,8 +2211,6 @@ int32_t handleevents_pollsdl(void) if (g_mouseGrabbed && g_mouseEnabled) grabmouse_low(appactive); #ifdef _WIN32 - // Win_SetKeyboardLayoutUS(appactive); - if (backgroundidle) SetPriorityClass(GetCurrentProcess(), appactive ? NORMAL_PRIORITY_CLASS : IDLE_PRIORITY_CLASS); #endif @@ -2287,3 +2276,5 @@ int32_t handleevents(void) return rv; } + +auto vsnprintfptr = vsnprintf; // This is an inline in Visual Studio but we need an address for it to satisfy the MinGW compiled libraries. diff --git a/source/build/src/sdlkeytrans.cpp b/source/build/src/sdlkeytrans.cpp index 6e736b53c..19fa8ca50 100644 --- a/source/build/src/sdlkeytrans.cpp +++ b/source/build/src/sdlkeytrans.cpp @@ -1,8 +1,8 @@ #if (SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION < 3) -static char keytranslation[SDLK_LAST]; +static uint8_t keytranslation[SDLK_LAST]; #else -static char keytranslation[SDL_NUM_SCANCODES]; +static uint8_t keytranslation[SDL_NUM_SCANCODES]; #endif static int32_t buildkeytranslationtable(void); diff --git a/source/build/src/startosx.editor.mm b/source/build/src/startosx.editor.mm deleted file mode 100644 index 4d10bb0cc..000000000 --- a/source/build/src/startosx.editor.mm +++ /dev/null @@ -1,707 +0,0 @@ - -#import - -#include "compat.h" -#include "baselayer.h" -#include "build.h" -#include "editor.h" - -#ifndef MAC_OS_X_VERSION_10_5 -# define NSImageScaleNone NSScaleNone -#endif - -#ifndef MAC_OS_X_VERSION_10_12 -# define NSEventModifierFlagOption NSAlternateKeyMask -# define NSEventModifierFlagCommand NSCommandKeyMask -# define NSEventMaskAny NSAnyEventMask -# define NSWindowStyleMaskTitled NSTitledWindowMask -# define NSWindowStyleMaskClosable NSClosableWindowMask -# define NSWindowStyleMaskMiniaturizable NSMiniaturizableWindowMask -# define NSWindowStyleMaskResizable NSResizableWindowMask -# define NSAlertStyleInformational NSInformationalAlertStyle -# define NSControlSizeSmall NSSmallControlSize -#endif - -#ifndef MAC_OS_X_VERSION_10_14 -# define NSButtonTypeSwitch NSSwitchButton -# define NSBezelStyleRounded NSRoundedBezelStyle -# define NSControlStateValueOn NSOnState -# define NSControlStateValueOff NSOffState -#endif - -static NSRect NSRectChangeXY(NSRect const rect, CGFloat const x, CGFloat const y) -{ - return NSMakeRect(x, y, rect.size.width, rect.size.height); -} -static NSRect NSSizeAddXY(NSSize const size, CGFloat const x, CGFloat const y) -{ - return NSMakeRect(x, y, size.width, size.height); -} -#if 0 -static CGFloat NSRightEdge(NSRect rect) -{ - return rect.origin.x + rect.size.width; -} -static CGFloat NSTopEdge(NSRect rect) -{ - return rect.origin.y + rect.size.height; -} -#endif - -static void setFontToSmall(id control) -{ - [control setFont:[NSFont fontWithDescriptor:[[control font] fontDescriptor] size:[NSFont smallSystemFontSize]]]; -} - -static void setControlToSmall(id control) -{ - [control setControlSize:NSControlSizeSmall]; -} - -static NSTextField * makeLabel(NSString * labelText) -{ - NSTextField *textField = [[NSTextField alloc] init]; - setFontToSmall(textField); - setControlToSmall([textField cell]); - [textField setStringValue:labelText]; - [textField setBezeled:NO]; - [textField setDrawsBackground:NO]; - [textField setEditable:NO]; - [textField setSelectable:NO]; - [textField sizeToFit]; - return textField; -} - -static NSButton * makeCheckbox(NSString * labelText) -{ - NSButton *checkbox = [[NSButton alloc] init]; - setFontToSmall(checkbox); - setControlToSmall([checkbox cell]); - [checkbox setTitle:labelText]; - [checkbox setButtonType:NSButtonTypeSwitch]; - [checkbox sizeToFit]; - return checkbox; -} - -static NSPopUpButton * makeComboBox(void) -{ - NSPopUpButton *comboBox = [[NSPopUpButton alloc] init]; - [comboBox setPullsDown:NO]; - setFontToSmall(comboBox); - setControlToSmall([comboBox cell]); - [comboBox setBezelStyle:NSBezelStyleRounded]; - [comboBox setPreferredEdge:NSMaxYEdge]; - [[comboBox cell] setArrowPosition:NSPopUpArrowAtCenter]; - [comboBox sizeToFit]; - return comboBox; -} - -static id nsapp; - -/* setAppleMenu disappeared from the headers in 10.4 */ -@interface NSApplication(NSAppleMenu) -- (void)setAppleMenu:(NSMenu *)menu; -@end - -static NSString * GetApplicationName(void) -{ - NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]; - if (!appName) - appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"]; - if (![appName length]) - appName = [[NSProcessInfo processInfo] processName]; - - return appName; -} - -static void CreateApplicationMenus(void) -{ - NSString *appName; - NSString *title; - NSMenu *rootMenu; - NSMenu *serviceMenu; - NSMenuItem *menuItem; - - NSMenu *mainMenu = [[NSMenu alloc] init]; - - /* Create the application menu */ - appName = GetApplicationName(); - rootMenu = [[NSMenu alloc] init]; - - /* Put menu into the menubar */ - menuItem = [[NSMenuItem alloc] initWithTitle:@"" action:nil keyEquivalent:@""]; - [menuItem setSubmenu:rootMenu]; - [mainMenu addItem:menuItem]; - [menuItem release]; - - /* Add menu items */ - title = [@"About " stringByAppendingString:appName]; - [rootMenu addItemWithTitle:title action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""]; - - [rootMenu addItem:[NSMenuItem separatorItem]]; - - serviceMenu = [[NSMenu alloc] init]; - menuItem = (NSMenuItem *)[rootMenu addItemWithTitle:@"Services" action:nil keyEquivalent:@""]; - [menuItem setSubmenu:serviceMenu]; - - [nsapp setServicesMenu:serviceMenu]; - [serviceMenu release]; - - [rootMenu addItem:[NSMenuItem separatorItem]]; - - title = [@"Hide " stringByAppendingString:appName]; - [rootMenu addItemWithTitle:title action:@selector(hide:) keyEquivalent:@"h"]; - - menuItem = (NSMenuItem *)[rootMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; - [menuItem setKeyEquivalentModifierMask:(NSEventModifierFlagOption|NSEventModifierFlagCommand)]; - - [rootMenu addItemWithTitle:@"Show All" action:@selector(unhideAllApplications:) keyEquivalent:@""]; - - [rootMenu addItem:[NSMenuItem separatorItem]]; - - title = [@"Quit " stringByAppendingString:appName]; - [rootMenu addItemWithTitle:title action:@selector(terminate:) keyEquivalent:@"q"]; - - /* Create the main menu bar */ - [nsapp setMainMenu:mainMenu]; - [mainMenu release]; /* we're done with it, let NSApp own it. */ - - /* Tell the application object that this is now the application menu */ - [nsapp setAppleMenu:rootMenu]; - [rootMenu release]; -} - -static int retval = -1; - -static struct { - int fullscreen; - int xdim2d, ydim2d; - int xdim3d, ydim3d, bpp3d; - int forcesetup; -} settings; - -@interface StartupWindow : NSWindow -{ - NSMutableArray *modeslist2d; - NSMutableArray *modeslist3d; - - NSButton *alwaysShowButton; - NSButton *fullscreenButton; - NSTextView *messagesView; - NSTabView *tabView; - NSTabViewItem *tabViewItemSetup; - NSTabViewItem *tabViewItemMessageLog; - NSPopUpButton *videoMode2DPUButton; - NSPopUpButton *videoMode3DPUButton; - - NSButton *cancelButton; - NSButton *startButton; -} - -- (StartupWindow *)init; - -- (void)dealloc; -- (void)populateVideoModes:(BOOL)firstTime; - -- (void)fullscreenClicked:(id)sender; - -- (void)cancel:(id)sender; -- (void)start:(id)sender; - -- (void)setupRunMode; -- (void)setupMessagesMode; - -- (void)putsMessage:(NSString *)str; - -@end - -@implementation StartupWindow : NSWindow - -- (StartupWindow *)init -{ - NSUInteger const style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable | NSWindowStyleMaskResizable; - NSRect const windowFrame = NSMakeRect(0, 0, 480, 280); - self = [super initWithContentRect:windowFrame styleMask:style backing:NSBackingStoreBuffered defer:NO]; - - if (self) - { - // window properties - [self setDelegate:self]; - [self setReleasedWhenClosed:NO]; -#if defined MAC_OS_X_VERSION_10_3 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3 - [self setContentMinSize:[[self contentView] frame].size]; -#else - [self setMinSize:[NSWindow frameRectForContentRect:[[self contentView] frame] styleMask:[self styleMask]].size]; -#endif - - - // image on the left - NSRect const imageFrame = NSMakeRect(0, 0, 100, 280); - NSImageView * imageView = [[NSImageView alloc] initWithFrame:imageFrame]; - [imageView setImageScaling:NSImageScaleNone]; - [imageView setImage:[NSImage imageNamed:@"build"]]; - [[self contentView] addSubview:imageView]; - [imageView setAutoresizingMask:NSViewMaxXMargin | NSViewHeightSizable]; - - - // buttons - CGFloat const buttonWidth = 80; - CGFloat const buttonHeight = 32; - - NSRect const startButtonFrame = NSMakeRect(windowFrame.size.width - buttonWidth, 0, buttonWidth, buttonHeight); - startButton = [[NSButton alloc] initWithFrame:startButtonFrame]; - [[self contentView] addSubview:startButton]; - [startButton setTitle:@"Start"]; - [startButton setTarget:self]; - [startButton setAction:@selector(start:)]; - [startButton setBezelStyle:NSBezelStyleRounded]; - [startButton setKeyEquivalent:@"\r"]; - [startButton setAutoresizingMask:NSViewMinXMargin | NSViewMaxYMargin]; - - NSRect const cancelButtonFrame = NSMakeRect(startButtonFrame.origin.x - buttonWidth, 0, buttonWidth, buttonHeight); - cancelButton = [[NSButton alloc] initWithFrame:cancelButtonFrame]; - [[self contentView] addSubview:cancelButton]; - [cancelButton setTitle:@"Cancel"]; - [cancelButton setTarget:self]; - [cancelButton setAction:@selector(cancel:)]; - [cancelButton setBezelStyle:NSBezelStyleRounded]; - [cancelButton setAutoresizingMask:NSViewMinXMargin | NSViewMaxYMargin]; - - - // tab frame - NSRect const tabViewFrame = NSMakeRect(imageFrame.size.width, buttonHeight, windowFrame.size.width - imageFrame.size.width, windowFrame.size.height - buttonHeight - 5); - tabView = [[NSTabView alloc] initWithFrame:tabViewFrame]; - [[self contentView] addSubview:tabView]; - setFontToSmall(tabView); - setControlToSmall(tabView); - [tabView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; - - - // setup tab - - tabViewItemSetup = [[NSTabViewItem alloc] init]; - [tabView addTabViewItem:tabViewItemSetup]; - [tabViewItemSetup setLabel:@"Setup"]; - NSRect const tabViewItemSetupFrame = [[tabViewItemSetup view] frame]; - - - // always show checkbox - alwaysShowButton = makeCheckbox(@"Always show this window at startup"); - [[tabViewItemSetup view] addSubview:alwaysShowButton]; - NSSize const alwaysShowButtonSize = [alwaysShowButton frame].size; - NSRect const alwaysShowButtonFrame = NSSizeAddXY(alwaysShowButtonSize, tabViewItemSetupFrame.size.width - alwaysShowButtonSize.width, 0); - [alwaysShowButton setFrame:alwaysShowButtonFrame]; - [alwaysShowButton setAutoresizingMask:NSViewMinXMargin | NSViewMaxYMargin]; - - - // video mode selectors and labels - NSTextField * label2DVideoMode = makeLabel(@"2D Video mode:"); - [[tabViewItemSetup view] addSubview:label2DVideoMode]; - NSSize const label2DVideoModeSize = [label2DVideoMode frame].size; - [label2DVideoMode setAutoresizingMask:NSViewMaxXMargin | NSViewMinYMargin]; - - NSTextField * label3DVideoMode = makeLabel(@"3D Video mode:"); - [[tabViewItemSetup view] addSubview:label3DVideoMode]; - NSSize const label3DVideoModeSize = [label3DVideoMode frame].size; - [label3DVideoMode setAutoresizingMask:NSViewMaxXMargin | NSViewMinYMargin]; - - fullscreenButton = makeCheckbox(@"Fullscreen"); - [[tabViewItemSetup view] addSubview:fullscreenButton]; - NSSize const fullscreenButtonSize = [fullscreenButton frame].size; - [fullscreenButton setAction:@selector(fullscreenClicked:)]; - [fullscreenButton setAutoresizingMask:NSViewMinXMargin | NSViewMinYMargin]; - - CGFloat const labelsVideoModeRightEdge = max(label2DVideoModeSize.width, label3DVideoModeSize.width); - - videoMode2DPUButton = makeComboBox(); - [[tabViewItemSetup view] addSubview:videoMode2DPUButton]; - NSSize const videoMode2DPUButtonSize = [videoMode2DPUButton frame].size; - CGFloat const videoMode2DButtonX = labelsVideoModeRightEdge; - NSRect const videoMode2DPUButtonFrame = NSMakeRect(videoMode2DButtonX, tabViewItemSetupFrame.size.height - videoMode2DPUButtonSize.height, tabViewItemSetupFrame.size.width - videoMode2DButtonX - fullscreenButtonSize.width, videoMode2DPUButtonSize.height); - [videoMode2DPUButton setFrame:videoMode2DPUButtonFrame]; - [videoMode2DPUButton setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin]; - - videoMode3DPUButton = makeComboBox(); - [[tabViewItemSetup view] addSubview:videoMode3DPUButton]; - NSSize const videoMode3DPUButtonSize = [videoMode3DPUButton frame].size; - CGFloat const videoMode3DButtonX = labelsVideoModeRightEdge; - NSRect const videoMode3DPUButtonFrame = NSMakeRect(videoMode3DButtonX, videoMode2DPUButtonFrame.origin.y - videoMode3DPUButtonSize.height, tabViewItemSetupFrame.size.width - videoMode3DButtonX - fullscreenButtonSize.width, videoMode3DPUButtonSize.height); - [videoMode3DPUButton setFrame:videoMode3DPUButtonFrame]; - [videoMode3DPUButton setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin]; - - NSRect const label2DVideoModeFrame = NSSizeAddXY(label2DVideoModeSize, 0, videoMode2DPUButtonFrame.origin.y + rintf((videoMode2DPUButtonSize.height - label2DVideoModeSize.height) * 0.5f) + 1); - [label2DVideoMode setFrame:label2DVideoModeFrame]; - - NSRect const label3DVideoModeFrame = NSSizeAddXY(label3DVideoModeSize, 0, videoMode3DPUButtonFrame.origin.y + rintf((videoMode3DPUButtonSize.height - label3DVideoModeSize.height) * 0.5f) + 1); - [label3DVideoMode setFrame:label3DVideoModeFrame]; - - NSRect const fullscreenButtonFrame = NSSizeAddXY(fullscreenButtonSize, tabViewItemSetupFrame.size.width - fullscreenButtonSize.width, videoMode3DPUButtonFrame.origin.y + rintf((videoMode3DPUButtonSize.height - fullscreenButtonSize.height) * 0.5f) + 1); - [fullscreenButton setFrame:fullscreenButtonFrame]; - - - // message log tab - - tabViewItemMessageLog = [[NSTabViewItem alloc] init]; - [tabView addTabViewItem:tabViewItemMessageLog]; - [tabViewItemMessageLog setLabel:@"Message Log"]; - NSRect const tabViewItemMessageLogFrame = [[tabViewItemMessageLog view] frame]; - - - // message log - NSScrollView * messagesScrollView = [[NSScrollView alloc] initWithFrame:NSRectChangeXY(tabViewItemMessageLogFrame, 0, 0)]; - [[tabViewItemMessageLog view] addSubview:messagesScrollView]; - [messagesScrollView setBorderType:NSBezelBorder]; - [messagesScrollView setHasVerticalScroller:YES]; - [messagesScrollView setHasHorizontalScroller:NO]; - setControlToSmall([[messagesScrollView verticalScroller] cell]); - NSSize const messagesScrollViewContentSize = [messagesScrollView contentSize]; - [messagesScrollView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; - - messagesView = [[NSTextView alloc] initWithFrame:NSMakeRect(0, 0, messagesScrollViewContentSize.width, messagesScrollViewContentSize.height)]; - [messagesScrollView setDocumentView:messagesView]; - [messagesView setEditable:NO]; - [messagesView setRichText:NO]; - setFontToSmall(messagesView); - [messagesView setMinSize:NSMakeSize(0.0, messagesScrollViewContentSize.height)]; - [messagesView setMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; - [messagesView setVerticallyResizable:YES]; - [messagesView setHorizontallyResizable:NO]; - [messagesView setAutoresizingMask:NSViewWidthSizable]; - - [[messagesView textContainer] setContainerSize:NSMakeSize(messagesScrollViewContentSize.width, FLT_MAX)]; - [[messagesView textContainer] setWidthTracksTextView:YES]; - } - - return self; -} - -- (BOOL)canBecomeKeyWindow -{ - return YES; -} - -- (BOOL)canBecomeMainWindow -{ - return YES; -} - -- (BOOL) windowShouldClose:(id)sender -{ - UNREFERENCED_PARAMETER(sender); - - retval = 0; - - return YES; -} - -- (void)dealloc -{ - [modeslist3d release]; - [super dealloc]; -} - -- (void)populateVideoModes:(BOOL)firstTime -{ - int i, mode3d, fullscreen = ([fullscreenButton state] == NSControlStateValueOn); - int mode2d, idx2d = -1; - int idx3d = -1; - int xdim2d = 0, ydim2d = 0; - int const bpp2d = 8; - int xdim = 0, ydim = 0, bpp = 0; - - if (firstTime) { - xdim2d = settings.xdim2d; - ydim2d = settings.ydim2d; - xdim = settings.xdim3d; - ydim = settings.ydim3d; - bpp = settings.bpp3d; - } else { - mode2d = [[modeslist2d objectAtIndex:[videoMode2DPUButton indexOfSelectedItem]] intValue]; - if (mode2d >= 0) { - xdim2d = validmode[mode2d].xdim; - ydim2d = validmode[mode2d].ydim; - } - - mode3d = [[modeslist3d objectAtIndex:[videoMode3DPUButton indexOfSelectedItem]] intValue]; - if (mode3d >= 0) { - xdim = validmode[mode3d].xdim; - ydim = validmode[mode3d].ydim; - bpp = validmode[mode3d].bpp; - } - } - - - mode2d = videoCheckMode(&xdim2d, &ydim2d, bpp2d, fullscreen, 1); - - [modeslist2d release]; - [videoMode2DPUButton removeAllItems]; - - modeslist2d = [[NSMutableArray alloc] init]; - - for (i = 0; i < validmodecnt; i++) { - if (fullscreen == validmode[i].fs) { - if (i == mode2d) idx2d = [modeslist2d count]; - [modeslist2d addObject:[NSNumber numberWithInt:i]]; - [videoMode2DPUButton addItemWithTitle:[NSString stringWithFormat:@"%d %C %d", - validmode[i].xdim, 0xd7, validmode[i].ydim]]; - } - } - - if (idx2d >= 0) [videoMode2DPUButton selectItemAtIndex:idx2d]; - - - mode3d = videoCheckMode(&xdim, &ydim, bpp, fullscreen, 1); - if (mode3d < 0) { - int i, cd[] = { 32, 24, 16, 15, 8, 0 }; - for (i=0; cd[i]; ) { if (cd[i] >= bpp) i++; else break; } - for ( ; cd[i]; i++) { - mode3d = videoCheckMode(&xdim, &ydim, cd[i], fullscreen, 1); - if (mode3d < 0) continue; - break; - } - } - - [modeslist3d release]; - [videoMode3DPUButton removeAllItems]; - - modeslist3d = [[NSMutableArray alloc] init]; - - for (i = 0; i < validmodecnt; i++) { - if (fullscreen == validmode[i].fs) { - if (i == mode3d) idx3d = [modeslist3d count]; - [modeslist3d addObject:[NSNumber numberWithInt:i]]; - [videoMode3DPUButton addItemWithTitle:[NSString stringWithFormat:@"%d %C %d %d-bpp", - validmode[i].xdim, 0xd7, validmode[i].ydim, validmode[i].bpp]]; - } - } - - if (idx3d >= 0) [videoMode3DPUButton selectItemAtIndex:idx3d]; -} - -- (void)fullscreenClicked:(id)sender -{ - UNREFERENCED_PARAMETER(sender); - - [self populateVideoModes:NO]; -} - -- (void)cancel:(id)sender -{ - UNREFERENCED_PARAMETER(sender); - - retval = 0; -} - -- (void)start:(id)sender -{ - UNREFERENCED_PARAMETER(sender); - - int mode2d = [[modeslist2d objectAtIndex:[videoMode2DPUButton indexOfSelectedItem]] intValue]; - if (mode2d >= 0) { - settings.xdim2d = validmode[mode2d].xdim; - settings.ydim2d = validmode[mode2d].ydim; - settings.fullscreen = validmode[mode2d].fs; - } - - int mode = [[modeslist3d objectAtIndex:[videoMode3DPUButton indexOfSelectedItem]] intValue]; - if (mode >= 0) { - settings.xdim3d = validmode[mode].xdim; - settings.ydim3d = validmode[mode].ydim; - settings.bpp3d = validmode[mode].bpp; - settings.fullscreen = validmode[mode].fs; - } - - settings.forcesetup = [alwaysShowButton state] == NSControlStateValueOn; - - retval = 1; -} - -- (void)setupRunMode -{ - videoGetModes(); - - [fullscreenButton setState: (settings.fullscreen ? NSControlStateValueOn : NSControlStateValueOff)]; - [alwaysShowButton setState: (settings.forcesetup ? NSControlStateValueOn : NSControlStateValueOff)]; - [self populateVideoModes:YES]; - - // enable all the controls on the Configuration page - NSEnumerator *enumerator = [[[tabViewItemSetup view] subviews] objectEnumerator]; - NSControl *control; - while ((control = [enumerator nextObject])) - { - if ([control respondsToSelector:@selector(setEnabled:)]) - [control setEnabled:true]; - } - - [cancelButton setEnabled:true]; - [startButton setEnabled:true]; - - [tabView selectTabViewItem:tabViewItemSetup]; - [NSCursor unhide]; // Why should I need to do this? -} - -- (void)setupMessagesMode -{ - [tabView selectTabViewItem:tabViewItemMessageLog]; - - // disable all the controls on the Configuration page except "always show", so the - // user can enable it if they want to while waiting for something else to happen - NSEnumerator *enumerator = [[[tabViewItemSetup view] subviews] objectEnumerator]; - NSControl *control; - while ((control = [enumerator nextObject])) - { - if (control != alwaysShowButton && [control respondsToSelector:@selector(setEnabled:)]) - [control setEnabled:false]; - } - - [cancelButton setEnabled:false]; - [startButton setEnabled:false]; -} - -- (void)putsMessage:(NSString *)str -{ - NSRange end; - NSTextStorage *text = [messagesView textStorage]; - BOOL shouldAutoScroll; - - shouldAutoScroll = ((int)NSMaxY([messagesView bounds]) == (int)NSMaxY([messagesView visibleRect])); - - end.location = [text length]; - end.length = 0; - - [text beginEditing]; - [messagesView replaceCharactersInRange:end withString:str]; - [text endEditing]; - - if (shouldAutoScroll) { - end.location = [text length]; - end.length = 0; - [messagesView scrollRangeToVisible:end]; - } -} - -@end - -static StartupWindow *startwin = nil; - -int startwin_open(void) -{ - // fix for "ld: absolute address to symbol _NSApp in a different linkage unit not supported" - // (OS X 10.6) when building for PPC - nsapp = [NSApplication sharedApplication]; - - if (startwin != nil) return 1; - - startwin = [[StartupWindow alloc] init]; - if (startwin == nil) return -1; - - [startwin setupMessagesMode]; - - [nsapp finishLaunching]; - - [startwin center]; - [startwin makeKeyAndOrderFront:nil]; - - CreateApplicationMenus(); - - return 0; -} - -int startwin_close(void) -{ - if (startwin == nil) return 1; - - [startwin close]; - [startwin release]; - startwin = nil; - - return 0; -} - -int startwin_puts(const char *s) -{ - NSString *ns; - - if (!s) return -1; - if (startwin == nil) return 1; - - ns = [NSString stringWithUTF8String:s]; - [startwin putsMessage:ns]; - [ns release]; - - return 0; -} - -int startwin_settitle(const char *s) -{ - NSString *ns; - - if (!s) return -1; - if (startwin == nil) return 1; - - ns = [NSString stringWithUTF8String:s]; - [startwin setTitle:ns]; - [ns release]; - - return 0; -} - -int startwin_idle(void *v) -{ - UNREFERENCED_PARAMETER(v); - - if (startwin) - { - NSEvent *event; - do - { - event = [nsapp nextEventMatchingMask:NSEventMaskAny untilDate:[NSDate date] inMode:NSDefaultRunLoopMode dequeue:YES]; - [nsapp sendEvent:event]; - } - while (event != nil); - - [startwin displayIfNeeded]; - [nsapp updateWindows]; - } - - return 0; -} - - -int startwin_run(void) -{ - if (startwin == nil) return 0; - - settings.fullscreen = fullscreen; - settings.xdim2d = xdim2d; - settings.ydim2d = ydim2d; - settings.xdim3d = xdimgame; - settings.ydim3d = ydimgame; - settings.bpp3d = bppgame; - settings.forcesetup = forcesetup; - - [startwin setupRunMode]; - - do - { - NSEvent *event = [nsapp nextEventMatchingMask:NSEventMaskAny untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES]; - [nsapp sendEvent:event]; - [nsapp updateWindows]; - } - while (retval == -1); - - [startwin setupMessagesMode]; - [nsapp updateWindows]; - - if (retval) { - fullscreen = settings.fullscreen; - xdim2d = settings.xdim2d; - ydim2d = settings.ydim2d; - xdimgame = settings.xdim3d; - ydimgame = settings.ydim3d; - bppgame = settings.bpp3d; - forcesetup = settings.forcesetup; - } - - return retval; -} diff --git a/source/build/src/tiles.cpp b/source/build/src/tiles.cpp index 9cd863614..10f4b0f22 100644 --- a/source/build/src/tiles.cpp +++ b/source/build/src/tiles.cpp @@ -12,7 +12,7 @@ #include "engine_priv.h" #include "cache1d.h" #include "lz4.h" -#include "crc32.h" +#include "crc32_.h" #include "vfs.h" diff --git a/source/build/src/winbits.cpp b/source/build/src/winbits.cpp index a8fb87ef9..db00220f2 100644 --- a/source/build/src/winbits.cpp +++ b/source/build/src/winbits.cpp @@ -10,12 +10,6 @@ #include "winbits.h" -#ifdef BITNESS64 -# define EBACKTRACEDLL "ebacktrace1-64.dll" -#else -# define EBACKTRACEDLL "ebacktrace1.dll" -#endif - int32_t backgroundidle = 1; char silentvideomodeswitch = 0; @@ -24,7 +18,7 @@ static char taskswitching = 1; static HANDLE instanceflag = NULL; -static OSVERSIONINFOEX osv; +static OSVERSIONINFOEXA osv; static int32_t togglecomp = 0; @@ -33,20 +27,6 @@ FARPROC pwinever; // // CheckWinVersion() -- check to see what version of Windows we happen to be running under // -BOOL CheckWinVersion(void) -{ - HMODULE hntdll = GetModuleHandle("ntdll.dll"); - - if (hntdll) - pwinever = GetProcAddress(hntdll, "wine_get_version"); - - ZeroMemory(&osv, sizeof(osv)); - osv.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); - - if (!GetVersionEx((LPOSVERSIONINFOA)&osv)) return FALSE; - - return TRUE; -} static void win_printversion(void) { @@ -114,34 +94,13 @@ static void win_printversion(void) Xfree(str); } -// -// win_allowtaskswitching() -- captures/releases alt+tab hotkeys -// -void win_allowtaskswitching(int32_t onf) -{ - if (onf == taskswitching) return; - taskswitching = onf; - - if (onf) - { - UnregisterHotKey(0,0); - UnregisterHotKey(0,1); - } - else - { - RegisterHotKey(0,0,MOD_ALT,VK_TAB); - RegisterHotKey(0,1,MOD_ALT|MOD_SHIFT,VK_TAB); - } - -} - static void ToggleDesktopComposition(BOOL compEnable) { static HMODULE hDWMApiDLL = NULL; static HRESULT(WINAPI *aDwmEnableComposition)(UINT); - if (!hDWMApiDLL && (hDWMApiDLL = LoadLibrary("DWMAPI.DLL"))) + if (!hDWMApiDLL && (hDWMApiDLL = LoadLibraryA("DWMAPI.DLL"))) aDwmEnableComposition = (HRESULT(WINAPI *)(UINT))(void (*)(void))GetProcAddress(hDWMApiDLL, "DwmEnableComposition"); if (aDwmEnableComposition) @@ -159,7 +118,7 @@ typedef void (*dllSetString)(const char*); // void win_open(void) { - instanceflag = CreateSemaphore(NULL, 1,1, WindowClass); + instanceflag = CreateSemaphoreA(NULL, 1,1, WindowClass); } void win_init(void) @@ -185,7 +144,6 @@ void win_setvideomode(int32_t c) void win_uninit(void) { - win_allowtaskswitching(1); } void win_close(void) @@ -194,78 +152,6 @@ void win_close(void) } -// Keyboard layout switching (disable because this is rude.) - -static void switchlayout(char const * layout) -{ - /* - char layoutname[KL_NAMELENGTH]; - - GetKeyboardLayoutName(layoutname); - - if (!Bstrcmp(layoutname, layout)) - return; - - initprintf("Switching keyboard layout from %s to %s\n", layoutname, layout); - LoadKeyboardLayout(layout, KLF_ACTIVATE|KLF_SETFORPROCESS|KLF_SUBSTITUTE_OK); - */ -} - -static char OriginalLayoutName[KL_NAMELENGTH]; - -void Win_GetOriginalLayoutName(void) -{ - //GetKeyboardLayoutName(OriginalLayoutName); -} - -void Win_SetKeyboardLayoutUS(int const toggle) -{ - /* - static int currentstate; - - if (toggle != currentstate) - { - if (toggle) - { - // 00000409 is "American English" - switchlayout("00000409"); - currentstate = toggle; - } - else if (OriginalLayoutName[0]) - { - switchlayout(OriginalLayoutName); - currentstate = toggle; - } - } - */ -} - - -// -// ShowErrorBox() -- shows an error message box -// -void ShowErrorBox(const char *m) -{ - TCHAR msg[1024]; - - wsprintf(msg, "%s: %s", m, GetWindowsErrorMsg(GetLastError())); - MessageBox(0, msg, apptitle, MB_OK|MB_ICONSTOP); -} - -// -// GetWindowsErrorMsg() -- gives a pointer to a static buffer containing the Windows error message -// -LPTSTR GetWindowsErrorMsg(DWORD code) -{ - static TCHAR lpMsgBuf[1024]; - - FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, code, - MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPTSTR)lpMsgBuf, 1024, NULL); - - return lpMsgBuf; -} // @@ -296,7 +182,7 @@ int32_t win_buildargs(char **argvbuf) { int32_t buildargc = 0; - *argvbuf = Xstrdup(GetCommandLine()); + *argvbuf = Xstrdup(GetCommandLineA()); if (*argvbuf) { diff --git a/source/build/src/winlayer.cpp b/source/build/src/winlayer.cpp deleted file mode 100644 index 1d04a1a7a..000000000 --- a/source/build/src/winlayer.cpp +++ /dev/null @@ -1,3596 +0,0 @@ -// Windows DIB/DirectDraw interface layer for the Build Engine -// Originally by Jonathon Fowler (jf@jonof.id.au) - -#include "compat.h" - -#include "build.h" - -#ifdef USE_OPENGL -#include "glbuild.h" -#include "glad/glad_wgl.h" -#endif - -#define NEED_DINPUT_H -#define NEED_DDRAW_H -#ifdef _MSC_VER -# define NEED_CRTDBG_H -#endif -#include "windows_inc.h" - -#include "winlayer.h" -#include "rawinput.h" -#include "mutex.h" - -#include "winbits.h" -#include "engine_priv.h" - -#include "dxdidf.h" // comment this out if c_dfDI* is being reported as multiply defined - -#include - -// undefine to restrict windowed resolutions to conventional sizes -#define ANY_WINDOWED_SIZE - -static mutex_t m_initprintf; -static int32_t winlayer_have_ATI = 0; - -static int32_t _buildargc = 0; -static const char **_buildargv = NULL; -static char *argvbuf = NULL; - -// Windows crud -static HINSTANCE hInstance = 0; -static HWND hWindow = 0; -#define WINDOW_STYLE (WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX) -static BOOL window_class_registered = FALSE; - -static DDGAMMARAMP sysgamma; - -#ifdef USE_OPENGL -// OpenGL stuff -static HGLRC hGLRC = 0; -int32_t nofog=0; -char nogl=0; -char forcegl=0; -#endif - -static const char *GetDDrawError(HRESULT code); -static const char *GetDInputError(HRESULT code); -static void ShowDDrawErrorBox(const char *m, HRESULT r); -static void ShowDInputErrorBox(const char *m, HRESULT r); -static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); -static BOOL InitDirectDraw(void); -static void UninitDirectDraw(void); -static int32_t RestoreDirectDrawMode(void); -static void ReleaseDirectDrawSurfaces(void); -static BOOL InitDirectInput(void); -static void UninitDirectInput(void); -static void GetKeyNames(void); -static void AcquireInputDevices(char acquire); -static inline void DI_PollJoysticks(void); -static int32_t SetupDirectDraw(int32_t width, int32_t height); -static void UninitDIB(void); -static int32_t SetupDIB(int32_t width, int32_t height); -#ifdef USE_OPENGL -static void ReleaseOpenGL(void); -static void UninitOpenGL(void); -static int32_t SetupOpenGL(int32_t width, int32_t height, int32_t bitspp); -#endif -static BOOL RegisterWindowClass(void); -static BOOL CreateAppWindow(int32_t modenum); -static void DestroyAppWindow(void); - -// video -static int32_t desktopxdim=0; -static int32_t desktopydim=0; -static int32_t desktopbpp=0; -static int32_t modesetusing=-1; -static int32_t curvidmode = -1; -static int32_t customxdim = 640; -static int32_t customydim = 480; -static int32_t custombpp = 8; -static int32_t customfs = 0; -static uint32_t modeschecked=0; -int32_t xres=-1; -int32_t yres=-1; -int32_t fullscreen=0; -int32_t bpp=0; -int32_t bytesperline=0; -int32_t refreshfreq=-1; -int32_t lockcount=0; -int32_t glcolourdepth=32; -static int32_t vsync_renderlayer; -uint32_t maxrefreshfreq=60; -intptr_t frameplace=0; -char modechange=1; -char repaintneeded=0; -char offscreenrendering=0; -char videomodereset = 0; - -// input and events -char quitevent=0; -char appactive=1; -char realfs=0; -char regrabmouse=0; -int32_t inputchecked = 0; - -//------------------------------------------------------------------------------------------------- -// DINPUT (JOYSTICK) -//================================================================================================= - -#define JOYSTICK 0 - -static HMODULE hDInputDLL = NULL; -static LPDIRECTINPUT7A lpDI = NULL; -static LPDIRECTINPUTDEVICE7A lpDID = NULL; -#define INPUT_BUFFER_SIZE 32 -static GUID guidDevs; - -char di_disabled = 0; -static char di_devacquired; -static HANDLE di_inputevt = 0; -//static int32_t joyblast=0; - -static struct -{ - char const *name; - LPDIRECTINPUTDEVICE7A *did; - LPCDIDATAFORMAT df; -} devicedef = { "joystick", &lpDID, &c_dfDIJoystick }; - -static struct _joydef -{ - char *name; - uint32_t ofs; // directinput 'dwOfs' value -} *axisdefs = NULL, *buttondefs = NULL, *hatdefs = NULL; - - - -//------------------------------------------------------------------------------------------------- -// MAIN CRAP -//================================================================================================= - - -// -// win_gethwnd() -- gets the window handle -// -HWND win_gethwnd(void) -{ - return hWindow; -} - - -// -// win_gethinstance() -- gets the application instance -// -HINSTANCE win_gethinstance(void) -{ - return hInstance; -} - - - -// -// wm_msgbox/wm_ynbox() -- window-manager-provided message boxes -// -int32_t wm_msgbox(const char *name, const char *fmt, ...) -{ - char buf[2048]; - va_list va; - - va_start(va,fmt); - vsprintf(buf,fmt,va); - va_end(va); - - MessageBox(hWindow,buf,name,MB_OK|MB_TASKMODAL); - return 0; -} - - -int32_t wm_ynbox(const char *name, const char *fmt, ...) -{ - char buf[2048]; - va_list va; - int32_t r; - - va_start(va,fmt); - vsprintf(buf,fmt,va); - va_end(va); - - r = MessageBox((HWND)win_gethwnd(),buf,name,MB_YESNO|MB_ICONQUESTION|MB_TASKMODAL); - if (r==IDYES) return 1; - return 0; -} - -// -// wm_setapptitle() -- changes the window title -// -void wm_setapptitle(const char *name) -{ - if (name) - Bstrncpyz(apptitle, name, sizeof(apptitle)); - - if (hWindow) SetWindowText(hWindow, apptitle); - startwin_settitle(apptitle); -} - -static int32_t setgammaramp(LPDDGAMMARAMP gt); - -// -// SignalHandler() -- called when we've sprung a leak -// -static void SignalHandler(int32_t signum) -{ - switch (signum) - { - case SIGSEGV: - OSD_Printf("Fatal Signal caught: SIGSEGV. Bailing out.\n"); - if (gammabrightness) - setgammaramp(&sysgamma); - gammabrightness = 0; - app_crashhandler(); - uninitsystem(); - if (stdout) fclose(stdout); - break; - default: - break; - } -} - -static void divcommon(int32_t *ap, int32_t *bp) -{ - const int32_t p[] = {2,3,5,7,11,13,17,19}; - const int32_t N = (int32_t)ARRAY_SIZE(p); - int32_t a=*ap, b=*bp; - - while (1) - { - int32_t i; - - for (i=0; inumparms == 0) - { - if (maxrefreshfreq == 0) - OSD_Printf("\"maxrefreshfreq\" is \"No maximum\"\n"); - else - OSD_Printf("\"maxrefreshfreq\" is \"%d\"\n",maxrefreshfreq); - return OSDCMD_OK; - } - if (parm->numparms != 1) return OSDCMD_SHOWHELP; - - freq = Batol(parm->parms[0]); - if (freq < 0) return OSDCMD_SHOWHELP; - - maxrefreshfreq = (unsigned)freq; - modeschecked = 0; - - return OSDCMD_OK; -} - -// -// initsystem() -- init systems -// - -// http://www.gamedev.net/topic/47021-how-to-determine-video-card-with-win32-api -static void determine_ATI(void) -{ - DISPLAY_DEVICE DevInfo; - DWORD i; - - ZeroMemory(&DevInfo, sizeof(DevInfo)); - DevInfo.cb = sizeof(DISPLAY_DEVICE); - - for (i=0; EnumDisplayDevices(NULL, i, &DevInfo, 0); i++) - { - if ((DevInfo.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE)==0) - continue; - -#ifdef UNICODE -#error Not implemented: UNICODE defined, DevInfo.DeviceString is a WCHAR -#endif -// initprintf("%s *** %s\n", DevInfo.DeviceName, DevInfo.DeviceString); - if (!Bmemcmp(DevInfo.DeviceString, "ATI ", 4) || !Bmemcmp(DevInfo.DeviceString, "AMD ", 4)) - winlayer_have_ATI = 1; - } -} - -int32_t initsystem(void) -{ - DEVMODE desktopmode; - - // initprintf("Initializing Windows DirectX/GDI system interface\n"); - - mutex_init(&m_initprintf); - - // get the desktop dimensions before anything changes them - ZeroMemory(&desktopmode, sizeof(DEVMODE)); - desktopmode.dmSize = sizeof(DEVMODE); - EnumDisplaySettings(NULL,ENUM_CURRENT_SETTINGS,&desktopmode); - - desktopxdim = desktopmode.dmPelsWidth; - desktopydim = desktopmode.dmPelsHeight; - desktopbpp = desktopmode.dmBitsPerPel; - - memset(curpalette, 0, sizeof(palette_t) * 256); - - atexit(uninitsystem); - - frameplace=0; - lockcount=0; - - win_init(); - -#ifdef USE_OPENGL - if (loadwgl(getenv("BUILD_GLDRV"))) - { - initprintf("Failure loading OpenGL. GL modes are unavailable.\n"); - nogl = 1; - } -#endif - - // determine physical screen size - { - const int32_t oscreenx = GetSystemMetrics(SM_CXSCREEN); - const int32_t oscreeny = GetSystemMetrics(SM_CYSCREEN); - int32_t screenx=oscreenx, screeny=oscreeny, good=0; - - divcommon(&screenx, &screeny); - - if (screenx >= 1 && screenx <= 99 && screeny >= 1 && screeny <= 99) - r_screenxy = screenx*100 + screeny, good=1; - - if (!good) - initprintf("Automatic fullscreen size determination failed! %d %d -> %d %d.\n", - oscreenx, oscreeny, screenx, screeny); - } - - // try and start DirectDraw - if (InitDirectDraw()) - initprintf("DirectDraw initialization failed. Fullscreen modes will be unavailable.\n"); - - OSD_RegisterFunction("maxrefreshfreq", "maxrefreshfreq: maximum display frequency to set for OpenGL Polymost modes (0=no maximum)", set_maxrefreshfreq); - - // See if we're on an ATI card... - determine_ATI(); - - return 0; -} - - -// -// uninitsystem() -- uninit systems -// -void uninitsystem(void) -{ - DestroyAppWindow(); - - startwin_close(); - - uninitinput(); - timerUninit(); - - win_uninit(); - -#ifdef USE_OPENGL - //POGO: there is no equivalent to unloadgldriver() with GLAD's loader, but this shouldn't be a problem. - //unloadgldriver(); - unloadwgl(); -#ifdef POLYMER - unloadglulibrary(); -#endif -#endif -} - - -// -// system_getcvars() -- propagate any cvars that are read post-initialization -// -void system_getcvars(void) -{ - vsync = videoSetVsync(vsync); -} - - -// -// initprintf() -- prints a formatted string to the intitialization window -// -void initprintf(const char *f, ...) -{ - va_list va; - char buf[2048]; - - va_start(va, f); - Bvsnprintf(buf, sizeof(buf), f, va); - va_end(va); - - initputs(buf); -} - - -// -// initputs() -- prints a string to the intitialization window -// -void initputs(const char *buf) -{ - static char dabuf[2048]; - - OSD_Puts(buf); - - mutex_lock(&m_initprintf); - if ((Bstrlen(dabuf) + Bstrlen(buf) + 2) > sizeof(dabuf)) - { - startwin_puts(dabuf); - Bmemset(dabuf, 0, sizeof(dabuf)); - } - - Bstrcat(dabuf,buf); - - if (g_logFlushWindow || Bstrlen(dabuf) > 768) - { - startwin_puts(dabuf); - handleevents(); - Bmemset(dabuf, 0, sizeof(dabuf)); - } - mutex_unlock(&m_initprintf); -} - - -// -// debugprintf() -- sends a formatted debug string to the debugger -// -void debugprintf(const char *f, ...) -{ -#if 0 // def DEBUGGINGAIDS - va_list va; - char buf[1024]; - - if (!IsDebuggerPresent()) return; - - va_start(va,f); - Bvsnprintf(buf, 1024, f, va); - va_end(va); - - OutputDebugString(buf); -#else - UNREFERENCED_PARAMETER(f); -#endif -} - - -int32_t handleevents_peekkeys(void) -{ - return 0; -} - -// -// handleevents() -- process the Windows message queue -// returns !0 if there was an important event worth checking (like quitting) -// -int32_t handleevents(void) -{ - int32_t rv=0; - MSG msg; - - //if (frameplace && fullscreen) printf("Offscreen buffer is locked!\n"); - - RI_PollDevices(TRUE); - - if (hDInputDLL) - DI_PollJoysticks(); - - while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) - { - switch (msg.message) - { - case WM_QUIT: - quitevent = 1; - continue; - case WM_INPUT: - // this call to RI_PollDevices() probably isn't necessary - // RI_PollDevices(FALSE); - RI_ProcessMessage(&msg); - continue; - } - - if (startwin_idle((void *)&msg) > 0) continue; - - TranslateMessage(&msg); -// DispatchMessage(&msg); - WndProcCallback(msg.hwnd, msg.message, msg.wParam, msg.lParam); - } - - inputchecked = 0; - - if (!appactive || quitevent) rv = -1; - - timerUpdate(); - - return rv; -} - - -// -// initinput() -- init input system -// -int32_t initinput(void) -{ - Win_GetOriginalLayoutName(); - Win_SetKeyboardLayoutUS(1); - - g_mouseEnabled=0; - memset(keystatus, 0, sizeof(keystatus)); - - g_keyFIFOend = g_keyAsciiPos = g_keyAsciiEnd = 0; - - inputdevices = 1|2; - joystick.numAxes = joystick.numButtons = joystick.numHats=0; - - GetKeyNames(); - InitDirectInput(); - - return 0; -} - - -// -// uninitinput() -- uninit input system -// -void uninitinput(void) -{ - Win_SetKeyboardLayoutUS(0); - - mouseUninit(); - UninitDirectInput(); -} - - -void idle_waitevent_timeout(uint32_t timeout) -{ - // timeout becomes a completion deadline - timeout += timerGetTicks(); - - do - { - MSG msg; - - if (PeekMessage(&msg, 0, WM_INPUT, WM_INPUT, PM_QS_INPUT)) - { - RI_PollDevices(TRUE); - - inputchecked = 0; - - return; - } - - Sleep(10); - } - while (timeout > (timerGetTicks() + 10)); -} - - -// -// setjoydeadzone() -- sets the dead and saturation zones for the joystick -// -void joySetDeadZone(int32_t axis, uint16_t dead, uint16_t satur) -{ - DIPROPDWORD dipdw; - HRESULT result; - - if (!lpDID) return; - - if (dead > 10000) dead = 10000; - if (satur > 10000) satur = 10000; - if (dead >= satur) dead = satur-100; - if (axis >= joystick.numAxes) return; - - memset(&dipdw, 0, sizeof(dipdw)); - dipdw.diph.dwSize = sizeof(DIPROPDWORD); - dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER); - if (axis < 0) - { - dipdw.diph.dwObj = 0; - dipdw.diph.dwHow = DIPH_DEVICE; - } - else - { - dipdw.diph.dwObj = axisdefs[axis].ofs; - dipdw.diph.dwHow = DIPH_BYOFFSET; - } - dipdw.dwData = dead; - - result = IDirectInputDevice7_SetProperty(lpDID, bDIPROP_DEADZONE, &dipdw.diph); - if (FAILED(result)) - { - //ShowDInputErrorBox("Failed setting joystick dead zone", result); - initprintf("Failed setting joystick dead zone: %s\n", GetDInputError(result)); - return; - } - - dipdw.dwData = satur; - - result = IDirectInputDevice7_SetProperty(lpDID, bDIPROP_SATURATION, &dipdw.diph); - if (FAILED(result)) - { - //ShowDInputErrorBox("Failed setting joystick saturation point", result); - initprintf("Failed setting joystick saturation point: %s\n", GetDInputError(result)); - return; - } -} - - -// -// getjoydeadzone() -- gets the dead and saturation zones for the joystick -// -void joyGetDeadZone(int32_t axis, uint16_t *dead, uint16_t *satur) -{ - DIPROPDWORD dipdw; - HRESULT result; - - if (!dead || !satur) return; - if (!lpDID) { *dead = *satur = 0; return; } - if (axis >= joystick.numAxes) { *dead = *satur = 0; return; } - - memset(&dipdw, 0, sizeof(dipdw)); - dipdw.diph.dwSize = sizeof(DIPROPDWORD); - dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER); - if (axis < 0) - { - dipdw.diph.dwObj = 0; - dipdw.diph.dwHow = DIPH_DEVICE; - } - else - { - dipdw.diph.dwObj = axisdefs[axis].ofs; - dipdw.diph.dwHow = DIPH_BYOFFSET; - } - - result = IDirectInputDevice7_GetProperty(lpDID, bDIPROP_DEADZONE, (LPDIPROPHEADER)&dipdw.diph); - if (FAILED(result)) - { - //ShowDInputErrorBox("Failed getting joystick dead zone", result); - initprintf("Failed getting joystick dead zone: %s\n", GetDInputError(result)); - return; - } - - *dead = dipdw.dwData; - - result = IDirectInputDevice7_GetProperty(lpDID, bDIPROP_SATURATION, &dipdw.diph); - if (FAILED(result)) - { - //ShowDInputErrorBox("Failed getting joystick saturation point", result); - initprintf("Failed getting joystick saturation point: %s\n", GetDInputError(result)); - return; - } - - *satur = dipdw.dwData; -} - -#if 0 -void releaseallbuttons(void) -{ - int32_t i; - - if (g_mouseCallback) - { - if (g_mouseBits & 1) g_mouseCallback(1, 0); - if (g_mouseBits & 2) g_mouseCallback(2, 0); - if (g_mouseBits & 4) g_mouseCallback(3, 0); - if (g_mouseBits & 8) g_mouseCallback(4, 0); - if (g_mouseBits & 16) g_mouseCallback(5, 0); - if (g_mouseBits & 32) g_mouseCallback(6, 0); - if (g_mouseBits & 64) g_mouseCallback(7, 0); - } - g_mouseBits = 0; - - if (joystick.pCallback) - { - for (i=0; i<32; i++) - if (joystick.bits & (1<dwDevType&0xff) != DIDEVTYPE_JOYSTICK) - return DIENUM_CONTINUE; - - inputdevices |= 4; - d = "CONTROLLER"; - Bmemcpy(&guidDevs, &lpddi->guidInstance, sizeof(GUID)); - - initprintf(" * %s: %s\n", d, lpddi->tszProductName); - - return DIENUM_CONTINUE; -} - -static BOOL CALLBACK InitDirectInput_enumobjects(LPCDIDEVICEOBJECTINSTANCE lpddoi, LPVOID pvRef) -{ - int32_t *typecounts = (int32_t *)pvRef; - - if (lpddoi->dwType & DIDFT_AXIS) - { - //initprintf(" Axis: %s (dwOfs=%d)\n", lpddoi->tszName, lpddoi->dwOfs); - - axisdefs[ typecounts[0] ].name = Xstrdup(lpddoi->tszName); - axisdefs[ typecounts[0] ].ofs = lpddoi->dwOfs; - - typecounts[0]++; - } - else if (lpddoi->dwType & DIDFT_BUTTON) - { - //initprintf(" Button: %s (dwOfs=%d)\n", lpddoi->tszName, lpddoi->dwOfs); - - buttondefs[ typecounts[1] ].name = Xstrdup(lpddoi->tszName); - buttondefs[ typecounts[1] ].ofs = lpddoi->dwOfs; - - typecounts[1]++; - } - else if (lpddoi->dwType & DIDFT_POV) - { - //initprintf(" POV: %s (dwOfs=%d)\n", lpddoi->tszName, lpddoi->dwOfs); - - hatdefs[ typecounts[2] ].name = Xstrdup(lpddoi->tszName); - hatdefs[ typecounts[2] ].ofs = lpddoi->dwOfs; - - typecounts[2]++; - } - - return DIENUM_CONTINUE; -} - -#define HorribleDInputDeath( x, y ) \ - ShowDInputErrorBox(x,y); \ - UninitDirectInput(); \ - return TRUE - -static BOOL InitDirectInput(void) -{ - HRESULT result; - HRESULT(WINAPI *aDirectInputCreateA)(HINSTANCE, DWORD, LPDIRECTINPUT7A *, LPUNKNOWN); - DIPROPDWORD dipdw; - LPDIRECTINPUTDEVICE7A dev; - LPDIRECTINPUTDEVICE7A dev2; - DIDEVCAPS didc; - - if (hDInputDLL || di_disabled) return FALSE; - - initprintf("Initializing DirectInput...\n"); - - if (!hDInputDLL) - { - // initprintf(" - Loading DINPUT.DLL\n"); - hDInputDLL = LoadLibrary("DINPUT.DLL"); - if (!hDInputDLL) - { - ShowErrorBox("Error loading DINPUT.DLL"); - return TRUE; - } - } - - aDirectInputCreateA = (HRESULT(WINAPI *)(HINSTANCE, DWORD, LPDIRECTINPUT7A *, LPUNKNOWN))GetProcAddress(hDInputDLL, "DirectInputCreateA"); - if (!aDirectInputCreateA) ShowErrorBox("Error fetching DirectInputCreateA()"); - - result = aDirectInputCreateA(hInstance, DIRECTINPUT_VERSION, &lpDI, NULL); - if (FAILED(result)) { HorribleDInputDeath("DirectInputCreateA() failed", result); } - else if (result != DI_OK) initprintf(" Created DirectInput object with warning: %s\n",GetDInputError(result)); - - initprintf(" - Enumerating attached game controllers\n"); - inputdevices = 1|2; - result = IDirectInput7_EnumDevices(lpDI, DIDEVTYPE_JOYSTICK, InitDirectInput_enum, NULL, DIEDFL_ATTACHEDONLY); - if (FAILED(result)) { HorribleDInputDeath("Failed enumerating attached game controllers", result); } - else if (result != DI_OK) initprintf(" Enumerated game controllers with warning: %s\n",GetDInputError(result)); - - if (inputdevices == (1|2)) - { - initprintf(" - No game controllers found\n"); - UninitDirectInput(); - return TRUE; - } - - *devicedef.did = NULL; - - // initprintf(" - Creating %s device\n", devicedef.name); - result = IDirectInput7_CreateDeviceEx(lpDI, bREFGUID guidDevs, bREFIID IID_IDirectInputDevice7, (LPVOID *)&dev, NULL); - - if (FAILED(result)) { HorribleDInputDeath("Failed creating device", result); } - else if (result != DI_OK) initprintf(" Created device with warning: %s\n",GetDInputError(result)); - - result = IDirectInputDevice7_QueryInterface(dev, bREFIID IID_IDirectInputDevice7, (LPVOID *)&dev2); - IDirectInputDevice7_Release(dev); - if (FAILED(result)) { HorribleDInputDeath("Failed querying DirectInput7 interface for device", result); } - else if (result != DI_OK) initprintf(" Queried IDirectInputDevice7 interface with warning: %s\n",GetDInputError(result)); - - result = IDirectInputDevice7_SetDataFormat(dev2, devicedef.df); - if (FAILED(result)) { IDirectInputDevice7_Release(dev2); HorribleDInputDeath("Failed setting data format", result); } - else if (result != DI_OK) initprintf(" Set data format with warning: %s\n",GetDInputError(result)); - - di_inputevt = CreateEvent(NULL, FALSE, FALSE, NULL); - - if (di_inputevt == NULL) - { - IDirectInputDevice7_Release(dev2); - ShowErrorBox("Couldn't create event object"); - UninitDirectInput(); - return TRUE; - } - - result = IDirectInputDevice7_SetEventNotification(dev2, di_inputevt); - if (FAILED(result)) { IDirectInputDevice7_Release(dev2); HorribleDInputDeath("Failed setting event object", result); } - else if (result != DI_OK) initprintf(" Set event object with warning: %s\n",GetDInputError(result)); - - IDirectInputDevice7_Unacquire(dev2); - - memset(&dipdw, 0, sizeof(dipdw)); - dipdw.diph.dwSize = sizeof(DIPROPDWORD); - dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER); - dipdw.diph.dwObj = 0; - dipdw.diph.dwHow = DIPH_DEVICE; - dipdw.dwData = INPUT_BUFFER_SIZE; - - result = IDirectInputDevice7_SetProperty(dev2, bDIPROP_BUFFERSIZE, &dipdw.diph); - if (FAILED(result)) { IDirectInputDevice7_Release(dev2); HorribleDInputDeath("Failed setting buffering", result); } - else if (result != DI_OK) initprintf(" Set buffering with warning: %s\n",GetDInputError(result)); - - // set up device - { - int32_t typecounts[3] = {0,0,0}; - - memset(&didc, 0, sizeof(didc)); - didc.dwSize = sizeof(didc); - result = IDirectInputDevice7_GetCapabilities(dev2, &didc); - if (FAILED(result)) { IDirectInputDevice7_Release(dev2); HorribleDInputDeath("Failed getting controller capabilities", result); } - else if (result != DI_OK) initprintf(" Fetched controller capabilities with warning: %s\n",GetDInputError(result)); - - joystick.numAxes = (uint8_t)didc.dwAxes; - joystick.numButtons = min(32,didc.dwButtons); - joystick.numHats = (uint8_t)didc.dwPOVs; - initprintf("Controller has %d axes, %d buttons, and %d hat(s).\n",joystick.numAxes,joystick.numButtons,joystick.numHats); - - axisdefs = (struct _joydef *)Xcalloc(didc.dwAxes, sizeof(struct _joydef)); - buttondefs = (struct _joydef *)Xcalloc(didc.dwButtons, sizeof(struct _joydef)); - if (didc.dwPOVs) - hatdefs = (struct _joydef *)Xcalloc(didc.dwPOVs, sizeof(struct _joydef)); - - joystick.pAxis = (int32_t *)Xcalloc(didc.dwAxes, sizeof(int32_t)); - if (didc.dwPOVs) - joystick.pHat = (int32_t *)Xcalloc(didc.dwPOVs, sizeof(int32_t)); - - result = IDirectInputDevice7_EnumObjects(dev2, InitDirectInput_enumobjects, (LPVOID)typecounts, DIDFT_ALL); - if (FAILED(result)) { IDirectInputDevice7_Release(dev2); HorribleDInputDeath("Failed getting controller features", result); } - else if (result != DI_OK) initprintf(" Fetched controller features with warning: %s\n",GetDInputError(result)); - } - - *devicedef.did = dev2; - - di_devacquired = 0; - - return FALSE; -} - - -// -// UninitDirectInput() -- clean up DirectInput -// -static void UninitDirectInput(void) -{ - int32_t i; - - if (hDInputDLL) initprintf("Uninitializing DirectInput...\n"); - - AcquireInputDevices(0); - - if (axisdefs) - { - for (i=joystick.numAxes-1; i>=0; i--) Xfree(axisdefs[i].name); - DO_FREE_AND_NULL(axisdefs); - } - if (buttondefs) - { - for (i=joystick.numButtons-1; i>=0; i--) Xfree(buttondefs[i].name); - DO_FREE_AND_NULL(buttondefs); - } - if (hatdefs) - { - for (i=joystick.numHats-1; i>=0; i--) Xfree(hatdefs[i].name); - DO_FREE_AND_NULL(hatdefs); - } - - if (di_inputevt) - { - CloseHandle(di_inputevt); - di_inputevt = NULL; - } - - if (*devicedef.did) - { - IDirectInputDevice7_Release(*devicedef.did); - *devicedef.did = NULL; - } - - if (lpDI) - { - IDirectInput7_Release(lpDI); - lpDI = NULL; - } - - if (hDInputDLL) - { - FreeLibrary(hDInputDLL); - hDInputDLL = NULL; - } -} - - -// -// GetKeyNames() -- retrieves the names for all the keys on the keyboard -// -static void GetKeyNames(void) -{ - int32_t i; - char tbuf[MAX_PATH], *cp; - - memset(g_keyNameTable,0,sizeof(g_keyNameTable)); - - for (i=0; i<256; i++) - { - tbuf[0] = 0; - GetKeyNameText((i>128?(i+128):i)<<16, tbuf, sizeof(g_keyNameTable[i])-1); - Bstrncpy(&g_keyNameTable[i][0], tbuf, sizeof(g_keyNameTable[i])-1); - for (cp=g_keyNameTable[i]; *cp; cp++) - if (!(*cp>=32 && *cp<127)) - *cp = '?'; - } -} - -const char *joyGetName(int32_t what, int32_t num) -{ - switch (what) - { - case 0: // axis - return ((unsigned)num > (unsigned)joystick.numAxes) ? NULL : (char *)axisdefs[num].name; - case 1: // button - return ((unsigned)num > (unsigned)joystick.numButtons) ? NULL : (char *)buttondefs[num].name; - case 2: // hat - return ((unsigned)num > (unsigned)joystick.numHats) ? NULL : (char *)hatdefs[num].name; - default: - return NULL; - } -} - -void joyScanDevices() -{ -} - -// -// AcquireInputDevices() -- (un)acquires the input devices -// -static void AcquireInputDevices(char acquire) -{ - DWORD flags; - HRESULT result; - - if (!hDInputDLL) return; - if (!hWindow) return; - - if (acquire) - { - // if (!appactive) return; // why acquire when inactive? - - if (! *devicedef.did) return; - - IDirectInputDevice7_Unacquire(*devicedef.did); - - flags = DISCL_FOREGROUND|DISCL_NONEXCLUSIVE; - - result = IDirectInputDevice7_SetCooperativeLevel(*devicedef.did, hWindow, flags); - if (FAILED(result)) - initprintf("IDirectInputDevice7_SetCooperativeLevel(%s): %s\n", - devicedef.name, GetDInputError(result)); - - if (SUCCEEDED(IDirectInputDevice7_Acquire(*devicedef.did))) - di_devacquired = 1; - else - di_devacquired = 0; - - return; - } - - di_devacquired = 0; - - // releaseallbuttons(); - - if (! *devicedef.did) return; - - IDirectInputDevice7_Unacquire(*devicedef.did); - - result = IDirectInputDevice7_SetCooperativeLevel(*devicedef.did, hWindow, DISCL_FOREGROUND|DISCL_NONEXCLUSIVE); - if (FAILED(result)) - initprintf("IDirectInputDevice7_SetCooperativeLevel(%s): %s\n", - devicedef.name, GetDInputError(result)); -} - -// -// ProcessInputDevices() -- processes the input devices -// -static inline void DI_PollJoysticks(void) -{ - DWORD dwElements = INPUT_BUFFER_SIZE; - HRESULT result; - DIDEVICEOBJECTDATA didod[INPUT_BUFFER_SIZE]; - int32_t i, ev; - - if (*devicedef.did) - { - result = IDirectInputDevice7_Poll(*devicedef.did); - - if (result == DIERR_INPUTLOST || result == DIERR_NOTACQUIRED) - { - if (SUCCEEDED(IDirectInputDevice7_Acquire(*devicedef.did))) - { - di_devacquired = 1; - IDirectInputDevice7_Poll(*devicedef.did); - } - else di_devacquired = 0; - } - - if (di_devacquired) - { - // use event objects so that we can quickly get indication of when data is ready - // to be read and input events processed - ev = WaitForSingleObject(di_inputevt, 0); - - if (ev != WAIT_OBJECT_0 || !lpDID) - return; - - result = IDirectInputDevice7_GetDeviceData(lpDID, sizeof(DIDEVICEOBJECTDATA), - (LPDIDEVICEOBJECTDATA)&didod, &dwElements, 0); - - if (result != DI_OK || !dwElements) return; - - for (i=dwElements-1; i>=0; i--) - { - int32_t j; - - // check axes - for (j=0; j MAXXDIM) *x = MAXXDIM; - if (*y > MAXYDIM) *y = MAXYDIM; - // *x &= 0xfffffff8l; - - for (i=0; i= 0) gammabrightness = 1; - if (gammabrightness && videoSetGamma() < 0) gammabrightness = 0; - } - -#if defined USE_OPENGL && defined USE_GLEXT - if (hGLWindow && glinfo.vsync) wglSwapIntervalEXT(vsync_renderlayer); -#endif - if (inp) AcquireInputDevices(1); - modechange=1; - videomodereset = 0; - - return 0; -} - - -// -// getvalidmodes() -- figure out what video modes are available -// -#define ADDMODE(x,y,c,f,n) \ - { \ - int fullscreen; \ - for (fullscreen = f; fullscreen >= 0; --fullscreen) \ - { \ - if (validmodecnt 8) - { - for (i=0; i modes[i].freq && maxrefreshfreq > 0) || - (dm.dmDisplayFrequency > modes[i].freq && maxrefreshfreq == 0)) - { - if (i==nmodes) nmodes++; - - modes[i].x = dm.dmPelsWidth; - modes[i].y = dm.dmPelsHeight; - modes[i].bpp = dm.dmBitsPerPel; - modes[i].freq = dm.dmDisplayFrequency; - } - } - - j++; - ZeroMemory(&dm,sizeof(DEVMODE)); - dm.dmSize = sizeof(DEVMODE); - } - - for (i=0; iddpfPixelFormat.dwRGBBitCount == 8) - { - CHECK(ddsd->dwWidth, ddsd->dwHeight) - ADDMODE(ddsd->dwWidth, ddsd->dwHeight, ddsd->ddpfPixelFormat.dwRGBBitCount, 1,-1); - } - - return DDENUMRET_OK; -} - -static int sortmodes(const void *a_, const void *b_) -{ - int32_t x; - - const struct validmode_t *a = (const struct validmode_t *)b_; - const struct validmode_t *b = (const struct validmode_t *)a_; - - if ((x = a->fs - b->fs) != 0) return x; - if ((x = a->bpp - b->bpp) != 0) return x; - if ((x = a->xdim - b->xdim) != 0) return x; - if ((x = a->ydim - b->ydim) != 0) return x; - - return 0; -} -void videoGetModes(void) -{ - int32_t cdepths[2] = { 8, 0 }; - int32_t i, j, maxx=0, maxy=0; - HRESULT result; - -#ifdef USE_OPENGL - if (desktopbpp > 8 && !nogl) cdepths[1] = desktopbpp; - else cdepths[1] = 0; -#endif - - if (modeschecked) return; - - validmodecnt=0; - // initprintf("Detecting video modes:\n"); - - if (bDDrawInited) - { - // if DirectDraw initialization didn't fail enumerate fullscreen modes - - result = IDirectDraw_EnumDisplayModes(lpDD, 0, NULL, 0, getvalidmodes_enum); - if (result != DD_OK) - { - initprintf("Unable to enumerate fullscreen modes. Using default list.\n"); - for (j=0; j < 2; j++) - { - if (cdepths[j] == 0) continue; - for (i=0; g_defaultVideoModes[i].x; i++) - ADDMODE(g_defaultVideoModes[i].x,g_defaultVideoModes[i].y,cdepths[j],1,-1) - } - } - } -#ifdef USE_OPENGL - cdsenummodes(); -#endif - - // Windowed modes can be as big as the current desktop resolution, but not bigger. - maxx = desktopxdim+1; - maxy = desktopydim+1; - - // add windowed modes next - for (j=0; j < 2; j++) - { - if (cdepths[j] == 0) continue; - for (i=0; g_defaultVideoModes[i].x; i++) - CHECK(g_defaultVideoModes[i].x,g_defaultVideoModes[i].y) - ADDMODE(g_defaultVideoModes[i].x,g_defaultVideoModes[i].y,cdepths[j],0,-1) - } - - qsort((void *)validmode, validmodecnt, sizeof(struct validmode_t), &sortmodes); - - modeschecked=1; -} - -#undef CHECK -#undef ADDMODE - - -// -// resetvideomode() -- resets the video system -// -void videoResetMode(void) -{ - videomodereset = 1; - modeschecked = 0; -} - - -// -// begindrawing() -- locks the framebuffer for drawing -// -#ifdef DEBUG_FRAME_LOCKING -uint32_t begindrawing_line[BEGINDRAWING_SIZE]; -const char *begindrawing_file[BEGINDRAWING_SIZE]; -void begindrawing_real(void) -#else -void videoBeginDrawing(void) -#endif -{ - if (bpp > 8) - { - if (offscreenrendering) return; - frameplace = 0; - bytesperline = 0; - modechange = 0; - return; - } - - if (lockcount++ > 0) - return; // already locked - - static intptr_t backupFrameplace = 0; - - if (inpreparemirror) - { - //POGO: if we are offscreenrendering and we need to render a mirror - // or we are rendering a mirror and we start offscreenrendering, - // backup our offscreen target so we can restore it later - // (but only allow one level deep, - // i.e. no viewscreen showing a camera showing a mirror that reflects the same viewscreen and recursing) - if (offscreenrendering) - { - if (!backupFrameplace) - backupFrameplace = frameplace; - else if (frameplace != (intptr_t)mirrorBuffer && - frameplace != backupFrameplace) - return; - } - - frameplace = (intptr_t)mirrorBuffer; - - if (offscreenrendering) - return; - } - else if (offscreenrendering) - { - if (backupFrameplace) - { - frameplace = backupFrameplace; - backupFrameplace = 0; - } - return; - } - else - { - frameplace = fullscreen ? (intptr_t)lpOffscreen : (intptr_t)lpPixels; - } - - if (!modechange) return; - - modechange=0; - - if (!fullscreen) - { - bytesperline = xres|4; - } - else - { - bytesperline = xres|1; - } - - calc_ylookup(bytesperline, ydim); -} - - -// -// enddrawing() -- unlocks the framebuffer -// -void videoEndDrawing(void) -{ - if (bpp > 8) - { - if (!offscreenrendering) frameplace = 0; - return; - } - - if (!frameplace) return; - if (lockcount > 1) { lockcount--; return; } - if (!offscreenrendering) frameplace = 0; - lockcount = 0; -} - - -// -// showframe() -- update the display -// -void videoShowFrame(int32_t w) -{ - HRESULT result; - DDSURFACEDESC ddsd; - char *p,*q; - int32_t i,j; - -#ifdef USE_OPENGL - if (bpp > 8) - { - if (palfadedelta) - fullscreen_tint_gl(palfadergb.r, palfadergb.g, palfadergb.b, palfadedelta); - - SwapBuffers(hDC); - return; - } -#endif - - // w = 1; // wait regardless. ken thinks it's better to do so. - - if (offscreenrendering) return; - - if (lockcount) - { - initprintf("Frame still locked %d times when showframe() called.\n", lockcount); - while (lockcount) videoEndDrawing(); - } - - if (!fullscreen) - { - BitBlt(hDC, 0, 0, xres, yres, hDCSection, 0, 0, SRCCOPY); - return; - } -/* - else - IDirectDraw_WaitForVerticalBlank(lpDD, DDWAITVB_BLOCKBEGIN, NULL); -*/ - - if (!w && (IDirectDrawSurface_GetBltStatus(lpDDSBack, DDGBS_CANBLT) == DDERR_WASSTILLDRAWING || - IDirectDrawSurface_GetFlipStatus(lpDDSPrimary, DDGFS_CANFLIP) == DDERR_WASSTILLDRAWING)) - return; - - // lock the backbuffer surface - Bmemset(&ddsd, 0, sizeof(ddsd)); - ddsd.dwSize = sizeof(ddsd); - - result = IDirectDrawSurface_Lock(lpDDSBack, NULL, &ddsd, DDLOCK_SURFACEMEMORYPTR | DDLOCK_NOSYSLOCK | DDLOCK_WAIT, NULL); - - if (result == DDERR_SURFACELOST) - { - if (!appactive) - return; // not in a position to restore display anyway - - IDirectDrawSurface_Restore(lpDDSPrimary); - result = IDirectDrawSurface_Lock(lpDDSBack, NULL, &ddsd, DDLOCK_SURFACEMEMORYPTR | DDLOCK_NOSYSLOCK | DDLOCK_WAIT, NULL); - } - if (result != DD_OK) - { - if (result != DDERR_WASSTILLDRAWING) - initprintf("Failed locking back-buffer surface: %s\n", GetDDrawError(result)); - return; - } - - // copy each scanline - p = (char *)ddsd.lpSurface; - q = (char *)lpOffscreen; - j = xres >> 2; - - for (i=0; i 8) return 0; // no palette in opengl - - Bmemcpy(lpal.palPalEntry, curpalettefaded, sizeof(lpal.palPalEntry)); - for (i=start, n=num-1; n>0; i++, n--) - curpalettefaded[i].f = lpal.palPalEntry[i].peFlags = PC_NOCOLLAPSE; - - if (fullscreen) - { - if (!lpDDPalette) return -1; - result = IDirectDrawPalette_SetEntries(lpDDPalette, 0, 0, 256, (LPPALETTEENTRY)lpal.palPalEntry); - if (result != DD_OK) - { - initprintf("Palette set failed: %s\n", GetDDrawError(result)); - return -1; - } - - return 0; - } - - if (num > 0) - { - rgb = (RGBQUAD *)Xmalloc(sizeof(RGBQUAD)*num); - for (i=start, n=0; n0; i--, start++) { -dapal[0] = curpalette[start].b >> 2; -dapal[1] = curpalette[start].g >> 2; -dapal[2] = curpalette[start].r >> 2; -dapal += 4; -} - -return 0; -}*/ - - -// -// setgamma -// -static int32_t setgammaramp(LPDDGAMMARAMP gt) -{ - if (!fullscreen || bpp > 8) - { - // GL and windowed mode use DIB method - int32_t i; - HDC hDC = GetDC(hWindow); - i = SetDeviceGammaRamp(hDC, gt) ? 0 : -1; - ReleaseDC(hWindow, hDC); - return i; - } - else if (appactive) - { - // fullscreen uses DirectX - LPDIRECTDRAWGAMMACONTROL gam; - HRESULT hr; - - if (!(DDdwCaps2 & DDCAPS2_PRIMARYGAMMA)) return -1; - - hr = IDirectDrawSurface_QueryInterface(lpDDSPrimary, bREFIID IID_IDirectDrawGammaControl, (LPVOID *)&gam); - if (hr != DD_OK) - { - // ShowDDrawErrorBox("Error querying gamma control", hr); - initprintf("Error querying gamma control: %s\n",GetDDrawError(hr)); - return -1; - } - - hr = IDirectDrawGammaControl_SetGammaRamp(gam, 0, gt); - if (hr != DD_OK) - { - IDirectDrawGammaControl_Release(gam); - initprintf("Error setting gamma ramp: %s\n",GetDDrawError(hr)); - // ShowDDrawErrorBox("Error setting gamma ramp", hr); - return -1; - } - - IDirectDrawGammaControl_Release(gam); - return 0; - } - - return 0; -} - -int32_t videoSetGamma(void) -{ - int32_t i; - static DDGAMMARAMP gammaTable; - float gamma = max(0.1f,min(4.f,g_videoGamma)); - float contrast = max(0.1f,min(3.f,g_videoContrast)); - float bright = max(-0.8f,min(0.8f,g_videoBrightness)); - - double invgamma = 1 / gamma; - double norm = pow(255., invgamma - 1); - - if (!hWindow) return -1; - - if (winlayer_have_ATI && bpp==8 && fullscreen) - return -1; - - // This formula is taken from Doomsday - - for (i = 0; i < 256; i++) - { - double val = i * contrast - (contrast - 1) * 127; - if (gamma != 1) val = pow(val, invgamma) / norm; - val += bright * 128; - - gammaTable.red[i] = gammaTable.green[i] = gammaTable.blue[i] = (uint16_t)max(0.f, min(65535.f, val * 256.f)); - } - - return setgammaramp(&gammaTable); -} - -static int32_t getgammaramp(LPDDGAMMARAMP gt) -{ - if (!hWindow) return -1; - if (!fullscreen || bpp > 8) - { - int32_t i; - HDC hDC = GetDC(hWindow); - i = GetDeviceGammaRamp(hDC, gt) ? 0 : -1; - ReleaseDC(hWindow, hDC); - return i; - } - else - { - LPDIRECTDRAWGAMMACONTROL gam; - HRESULT hr; - - if (!(DDdwCaps2 & DDCAPS2_PRIMARYGAMMA)) return -1; - - hr = IDirectDrawSurface_QueryInterface(lpDDSPrimary, bREFIID IID_IDirectDrawGammaControl, (LPVOID *)&gam); - if (hr != DD_OK) - { - ShowDDrawErrorBox("Error querying gamma control", hr); - return -1; - } - - hr = IDirectDrawGammaControl_GetGammaRamp(gam, 0, gt); - if (hr != DD_OK) - { - IDirectDrawGammaControl_Release(gam); - ShowDDrawErrorBox("Error getting gamma ramp", hr); - return -1; - } - - IDirectDrawGammaControl_Release(gam); - - return 0; - } -} - -// -// InitDirectDraw() -- get DirectDraw started -// - -// device enumerator -static BOOL WINAPI InitDirectDraw_enum(GUID *lpGUID, LPSTR lpDesc, LPSTR lpName, LPVOID lpContext) -{ - UNREFERENCED_PARAMETER(lpGUID); - UNREFERENCED_PARAMETER(lpName); - UNREFERENCED_PARAMETER(lpContext); - UNREFERENCED_PARAMETER(lpDesc); - // initprintf(" * %s\n", lpDesc); - return 1; -} - -static BOOL InitDirectDraw(void) -{ - HRESULT result; - HRESULT(WINAPI *aDirectDrawCreate)(GUID *, LPDIRECTDRAW *, IUnknown *); - HRESULT(WINAPI *aDirectDrawEnumerate)(LPDDENUMCALLBACK, LPVOID); - DDCAPS ddcaps; - - if (bDDrawInited) return FALSE; - - initprintf("Initializing DirectDraw...\n"); - - // load up the DirectDraw DLL - if (!hDDrawDLL) - { - // initprintf(" - Loading DDRAW.DLL\n"); - hDDrawDLL = LoadLibrary("DDRAW.DLL"); - if (!hDDrawDLL) - { - ShowErrorBox("Error loading DDRAW.DLL"); - return TRUE; - } - } - - // get the pointer to DirectDrawEnumerate - aDirectDrawEnumerate = (decltype(aDirectDrawEnumerate))GetProcAddress(hDDrawDLL, "DirectDrawEnumerateA"); - if (!aDirectDrawEnumerate) - { - ShowErrorBox("Error fetching DirectDrawEnumerate()"); - UninitDirectDraw(); - return TRUE; - } - - // enumerate the devices to make us look fancy - // initprintf(" - Enumerating display devices\n"); - aDirectDrawEnumerate(InitDirectDraw_enum, NULL); - - // get the pointer to DirectDrawCreate - aDirectDrawCreate = (decltype(aDirectDrawCreate))GetProcAddress(hDDrawDLL, "DirectDrawCreate"); - if (!aDirectDrawCreate) - { - ShowErrorBox("Error fetching DirectDrawCreate()"); - UninitDirectDraw(); - return TRUE; - } - - // create a new DirectDraw object - // initprintf(" - Creating DirectDraw object\n"); - result = aDirectDrawCreate(NULL, &lpDD, NULL); - if (result != DD_OK) - { - ShowDDrawErrorBox("DirectDrawCreate() failed", result); - UninitDirectDraw(); - return TRUE; - } - - // fetch capabilities - // initprintf(" - Checking capabilities\n"); - ddcaps.dwSize = sizeof(DDCAPS); - result = IDirectDraw_GetCaps(lpDD, &ddcaps, NULL); - if (result != DD_OK) - { - initprintf(" Unable to get capabilities.\n"); - } - else - { - DDdwCaps = ddcaps.dwCaps; - DDdwCaps2 = ddcaps.dwCaps2; - } - - bDDrawInited = TRUE; - - return FALSE; -} - - -// -// UninitDirectDraw() -- clean up DirectDraw -// -static void UninitDirectDraw(void) -{ - if (bDDrawInited) initprintf("Uninitializing DirectDraw...\n"); - - ReleaseDirectDrawSurfaces(); - - RestoreDirectDrawMode(); - - if (lpDD) - { - // initprintf(" - Releasing DirectDraw object\n"); - IDirectDraw_Release(lpDD); - lpDD = NULL; - } - - if (hDDrawDLL) - { - // initprintf(" - Unloading DDRAW.DLL\n"); - FreeLibrary(hDDrawDLL); - hDDrawDLL = NULL; - } - - bDDrawInited = FALSE; -} - - -// -// RestoreDirectDrawMode() -- resets the screen mode -// -static int32_t RestoreDirectDrawMode(void) -{ - HRESULT result; - - if (fullscreen == 0 || /*bpp > 8 ||*/ !bDDrawInited) return FALSE; - - if (modesetusing == 1) ChangeDisplaySettings(NULL,0); - else if (modesetusing == 0) - { - // restore previous display mode and set to normal cooperative level - result = IDirectDraw_RestoreDisplayMode(lpDD); - if (result != DD_OK) - { - ShowDDrawErrorBox("Error restoring display mode", result); - UninitDirectDraw(); - return TRUE; - } - - result = IDirectDraw_SetCooperativeLevel(lpDD, hWindow, DDSCL_NORMAL); - if (result != DD_OK) - { - ShowDDrawErrorBox("Error setting cooperative level", result); - UninitDirectDraw(); - return TRUE; - } - } - modesetusing = -1; - - return FALSE; -} - - -// -// ReleaseDirectDrawSurfaces() -- release the front and back buffers -// -static void ReleaseDirectDrawSurfaces(void) -{ - if (lpDDPalette) - { - // initprintf(" - Releasing palette\n"); - IDirectDrawPalette_Release(lpDDPalette); - lpDDPalette = NULL; - } - - if (lpDDSBack) - { - // initprintf(" - Releasing back-buffer surface\n"); - IDirectDrawSurface_Release(lpDDSBack); - lpDDSBack = NULL; - } - - if (lpDDSPrimary) - { - // initprintf(" - Releasing primary surface\n"); - IDirectDrawSurface_Release(lpDDSPrimary); - lpDDSPrimary = NULL; - } - - // if (lpOffscreen) - { - // initprintf(" - Freeing offscreen buffer\n"); - DO_FREE_AND_NULL(lpOffscreen); - } -} - - -// -// SetupDirectDraw() -- sets up DirectDraw rendering -// -static int32_t SetupDirectDraw(int32_t width, int32_t height) -{ - HRESULT result; - DDSURFACEDESC ddsd; - int32_t i; - - // now create the DirectDraw surfaces - ZeroMemory(&ddsd, sizeof(ddsd)); - ddsd.dwSize = sizeof(ddsd); - ddsd.dwFlags = DDSD_CAPS | DDSD_BACKBUFFERCOUNT; - ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_FLIP | DDSCAPS_COMPLEX; - ddsd.dwBackBufferCount = 2; // triple-buffer - - // initprintf(" - Creating primary surface\n"); - result = IDirectDraw_CreateSurface(lpDD, &ddsd, &lpDDSPrimary, NULL); - if (result != DD_OK) - { - ShowDDrawErrorBox("Failure creating primary surface", result); - UninitDirectDraw(); - return TRUE; - } - - ZeroMemory(&ddsd.ddsCaps, sizeof(ddsd.ddsCaps)); - ddsd.ddsCaps.dwCaps = DDSCAPS_BACKBUFFER; - numpages = 1; // KJS 20031225 - - // initprintf(" - Getting back buffer\n"); - result = IDirectDrawSurface_GetAttachedSurface(lpDDSPrimary, &ddsd.ddsCaps, &lpDDSBack); - if (result != DD_OK) - { - ShowDDrawErrorBox("Failure fetching back-buffer surface", result); - UninitDirectDraw(); - return TRUE; - } - - // initprintf(" - Allocating offscreen buffer\n"); - lpOffscreen = (char *)Xmalloc((width|1)*height); - if (!lpOffscreen) - { - ShowErrorBox("Failure allocating offscreen buffer"); - UninitDirectDraw(); - return TRUE; - } - - // attach a palette to the primary surface - // initprintf(" - Creating palette\n"); - for (i=0; i<256; i++) - curpalettefaded[i].f = PC_NOCOLLAPSE; - - result = IDirectDraw_CreatePalette(lpDD, DDPCAPS_8BIT | DDPCAPS_ALLOW256, - (LPPALETTEENTRY)curpalettefaded, &lpDDPalette, NULL); - if (result != DD_OK) - { - ShowDDrawErrorBox("Failure creating palette", result); - UninitDirectDraw(); - return TRUE; - } - - result = IDirectDrawSurface_SetPalette(lpDDSPrimary, lpDDPalette); - if (result != DD_OK) - { - ShowDDrawErrorBox("Failure setting palette", result); - UninitDirectDraw(); - return TRUE; - } - - return FALSE; -} - - -// -// UninitDIB() -- clean up the DIB renderer -// -static void UninitDIB(void) -{ - if (hPalette) - { - DeleteObject(hPalette); - hPalette = NULL; - } - - if (hDCSection) - { - DeleteDC(hDCSection); - hDCSection = NULL; - } - - if (hDIBSection) - { - DeleteObject(hDIBSection); - hDIBSection = NULL; - } - - if (hDC) - { - ReleaseDC(hWindow, hDC); - hDC = NULL; - } -} - - -// -// SetupDIB() -- sets up DIB rendering -// -static int32_t SetupDIB(int32_t width, int32_t height) -{ - struct binfo - { - BITMAPINFOHEADER header; - RGBQUAD colours[256]; - } dibsect; - int32_t i; - - if (!hDC) - { - hDC = GetDC(hWindow); - if (!hDC) - { - ShowErrorBox("Error getting device context"); - return TRUE; - } - } - - if (hDCSection) - { - DeleteDC(hDCSection); - hDCSection = NULL; - } - - // destroy the previous DIB section if it existed - if (hDIBSection) - { - DeleteObject(hDIBSection); - hDIBSection = NULL; - } - - // create the new DIB section - memset(&dibsect, 0, sizeof(dibsect)); - numpages = 1; // KJS 20031225 - dibsect.header.biSize = sizeof(dibsect.header); - dibsect.header.biWidth = width|1; // Ken did this - dibsect.header.biHeight = -height; - dibsect.header.biPlanes = 1; - dibsect.header.biBitCount = 8; - dibsect.header.biCompression = BI_RGB; - dibsect.header.biClrUsed = 256; - dibsect.header.biClrImportant = 256; - for (i=0; i<256; i++) - { - dibsect.colours[i].rgbBlue = curpalette[i].b; - dibsect.colours[i].rgbGreen = curpalette[i].g; - dibsect.colours[i].rgbRed = curpalette[i].r; - } - - hDIBSection = CreateDIBSection(hDC, (BITMAPINFO *)&dibsect, DIB_RGB_COLORS, &lpPixels, NULL, 0); - if (!hDIBSection) - { - ReleaseDC(hWindow, hDC); - hDC = NULL; - - ShowErrorBox("Error creating DIB section"); - return TRUE; - } - - memset(lpPixels, 0, width*height); - - // create a compatible memory DC - hDCSection = CreateCompatibleDC(hDC); - if (!hDCSection) - { - ReleaseDC(hWindow, hDC); - hDC = NULL; - - ShowErrorBox("Error creating compatible DC"); - return TRUE; - } - - // select the DIB section into the memory DC - if (!SelectObject(hDCSection, hDIBSection)) - { - ReleaseDC(hWindow, hDC); - hDC = NULL; - DeleteDC(hDCSection); - hDCSection = NULL; - - ShowErrorBox("Error creating compatible DC"); - return TRUE; - } - - return FALSE; -} - -#ifdef USE_OPENGL -// -// ReleaseOpenGL() -- cleans up OpenGL rendering stuff -// - -static void ReleaseOpenGL(void) -{ - if (hGLRC) - { - polymost_glreset(); - if (!wglMakeCurrent(0,0)) { } - if (!wglDeleteContext(hGLRC)) { } - hGLRC = NULL; - } - if (hGLWindow) - { - if (hDC) - { - ReleaseDC(hGLWindow, hDC); - hDC = NULL; - } - - DestroyWindow(hGLWindow); - hGLWindow = NULL; - } -} - - -// -// UninitOpenGL() -- unitializes any openGL libraries -// -static void UninitOpenGL(void) -{ - ReleaseOpenGL(); -} - - -// -// SetupOpenGL() -- sets up opengl rendering -// -static int32_t SetupOpenGL(int32_t width, int32_t height, int32_t bitspp) -{ - PIXELFORMATDESCRIPTOR pfd = - { - sizeof(PIXELFORMATDESCRIPTOR), - 1, //Version Number - PFD_DRAW_TO_WINDOW|PFD_SUPPORT_OPENGL|PFD_DOUBLEBUFFER, //Must Support these - PFD_TYPE_RGBA, //Request An RGBA Format - 0, //Select Our Color Depth - 0,0,0,0,0,0, //Color Bits Ignored - 0, //No Alpha Buffer - 0, //Shift Bit Ignored - 0, //No Accumulation Buffer - 0,0,0,0, //Accumulation Bits Ignored - 24, //16/24/32 Z-Buffer depth - 8, //8-bit Stencil Buffer - 0, //No Auxiliary Buffer - PFD_MAIN_PLANE, //Main Drawing Layer - 0, //Reserved - 0,0,0 //Layer Masks Ignored - }; - GLuint PixelFormat; - int32_t minidriver; - int32_t err; - pfd.cColorBits = bitspp; - - hGLWindow = CreateWindow( - WindowClass, - "OpenGL Window", - WS_CHILD|WS_VISIBLE, - 0,0, - width,height, - hWindow, - (HMENU)0, - hInstance, - NULL); - if (!hGLWindow) - { - ShowErrorBox("Error creating OpenGL child window."); - return TRUE; - } - - hDC = GetDC(hGLWindow); - if (!hDC) - { - ReleaseOpenGL(); - ShowErrorBox("Error getting device context"); - return TRUE; - } - - minidriver = Bstrcasecmp(gldriver,"opengl32.dll"); - - if (minidriver) PixelFormat = wglChoosePixelFormat(hDC,&pfd); - else PixelFormat = ChoosePixelFormat(hDC,&pfd); - if (!PixelFormat) - { - ReleaseOpenGL(); - ShowErrorBox("Can't choose pixel format"); - return TRUE; - } - - if (minidriver) err = wglSetPixelFormat(hDC, PixelFormat, &pfd); - else err = SetPixelFormat(hDC, PixelFormat, &pfd); - if (!err) - { - ReleaseOpenGL(); - ShowErrorBox("Can't set pixel format"); - return TRUE; - } - - hGLRC = wglCreateContext(hDC); - - if (!hGLRC) - { - ReleaseOpenGL(); - ShowErrorBox("Can't create GL RC"); - return TRUE; - } - - if (!wglMakeCurrent(hDC, hGLRC)) - { - ReleaseOpenGL(); - ShowErrorBox("Can't activate GL RC"); - return TRUE; - } - - static int32_t glLoaded = 0; - if (!glLoaded) - { - if (!gladLoadWGL(hDC) || !gladLoadGL()) - { - initprintf("Failure loading OpenGL. GL modes are unavailable.\n"); - nogl = 1; - ReleaseOpenGL(); - return TRUE; -#ifdef POLYMER - } - else if (loadglulibrary(getenv("BUILD_GLULIB"))) - { - initprintf("Failure loading GLU. GL modes are unavailable.\n"); - nogl = 1; - ReleaseOpenGL(); - return TRUE; -#endif - } - else if (GLVersion.major < 2) - { - initprintf("Your computer does not support OpenGL version 2 or greater. GL modes are unavailable.\n"); - nogl = 1; - ReleaseOpenGL(); - return TRUE; - } - else - { - glLoaded = 1; - } - } - -# if defined DEBUGGINGAIDS && defined USE_GLEXT - // We should really be checking for the new WGL extension string instead - // Enable this to leverage ARB_debug_output - if (wglCreateContextAttribsARB) { - HGLRC debuggingContext = hGLRC; - - // This corresponds to WGL_CONTEXT_FLAGS_ARB set to WGL_CONTEXT_DEBUG_BIT_ARB - // I'm too lazy to get a new wglext.h - int attribs[] = { - 0x2094, 0x1, - 0 - }; - - debuggingContext = wglCreateContextAttribsARB(hDC, NULL, attribs); - - if (debuggingContext) { - wglDeleteContext(hGLRC); - wglMakeCurrent(hDC, debuggingContext); - hGLRC = debuggingContext; - } - } -# endif - - polymost_glreset(); - - glShadeModel(GL_SMOOTH); //GL_FLAT - glClearColor(0,0,0,0.5); //Black Background - glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_NICEST); //Use FASTEST for ortho! - glHint(GL_LINE_SMOOTH_HINT,GL_NICEST); - glHint(GL_TEXTURE_COMPRESSION_HINT, GL_NICEST); - glDisable(GL_DITHER); - - { - GLubyte *p,*p2,*p3; - int32_t err = 0; - - glinfo.vendor = (char const *)glGetString(GL_VENDOR); - glinfo.renderer = (char const *)glGetString(GL_RENDERER); - glinfo.version = (char const *)glGetString(GL_VERSION); - glinfo.extensions = (char const *)glGetString(GL_EXTENSIONS); - - // GL driver blacklist - - if (!Bstrcmp(glinfo.vendor,"Microsoft Corporation")) err = 1; - else if (!Bstrcmp(glinfo.vendor,"SiS")) err = 1; - else if (!Bstrcmp(glinfo.vendor,"3Dfx Interactive Inc.")) err = 1; -#ifdef POLYMER - else if (!Bstrcmp(glinfo.vendor, "Intel")) - pr_ati_fboworkaround = 1; -#endif - else - { - if (!Bstrcmp(glinfo.vendor,"ATI Technologies Inc.")) - { - winlayer_have_ATI = 1; -#ifdef POLYMER - pr_ati_fboworkaround = 1; -#endif - if (Bstrstr(glinfo.renderer,"Radeon X1")) - { -#ifdef POLYMER - pr_ati_nodepthoffset = 1; - initprintf("Enabling ATI R520 polygon offset workaround.\n"); -#endif - } -#ifdef POLYMER - else - pr_ati_nodepthoffset = 0; -#endif - } -#ifdef POLYMER - else - pr_ati_fboworkaround = 0; -#endif - } - -#ifdef POLYMER - if (pr_ati_fboworkaround) - initprintf("Enabling Intel/ATI FBO color attachment workaround.\n"); -#endif - - if (!forcegl && err) - { - OSD_Printf("Unsupported OpenGL driver detected. GL modes will be unavailable. Use -forcegl to override.\n"); - wm_msgbox("Unsupported OpenGL driver", "Unsupported OpenGL driver detected. GL modes will be unavailable."); - ReleaseOpenGL(); - //POGO: there is no equivalent to unloadgldriver() with GLAD's loader, but this shouldn't be a problem. - //unloadgldriver(); - unloadwgl(); - nogl = 1; - modeschecked = 0; - videoGetModes(); - return TRUE; - } - - glinfo.maxanisotropy = 1.0; - glinfo.bgra = 0; - glinfo.texcompr = 0; - - // process the extensions string and flag stuff we recognize - p = (GLubyte *)Xstrdup(glinfo.extensions); - p3 = p; - while ((p2 = (GLubyte *)Bstrtoken(p3==p?(char *)p:NULL, " ", (char **)&p3, 1)) != NULL) - { - if (!Bstrcmp((char *)p2, "GL_EXT_texture_filter_anisotropic")) - { - // supports anisotropy. get the maximum anisotropy level - glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &glinfo.maxanisotropy); - } - else if (!Bstrcmp((char *)p2, "GL_EXT_texture_edge_clamp") || - !Bstrcmp((char *)p2, "GL_SGIS_texture_edge_clamp")) - { - // supports GL_CLAMP_TO_EDGE or GL_CLAMP_TO_EDGE_SGIS - glinfo.clamptoedge = 1; - } - /* - else if (!Bstrcmp((char *)p2, "GL_EXT_bgra")) - { - // support bgra textures - glinfo.bgra = 1; - } - */ - else if (!Bstrcmp((char *)p2, "GL_ARB_texture_compression") && Bstrcmp(glinfo.vendor,"ATI Technologies Inc.")) - { - // support texture compression - glinfo.texcompr = 1; - -#ifdef DYNAMIC_GLEXT - if (!glCompressedTexImage2D || !glGetCompressedTexImage) - { - // lacking the necessary extensions to do this - initprintf("Warning: the GL driver lacks necessary functions to use caching\n"); - glinfo.texcompr = 0; - } -#endif - } - else if (!Bstrcmp((char *)p2, "GL_ARB_texture_non_power_of_two")) - { - // support non-power-of-two texture sizes - glinfo.texnpot = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_fragment_program")) - { - glinfo.arbfp = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_depth_texture")) - { - glinfo.depthtex = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_shadow")) - { - glinfo.shadow = 1; - } - else if (!Bstrcmp((char *)p2, "GL_EXT_framebuffer_object")) - { - glinfo.fbos = 1; - } - else if (!Bstrcmp((char *)p2, "GL_NV_texture_rectangle") || - !Bstrcmp((char *)p2, "GL_EXT_texture_rectangle")) - { - glinfo.rect = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_multitexture")) - { - glinfo.multitex = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_texture_env_combine")) - { - glinfo.envcombine = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_vertex_buffer_object")) - { - glinfo.vbos = 1; - } - else if (!Bstrcmp((char *)p2, "WGL_EXT_swap_control")) - { - glinfo.vsync = 1; - } - else if (!Bstrcmp((char *)p2, "GL_EXT_gpu_shader4")) - { - glinfo.sm4 = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_occlusion_query")) - { - glinfo.occlusionqueries = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_shader_objects")) - { - glinfo.glsl = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_debug_output")) - { - glinfo.debugoutput = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_buffer_storage")) - { - glinfo.bufferstorage = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_sync")) - { - glinfo.sync = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_depth_clamp")) - { - glinfo.depthclamp = 1; - } - else if (!Bstrcmp((char *)p2, "GL_ARB_clipcontrol")) - { - glinfo.clipcontrol = 1; - } - } - Xfree(p); - } - numpages = 2; // KJS 20031225: tell rotatesprite that it's double buffered! - - if (!glinfo.dumped) - { - int32_t oldbpp = bpp; - bpp = 32; - osdcmd_glinfo(NULL); - glinfo.dumped = TRUE; - bpp = oldbpp; - } - - return FALSE; -} -#endif - -// -// CreateAppWindow() -- create the application window -// -static BOOL CreateAppWindow(int32_t modenum) -{ - RECT rect; - int32_t w, h, x, y, stylebits = 0, stylebitsex = 0; - int32_t width, height, fs, bitspp, rfreq = -1; - - HRESULT result; - - if (modenum == 0x7fffffff) - { - width = customxdim; - height = customydim; - fs = customfs; - bitspp = custombpp; - } - else - { - width = validmode[modenum].xdim; - height = validmode[modenum].ydim; - fs = validmode[modenum].fs; - bitspp = validmode[modenum].bpp; - rfreq = validmode[modenum].extra; - } - - if (width == xres && height == yres && fs == fullscreen && bitspp == bpp && !videomodereset) return FALSE; - - if (hWindow) - { - if (bpp > 8) - { -#ifdef USE_OPENGL - ReleaseOpenGL(); -#endif - } - else - { - ReleaseDirectDrawSurfaces(); - } - - if (!fs && fullscreen) - { - // restore previous display mode and set to normal cooperative level - RestoreDirectDrawMode(); -#ifdef USE_OPENGL - } - else if (fs && fullscreen) - { - // using CDS for GL modes, so restore from DirectDraw - if (bpp != bitspp) RestoreDirectDrawMode(); -#endif - } - - - ShowWindow(hWindow, SW_HIDE); // so Windows redraws what's behind if the window shrinks - } - - if (fs) - { - stylebitsex = WS_EX_TOPMOST; - stylebits = WS_POPUP; - } - else - { - stylebitsex = 0; - stylebits = WINDOW_STYLE; - } - - if (!hWindow) - { - hWindow = CreateWindowEx( - stylebitsex, - WindowClass, - apptitle, - stylebits, - CW_USEDEFAULT, - CW_USEDEFAULT, - 320, - 200, - NULL, - NULL, - hInstance, - 0); - if (!hWindow) - { - ShowErrorBox("Unable to create window"); - return TRUE; - } - - startwin_close(); - } - else - { - SetWindowLong(hWindow,GWL_EXSTYLE,stylebitsex); - SetWindowLong(hWindow,GWL_STYLE,stylebits); - } - - // resize the window - if (!fs) - { - rect.left = 0; - rect.top = 0; - rect.right = width-1; - rect.bottom = height-1; - AdjustWindowRect(&rect, stylebits, FALSE); - - w = (rect.right - rect.left); - h = (rect.bottom - rect.top); - x = (desktopxdim - w) / 2; - y = (desktopydim - h) / 2; - } - else - { - x=y=0; - w=width; - h=height; - } - - if (windowx == -1) - windowx = x; - - if (windowy == -1) - windowy = y; - - SetWindowText(hWindow, apptitle); - ShowWindow(hWindow, SW_SHOWNORMAL); - SetForegroundWindow(hWindow); - SetFocus(hWindow); - - SetWindowPos(hWindow, HWND_TOP, windowpos?windowx:x, windowpos?windowy:y, w, h, 0); - - // fullscreen? - if (!fs) - { - if (bitspp > 8) - { -#ifdef USE_OPENGL - // yes, start up opengl - if (SetupOpenGL(width,height,bitspp)) - return TRUE; -#endif - } - else if (SetupDIB(width,height)) // use DIB section - return TRUE; - - modesetusing = -1; - } - else - { - // yes, set up DirectDraw - - // clean up after the DIB renderer if it was being used - UninitDIB(); - - if (!bDDrawInited) - { - DestroyWindow(hWindow); - hWindow = NULL; - return TRUE; - } - -#ifdef USE_OPENGL - if (bitspp > 8) - { - DEVMODE dmScreenSettings; - - ZeroMemory(&dmScreenSettings, sizeof(DEVMODE)); - dmScreenSettings.dmSize = sizeof(DEVMODE); - dmScreenSettings.dmPelsWidth = width; - dmScreenSettings.dmPelsHeight = height; - dmScreenSettings.dmBitsPerPel = bitspp; - dmScreenSettings.dmFields = DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT; - if (modenum != 0x7fffffff) - { - dmScreenSettings.dmDisplayFrequency = validmode[modenum].extra; - dmScreenSettings.dmFields |= DM_DISPLAYFREQUENCY; - } - - if (ChangeDisplaySettings(&dmScreenSettings, CDS_FULLSCREEN) != DISP_CHANGE_SUCCESSFUL) - { - ShowErrorBox("Video mode not supported"); - return TRUE; - } - - ShowWindow(hWindow, SW_SHOWNORMAL); - SetForegroundWindow(hWindow); - SetFocus(hWindow); - - modesetusing = 1; - } - else -#endif - { - // set exclusive cooperative level - result = IDirectDraw_SetCooperativeLevel(lpDD, hWindow, DDSCL_ALLOWMODEX|DDSCL_EXCLUSIVE|DDSCL_FULLSCREEN); - if (result != DD_OK) - { - ShowDDrawErrorBox("Error setting cooperative level", result); - UninitDirectDraw(); - return TRUE; - } - - result = IDirectDraw_SetDisplayMode(lpDD, width, height, bitspp); - if (result != DD_OK) - { - ShowDDrawErrorBox("Error setting display mode", result); - UninitDirectDraw(); - return TRUE; - } - - modesetusing = 0; - } - - if (bitspp > 8) - { -#ifdef USE_OPENGL - // we want an opengl mode - if (SetupOpenGL(width,height,bitspp)) - { - return TRUE; - } -#endif - } - else - { - // we want software - if (SetupDirectDraw(width,height)) - { - return TRUE; - } - } - } - - xres = width; - yres = height; - bpp = bitspp; - refreshfreq = rfreq; - fullscreen = fs; - curvidmode = modenum; - - frameplace = 0; - lockcount = 0; - - // bytesperline is set when framebuffer is locked - //bytesperline = width; - - modechange = 1; - - UpdateWindow(hWindow); - - return FALSE; -} - - -// -// DestroyAppWindow() -- destroys the application window -// -static void DestroyAppWindow(void) -{ - if (hWindow && gammabrightness) - { - setgammaramp(&sysgamma); - gammabrightness = 0; - } - -#ifdef USE_OPENGL - UninitOpenGL(); -#endif - UninitDirectDraw(); - UninitDIB(); - - if (hWindow) - { - DestroyWindow(hWindow); - hWindow = NULL; - } -} - - -// -// ShowDDrawErrorBox() -- shows an error message box for a DirectDraw error -// -static void ShowDDrawErrorBox(const char *m, HRESULT r) -{ - TCHAR msg[1024]; - - wsprintf(msg, "%s: %s", m, GetDDrawError(r)); - MessageBox(0, msg, apptitle, MB_OK|MB_ICONSTOP); -} - - -// -// GetDDrawError() -- stinking huge list of error messages since MS didn't want to include -// them in the DLL -// -static const char *GetDDrawError(HRESULT code) -{ - switch (code) - { - case DD_OK: - return "DD_OK"; - case DDERR_ALREADYINITIALIZED: - return "DDERR_ALREADYINITIALIZED"; - case DDERR_BLTFASTCANTCLIP: - return "DDERR_BLTFASTCANTCLIP"; - case DDERR_CANNOTATTACHSURFACE: - return "DDERR_CANNOTATTACHSURFACE"; - case DDERR_CANNOTDETACHSURFACE: - return "DDERR_CANNOTDETACHSURFACE"; - case DDERR_CANTCREATEDC: - return "DDERR_CANTCREATEDC"; - case DDERR_CANTDUPLICATE: - return "DDERR_CANTDUPLICATE"; - case DDERR_CANTLOCKSURFACE: - return "DDERR_CANTLOCKSURFACE"; - case DDERR_CANTPAGELOCK: - return "DDERR_CANTPAGELOCK"; - case DDERR_CANTPAGEUNLOCK: - return "DDERR_CANTPAGEUNLOCK"; - case DDERR_CLIPPERISUSINGHWND: - return "DDERR_CLIPPERISUSINGHWND"; - case DDERR_COLORKEYNOTSET: - return "DDERR_COLORKEYNOTSET"; - case DDERR_CURRENTLYNOTAVAIL: - return "DDERR_CURRENTLYNOTAVAIL"; - case DDERR_DCALREADYCREATED: - return "DDERR_DCALREADYCREATED"; - case DDERR_DEVICEDOESNTOWNSURFACE: - return "DDERR_DEVICEDOESNTOWNSURFACE"; - case DDERR_DIRECTDRAWALREADYCREATED: - return "DDERR_DIRECTDRAWALREADYCREATED"; - case DDERR_EXCEPTION: - return "DDERR_EXCEPTION"; - case DDERR_EXCLUSIVEMODEALREADYSET: - return "DDERR_EXCLUSIVEMODEALREADYSET"; - case DDERR_EXPIRED: - return "DDERR_EXPIRED"; - case DDERR_GENERIC: - return "DDERR_GENERIC"; - case DDERR_HEIGHTALIGN: - return "DDERR_HEIGHTALIGN"; - case DDERR_HWNDALREADYSET: - return "DDERR_HWNDALREADYSET"; - case DDERR_HWNDSUBCLASSED: - return "DDERR_HWNDSUBCLASSED"; - case DDERR_IMPLICITLYCREATED: - return "DDERR_IMPLICITLYCREATED"; - case DDERR_INCOMPATIBLEPRIMARY: - return "DDERR_INCOMPATIBLEPRIMARY"; - case DDERR_INVALIDCAPS: - return "DDERR_INVALIDCAPS"; - case DDERR_INVALIDCLIPLIST: - return "DDERR_INVALIDCLIPLIST"; - case DDERR_INVALIDDIRECTDRAWGUID: - return "DDERR_INVALIDDIRECTDRAWGUID"; - case DDERR_INVALIDMODE: - return "DDERR_INVALIDMODE"; - case DDERR_INVALIDOBJECT: - return "DDERR_INVALIDOBJECT"; - case DDERR_INVALIDPARAMS: - return "DDERR_INVALIDPARAMS"; - case DDERR_INVALIDPIXELFORMAT: - return "DDERR_INVALIDPIXELFORMAT"; - case DDERR_INVALIDPOSITION: - return "DDERR_INVALIDPOSITION"; - case DDERR_INVALIDRECT: - return "DDERR_INVALIDRECT"; - case DDERR_INVALIDSTREAM: - return "DDERR_INVALIDSTREAM"; - case DDERR_INVALIDSURFACETYPE: - return "DDERR_INVALIDSURFACETYPE"; - case DDERR_LOCKEDSURFACES: - return "DDERR_LOCKEDSURFACES"; - case DDERR_MOREDATA: - return "DDERR_MOREDATA"; - case DDERR_NO3D: - return "DDERR_NO3D"; - case DDERR_NOALPHAHW: - return "DDERR_NOALPHAHW"; - case DDERR_NOBLTHW: - return "DDERR_NOBLTHW"; - case DDERR_NOCLIPLIST: - return "DDERR_NOCLIPLIST"; - case DDERR_NOCLIPPERATTACHED: - return "DDERR_NOCLIPPERATTACHED"; - case DDERR_NOCOLORCONVHW: - return "DDERR_NOCOLORCONVHW"; - case DDERR_NOCOLORKEY: - return "DDERR_NOCOLORKEY"; - case DDERR_NOCOLORKEYHW: - return "DDERR_NOCOLORKEYHW"; - case DDERR_NOCOOPERATIVELEVELSET: - return "DDERR_NOCOOPERATIVELEVELSET"; - case DDERR_NODC: - return "DDERR_NODC"; - case DDERR_NODDROPSHW: - return "DDERR_NODDROPSHW"; - case DDERR_NODIRECTDRAWHW: - return "DDERR_NODIRECTDRAWHW"; - case DDERR_NODIRECTDRAWSUPPORT: - return "DDERR_NODIRECTDRAWSUPPORT"; - case DDERR_NOEMULATION: - return "DDERR_NOEMULATION"; - case DDERR_NOEXCLUSIVEMODE: - return "DDERR_NOEXCLUSIVEMODE"; - case DDERR_NOFLIPHW: - return "DDERR_NOFLIPHW"; - case DDERR_NOFOCUSWINDOW: - return "DDERR_NOFOCUSWINDOW"; - case DDERR_NOGDI: - return "DDERR_NOGDI"; - case DDERR_NOHWND: - return "DDERR_NOHWND"; - case DDERR_NOMIPMAPHW: - return "DDERR_NOMIPMAPHW"; - case DDERR_NOMIRRORHW: - return "DDERR_NOMIRRORHW"; - case DDERR_NONONLOCALVIDMEM: - return "DDERR_NONONLOCALVIDMEM"; - case DDERR_NOOPTIMIZEHW: - return "DDERR_NOOPTIMIZEHW"; - case DDERR_NOOVERLAYDEST: - return "DDERR_NOOVERLAYDEST"; - case DDERR_NOOVERLAYHW: - return "DDERR_NOOVERLAYHW"; - case DDERR_NOPALETTEATTACHED: - return "DDERR_NOPALETTEATTACHED"; - case DDERR_NOPALETTEHW: - return "DDERR_NOPALETTEHW"; - case DDERR_NORASTEROPHW: - return "DDERR_NORASTEROPHW"; - case DDERR_NOROTATIONHW: - return "DDERR_NOROTATIONHW"; - case DDERR_NOSTRETCHHW: - return "DDERR_NOSTRETCHHW"; - case DDERR_NOT4BITCOLOR: - return "DDERR_NOT4BITCOLOR"; - case DDERR_NOT4BITCOLORINDEX: - return "DDERR_NOT4BITCOLORINDEX"; - case DDERR_NOT8BITCOLOR: - return "DDERR_NOT8BITCOLOR"; - case DDERR_NOTAOVERLAYSURFACE: - return "DDERR_NOTAOVERLAYSURFACE"; - case DDERR_NOTEXTUREHW: - return "DDERR_NOTEXTUREHW"; - case DDERR_NOTFLIPPABLE: - return "DDERR_NOTFLIPPABLE"; - case DDERR_NOTFOUND: - return "DDERR_NOTFOUND"; - case DDERR_NOTINITIALIZED: - return "DDERR_NOTINITIALIZED"; - case DDERR_NOTLOADED: - return "DDERR_NOTLOADED"; - case DDERR_NOTLOCKED: - return "DDERR_NOTLOCKED"; - case DDERR_NOTPAGELOCKED: - return "DDERR_NOTPAGELOCKED"; - case DDERR_NOTPALETTIZED: - return "DDERR_NOTPALETTIZED"; - case DDERR_NOVSYNCHW: - return "DDERR_NOVSYNCHW"; - case DDERR_NOZBUFFERHW: - return "DDERR_NOZBUFFERHW"; - case DDERR_NOZOVERLAYHW: - return "DDERR_NOZOVERLAYHW"; - case DDERR_OUTOFCAPS: - return "DDERR_OUTOFCAPS"; - case DDERR_OUTOFMEMORY: - return "DDERR_OUTOFMEMORY"; - case DDERR_OUTOFVIDEOMEMORY: - return "DDERR_OUTOFVIDEOMEMORY"; - case DDERR_OVERLAPPINGRECTS: - return "DDERR_OVERLAPPINGRECTS"; - case DDERR_OVERLAYCANTCLIP: - return "DDERR_OVERLAYCANTCLIP"; - case DDERR_OVERLAYCOLORKEYONLYONEACTIVE: - return "DDERR_OVERLAYCOLORKEYONLYONEACTIVE"; - case DDERR_OVERLAYNOTVISIBLE: - return "DDERR_OVERLAYNOTVISIBLE"; - case DDERR_PALETTEBUSY: - return "DDERR_PALETTEBUSY"; - case DDERR_PRIMARYSURFACEALREADYEXISTS: - return "DDERR_PRIMARYSURFACEALREADYEXISTS"; - case DDERR_REGIONTOOSMALL: - return "DDERR_REGIONTOOSMALL"; - case DDERR_SURFACEALREADYATTACHED: - return "DDERR_SURFACEALREADYATTACHED"; - case DDERR_SURFACEALREADYDEPENDENT: - return "DDERR_SURFACEALREADYDEPENDENT"; - case DDERR_SURFACEBUSY: - return "DDERR_SURFACEBUSY"; - case DDERR_SURFACEISOBSCURED: - return "DDERR_SURFACEISOBSCURED"; - case DDERR_SURFACELOST: - return "DDERR_SURFACELOST"; - case DDERR_SURFACENOTATTACHED: - return "DDERR_SURFACENOTATTACHED"; - case DDERR_TOOBIGHEIGHT: - return "DDERR_TOOBIGHEIGHT"; - case DDERR_TOOBIGSIZE: - return "DDERR_TOOBIGSIZE"; - case DDERR_TOOBIGWIDTH: - return "DDERR_TOOBIGWIDTH"; - case DDERR_UNSUPPORTED: - return "DDERR_UNSUPPORTED"; - case DDERR_UNSUPPORTEDFORMAT: - return "DDERR_UNSUPPORTEDFORMAT"; - case DDERR_UNSUPPORTEDMASK: - return "DDERR_UNSUPPORTEDMASK"; - case DDERR_UNSUPPORTEDMODE: - return "DDERR_UNSUPPORTEDMODE"; - case DDERR_VERTICALBLANKINPROGRESS: - return "DDERR_VERTICALBLANKINPROGRESS"; - case DDERR_VIDEONOTACTIVE: - return "DDERR_VIDEONOTACTIVE"; - case DDERR_WASSTILLDRAWING: - return "DDERR_WASSTILLDRAWING"; - case DDERR_WRONGMODE: - return "DDERR_WRONGMODE"; - case DDERR_XALIGN: - return "DDERR_XALIGN"; - default: - break; - } - return "Unknown error"; -} - - - - - - -//------------------------------------------------------------------------------------------------- -// MOSTLY STATIC INTERNAL WINDOWS THINGS -//================================================================================================= - - - -// -// WndProcCallback() -- the Windows window callback -// -static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) -{ - /* RECT rect; - POINT pt; - HRESULT result; */ - -#ifdef USE_OPENGL - if (hWnd == hGLWindow) return DefWindowProc(hWnd,uMsg,wParam,lParam); -#endif - - switch (uMsg) - { - case WM_SYSCOMMAND: - // don't let the monitor fall asleep or let the screensaver activate - if (wParam == SC_SCREENSAVE || wParam == SC_MONITORPOWER) return 0; - - // Since DirectInput won't let me set an exclusive-foreground - // keyboard for some unknown reason I just have to tell Windows to - // rack off with its keyboard accelerators. - if (wParam == SC_KEYMENU || wParam == SC_HOTKEY) return 0; - break; - - case WM_ACTIVATE: - { - appactive = (LOWORD(wParam) != 0); -#ifdef USE_OPENGL - if (hGLWindow) - { - if (!appactive && fullscreen) - { - if (g_mouseGrabbed) - { - mouseGrabInput(0); - regrabmouse = 1; - } - realfs = fullscreen; - silentvideomodeswitch = 1; - videoSetGameMode(!fullscreen,xres,yres,bpp,upscalefactor); - ShowWindow(hWindow, SW_MINIMIZE); - } - else if (appactive && realfs) - { - if (regrabmouse) - { - mouseGrabInput(g_mouseLockedToWindow); - regrabmouse = 0; - } - ShowWindow(hWindow, SW_RESTORE); - SetForegroundWindow(hWindow); - SetFocus(hWindow); - videoSetGameMode(realfs,xres,yres,bpp,upscalefactor); - silentvideomodeswitch = 0; - realfs = 0; - } - } -#endif - - // Win_SetKeyboardLayoutUS(appactive); - - if (backgroundidle) - SetPriorityClass(GetCurrentProcess(), - appactive ? NORMAL_PRIORITY_CLASS : IDLE_PRIORITY_CLASS); - - if (appactive) - { - SetForegroundWindow(hWindow); - SetFocus(hWindow); - } - - Bmemset(keystatus, 0, sizeof(keystatus)); - AcquireInputDevices(appactive); - return 0; - } - - case WM_PALETTECHANGED: - // someone stole the palette so try and steal it back - if (bDDrawInited && bpp == 8 && fullscreen) - { - int32_t result; - - // PK: for me, happens on Vista when changing from fullscreen 8-bit to 32-bit - if (!lpDDSPrimary || !lpDDPalette) - break; - - result = IDirectDrawSurface_SetPalette(lpDDSPrimary, lpDDPalette); - - if (result != DD_OK) - { - initprintf("Palette set failed: %s\n", GetDDrawError(result)); - break; - } - videoUpdatePalette(0,256); - break; - } - if (appactive && (HWND)wParam != hWindow) videoUpdatePalette(0,256); - break; - - case WM_DISPLAYCHANGE: - // desktop settings changed so adjust our world-view accordingly - desktopxdim = LOWORD(lParam); - desktopydim = HIWORD(lParam); - desktopbpp = wParam; - videoGetModes(); - break; - - case WM_PAINT: - repaintneeded=1; - break; - - // don't draw the frame if fullscreen - //case WM_NCPAINT: - //if (!fullscreen) break; - //return 0; - - case WM_ERASEBKGND: - return TRUE; - - case WM_MOVE: - // windowx = LOWORD(lParam); - // windowy = HIWORD(lParam); - return 0; - - case WM_MOVING: - { - RECT *RECTYMcRECT = (LPRECT)lParam; - - windowx = RECTYMcRECT->left; - windowy = RECTYMcRECT->top; - return 0; - } - case WM_CLOSE: - quitevent = 1; - return 0; - - case WM_ENTERMENULOOP: - case WM_ENTERSIZEMOVE: - AcquireInputDevices(0); - return 0; - case WM_EXITMENULOOP: - case WM_EXITSIZEMOVE: - AcquireInputDevices(1); - return 0; - - case WM_DESTROY: - hWindow = 0; - //PostQuitMessage(0); // JBF 20040115: not anymore - return 0; - - default: - break; - } - - return DefWindowProc(hWnd, uMsg, wParam, lParam); -} - - -// -// RegisterWindowClass() -- register the window class -// -static BOOL RegisterWindowClass(void) -{ - WNDCLASSEX wcx; - - if (window_class_registered) return FALSE; - - //initprintf("Registering window class\n"); - - wcx.cbSize = sizeof(wcx); - wcx.style = CS_OWNDC; - wcx.lpfnWndProc = WndProcCallback; - wcx.cbClsExtra = 0; - wcx.cbWndExtra = 0; - wcx.hInstance = hInstance; - wcx.hIcon = (HICON)LoadImage(hInstance, MAKEINTRESOURCE(100), IMAGE_ICON, - GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON), LR_DEFAULTCOLOR); - wcx.hCursor = LoadCursor(NULL, IDC_ARROW); - wcx.hbrBackground = (HBRUSH)COLOR_GRAYTEXT; - wcx.lpszMenuName = NULL; - wcx.lpszClassName = WindowClass; - wcx.hIconSm = (HICON)LoadImage(hInstance, MAKEINTRESOURCE(100), IMAGE_ICON, - GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR); - if (!RegisterClassEx(&wcx)) - { - ShowErrorBox("Failed to register window class"); - return TRUE; - } - - window_class_registered = TRUE; - - return FALSE; -} diff --git a/source/duke3d/src/anim.h b/source/duke3d/src/anim.h index 7b897ea57..45c174d32 100644 --- a/source/duke3d/src/anim.h +++ b/source/duke3d/src/anim.h @@ -41,7 +41,7 @@ typedef struct uint16_t numsounds; uint8_t framedelay; uint8_t frameflags; - char animlock; + uint8_t animlock; } dukeanim_t; extern dukeanim_t * g_animPtr; diff --git a/source/duke3d/src/common.cpp b/source/duke3d/src/common.cpp index e084227ff..c4ce9a888 100644 --- a/source/duke3d/src/common.cpp +++ b/source/duke3d/src/common.cpp @@ -257,7 +257,7 @@ void G_ExtPreInit(int32_t argc,char const * const * argv) g_useCwd = G_CheckCmdSwitch(argc, argv, "-usecwd"); #ifdef _WIN32 - GetModuleFileName(NULL,g_rootDir,BMAX_PATH); + GetModuleFileNameA(NULL,g_rootDir,BMAX_PATH); Bcorrectfilename(g_rootDir,1); //buildvfs_chdir(g_rootDir); #else diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 61b00642b..b12ae2633 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "renderlayer.h" #include "osdfuncs.h" #include "osdcmds.h" -#include "crc32.h" +#include "crc32_.h" #include "network.h" #include "menus.h" #include "savegame.h" diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index 729323643..330f77cab 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "cheats.h" #include "common.h" #include "common_game.h" -#include "crc32.h" +#include "crc32_.h" #include "debugbreak.h" #include "duke3d.h" #include "gameexec.h" diff --git a/source/duke3d/src/global.h b/source/duke3d/src/global.h index 979b01e69..03f456cf8 100644 --- a/source/duke3d/src/global.h +++ b/source/duke3d/src/global.h @@ -150,7 +150,7 @@ G_EXTERN playerspawn_t g_playerSpawnPoints[MAXPLAYERS]; G_EXTERN input_t inputfifo[MOVEFIFOSIZ][MAXPLAYERS]; #pragma pack(pop) -G_EXTERN char g_soundlocks[MAXSOUNDS]; +G_EXTERN uint8_t g_soundlocks[MAXSOUNDS]; G_EXTERN int32_t g_noEnemies; G_EXTERN int32_t g_restorePalette; G_EXTERN int32_t g_screenCapture; diff --git a/source/duke3d/src/grpscan.cpp b/source/duke3d/src/grpscan.cpp index 5f465eddf..105b39e17 100644 --- a/source/duke3d/src/grpscan.cpp +++ b/source/duke3d/src/grpscan.cpp @@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "cache1d.h" #include "common_game.h" #include "compat.h" -#include "crc32.h" +#include "crc32_.h" #include "duke3d.h" #include "grpscan.h" #include "scriptfile.h" diff --git a/source/duke3d/src/m32common.cpp b/source/duke3d/src/m32common.cpp deleted file mode 100644 index f421c52e7..000000000 --- a/source/duke3d/src/m32common.cpp +++ /dev/null @@ -1,1989 +0,0 @@ -// This object is shared by the editors of *all* Build games! - -#include "compat.h" -#include "keys.h" -#include "build.h" -#include "cache1d.h" -#ifdef POLYMER -# include "polymer.h" -#endif -#include "editor.h" -#include "renderlayer.h" - -#include "m32script.h" -#include "m32def.h" - -#include "lz4.h" -#include "xxhash.h" - -// XXX: This breaks editors for games other than Duke. The OSD needs a way to specify colors in abstract instead of concatenating palswap escape sequences. -#include "common_game.h" - -#include "vfs.h" - -//////////////////// Key stuff //////////////////// - -#define eitherALT (keystatus[KEYSC_LALT] || keystatus[KEYSC_RALT]) -#define eitherCTRL (keystatus[KEYSC_LCTRL] || keystatus[KEYSC_RCTRL]) -#define eitherSHIFT (keystatus[KEYSC_LSHIFT] || keystatus[KEYSC_RSHIFT]) - -#define PRESSED_KEYSC(Key) (keystatus[KEYSC_##Key] && !(keystatus[KEYSC_##Key]=0)) - -//// - -// All these variables need verification that all relevant editor stubs are actually implementing them correctly. - -char getmessage[162], getmessageleng; -int32_t getmessagetimeoff; //, charsperline; - -int32_t mousxplc, mousyplc; -int32_t mouseaction; - -char *scripthist[SCRIPTHISTSIZ]; -int32_t scripthistend; - -int32_t g_lazy_tileselector; -int32_t fixmaponsave_sprites = 1; - -int32_t showambiencesounds=2; - -int32_t autosave=180; - -int32_t autocorruptcheck; -int32_t corruptcheck_noalreadyrefd, corruptcheck_heinum=1; -int32_t corruptcheck_game_duke3d=1; // TODO: at startup, make conditional on which game we are editing for? -int32_t corrupt_tryfix_alt; -int32_t corruptlevel, numcorruptthings, corruptthings[MAXCORRUPTTHINGS]; - -//// - -#ifdef YAX_ENABLE -const char *yupdownwall[2] = {"upwall","downwall"}; -const char *YUPDOWNWALL[2] = {"UPWALL","DOWNWALL"}; -#endif - -//// - -void drawgradient(void) -{ - int32_t i, col = editorcolors[25]; - videoBeginDrawing(); - for (i=ydim-STATUS2DSIZ+16; i0; i++,col--) - CLEARLINES2D(i, 1, (col<<24)|(col<<16)|(col<<8)|col); - CLEARLINES2D(i, ydim-i, 0); - videoEndDrawing(); -} - -static void message_common1(const char *tmpstr) -{ - Bstrncpyz(getmessage, tmpstr, sizeof(getmessage)); - - getmessageleng = Bstrlen(getmessage); - getmessagetimeoff = (int32_t) totalclock + 120*2 + getmessageleng*(120/30); -// lastmessagetime = totalclock; -} - -void message(const char *fmt, ...) -{ - char tmpstr[256]; - va_list va; - - va_start(va, fmt); - Bvsnprintf(tmpstr, 256, fmt, va); - va_end(va); - - message_common1(tmpstr); - - if (!mouseaction) - OSD_Printf("%s\n", tmpstr); -} - -void silentmessage(const char *fmt, ...) -{ - char tmpstr[256]; - va_list va; - - va_start(va, fmt); - Bvsnprintf(tmpstr, 256, fmt, va); - va_end(va); - - message_common1(tmpstr); -} - -////////// tag labeling system ////////// - -typedef struct -{ - hashtable_t hashtab; - char *label[32768]; - int32_t numlabels; -} taglab_t; - -static taglab_t g_taglab; - -static void tstrtoupper(char *s) -{ - int32_t i; - for (i=0; s[i]; i++) - s[i] = Btoupper(s[i]); -} - -void taglab_init() -{ - int32_t i; - - g_taglab.numlabels = 0; - g_taglab.hashtab.size = 16384; - hash_init(&g_taglab.hashtab); - - for (i=0; i<32768; i++) - DO_FREE_AND_NULL(g_taglab.label[i]); -} - -int32_t taglab_load(const char *filename, int32_t flags) -{ - int32_t len, i; - char buf[BMAX_PATH], *dot, *filebuf; - - taglab_init(); - - len = Bstrlen(filename); - if (len >= BMAX_PATH-1) - return -1; - Bmemcpy(buf, filename, len+1); - - // - dot = Bstrrchr(buf, '.'); - if (!dot) - dot = &buf[len]; - - if (dot-buf+8 >= BMAX_PATH) - return -1; - Bmemcpy(dot, ".maptags", 9); - // - - buildvfs_kfd fil; - if ((fil = kopen4load(buf,flags)) == buildvfs_kfd_invalid) - return -1; - - len = kfilelength(fil); - - filebuf = (char *)Xmalloc(len+1); - if (!filebuf) - { - kclose(fil); - return -1; - } - - kread(fil, filebuf, len); - filebuf[len] = 0; - kclose(fil); - - // ---- - - { - int32_t tag; - char *cp=filebuf, *bp, *ep; - - while (1) - { -#define XTAGLAB_STRINGIFY(X) TAGLAB_STRINGIFY(X) -#define TAGLAB_STRINGIFY(X) #X - i = sscanf(cp, "%d %" XTAGLAB_STRINGIFY(TAGLAB_MAX) "s", &tag, buf); -#undef XTAGLAB_STRINGIFY -#undef TAGLAB_STRINGIFY - if (i != 2 || !buf[0] || tag<0 || tag>=32768) - goto nextline; - - buf[TAGLAB_MAX-1] = 0; - - i = Bstrlen(buf); - bp = buf; while (*bp && isspace(*bp)) bp++; - ep = &buf[i-1]; while (ep>buf && isspace(*ep)) ep--; - ep++; - - if (!(ep > bp)) - goto nextline; - *ep = 0; - - taglab_add(bp, tag); -//initprintf("add tag %s:%d\n", bp, tag); -nextline: - while (*cp && *cp!='\n') - cp++; - while (*cp=='\r' || *cp=='\n') - cp++; - if (*cp == 0) - break; - } - } - - // ---- - Xfree(filebuf); - - return 0; -} - -int32_t taglab_save(const char *mapname) -{ - int32_t len, i; - char buf[BMAX_PATH], *dot; - const char *label; - - if (g_taglab.numlabels==0) - return 1; - - Bstrncpyz(buf, mapname, BMAX_PATH); - - len = Bstrlen(buf); - // - dot = Bstrrchr(buf, '.'); - if (!dot) - dot = &buf[len]; - - if (dot-buf+8 >= BMAX_PATH) - return -1; - Bmemcpy(dot, ".maptags", 9); - // - - buildvfs_fd fil; - if ((fil = buildvfs_open_write(buf)) == buildvfs_fd_invalid) - { - initprintf("Couldn't open \"%s\" for writing: %s\n", buf, strerror(errno)); - return -1; - } - - for (i=0; i<32768; i++) - { - label = taglab_getlabel(i); - if (!label) - continue; - - len = Bsprintf(buf, "%d %s" OURNEWL, i, label); - if (buildvfs_write(fil, buf, len)!=len) - break; - } - - buildvfs_close(fil); - - return (i!=32768); -} - -int32_t taglab_add(const char *label, int16_t tag) -{ - const char *otaglabel; - char buf[TAGLAB_MAX]; - int32_t olabeltag, diddel=0; - - if (tag < 0) - return -1; - - Bstrncpyz(buf, label, sizeof(buf)); - // upcase the tag for storage and comparison - tstrtoupper(buf); - - otaglabel = g_taglab.label[tag]; - if (otaglabel) - { - if (!Bstrcasecmp(otaglabel, buf)) - return 0; - -// hash_delete(&g_taglab.hashtab, g_taglab.label[tag]); - - // a label having the same tag number as 'tag' is deleted - DO_FREE_AND_NULL(g_taglab.label[tag]); - diddel |= 1; - } - else - { - olabeltag = hash_findcase(&g_taglab.hashtab, buf); - if (olabeltag==tag) - return 0; - - if (olabeltag>=0) - { - // the label gets assigned to a new tag number ('tag deleted') - DO_FREE_AND_NULL(g_taglab.label[olabeltag]); - diddel |= 2; - } - } - - if (!diddel) - g_taglab.numlabels++; - g_taglab.label[tag] = Xstrdup(buf); -//initprintf("added %s %d to hash\n", g_taglab.label[tag], tag); - hash_add(&g_taglab.hashtab, g_taglab.label[tag], tag, 1); - - return diddel; -} - -const char *taglab_getlabel(int16_t tag) -{ - if (tag < 0) // || tag>=32768 implicitly - return NULL; - - return g_taglab.label[tag]; -} - -int32_t taglab_gettag(const char *label) -{ - char buf[TAGLAB_MAX]; - - Bstrncpyz(buf, label, TAGLAB_MAX); - - // need to upcase since hash_findcase doesn't work as expected: - // getting the code is still (necessarily) case-sensitive... - tstrtoupper(buf); - - return hash_findcase(&g_taglab.hashtab, buf); -} -////////// end tag labeling system ////////// - -////////// UNDO/REDO SYSTEM ////////// -#if M32_UNDO -mapundo_t *mapstate = NULL; - -int32_t map_revision = 1; - -static int32_t try_match_with_prev(int32_t idx, int32_t numsthgs, uintptr_t crc) -{ - if (mapstate->prev && mapstate->prev->num[idx]==numsthgs && mapstate->prev->crc[idx]==crc) - { - // found match! - mapstate->sws[idx] = mapstate->prev->sws[idx]; - (*(int32_t *)mapstate->sws[idx])++; // increase refcount! - - return 1; - } - - return 0; -} - -static void create_compressed_block(int32_t idx, const void *srcdata, uint32_t size, uintptr_t crc) -{ - uint32_t j; - - // allocate - int const compressed_size = LZ4_compressBound(size); - mapstate->sws[idx] = (char *)Xmalloc(4 + compressed_size); - - // compress & realloc - j = LZ4_compress_default((const char*)srcdata, mapstate->sws[idx]+4, size, compressed_size); - mapstate->sws[idx] = (char *)Xrealloc(mapstate->sws[idx], 4 + j); - - // write refcount - *(int32_t *)mapstate->sws[idx] = 1; - - mapstate->crc[idx] = crc; -} - -static void free_self_and_successors(mapundo_t *mapst) -{ - mapundo_t *cur = mapst; - - mapst->prev = NULL; // break the back link - - while (cur->next) - cur = cur->next; - - while (1) - { - int32_t i; - mapundo_t *const prev = cur->prev; - - for (i=0; i<3; i++) - { - int32_t *const refcnt = (int32_t *)cur->sws[i]; - - if (refcnt) - { - (*refcnt)--; - if (*refcnt == 0) - Xfree(refcnt); // free the block! - } - } - - Xfree(cur); - - if (!prev) - break; - - cur = prev; - } -} - -// NOTE: only _consecutive_ matching (size+crc) sector/wall/sprite blocks are -// shared! -void create_map_snapshot(void) -{ - if (mapstate == NULL) - { - // create initial mapstate - - map_revision = 1; - - mapstate = (mapundo_t *)Xcalloc(1, sizeof(mapundo_t)); - mapstate->revision = map_revision; - mapstate->prev = mapstate->next = NULL; - } - else - { - if (mapstate->next) - free_self_and_successors(mapstate->next); - // now, have no successors - - // calloc because not everything may be set in the following: - mapstate->next = (mapundo_t *)Xcalloc(1, sizeof(mapundo_t)); - mapstate->next->prev = mapstate; - - mapstate = mapstate->next; - - mapstate->revision = ++map_revision; - } - - - fixspritesectors(); - - mapstate->num[0] = numsectors; - mapstate->num[1] = numwalls; - mapstate->num[2] = Numsprites; - - - if (numsectors) - { -#if !defined UINTPTR_MAX -# error Need UINTPTR_MAX define to select between 32- and 64-bit functions -#endif -#if UINTPTR_MAX == 0xffffffff - /* 32-bit */ -#define XXH__ XXH32 -#else - /* 64-bit */ -#define XXH__ XXH64 -#endif - uintptr_t temphash = XXH__((uint8_t *)sector, numsectors*sizeof(sectortype), numsectors*sizeof(sectortype)); - - if (!try_match_with_prev(0, numsectors, temphash)) - create_compressed_block(0, sector, numsectors*sizeof(sectortype), temphash); - - if (numwalls) - { - temphash = XXH__((uint8_t *)wall, numwalls*sizeof(walltype), numwalls*sizeof(walltype)); - - if (!try_match_with_prev(1, numwalls, temphash)) - create_compressed_block(1, wall, numwalls*sizeof(walltype), temphash); - } - - if (Numsprites) - { - temphash = XXH__((uint8_t *)sprite, MAXSPRITES*sizeof(spritetype), MAXSPRITES*sizeof(spritetype)); - - if (!try_match_with_prev(2, Numsprites, temphash)) - { - int32_t i = 0; - auto const tspri = (spritetype *)Xmalloc(Numsprites*sizeof(spritetype) + 4); - auto spri = tspri; - - for (bssize_t j=0; jnext == NULL || !mapstate->next->num[0]) return 1; - - // while (map_revision+1 != mapstate->revision && mapstate->next) - mapstate = mapstate->next; - } - else - { - if (mapstate->prev == NULL || !mapstate->prev->num[0]) return 1; - - // while (map_revision-1 != mapstate->revision && mapstate->prev) - mapstate = mapstate->prev; - } - - numsectors = mapstate->num[0]; - numwalls = mapstate->num[1]; - map_revision = mapstate->revision; - - Bmemset(show2dsector, 0, sizeof(show2dsector)); - - reset_highlightsector(); - reset_highlight(); - - initspritelists(); - - if (mapstate->num[0]) - { - // restore sector[] - LZ4_decompress_fast(mapstate->sws[0]+4, (char*)sector, numsectors*sizeof(sectortype)); - - if (mapstate->num[1]) // restore wall[] - LZ4_decompress_fast(mapstate->sws[1]+4, (char*)wall, numwalls*sizeof(walltype)); - - if (mapstate->num[2]) // restore sprite[] - LZ4_decompress_fast(mapstate->sws[2]+4, (char*)sprite, (mapstate->num[2])*sizeof(spritetype)); - } - - // insert sprites - for (i=0; inum[2]; i++) - { - if ((sprite[i].cstat & 48) == 48) sprite[i].cstat &= ~48; - Bassert((unsigned)sprite[i].sectnum < (unsigned)numsectors - && (unsigned)sprite[i].statnum < MAXSTATUS); - insertsprite(sprite[i].sectnum, sprite[i].statnum); - } - - Bassert(Numsprites == mapstate->num[2]); - -#ifdef POLYMER - if (in3dmode() && videoGetRenderMode() == REND_POLYMER) - polymer_loadboard(); -#endif -#ifdef YAX_ENABLE - yax_update(0); - yax_updategrays(pos.z); -#endif - CheckMapCorruption(4, 0); - - return 0; -} -#endif - -//// - -//// port of a.m32's corruptchk //// -// Compile wall loop checks? 0: no, 1: partial, 2: full. -#define CCHK_LOOP_CHECKS 0 -// returns value from 0 (all OK) to 5 (panic!) -#define CCHK_PANIC OSDTEXT_DARKRED "PANIC!!!^O " -//#define CCHKPREF OSDTEXT_RED "^O" -#define CCHK_CORRECTED OSDTEXT_GREEN " -> " - -#define CORRUPTCHK_PRINT(errlev, what, fmt, ...) do \ -{ \ - bad = max(bad, errlev); \ - if (numcorruptthings>=MAXCORRUPTTHINGS) \ - goto too_many_errors; \ - corruptthings[numcorruptthings++] = (what); \ - if (errlev >= printfromlev) \ - OSD_Printf("#%d: " fmt "\n", numcorruptthings, ## __VA_ARGS__); \ -} while (0) - -#ifdef YAX_ENABLE -static int32_t walls_have_equal_endpoints(int32_t w1, int32_t w2) -{ - int32_t n1 = wall[w1].point2, n2 = wall[w2].point2; - - return (wall[w1].x==wall[w2].x && wall[w1].y==wall[w2].y && - wall[n1].x==wall[n2].x && wall[n1].y==wall[n2].y); -} - -static void correct_yax_nextwall(int32_t wallnum, int32_t bunchnum, int32_t cf, int32_t tryfixingp) -{ - int32_t i, j, startwall, endwall; - int32_t nummatching=0, lastwall[2] = { -1, -1 }; - - for (SECTORS_OF_BUNCH(bunchnum, !cf, i)) - for (WALLS_OF_SECTOR(i, j)) - { - // v v v shouldn't happen, 'stupidity safety' - if (j!=wallnum && walls_have_equal_endpoints(wallnum, j)) - { - lastwall[nummatching++] = j; - if (nummatching==2) - goto outofloop; - } - } -outofloop: - if (nummatching==1) - { - if (!tryfixingp) - { - OSD_Printf(" will set wall %d's %s to %d on tryfix\n", - wallnum, yupdownwall[cf], lastwall[0]); - } - else - { - int32_t setreverse = 0; - yax_setnextwall(wallnum, cf, lastwall[0]); - if (yax_getnextwall(lastwall[0], !cf) < 0) - { - setreverse = 1; - yax_setnextwall(lastwall[0], !cf, wallnum); - } - - OSD_Printf("auto-correction: set wall %d's %s to %d%s\n", - wallnum, yupdownwall[cf], lastwall[0], setreverse?" and its reverse link":""); - } - } - else if (!tryfixingp) - { - if (nummatching > 1) - { - OSD_Printf(" found more than one matching wall: at least %d and %d\n", - lastwall[0], lastwall[1]); - } - else if (nummatching == 0) - { - OSD_Printf(" found no matching walls!\n"); - } - } -} -#endif - -// in reverse orientation -static int32_t walls_are_consistent(int32_t w1, int32_t w2) -{ - return (wall[w2].x==POINT2(w1).x && wall[w2].y==POINT2(w1).y && - wall[w1].x==POINT2(w2).x && wall[w1].y==POINT2(w2).y); -} - -static void suggest_nextsector_correction(int32_t nw, int32_t j) -{ - // wall j's nextsector is inconsistent with its nextwall... what shall we do? - - if (nw>=0 && nw=0 && wall[j].nextsector=0 && nw=0 && wall[j].nextsector>3]; - - csc_s = csc_i = -1; - - if (Numsprites < 0 || Numsprites > MAXSPRITES) - return 1; - - for (bssize_t i=0; i MAXSTATUS || (sectnum!=MAXSECTORS && (unsigned)sectnum > (unsigned)numsectors)) - return 3; // oob sectnum or statnum - - if (statnum != MAXSTATUS) - ournumsprites++; - } - - if (ournumsprites != Numsprites) - { - initprintf("ournumsprites=%d, Numsprites=%d\n", ournumsprites, Numsprites); - return 4; // counting sprites by statnum!=MAXSTATUS inconsistent with Numsprites - } - - // SECTOR LIST - - Bmemset(havesprite, 0, (Numsprites+7)>>3); - - for (bssize_t s=0; s=0; i=nextspritesect[i]) - { - csc_i = i; - - if (i >= MAXSPRITES) - return 5; // oob sprite index in list, or Numsprites inconsistent - - if (havesprite[i>>3]&pow2char[i&7]) - return 6; // have a cycle in the list - - havesprite[i>>3] |= pow2char[i&7]; - - if (sprite[i].sectnum != s) - return 7; // .sectnum inconsistent with list - } - - if (i!=-1) - return 8; // various code checks for -1 to break loop - } - - csc_s = -1; - for (bssize_t i=0; i>3]&pow2char[i&7])) - return 9; // have a sprite in the world not in sector list - } - - - // STATUS LIST -- we now clear havesprite[] bits - - for (bssize_t s=0; s=0; i=nextspritestat[i]) - { - csc_i = i; - - if (i >= MAXSPRITES) - return 10; // oob sprite index in list, or Numsprites inconsistent - - // have a cycle in the list, or status list inconsistent with - // sector list (*) - if (!(havesprite[i>>3]&pow2char[i&7])) - return 11; - - havesprite[i>>3] &= ~pow2char[i&7]; - - if (sprite[i].statnum != s) - return 12; // .statnum inconsistent with list - } - - if (i!=-1) - return 13; // various code checks for -1 to break loop - } - - csc_s = -1; - for (bssize_t i=0; i>3]&pow2char[i&7]) - return 14; - } - - return 0; -} - -#if CCHK_LOOP_CHECKS -// Return the least wall index of the outer loop of sector , or -// -1 if there is none, -// -2 if there is more than one. -static int32_t determine_outer_loop(int32_t sectnum) -{ - int32_t j, outerloopstart = -1; - - const int32_t startwall = sector[sectnum].wallptr; - const int32_t endwall = startwall + sector[sectnum].wallnum - 1; - - for (j=startwall; j<=endwall; j=get_nextloopstart(j)) - { - if (clockdir(j) == CLOCKDIR_CW) - { - if (outerloopstart == -1) - outerloopstart = j; - else if (outerloopstart >= 0) - return -2; - } - } - - return outerloopstart; -} -#endif - -#define TRYFIX_NONE() (tryfixing == 0ull) -#define TRYFIX_CNUM(onumct) (onumct < MAXCORRUPTTHINGS && (tryfixing & (1ull<MAXSECTORS) - CORRUPTCHK_PRINT(5, 0, CCHK_PANIC "SECTOR LIMIT EXCEEDED (MAXSECTORS=%d)!!!", MAXSECTORS); - - if (numwalls>MAXWALLS) - CORRUPTCHK_PRINT(5, 0, CCHK_PANIC "WALL LIMIT EXCEEDED (MAXWALLS=%d)!!!", MAXWALLS); - - if (numsectors>MAXSECTORS || numwalls>MAXWALLS) - { - corruptlevel = bad; - return bad; - } - - if (numsectors==0 || numwalls==0) - { - if (numsectors>0) - CORRUPTCHK_PRINT(5, 0, CCHK_PANIC " Have sectors but no walls!"); - if (numwalls>0) - CORRUPTCHK_PRINT(5, 0, CCHK_PANIC " Have walls but no sectors!"); - return bad; - } - - if (!corruptcheck_noalreadyrefd) - { - seen_nextwalls = (uint8_t *)Xcalloc((numwalls+7)>>3,1); - lastnextwallsource = (int16_t *)Xmalloc(numwalls*sizeof(lastnextwallsource[0])); - } - - for (i=0; i numwalls) - { - if (w0 < 0 || w0 >= MAXWALLS) - CORRUPTCHK_PRINT(5, CORRUPT_SECTOR|i, "SECTOR[%d].WALLPTR=%d INVALID!!!", i, w0); - else - CORRUPTCHK_PRINT(5, CORRUPT_SECTOR|i, "SECTOR[%d].WALLPTR=%d out of range (numwalls=%d)", i, w0, numw); - } - - if (w0 != ewall) - CORRUPTCHK_PRINT(4, CORRUPT_SECTOR|i, "SECTOR[%d].WALLPTR=%d inconsistent, expected %d", i, w0, ewall); - - if (numw <= 1) - CORRUPTCHK_PRINT(5, CORRUPT_SECTOR|i, CCHK_PANIC "SECTOR[%d].WALLNUM=%d INVALID!!!", i, numw); - else if (numw==2) - CORRUPTCHK_PRINT(3, CORRUPT_SECTOR|i, "SECTOR[%d].WALLNUM=2, expected at least 3", i); - - ewall += numw; - - if (endwall >= numwalls) - CORRUPTCHK_PRINT(5, CORRUPT_SECTOR|i, "SECTOR[%d]: wallptr+wallnum=%d out of range: numwalls=%d", i, endwall, numwalls); - - // inconsistent cstat&2 and heinum checker - if (corruptcheck_heinum) - { - const char *cflabel[2] = {"ceiling", "floor"}; - - for (j=0; j<2; j++) - { - const int32_t cs = !!(SECTORFLD(i,stat, j)&2); - const int32_t hn = !!SECTORFLD(i,heinum, j); - - if (cs != hn && heinumcheckstat <= 1) - { - if (numcorruptthings < MAXCORRUPTTHINGS && - (heinumcheckstat==1 || (heinumcheckstat==0 && (tryfixing & (1ull< endwall) - { - if (wall[j].point2 < 0 || wall[j].point2 >= MAXWALLS) - CORRUPTCHK_PRINT(5, CORRUPT_WALL|j, CCHK_PANIC "WALL[%d].POINT2=%d INVALID!!!", - j, TrackerCast(wall[j].point2)); - else - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL[%d].POINT2=%d out of range [%d, %d]", - j, TrackerCast(wall[j].point2), w0, endwall); - } - - if (nw >= numwalls) - { - const int32_t onumct = numcorruptthings; - - if (TRYFIX_NONE()) - { - if (nw >= MAXWALLS) - CORRUPTCHK_PRINT(5, CORRUPT_WALL|j, "WALL[%d].NEXTWALL=%d INVALID!!!", - j, nw); - else - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL[%d].NEXTWALL=%d out of range: numwalls=%d", - j, nw, numwalls); - OSD_Printf(" will make wall %d white on tryfix\n", j); - } - else if (TRYFIX_CNUM(onumct)) // CODEDUP MAKE_WALL_WHITE - { - wall[j].nextwall = wall[j].nextsector = -1; - OSD_Printf(CCHK_CORRECTED "auto-correction: made wall %d white\n", j); - } - } - - if (ns >= numsectors) - { - const int32_t onumct = numcorruptthings; - - if (TRYFIX_NONE()) - { - if (ns >= MAXSECTORS) - CORRUPTCHK_PRINT(5, CORRUPT_WALL|j, "WALL[%d].NEXTSECTOR=%d INVALID!!!", - j, ns); - else - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL[%d].NEXTSECTOR=%d out of range: numsectors=%d", - j, ns, numsectors); - OSD_Printf(" will make wall %d white on tryfix\n", j); - } - else if (TRYFIX_CNUM(onumct)) // CODEDUP MAKE_WALL_WHITE - { - wall[j].nextwall = wall[j].nextsector = -1; - OSD_Printf(CCHK_CORRECTED "auto-correction: made wall %d white\n", j); - } - } - - if (nw>=w0 && nw<=endwall) - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL[%d].NEXTWALL is its own sector's wall", j); - - if (wall[j].x==POINT2(j).x && wall[j].y==POINT2(j).y) - CORRUPTCHK_PRINT(3, CORRUPT_WALL|j, "WALL[%d] has length 0", j); - -#ifdef YAX_ENABLE - // Various TROR checks. - { - int32_t cf; - - for (cf=0; cf<2; cf++) - { - const int32_t ynw = yax_getnextwall(j, cf); - - if (ynw >= 0) - { - if (ynw >= numwalls) - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d's %s=%d out of range: numwalls=%d", - j, YUPDOWNWALL[cf], ynw, numwalls); - else - { - int32_t ynextwallok = 1; - - if (j == ynw) - { - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d's %s is itself", - j, YUPDOWNWALL[cf]); - ynextwallok = 0; - } - else if (!walls_have_equal_endpoints(j, ynw)) - { - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d's and its %s=%d's " - "endpoints are inconsistent", j, YUPDOWNWALL[cf], ynw); - ynextwallok = 0; - } - - { - const int16_t bunchnum = yax_getbunch(i, cf); - const int32_t onumct = numcorruptthings; - - if (bunchnum < 0 || bunchnum >= numyaxbunches) - { - if (tryfixing == 0ull) - { - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d has %s=%d, " - "but its %s bunchnum=%d is invalid", - j, YUPDOWNWALL[cf], ynw, - cf==YAX_CEILING? "ceiling":"floor", bunchnum); - OSD_Printf(" will clear wall %d's %s to -1 on tryfix\n", - j, yupdownwall[cf]); - - } - else if (tryfixing & (1ull<=printfromlev) - correct_yax_nextwall(j, bunchnum, cf, tryfixing!=0ull); - } - } - - if (ynextwallok) - { - const int32_t onumct = numcorruptthings; - const int32_t ynwp2 = yax_getnextwall(ynw, !cf); - - if (ynwp2 != j) - { - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d's %s=%d's reverse link wrong" - " (expected %d, have %d)", j, YUPDOWNWALL[cf], ynw, j, ynwp2); - if (onumct < MAXCORRUPTTHINGS) - { - if (tryfixing & (1ull<=printfromlev) - { - OSD_Printf(" will set wall %d's %s=%d's %s to %d on tryfix\n", - j, yupdownwall[cf], ynw, yupdownwall[!cf], j); - } - } - } - } // brace woot! - } - } - } - } -#endif - // Check for ".nextsector is its own sector" - if (ns == i) - { - if (!bad) - { - const int32_t onumct = numcorruptthings; - const int32_t safetoclear = (nw==j || (wall[nw].nextwall==-1 && wall[nw].nextsector==-1)); - - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL[%d].NEXTSECTOR is its own sector", j); - if (onumct < MAXCORRUPTTHINGS) - { - if (tryfixing & (1ull<=printfromlev) - { - if (safetoclear) - OSD_Printf(" will clear wall %d's nextwall and nextsector on tryfix\n", j); - else - suggest_nextsector_correction(nw, j); - } - } - } - } - - // Check for ".nextwall already referenced from wall ..." - if (!corruptcheck_noalreadyrefd && nw>=0 && nw>3]&pow2char[nw&7]) - { - const int32_t onumct = numcorruptthings; - - const int16_t lnws = lastnextwallsource[nw]; - const int16_t nwnw = wall[nw].nextwall; - - CORRUPTCHK_PRINT(3, CORRUPT_WALL|j, "WALL[%d].NEXTWALL=%d already referenced from wall %d", - j, nw, lnws); - - if (onumct < MAXCORRUPTTHINGS && (nwnw==j || nwnw==lnws)) - { - const int32_t walltoclear = nwnw==j ? lnws : j; - - if (tryfixing & (1ull<= printfromlev) - OSD_Printf(" wall[%d].nextwall=%d, suggest clearing wall %d's nextwall and nextsector tags to -1\n", - nw, nwnw, walltoclear); - } - } - else - { - seen_nextwalls[nw>>3] |= 1<<(nw&7); - lastnextwallsource[nw] = j; - } - } - - // Various checks of .nextsector and .nextwall - if (bad < 4) - { - const int32_t onumct = numcorruptthings; - - if ((ns^nw)<0) - { - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL[%d].NEXTSECTOR=%d and .NEXTWALL=%d inconsistent:" - " missing one next pointer", j, ns, nw); - if (onumct < MAXCORRUPTTHINGS) - { - if (tryfixing & (1ull<=printfromlev) - suggest_nextsector_correction(nw, j); - } - } - else if (ns>=0) - { - if (nw=sector[ns].wallptr+sector[ns].wallnum) - { - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL[%d].NEXTWALL=%d out of .NEXTSECTOR=%d's bounds [%d .. %d]", - j, nw, ns, TrackerCast(sector[ns].wallptr), sector[ns].wallptr+sector[ns].wallnum-1); - if (onumct < MAXCORRUPTTHINGS) - { - if (tryfixing & (1ull<= printfromlev) - suggest_nextsector_correction(nw, j); - } - } -#if 0 - // this one usually appears together with the "already referenced" corruption - else if (wall[nw].nextsector != i || wall[nw].nextwall != j) - { - CORRUPTCHK_PRINT(4, CORRUPT_WALL|nw, "WALL %d nextwall's backreferences inconsistent. Expected nw=%d, ns=%d; got nw=%d, ns=%d", - nw, i, j, wall[nw].nextsector, wall[nw].nextwall); - } -#endif - } - } - - errlevel = max(errlevel, bad); - } - } -#if CCHK_LOOP_CHECKS - // Wall loop checks. - if (bad < 4 && numw >= 4) - { - const int32_t outerloopstart = determine_outer_loop(i); - - if (outerloopstart == -1) - CORRUPTCHK_PRINT(2, CORRUPT_SECTOR|i, "SECTOR %d contains no outer (clockwise) loop", i); - else if (outerloopstart == -2) - CORRUPTCHK_PRINT(2, CORRUPT_SECTOR|i, "SECTOR %d contains more than one outer (clockwise) loops", i); -# if CCHK_LOOP_CHECKS >= 2 - else - { - // Now, check for whether every wall-point of every inner loop of - // this sector () is inside the outer one. - - for (j=w0; j<=endwall; /* will step by loops */) - { - const int32_t nextloopstart = get_nextloopstart(j); - - if (j != outerloopstart) - { - int32_t k; - - for (k=j; k=numsectors) - CORRUPTCHK_PRINT(4, CORRUPT_SPRITE|i, "SPRITE[%d].SECTNUM=%d. Expect problems!", i, TrackerCast(sprite[i].sectnum)); - - if (sprite[i].statnum<0 || sprite[i].statnum>MAXSTATUS) - CORRUPTCHK_PRINT(4, CORRUPT_SPRITE|i, "SPRITE[%d].STATNUM=%d. Expect problems!", i, TrackerCast(sprite[i].statnum)); - - if (sprite[i].picnum<0 || sprite[i].picnum>=MAXTILES) - { - sprite[i].picnum = 0; - CORRUPTCHK_PRINT(0, CORRUPT_SPRITE|i, "SPRITE[%d].PICNUM=%d out of range, resetting to 0", i, TrackerCast(sprite[i].picnum)); - } - - if (corruptcheck_game_duke3d) - { - const int32_t tilenum = sprite[i].picnum; - - if (tilenum >= 1 && tilenum <= 9 && (sprite[i].cstat&48)) - { - const int32_t onumct = numcorruptthings; - - CORRUPTCHK_PRINT(1, CORRUPT_SPRITE|i, "%s sprite %d is not face-aligned", - names[tilenum], i); - - if (onumct < MAXCORRUPTTHINGS) - { - if (tryfixing & (1ull<= printfromlev) - OSD_Printf(" suggest clearing sprite[%d].cstat bits 16 and 32\n", i); - } - } - } - - if (klabs(sprite[i].x) > BXY_MAX || klabs(sprite[i].y) > BXY_MAX) - { - const int32_t onumct = numcorruptthings; - - CORRUPTCHK_PRINT(3, CORRUPT_SPRITE|i, "SPRITE %d at [%d, %d] is outside the maximal grid range [%d, %d]", - i, TrackerCast(sprite[i].x), TrackerCast(sprite[i].y), -BXY_MAX, BXY_MAX); - - if (onumct < MAXCORRUPTTHINGS) - { - int32_t x=0, y=0, ok=0; - const int32_t sect = sprite[i].sectnum; - - if ((unsigned)sect < (unsigned)numsectors) - { - const int32_t firstwall = sector[sect].wallptr; - - if ((unsigned)firstwall < (unsigned)numwalls) - { - x = wall[firstwall].x; - y = wall[firstwall].y; - ok = 1; - } - } - - if (!(tryfixing & (1ull<= printfromlev) - OSD_Printf(" will reposition to its sector's (%d) first" - " point [%d,%d] on tryfix\n", sect, x, y); - } - else - { - if (ok) - { - sprite[i].x = x; - sprite[i].y = y; - OSD_Printf(CCHK_CORRECTED "auto-correction: repositioned sprite %d to " - "its sector's (%d) first point [%d,%d]\n", i, sect, x, y); - } - } - } - } - } - - i = check_spritelist_consistency(); - if (i) - CORRUPTCHK_PRINT(5, i<0?0:(CORRUPT_SPRITE|i), CCHK_PANIC "SPRITE LISTS CORRUPTED: error code %d, s=%d, i=%d!", - i, csc_s, csc_i); - - if (0) - { -too_many_errors: - if (printfromlev<=errlevel) - OSD_Printf("!! too many errors, stopping. !!\n"); - } - - errlevel = max(errlevel, bad); - - if (errlevel) - { - if (printfromlev<=errlevel) - OSD_Printf("-- corruption level: %d\n", errlevel); - if (tryfixing) - OSD_Printf("--\n"); - } - - if (seen_nextwalls) - { - Xfree(seen_nextwalls); - Xfree(lastnextwallsource); - } - - corruptlevel = errlevel; - - return errlevel; -} -//// - - -////////// STATUS BAR MENU "class" ////////// - -#define MENU_MAX_ENTRIES (8*3) -#define MENU_ENTRY_SIZE 25 // max. length of label (including terminating NUL) - -#define MENU_Y_SPACING 8 -#define MENU_BASE_Y (ydim-STATUS2DSIZ+32) - -#define MENU_FG_COLOR editorcolors[11] -#define MENU_BG_COLOR editorcolors[0] -#define MENU_BG_COLOR_SEL editorcolors[1] - -#ifdef LUNATIC -# define MENU_HAVE_DESCRIPTION 1 -#else -# define MENU_HAVE_DESCRIPTION 0 -#endif - -typedef struct StatusBarMenu_ { - const char *const menuname; - const int32_t custom_start_index; - int32_t numentries; - - void (*process_func)(const struct StatusBarMenu_ *m, int32_t col, int32_t row); - - intptr_t auxdata[MENU_MAX_ENTRIES]; - char *description[MENU_MAX_ENTRIES]; // strdup'd description string, NULL if non - char name[MENU_MAX_ENTRIES][MENU_ENTRY_SIZE]; -} StatusBarMenu; - -#define MENU_INITIALIZER_EMPTY(MenuName, ProcessFunc) \ - { MenuName, 0, 0, ProcessFunc, {}, {}, {} } -#define MENU_INITIALIZER(MenuName, CustomStartIndex, ProcessFunc, ...) \ - { MenuName, CustomStartIndex, CustomStartIndex, ProcessFunc, {}, {}, ## __VA_ARGS__ } - -#ifdef LUNATIC -static void M_Clear(StatusBarMenu *m) -{ - int32_t i; - - m->numentries = 0; - Bmemset(m->auxdata, 0, sizeof(m->auxdata)); - Bmemset(m->name, 0, sizeof(m->name)); - - for (i=0; idescription[i]); -} - -static int32_t M_HaveDescription(StatusBarMenu *m) -{ - int32_t i; - - for (i=0; idescription[i] != NULL) - return 1; - - return 0; -} -#endif - -// NOTE: Does not handle description strings! (Only the Lua menu uses them.) -static void M_UnregisterFunction(StatusBarMenu *m, intptr_t auxdata) -{ - int32_t i, j; - - for (i=m->custom_start_index; inumentries; i++) - if (m->auxdata[i]==auxdata) - { - for (j=i; jnumentries-1; j++) - { - m->auxdata[j] = m->auxdata[j+1]; - Bmemcpy(m->name[j], m->name[j+1], MENU_ENTRY_SIZE); - } - - m->auxdata[j] = 0; - Bmemset(m->name[j], 0, MENU_ENTRY_SIZE); - - m->numentries--; - - break; - } -} - -static void M_RegisterFunction(StatusBarMenu *m, const char *name, intptr_t auxdata, const char *description) -{ - int32_t i; - - for (i=8; inumentries; i++) - { - if (m->auxdata[i]==auxdata) - { - // same auxdata, different name - Bstrncpyz(m->name[i], name, MENU_ENTRY_SIZE); - return; - } - else if (!Bstrncmp(m->name[i], name, MENU_ENTRY_SIZE)) - { - // same name, different auxdata - m->auxdata[i] = auxdata; - return; - } - } - - if (m->numentries == MENU_MAX_ENTRIES) - return; // max reached - - Bstrncpyz(m->name[m->numentries], name, MENU_ENTRY_SIZE); - m->auxdata[m->numentries] = auxdata; - -#if MENU_HAVE_DESCRIPTION - // NOTE: description only handled here (not above). - if (description) - m->description[m->numentries] = Xstrdup(description); -#else - UNREFERENCED_PARAMETER(description); -#endif - - m->numentries++; -} - -static void M_DisplayInitial(const StatusBarMenu *m) -{ - int32_t x = 8, y = MENU_BASE_Y+16; - int32_t i; - - for (i=0; inumentries; i++) - { - if (i==8 || i==16) - { - x += 208; - y = MENU_BASE_Y+16; - } - - printext16(x,y, MENU_FG_COLOR, MENU_BG_COLOR, m->name[i], 0); - y += MENU_Y_SPACING; - } - - printext16(m->numentries>8 ? 216 : 8, MENU_BASE_Y, MENU_FG_COLOR, -1, m->menuname, 0); - - clearkeys(); -} - -static void M_EnterMainLoop(StatusBarMenu *m) -{ - char disptext[80]; - const int32_t dispwidth = MENU_ENTRY_SIZE-1; - - int32_t i, col=0, row=0; - int32_t crowmax[3] = {-1, -1, -1}; - int32_t xpos = 8, ypos = MENU_BASE_Y+16; - - if (m->numentries == 0) - { - printmessage16("%s menu has no entries", m->menuname); - return; - } - - Bmemset(disptext, 0, sizeof(disptext)); - - Bassert((unsigned)m->numentries <= MENU_MAX_ENTRIES); - for (i=0; i<=(m->numentries-1)/8; i++) - crowmax[i] = (m->numentries >= (i+1)*8) ? 7 : (m->numentries-1)&7; - - drawgradient(); - M_DisplayInitial(m); - - while (keystatus[KEYSC_ESC] == 0) - { - idle_waitevent(); - if (handleevents()) - quitevent = 0; - - _printmessage16("Select an option, press to exit"); - - if (PRESSED_KEYSC(DOWN)) - { - if (row < crowmax[col]) - { - printext16(xpos, ypos+row*MENU_Y_SPACING, MENU_FG_COLOR, MENU_BG_COLOR, disptext, 0); - row++; - } - } - else if (PRESSED_KEYSC(UP)) - { - if (row > 0) - { - printext16(xpos, ypos+row*MENU_Y_SPACING, MENU_FG_COLOR, MENU_BG_COLOR, disptext, 0); - row--; - } - } - else if (PRESSED_KEYSC(LEFT)) - { - if (col > 0) - { - printext16(xpos, ypos+row*8, MENU_FG_COLOR, 0, disptext, 0); - col--; - xpos -= 208; - disptext[dispwidth] = 0; - row = min(crowmax[col], row); - } - } - else if (PRESSED_KEYSC(RIGHT)) - { - if (col < 2 && crowmax[col+1]>=0) - { - printext16(xpos, ypos+row*8, MENU_FG_COLOR, 0, disptext, 0); - col++; - xpos += 208; - disptext[dispwidth] = 0; - row = min(crowmax[col], row); - } - } - - for (i=Bsnprintf(disptext, dispwidth, "%s", m->name[col*8 + row]); i < dispwidth; i++) - disptext[i] = ' '; - - if (PRESSED_KEYSC(ENTER)) - { - Bassert(m->process_func != NULL); - m->process_func(m, col, row); - break; - } - -#if MENU_HAVE_DESCRIPTION - if (M_HaveDescription(m)) - { - const int32_t maxrows = 20; - int32_t r; - - for (r=0; rdescription[col*8 + row] != NULL) - printext16(16, 16, MENU_FG_COLOR, MENU_BG_COLOR, m->description[col*8 + row], 0); - } -#endif - printext16(xpos, ypos+row*MENU_Y_SPACING, MENU_FG_COLOR, MENU_BG_COLOR_SEL, disptext, 0); - videoShowFrame(1); - } - - printext16(xpos, ypos+row*MENU_Y_SPACING, MENU_FG_COLOR, MENU_BG_COLOR, disptext, 0); - videoShowFrame(1); - - keystatus[KEYSC_ESC] = 0; -} - -////////// SPECIAL FUNCTIONS MENU ////////// - -static void FuncMenu_Process(const StatusBarMenu *m, int32_t col, int32_t row); - -static StatusBarMenu g_specialFuncMenu = MENU_INITIALIZER( - "Special functions", 8, FuncMenu_Process, - - { - "Replace invalid tiles", - "Delete all spr of tile #", - "Set map sky shade", - "Set map sky height", - "Global Z coord shift", - "Resize selection", - "Global shade divide", - "Global visibility divide" - } -); - -// "External functions": - -void FuncMenu(void) -{ - M_EnterMainLoop(&g_specialFuncMenu); -} - -void registerMenuFunction(const char *funcname, int32_t stateidx) -{ - if (funcname) - M_RegisterFunction(&g_specialFuncMenu, funcname, stateidx, NULL); - else - M_UnregisterFunction(&g_specialFuncMenu, stateidx); -} - -// The processing function... - -static int32_t correct_picnum(int16_t *picnumptr) -{ - int32_t picnum = *picnumptr; - - if ((unsigned)picnum >= MAXTILES || tilesiz[picnum].x <= 0) - { - *picnumptr = 0; - return 1; - } - - return 0; -} - -static void FuncMenu_Process(const StatusBarMenu *m, int32_t col, int32_t row) -{ - int32_t i, j; - - switch (col) - { - - case 1: - case 2: - { - const int32_t stateidx = (Bassert(m->auxdata[col*8 + row] < g_stateCount), - m->auxdata[col*8 + row]); - - const char *statename = statesinfo[stateidx].name; - int32_t snlen = Bstrlen(statename); - char *tmpscript = (char *)Xmalloc(1+5+1+snlen+1); - - tmpscript[0] = ' '; // don't save in history - Bmemcpy(&tmpscript[1], "state", 5); - tmpscript[1+5] = ' '; - Bmemcpy(&tmpscript[1+5+1], statename, snlen); - tmpscript[1+5+1+snlen] = 0; - - M32RunScript(tmpscript); - Xfree(tmpscript); - - if (vm.flags&VMFLAG_ERROR) - printmessage16("There were errors while executing the menu function"); - else if (lastpm16time != totalclock) - printmessage16("Menu function executed successfully"); - } - break; - - case 0: - { - switch (row) - { - - case 0: - { - j = 0; - - for (i=0; i= 0) - { - int32_t k = 0; - for (j=0; j= 0) - { - sprite[w].x = (int32_t)(sprite[w].x*size); - sprite[w].y = (int32_t)(sprite[w].y*size); - sprite[w].z = (int32_t)(sprite[w].z*size); - sprite[w].xrepeat = min(max((int32_t)(sprite[w].xrepeat*size),1),255); - sprite[w].yrepeat = min(max((int32_t)(sprite[w].yrepeat*size),1),255); - w = nextspritesect[w]; - } - } - printmessage16("Map scaled"); - } - else printmessage16("Aborted"); - } - break; - - case 6: - { - j=getnumber16("Shade divisor: ",1,128,1); - if (j > 1) - { - for (i=0; i 1) - { - for (i=0; i>4)/j; - } - printmessage16("Visibility adjusted"); - } - else printmessage16("Aborted"); - } - break; - - } // switch (row) - } - break; // switch (col) / case 0 - - } // switch (col) -} - -#ifdef LUNATIC -typedef const char *(*luamenufunc_t)(void); - -#ifdef __cplusplus -extern "C" { -#endif -extern void LM_Register(const char *name, luamenufunc_t funcptr, const char *description); -extern void LM_Clear(void); -#ifdef __cplusplus -} -#endif - -static int32_t g_numLuaFuncs = 0; -static luamenufunc_t g_LuaFuncPtrs[MENU_MAX_ENTRIES]; - -static void LuaFuncMenu_Process(const StatusBarMenu *m, int32_t col, int32_t row) -{ - luamenufunc_t func = g_LuaFuncPtrs[col*8 + row]; - const char *errmsg; - - Bassert(func != NULL); - errmsg = func(); - - if (errmsg == NULL) - { - printmessage16("Lua function executed successfully"); - } - else - { - printmessage16("There were errors executing the Lua function, see OSD"); - OSD_Printf("Errors executing Lua function \"%s\": %s\n", m->name[col*8 + row], errmsg); - } -} - -static StatusBarMenu g_LuaFuncMenu = MENU_INITIALIZER_EMPTY("Lua functions", LuaFuncMenu_Process); - -void LuaFuncMenu(void) -{ - M_EnterMainLoop(&g_LuaFuncMenu); -} - -LUNATIC_EXTERN void LM_Register(const char *name, luamenufunc_t funcptr, const char *description) -{ - if (name == NULL || g_numLuaFuncs == MENU_MAX_ENTRIES) - return; - - g_LuaFuncPtrs[g_numLuaFuncs] = funcptr; - M_RegisterFunction(&g_LuaFuncMenu, name, g_numLuaFuncs, description); - g_numLuaFuncs++; -} - -LUNATIC_EXTERN void LM_Clear(void) -{ - M_Clear(&g_LuaFuncMenu); - - g_numLuaFuncs = 0; - Bmemset(g_LuaFuncPtrs, 0, sizeof(g_LuaFuncPtrs)); -} -#endif diff --git a/source/duke3d/src/m32def.cpp b/source/duke3d/src/m32def.cpp deleted file mode 100644 index ca79d27bc..000000000 --- a/source/duke3d/src/m32def.cpp +++ /dev/null @@ -1,4020 +0,0 @@ -//------------------------------------------------------------------------- -/* -Copyright (C) 2010 EDuke32 developers and contributors - -This file is part of EDuke32. - -EDuke32 is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License version 2 -as published by the Free Software Foundation. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ -//------------------------------------------------------------------------- - -// This object is shared by the editors of *all* Build games! - -#include "m32script.h" -#include "m32def.h" -#include "cache1d.h" -#include "sounds_mapster32.h" - -//#include "osd.h" -#include "keys.h" - -#include "vfs.h" - -char g_szScriptFileName[BMAX_PATH] = "(none)"; // file we're currently compiling -static char g_szCurrentBlockName[BMAX_PATH] = "(none)"; -static char g_szLastBlockName[BMAX_PATH] = "NULL"; - -////// compiler state vvv -static char const *textptr; -static char const *start_textptr; -static char const *g_curkwptr; -static int32_t def_tw; -int32_t g_totalLines; -int32_t g_lineNumber; -int32_t g_numCompilerErrors; -int32_t g_numCompilerWarnings; -int32_t g_didDefineSomething; - -typedef struct -{ - int32_t currentStateIdx; - ofstype currentStateOfs; // the offset to the start of the currently parsed states' code - char *curStateMenuName; - int32_t currentEvent; - ofstype parsingEventOfs; - - int32_t checkingSwitch; - int32_t numCases; - instype *caseScriptPtr; // the pointer to the start of the case table in a switch statement - // first entry is 'default' code. - instype *caseCodePtr; // the pointer to the start of the different cases' code - int32_t labelsOnly; - int32_t numBraces; - int32_t checkingIfElse, ifElseAborted; -} compilerstate_t; - -static compilerstate_t cs; -static compilerstate_t cs_default = {-1, -1, NULL, -1, -1, 0, 0, NULL, NULL, 0, 0, 0, 0}; -////// ------------------- - -instype * apScript = NULL; -instype * g_scriptPtr; -int32_t g_scriptSize = 65536; -int32_t * constants; -int32_t constants_allocsize = 1024; -int32_t g_numSavedConstants = 0; -static int32_t g_wasConstant = 0; -char * label; -int32_t * labelval; -uint8_t * labeltype; -int32_t g_numLabels = 0; -int32_t g_numDefaultLabels = 0; -static int32_t label_allocsize = 512; -int32_t g_stateCount = 0; -statesinfo_t * statesinfo = NULL; -static int32_t statesinfo_allocsize = 512; -static int32_t interactive_compilation = 0; - -static char tempbuf[2048]; -static char tlabel[MAXLABELLEN]; -static char tlabel2[MAXLABELLEN]; - -int32_t g_iReturnVar = 0; - -int32_t m32_sortvar1; -int32_t m32_sortvar2; - -char * apStrings[MAXQUOTES + 1]; -char * apXStrings[MAXQUOTES + 1]; -int32_t g_numXStrings = 0; - -ofstype aEventOffsets[MAXEVENTS]; -int32_t aEventSizes[MAXEVENTS]; -uint16_t aEventNumLocals[MAXEVENTS]; -gamevar_t aGameVars[MAXGAMEVARS]; -gamearray_t aGameArrays[MAXGAMEARRAYS]; -int32_t g_gameVarCount = 0; -int32_t g_systemVarCount = 0; -int32_t g_gameArrayCount = 0; -int32_t g_systemArrayCount = 0; - - -// "magic" number for { and }, overrides line number in compiled code for later detection -#define IFELSE_MAGIC 31337 - - -enum ScriptLabel_t -{ - LABEL_ANY = -1, - LABEL_DEFINE = 1, - LABEL_EVENT = 2 -}; - -static const char *LabelTypeText[] = -{ - "define", - "event" -}; - -static char *C_GetLabelType(int32_t type) -{ - uint32_t i; - char x[64]; - - x[0] = 0; - for (i=0; i" -}; - -const memberlabel_t SectorLabels[]= -{ - { "wallptr", SECTOR_WALLPTR, 1, 0, 0 }, - { "wallnum", SECTOR_WALLNUM, 1, 0, 0 }, - { "ceilingz", SECTOR_CEILINGZ, 0, 0, 0 }, - { "floorz", SECTOR_FLOORZ, 0, 0, 0 }, - { "ceilingstat", SECTOR_CEILINGSTAT, 0, 0, 0 }, - { "floorstat", SECTOR_FLOORSTAT, 0, 0, 0 }, - { "ceilingpicnum", SECTOR_CEILINGPICNUM, 0, 0, MAXTILES-1 }, - { "ceilingslope", SECTOR_CEILINGSLOPE, 0, 0, 0}, - { "ceilingshade", SECTOR_CEILINGSHADE, 0, 0, 0 }, - { "ceilingpal", SECTOR_CEILINGPAL, 0, 0, 0 }, - { "ceilingxpanning", SECTOR_CEILINGXPANNING, 0, 0, 0 }, - { "ceilingypanning", SECTOR_CEILINGYPANNING, 0, 0, 0 }, - { "floorpicnum", SECTOR_FLOORPICNUM, 0, 0, MAXTILES-1 }, - { "floorslope", SECTOR_FLOORSLOPE, 0, 0, 0 }, - { "floorshade", SECTOR_FLOORSHADE, 0, 0, 0 }, - { "floorpal", SECTOR_FLOORPAL, 0, 0, 0 }, - { "floorxpanning", SECTOR_FLOORXPANNING, 0, 0, 0 }, - { "floorypanning", SECTOR_FLOORYPANNING, 0, 0, 0 }, - { "visibility", SECTOR_VISIBILITY, 0, 0, 0 }, - { "fogpal", SECTOR_FOGPAL, 0, 0, 0 }, // formerly filler - { "lotag", SECTOR_LOTAG, 0, 0, 0 }, - { "hitag", SECTOR_HITAG, 0, 0, 0 }, - { "extra", SECTOR_EXTRA, 0, 0, 0 }, -// aliases - { "alignto", SECTOR_FOGPAL, 0, 0, 0 }, // formerly filler - { "ceilingheinum", SECTOR_CEILINGSLOPE, 0, 0, 0}, - { "floorheinum", SECTOR_FLOORSLOPE, 0, 0, 0}, - - { "", -1, 0, 0, 0 } // END OF LIST -}; - -const memberlabel_t WallLabels[]= -{ - { "x", WALL_X, 0, -BXY_MAX, BXY_MAX }, - { "y", WALL_Y, 0, -BXY_MAX, BXY_MAX }, - { "point2", WALL_POINT2, 1, 0, 0 }, - { "nextwall", WALL_NEXTWALL, 1, 0, 0 }, - { "nextsector", WALL_NEXTSECTOR, 1, 0, 0 }, - { "cstat", WALL_CSTAT, 0, 0, 0 }, - { "picnum", WALL_PICNUM, 0, 0, MAXTILES-1 }, - { "overpicnum", WALL_OVERPICNUM, 0, 0, MAXTILES-1 }, - { "shade", WALL_SHADE, 0, 0, 0 }, - { "pal", WALL_PAL, 0, 0, 0 }, - { "xrepeat", WALL_XREPEAT, 0, 0, 0 }, - { "yrepeat", WALL_YREPEAT, 0, 0, 0 }, - { "xpanning", WALL_XPANNING, 0, 0, 0 }, - { "ypanning", WALL_YPANNING, 0, 0, 0 }, - { "lotag", WALL_LOTAG, 0, 0, 0 }, - { "hitag", WALL_HITAG, 0, 0, 0 }, - { "extra", WALL_EXTRA, 0, 0, 0 }, - { "", -1, 0, 0, 0 } // END OF LIST -}; - -const memberlabel_t SpriteLabels[]= -{ - { "x", SPRITE_X, 0, -BXY_MAX, BXY_MAX }, - { "y", SPRITE_Y, 0, -BXY_MAX, BXY_MAX }, - { "z", SPRITE_Z, 0, 0, 0 }, - { "cstat", SPRITE_CSTAT, 0, 0, 0 }, - { "picnum", SPRITE_PICNUM, 0, 0, MAXTILES-1 }, - { "shade", SPRITE_SHADE, 0, 0, 0 }, - { "pal", SPRITE_PAL, 0, 0, 0 }, - { "clipdist", SPRITE_CLIPDIST, 0, 0, 0 }, - { "blend", SPRITE_BLEND, 0, 0, 0 }, - { "xrepeat", SPRITE_XREPEAT, 0, 0, 0 }, - { "yrepeat", SPRITE_YREPEAT, 0, 0, 0 }, - { "xoffset", SPRITE_XOFFSET, 0, 0, 0 }, - { "yoffset", SPRITE_YOFFSET, 0, 0, 0 }, - { "sectnum", SPRITE_SECTNUM, 0, 0, 0 }, - { "statnum", SPRITE_STATNUM, 0, 0, 0 }, - { "ang", SPRITE_ANG, 0, 0, 0 }, - { "owner", SPRITE_OWNER, 0, 0, 0 }, - { "xvel", SPRITE_XVEL, 0, 0, 0 }, - { "yvel", SPRITE_YVEL, 0, 0, 0 }, - { "zvel", SPRITE_ZVEL, 0, 0, 0 }, - { "lotag", SPRITE_LOTAG, 0, 0, 0 }, - { "hitag", SPRITE_HITAG, 0, 0, 0 }, - { "extra", SPRITE_EXTRA, 0, 0, 0 }, - { "", -1, 0, 0, 0 } // END OF LIST -}; - -#ifndef POLYMER -# define PR_MAXLIGHTPRIORITY 6 -#endif - -const memberlabel_t LightLabels[]= -{ - { "x", LIGHT_X, 0, -BXY_MAX, BXY_MAX }, - { "y", LIGHT_Y, 0, -BXY_MAX, BXY_MAX }, - { "z", LIGHT_Z, 0, 0, 0 }, - { "horiz", LIGHT_HORIZ, 0, 0, 0 }, - { "range", LIGHT_RANGE, 0, 0, 0 }, - { "angle", LIGHT_ANGLE, 0, 0, 0 }, - { "faderadius", LIGHT_FADERADIUS, 0, 0, 0 }, - { "radius", LIGHT_RADIUS, 0, 0, 0 }, - { "sector", LIGHT_SECTOR, 0, 0, 0 }, - { "r", LIGHT_R, 0, 0, 255 }, - { "g", LIGHT_G, 0, 0, 255 }, - { "b", LIGHT_B, 0, 0, 255 }, - { "priority", LIGHT_PRIORITY, 0, 0, PR_MAXLIGHTPRIORITY-1 }, - { "tilenum", LIGHT_TILENUM, 0, 0, MAXTILES-1 }, - { "minshade", LIGHT_MINSHADE, 0, -128, 127 }, - { "maxshade", LIGHT_MAXSHADE, 0, -128, 127 }, -// - { "active", LIGHT_ACTIVE, 0, 0, 1 }, - { "", -1, 0, 0, 0 } // END OF LIST -}; - -const tokenmap_t iter_tokens[] = -{ - { "allsprites", ITER_ALLSPRITES }, - { "allsectors", ITER_ALLSECTORS }, - { "allwalls", ITER_ALLWALLS }, - { "activelights", ITER_ACTIVELIGHTS }, - { "selsprites", ITER_SELSPRITES }, - { "selsectors", ITER_SELSECTORS }, - { "selwalls", ITER_SELWALLS }, - { "drawnsprites", ITER_DRAWNSPRITES }, - { "spritesofsector", ITER_SPRITESOFSECTOR }, - { "loopofwall", ITER_LOOPOFWALL }, - { "wallsofsector", ITER_WALLSOFSECTOR }, - { "range", ITER_RANGE }, -// vvv alternatives go here vvv - { "selspr", ITER_SELSPRITES }, - { "selsec", ITER_SELSECTORS }, - { "lights", ITER_ACTIVELIGHTS }, - { "sprofsec", ITER_SPRITESOFSECTOR }, - { "walofsec", ITER_WALLSOFSECTOR }, - { "", -1 } // END OF LIST -}; - - -hashtable_t h_gamevars = { MAXGAMEVARS>>1, NULL }; -hashtable_t h_arrays = { MAXGAMEARRAYS>>1, NULL }; -hashtable_t h_labels = { 11262>>1, NULL }; -static hashtable_t h_localvars = { MAXGAMEVARS>>2, NULL }; // values: offset|(array?(size<<16):0) - -static hashtable_t h_states = { 1264>>1, NULL }; -static hashtable_t h_keywords = { CON_END>>1, NULL }; -static hashtable_t h_iter = { ITER_END, NULL }; - -static hashtable_t h_sector = { SECTOR_END>>1, NULL }; -static hashtable_t h_wall = { WALL_END>>1, NULL }; -static hashtable_t h_sprite = { SPRITE_END>>1, NULL }; -static hashtable_t h_light = { SPRITE_END>>1, NULL }; - - -static void C_InitHashes() -{ - int32_t i; - - hash_init(&h_gamevars); - hash_init(&h_arrays); - hash_init(&h_localvars); - - hash_init(&h_labels); - hash_init(&h_states); - - hash_init(&h_keywords); - for (i=NUMKEYWORDS-1; i>=0; i--) - hash_add(&h_keywords, keyw[i], i, 0); - for (i=0; i=0; i++) - hash_add(&h_sector,SectorLabels[i].name,i, 0); - - hash_init(&h_wall); - for (i=0; WallLabels[i].lId >=0; i++) - hash_add(&h_wall,WallLabels[i].name,i, 0); - - hash_init(&h_sprite); - for (i=0; SpriteLabels[i].lId >=0; i++) - hash_add(&h_sprite,SpriteLabels[i].name,i, 0); - - hash_init(&h_light); - for (i=0; LightLabels[i].lId >=0; i++) - hash_add(&h_light,LightLabels[i].name,i, 0); - - hash_init(&h_iter); - for (i=0; iter_tokens[i].val >=0; i++) - hash_add(&h_iter, iter_tokens[i].token, iter_tokens[i].val, 0); -} - -// returns: 0:success, 1:failure -static int32_t C_SetScriptSize(int32_t size) -{ - ofstype oscriptOfs = (unsigned)(g_scriptPtr-apScript); - ofstype ocaseScriptOfs = (unsigned)(cs.caseScriptPtr-apScript); - ofstype ocaseCodeOfs = (unsigned)(cs.caseCodePtr-apScript); - - instype *newscript; - int32_t osize = g_scriptSize; - - if (g_scriptSize >= size) - return 0; - - //initprintf("offset: %d\n",(unsigned)(g_scriptPtr-script)); - g_scriptSize = size; - initprintf("Resizing code buffer to %d*%d bytes\n", g_scriptSize, (int32_t)sizeof(instype)); - - newscript = (instype *)Xrealloc(apScript, g_scriptSize * sizeof(instype)); - - if (size >= osize) - Bmemset(&newscript[osize], 0, (size-osize) * sizeof(instype)); - - if (apScript != newscript) - { - buildprint("Relocating compiled code from to 0x", hex((intptr_t)apScript), " to 0x", hex((intptr_t)newscript), "\n"); - apScript = newscript; - } - - g_scriptPtr = (instype *)(apScript+oscriptOfs); -// initprintf("script: %d, \n",script); initprintf("offset: %d\n",(unsigned)(g_scriptPtr-script)); - - if (cs.caseScriptPtr != NULL) - cs.caseScriptPtr = (instype *)(apScript+ocaseScriptOfs); - if (cs.caseCodePtr != NULL) - cs.caseCodePtr = (instype *)(apScript+ocaseCodeOfs); - - return 0; -} - -static int32_t char_whitespace(char c) -{ - return c==' ' || c=='\t' || c=='\n' || c=='\r' || c=='(' || c==')' || c==',' || c==';'; -} - -static int32_t char_alnumtok(char c) -{ - return isalnum(c) || c == '#' || c == '{' || c == '}' || c == '/' || c == '\\' || - c == '*' || c == '-' || c == '_' || c == '.' || c == '"'; -} - -static int32_t C_SkipComments(void) -{ - char c = *textptr; - - do - { - if (char_whitespace(c)) - { - textptr++; - g_lineNumber += (c=='\n'); - } - else if (c == '/' && textptr[1] == '/') - { - while (*textptr && *textptr != 0x0a && *textptr != 0x0d) - textptr++; - } - else if (c == '/' && textptr[1] == '*') - { - textptr += 2; - - while (*textptr && !(textptr[0] == '*' && textptr[1] == '/')) - { - if (*textptr == '\n') - g_lineNumber++; - textptr++; - } - - if (!*textptr) - { - C_CUSTOMERROR("found `/*' with no `*/'."); - cs.numBraces = 0; - cs.currentStateIdx = -1; - break; - } - - textptr += 2; - } - else - break; - } - while ((c = *textptr)); - - // Be sure to have enough space allocated for the command to be parsed next. - // Currently, the commands that potentially need the most space are - // various string handling function that accept inline strings. - if ((unsigned)(g_scriptPtr-apScript) > (unsigned)(g_scriptSize - max(40, MAXQUOTELEN/sizeof(instype)+8))) - return C_SetScriptSize(g_scriptSize<<1); - - return 0; -} - -static inline int32_t C_GetLabelNameID(const memberlabel_t *pLabel, hashtable_t *tH, const char *psz) -{ - // find the label psz in the table pLabel. - // returns the ID for the label, or -1 - - int32_t l = hash_findcase(tH, psz); - if (l>=0) - l = pLabel[l].lId; - - return l; -} - -// returns: 1 on EOF or (checkkeyw and keyword encountered), 0 else -static int32_t C_GetNextLabelName(int32_t checkkeyw) -{ - int32_t i; - - C_SkipComments(); - - tlabel[0] = 0; - - if (*textptr == 0) - { - C_CUSTOMERROR("unexpected EOF where label was expected."); - return 1; - } - - while (*textptr && (char_whitespace(*textptr) || *textptr=='-')) //!isalnum(*textptr)) - { - g_lineNumber += (*textptr == 0x0a); - textptr++; - } - - if (!isalpha(*textptr)) - C_CUSTOMERROR("label names must start with an alphabetic character, encountered '%c'.", *textptr); - - i = 0; - while (*textptr && !char_whitespace(*textptr) && *textptr!='['&& *textptr!=']') - { - if (i < MAXLABELLEN-1) - tlabel[i++] = *(textptr++); - else - textptr++; - } - - tlabel[i] = 0; - - if (checkkeyw) - { - if (hash_find(&h_keywords, tlabel)>=0) - { - g_numCompilerErrors++; - C_ReportError(ERROR_ISAKEYWORD); - return 1; - } - } - -// if (!(g_numCompilerErrors || g_numCompilerWarnings) && g_scriptDebug > 1) -// initprintf("%s:%d: debug: got label `%s'.\n",g_szScriptFileName,g_lineNumber,tlabel); - - return 0; -} - -static int32_t C_CopyLabel(void) -{ - if (g_numLabels >= label_allocsize) - { - label = (char *)Xrealloc(label, 2*label_allocsize*MAXLABELLEN*sizeof(char)); - labelval = (int32_t *)Xrealloc(labelval, 2*label_allocsize*sizeof(labelval[0])); - labeltype = (uint8_t *)Xrealloc(labeltype, 2*label_allocsize*sizeof(labeltype[0])); - - label_allocsize *= 2; - } - - Bmemcpy(label+(g_numLabels*MAXLABELLEN), tlabel, MAXLABELLEN); - return 0; -} - -// returns: -1 on EOF or not a keyword, keyword index (==bytecode value) else -static int32_t C_GetKeyword(void) -{ - int32_t i; - const char *temptextptr; - - C_SkipComments(); - - if (*textptr == 0) - return -1; - - temptextptr = textptr; - - while (!char_alnumtok(*temptextptr)) - { - temptextptr++; - if (!*temptextptr) - return -1; - } - - i = 0; - while (char_alnumtok(*temptextptr)) - tempbuf[i++] = *(temptextptr++); - tempbuf[i] = 0; - - return hash_find(&h_keywords, tempbuf); -} - -//Returns its code # if keyword, -1 on eof or non-keyword -static int32_t C_GetNextKeyword(void) -{ - int32_t i, l, olinenum = g_lineNumber, havequickstate=0; - const char *otextptr = textptr; - - C_SkipComments(); - - if (*textptr == 0) - return -1; - - while (!char_alnumtok(*textptr)) - { - g_lineNumber += (*textptr == 0x0a); - - if (!*textptr) - return -1; - - textptr++; - } - - l = 0; - while (char_alnumtok(textptr[l]) && textptr[l] != '.') - { - tempbuf[l] = textptr[l]; - l++; - } - while (char_alnumtok(textptr[l])) - { - tempbuf[l] = textptr[l]; - l++; - } - tempbuf[l] = 0; - - g_curkwptr = textptr; - - textptr += l; - - i = hash_find(&h_keywords, tempbuf); - if (i<0) - { - if (tempbuf[0]=='{' && tempbuf[1]) - { - C_CUSTOMERROR("expected whitespace between `{' and `%s'", tempbuf+1); - return -1; - } - else if (tempbuf[0]=='}' && tempbuf[1]) - { - C_CUSTOMERROR("expected whitespace between `}' and `%s'", tempbuf+1); - return -1; - } - else - { - // if compiling from OSD, try state name - if (interactive_compilation) - i = hash_find(&h_states, tempbuf); - - if (i<0) - { - C_ReportError(ERROR_EXPECTEDKEYWORD); - g_numCompilerErrors++; - return -1; - } - else - { - havequickstate = 1; - i = CON_STATE; - } - } - } - - if (i == CON_LEFTBRACE || i == CON_RIGHTBRACE || i == CON_NULLOP) - *g_scriptPtr = i + (IFELSE_MAGIC<<12); - else - *g_scriptPtr = i + (g_lineNumber<<12); - - if (havequickstate) - { - g_lineNumber = olinenum; - // reset textptr so that case CON_STATE in C_ParseCommand() can insert the state number - textptr = otextptr; - } - - g_scriptPtr++; - -// if (!(g_numCompilerErrors || g_numCompilerWarnings) && g_scriptDebug) -// initprintf("%s:%d: debug: translating keyword `%s'.\n",g_szScriptFileName,g_lineNumber,keyw[i]); - return i; -} - -static int32_t GetGamevarID(const char *szGameLabel, int32_t searchlocals) -{ - if (searchlocals) - { - int32_t retid = hash_find(&h_localvars, szGameLabel); - if (retid>=0 && retid MAXGAMEVARS) // it's a local array - return retid; - } - return hash_find(&h_arrays, szGameLabel); -} - -// gamevar type restrictions -#define GV_WRITABLE GAMEVAR_READONLY -#define GV_SIMPLE GAMEVAR_SPECIAL - -static int32_t parse_integer_literal(int32_t *num) -{ - if (textptr[0] == '0' && tolower(textptr[1])=='x') - sscanf(textptr+2, "%" SCNx32, (uint32_t *)&num); - else - { - long lnum; - errno = 0; - lnum = Bstrtol(textptr, NULL, 10); - if (errno || (sizeof(long)>4 && (lnumINT32_MAX))) - { - C_CUSTOMERROR("integer literal exceeds bitwidth."); - return 1; - } - *num = (int32_t)lnum; - } - - return 0; -} - -static void C_GetNextVarType(int32_t type) -{ - int32_t i, id=0, flags=0, num, indirect=0; //, thenum; - - C_SkipComments(); - - if (*textptr == 0) - { - C_CUSTOMERROR("unexpected EOF where variable was expected."); - return; - } - - g_wasConstant = 0; - - if (*textptr == '"') - { - C_CUSTOMERROR("String literal encountered where not expected, skipping."); - while (*textptr && *textptr!='"' && *textptr!=0x0a) - textptr++; - if (*textptr == '"') - textptr++; - return; - } - else if (!(type&GV_WRITABLE) && !cs.labelsOnly && - (isdigit(textptr[0]) || (textptr[0]=='-' && isdigit(textptr[1])))) - { - // literal numeric constant where gamevar expected - -// if (!(g_numCompilerErrors || g_numCompilerWarnings) && g_scriptDebug) -// initprintf("%s:%d: debug: accepted constant %d in place of gamevar.\n",g_szScriptFileName,g_lineNumber,Batol(textptr)); - - parse_integer_literal(&num); -//thenum=num; - if (type==GV_SIMPLE && (num<0 || num>=65536)) - C_CUSTOMERROR("array index %d out of bounds. (max: 65535)", num); - - if (g_numCompilerErrors==0 && type!=GV_SIMPLE && num != (int16_t)num) - { - // Constant doesn't fit in 16 bits, make it indirect. - // Array indices are interpreted as unsigned, so they always fit into the high bits of the instruction. - - indirect = 1; - - for (i=g_numSavedConstants-1; i>=0; i--) - if (constants[i] == num) - { - num = i; - break; - } - - if (i<0) - { - i = g_numSavedConstants; - if (i>=constants_allocsize) - { - constants_allocsize *= 2; - constants = (int32_t *)Xrealloc(constants, constants_allocsize * sizeof(constants[0])); - } - - constants[i] = num; - num = i; - g_numSavedConstants++; - } - } - - if (type!=GV_SIMPLE) - g_wasConstant = 1; - -//printf("num:%d, idx:%d, indir:%d\n",thenum,num,indirect); - *g_scriptPtr++ = (num<<16) | M32_FLAG_CONSTANT | indirect; - - while (!char_whitespace(*textptr) && *textptr != ']') - textptr++; - - return; - } - else if (type != GV_SIMPLE && (textptr[0]=='.' || (textptr[0]=='-' && textptr[1]=='.'))) - { - // current sprite shortcut access - - int32_t labelNum; - - flags = M32_FLAG_STRUCT; - if (*textptr=='-') - { - flags |= M32_FLAG_NEGATE; - textptr++; - } - textptr++; - - /// now pointing at 'xxx' - - C_GetNextLabelName(0); - labelNum = C_GetLabelNameID(SpriteLabels, &h_sprite, Bstrtolower(tlabel)); - - if (labelNum == -1) - { - g_numCompilerErrors++; - C_ReportError(ERROR_SYMBOLNOTRECOGNIZED); - return; - } - - *g_scriptPtr++ = ((M32_THISACTOR_VAR_ID<<16) | flags | (labelNum<<2) | M32_SPRITE_VAR_ID); - - return; - } - else if (textptr[0]=='-' && textptr[1] != '.') // && !isdigit(*(textptr+1)) - { - // negation - - if (type==0) - { -// if (!(g_numCompilerErrors || g_numCompilerWarnings) && g_scriptDebug) -// initprintf("%s:%d: debug: flagging gamevar as negative.\n",g_szScriptFileName,g_lineNumber,Batol(textptr)); - flags = M32_FLAG_NEGATE; - } - else - { - if (type==GV_WRITABLE) - C_CUSTOMERROR("syntax error. Tried negating written-to variable."); - else if (type==GV_SIMPLE) - C_CUSTOMERROR("syntax error. Tried negating variable in context that doesn't allow it."); - else // type==GV_WRITABLE|GV_SIMPLE - C_CUSTOMERROR("syntax error. Tried negating written-to variable in context that doesn't allow it."); - - C_GetNextLabelName(1); - - return; - } - } - - // at this point, flags can be 0 or M32_FLAG_NEGATE - - C_GetNextLabelName(1); - - C_SkipComments(); //skip comments and whitespace - - if (*textptr == '[') //read of array as a gamevar - { - int32_t labelNum = -1, aridx; - int32_t lightp = 0; - - textptr++; - flags |= M32_FLAG_ARRAY; - - if (type & GV_SIMPLE) - { - g_numCompilerErrors++; - C_ReportError(ERROR_EXPECTEDSIMPLEVAR); - return; - } - - id = GetGamearrayID(tlabel, 1); - if (id < 0) - { - id = GetGamevarID(tlabel, 0); - - if (id < 0 || id >= 5) - { - C_CUSTOMERROR("symbol `%s' is neither an array name nor one of `(t)sprite', `sector', `wall' or `light'.", tlabel); - return; - } - - if (id==4) - { - id = 3; // smuggle lights into tspr - lightp = 1; - } - - flags &= ~M32_FLAG_ARRAY; // not an array - flags |= M32_FLAG_STRUCT; - } - else if (id>16)&0xffff); // decode... - } - - // ---------- - - C_SkipComments(); - - if (*textptr != ']') - { - g_numCompilerErrors++; - C_ReportError(ERROR_GAMEARRAYBNC); - return; - } - textptr++; - - // ---------- - - if ((flags & M32_VARTYPE_MASK) == M32_FLAG_LOCAL) - { - // id: local ofs | (size<<16) - int32_t ar_ofs=id&(MAXGAMEVARS-1), ar_size=(id>>16)&0xffff; - - if (aridx<0 || aridx>=ar_size) - C_CUSTOMERROR("local array index %d out of bounds. Size of local array `%s': %d.", aridx, tlabel2, ar_size); - - *g_scriptPtr++ = (flags|(ar_ofs+aridx)); - } - if ((flags & M32_VARTYPE_MASK) == M32_FLAG_ARRAY) - { - if ((aridx & M32_BITS_MASK) == M32_FLAG_CONSTANTINDEX) - *g_scriptPtr++ = (aridx | flags | id); - else // simple or local gamevar - *g_scriptPtr++ = (aridx<<16 | flags | id); - } - else if ((flags & M32_VARTYPE_MASK) == M32_FLAG_STRUCT) - { - while (*textptr && *textptr != 0x0a && *textptr != '.') - textptr++; - - if (*textptr != '.') - { - const char *types[4] = {"sprite","sector","wall","tsprite"}; - if (lightp) - types[3] = "light"; - C_CUSTOMERROR("syntax error. Expected `.