├── .gitmodules ├── README.md ├── USAGE.md ├── bin_unix └── README.md ├── config ├── blendbrush.cfg ├── default.cfg ├── default_map_models.cfg ├── default_map_settings.cfg ├── font.cfg ├── game.cfg ├── glsl.cfg ├── glsl │ ├── aa.cfg │ ├── ao.cfg │ ├── blur.cfg │ ├── decal.cfg │ ├── deferred.cfg │ ├── edit.cfg │ ├── fxaa.cfg │ ├── gi.cfg │ ├── grass.cfg │ ├── hud.cfg │ ├── material.cfg │ ├── misc.cfg │ ├── model.cfg │ ├── movie.cfg │ ├── particle.cfg │ ├── postfx.cfg │ ├── scale.cfg │ ├── shared.cfg │ ├── sky.cfg │ ├── smaa.cfg │ ├── stain.cfg │ ├── tonemap.cfg │ ├── ui.cfg │ ├── volumetric.cfg │ └── world.cfg ├── heightmap.cfg ├── keymap.cfg ├── server-init.cfg ├── sound.cfg ├── stdedit.cfg ├── stdlib.cfg ├── ui.cfg └── ui │ ├── edithud.cfg │ ├── fkey.cfg │ ├── lib.cfg │ ├── options.cfg │ ├── scoreboard.cfg │ ├── serverbrowser.cfg │ ├── stats.cfg │ └── style.cfg ├── doc └── dev │ ├── IQM Tools - Github.URL │ ├── IQM Tools.URL │ ├── Ragdoll Tools.URL │ ├── old │ ├── 2014-05-12_default_map_models.cfg │ └── 2014-05-12_default_map_settings.cfg │ ├── ref_CubeScript.URL │ ├── ref_Miscellaneous.txt │ ├── ref_ui.cfg │ └── todo_nieb.txt ├── server.bat ├── src ├── Makefile ├── README.md ├── enet │ ├── ChangeLog │ ├── LICENSE │ ├── Makefile │ ├── README │ ├── callbacks.c │ ├── check_cflags.sh │ ├── compress.c │ ├── host.c │ ├── include │ │ └── enet │ │ │ ├── callbacks.h │ │ │ ├── enet.h │ │ │ ├── list.h │ │ │ ├── protocol.h │ │ │ ├── time.h │ │ │ ├── types.h │ │ │ ├── unix.h │ │ │ ├── utility.h │ │ │ └── win32.h │ ├── list.c │ ├── packet.c │ ├── peer.c │ ├── protocol.c │ ├── unix.c │ └── win32.c ├── engine │ ├── aa.cpp │ ├── animmodel.h │ ├── bih.cpp │ ├── bih.h │ ├── blend.cpp │ ├── client.cpp │ ├── command.cpp │ ├── console.cpp │ ├── dynlight.cpp │ ├── engine.h │ ├── explosion.h │ ├── grass.cpp │ ├── hitzone.h │ ├── iqm.h │ ├── lensflare.h │ ├── light.cpp │ ├── light.h │ ├── lightning.h │ ├── main.cpp │ ├── master.cpp │ ├── material.cpp │ ├── md2.h │ ├── md3.h │ ├── md5.h │ ├── menus.cpp │ ├── model.h │ ├── movie.cpp │ ├── mpr.h │ ├── normal.cpp │ ├── obj.h │ ├── octa.cpp │ ├── octa.h │ ├── octaedit.cpp │ ├── octarender.cpp │ ├── pch.cpp │ ├── physics.cpp │ ├── pvs.cpp │ ├── ragdoll.h │ ├── rendergl.cpp │ ├── renderlights.cpp │ ├── rendermodel.cpp │ ├── renderparticles.cpp │ ├── rendersky.cpp │ ├── rendertext.cpp │ ├── renderva.cpp │ ├── scale.h │ ├── server.cpp │ ├── serverbrowser.cpp │ ├── shader.cpp │ ├── skelmodel.h │ ├── smd.h │ ├── sound.cpp │ ├── stain.cpp │ ├── textedit.h │ ├── texture.cpp │ ├── texture.h │ ├── ui.cpp │ ├── vertmodel.h │ ├── water.cpp │ ├── world.cpp │ ├── world.h │ └── worldio.cpp ├── game │ ├── ai.cpp │ ├── ai.h │ ├── aiman.h │ ├── client.cpp │ ├── ctf.h │ ├── entities.cpp │ ├── extinfo.h │ ├── game.cpp │ ├── game.h │ ├── pch.cpp │ ├── render.cpp │ ├── scoreboard.cpp │ ├── server.cpp │ ├── waypoint.cpp │ └── weapon.cpp ├── include │ ├── GL │ │ └── glext.h │ ├── SDL.h │ ├── SDL_assert.h │ ├── SDL_atomic.h │ ├── SDL_audio.h │ ├── SDL_bits.h │ ├── SDL_blendmode.h │ ├── SDL_clipboard.h │ ├── SDL_config.h │ ├── SDL_config_macosx.h │ ├── SDL_config_windows.h │ ├── SDL_copying.h │ ├── SDL_cpuinfo.h │ ├── SDL_endian.h │ ├── SDL_error.h │ ├── SDL_events.h │ ├── SDL_filesystem.h │ ├── SDL_gamecontroller.h │ ├── SDL_gesture.h │ ├── SDL_haptic.h │ ├── SDL_hints.h │ ├── SDL_image.h │ ├── SDL_joystick.h │ ├── SDL_keyboard.h │ ├── SDL_keycode.h │ ├── SDL_loadso.h │ ├── SDL_log.h │ ├── SDL_main.h │ ├── SDL_messagebox.h │ ├── SDL_mixer.h │ ├── SDL_mouse.h │ ├── SDL_mutex.h │ ├── SDL_name.h │ ├── SDL_opengl.h │ ├── SDL_opengles.h │ ├── SDL_opengles2.h │ ├── SDL_pixels.h │ ├── SDL_platform.h │ ├── SDL_power.h │ ├── SDL_quit.h │ ├── SDL_rect.h │ ├── SDL_render.h │ ├── SDL_revision.h │ ├── SDL_rwops.h │ ├── SDL_scancode.h │ ├── SDL_shape.h │ ├── SDL_stdinc.h │ ├── SDL_surface.h │ ├── SDL_system.h │ ├── SDL_syswm.h │ ├── SDL_thread.h │ ├── SDL_timer.h │ ├── SDL_touch.h │ ├── SDL_types.h │ ├── SDL_version.h │ ├── SDL_video.h │ ├── begin_code.h │ ├── close_code.h │ ├── zconf.h │ └── zlib.h ├── lib │ ├── SDL2.lib │ ├── SDL2_image.lib │ ├── SDL2_mixer.lib │ ├── enet.lib │ └── zdll.lib ├── lib64 │ ├── SDL2.lib │ ├── SDL2_image.lib │ ├── SDL2_mixer.lib │ ├── enet.lib │ └── zdll.lib ├── shared │ ├── command.h │ ├── crypto.cpp │ ├── cube.h │ ├── ents.h │ ├── geom.cpp │ ├── geom.h │ ├── glemu.cpp │ ├── glemu.h │ ├── glexts.h │ ├── iengine.h │ ├── igame.h │ ├── pch.cpp │ ├── stream.cpp │ ├── tessfont.c │ ├── tools.cpp │ ├── tools.h │ └── zip.cpp ├── vcpp │ ├── dpiaware.manifest │ ├── mingw.rc │ ├── tesseract.cbp │ ├── tesseract.ico │ ├── tesseract.nsi │ ├── tesseract.rc │ ├── tesseract.sln │ ├── tesseract.vcxproj │ └── tesseract.vcxproj.filters └── xcode │ ├── English.lproj │ ├── InfoPlist.strings │ └── MainMenu.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib │ ├── Frameworks │ ├── SDL2.framework │ │ ├── Headers │ │ ├── Resources │ │ ├── SDL2 │ │ └── Versions │ │ │ ├── A │ │ │ ├── Headers │ │ │ │ ├── SDL.h │ │ │ │ ├── SDL_assert.h │ │ │ │ ├── SDL_atomic.h │ │ │ │ ├── SDL_audio.h │ │ │ │ ├── SDL_bits.h │ │ │ │ ├── SDL_blendmode.h │ │ │ │ ├── SDL_clipboard.h │ │ │ │ ├── SDL_config.h │ │ │ │ ├── SDL_config_macosx.h │ │ │ │ ├── SDL_copying.h │ │ │ │ ├── SDL_cpuinfo.h │ │ │ │ ├── SDL_endian.h │ │ │ │ ├── SDL_error.h │ │ │ │ ├── SDL_events.h │ │ │ │ ├── SDL_filesystem.h │ │ │ │ ├── SDL_gamecontroller.h │ │ │ │ ├── SDL_gesture.h │ │ │ │ ├── SDL_haptic.h │ │ │ │ ├── SDL_hints.h │ │ │ │ ├── SDL_joystick.h │ │ │ │ ├── SDL_keyboard.h │ │ │ │ ├── SDL_keycode.h │ │ │ │ ├── SDL_loadso.h │ │ │ │ ├── SDL_log.h │ │ │ │ ├── SDL_main.h │ │ │ │ ├── SDL_messagebox.h │ │ │ │ ├── SDL_mouse.h │ │ │ │ ├── SDL_mutex.h │ │ │ │ ├── SDL_name.h │ │ │ │ ├── SDL_opengl.h │ │ │ │ ├── SDL_opengles.h │ │ │ │ ├── SDL_opengles2.h │ │ │ │ ├── SDL_pixels.h │ │ │ │ ├── SDL_platform.h │ │ │ │ ├── SDL_power.h │ │ │ │ ├── SDL_quit.h │ │ │ │ ├── SDL_rect.h │ │ │ │ ├── SDL_render.h │ │ │ │ ├── SDL_revision.h │ │ │ │ ├── SDL_rwops.h │ │ │ │ ├── SDL_scancode.h │ │ │ │ ├── SDL_shape.h │ │ │ │ ├── SDL_stdinc.h │ │ │ │ ├── SDL_surface.h │ │ │ │ ├── SDL_system.h │ │ │ │ ├── SDL_syswm.h │ │ │ │ ├── SDL_thread.h │ │ │ │ ├── SDL_timer.h │ │ │ │ ├── SDL_touch.h │ │ │ │ ├── SDL_types.h │ │ │ │ ├── SDL_version.h │ │ │ │ ├── SDL_video.h │ │ │ │ ├── begin_code.h │ │ │ │ └── close_code.h │ │ │ ├── Resources │ │ │ │ └── Info.plist │ │ │ ├── SDL2 │ │ │ └── _CodeSignature │ │ │ │ └── CodeResources │ │ │ └── Current │ ├── SDL2_image.framework │ │ ├── Frameworks │ │ ├── Headers │ │ ├── Resources │ │ ├── SDL2_image │ │ └── Versions │ │ │ ├── A │ │ │ ├── Frameworks │ │ │ │ └── webp.framework │ │ │ │ │ ├── Headers │ │ │ │ │ └── webp │ │ │ │ │ │ ├── decode.h │ │ │ │ │ │ ├── encode.h │ │ │ │ │ │ └── types.h │ │ │ │ │ ├── LICENSE.webp.txt │ │ │ │ │ ├── Resources │ │ │ │ │ ├── English.lproj │ │ │ │ │ │ └── InfoPlist.strings │ │ │ │ │ └── Info.plist │ │ │ │ │ ├── Versions │ │ │ │ │ ├── A │ │ │ │ │ │ ├── Headers │ │ │ │ │ │ │ └── webp │ │ │ │ │ │ │ │ ├── decode.h │ │ │ │ │ │ │ │ ├── encode.h │ │ │ │ │ │ │ │ └── types.h │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ ├── English.lproj │ │ │ │ │ │ │ │ └── InfoPlist.strings │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── webp │ │ │ │ │ └── Current │ │ │ │ │ │ ├── Headers │ │ │ │ │ │ └── webp │ │ │ │ │ │ │ ├── decode.h │ │ │ │ │ │ │ ├── encode.h │ │ │ │ │ │ │ └── types.h │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ ├── English.lproj │ │ │ │ │ │ │ └── InfoPlist.strings │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ └── webp │ │ │ │ │ └── webp │ │ │ ├── Headers │ │ │ │ └── SDL_image.h │ │ │ ├── Resources │ │ │ │ └── Info.plist │ │ │ ├── SDL2_image │ │ │ └── _CodeSignature │ │ │ │ └── CodeResources │ │ │ └── Current │ └── SDL2_mixer.framework │ │ ├── Frameworks │ │ ├── Headers │ │ ├── Resources │ │ ├── SDL2_mixer │ │ └── Versions │ │ ├── A │ │ ├── Frameworks │ │ │ ├── FLAC.framework │ │ │ │ ├── FLAC │ │ │ │ ├── Headers │ │ │ │ ├── LICENSE.FLAC.txt │ │ │ │ ├── Resources │ │ │ │ └── Versions │ │ │ │ │ ├── A │ │ │ │ │ ├── FLAC │ │ │ │ │ ├── Headers │ │ │ │ │ │ └── FLAC │ │ │ │ │ │ │ ├── all.h │ │ │ │ │ │ │ ├── assert.h │ │ │ │ │ │ │ ├── callback.h │ │ │ │ │ │ │ ├── export.h │ │ │ │ │ │ │ ├── format.h │ │ │ │ │ │ │ ├── metadata.h │ │ │ │ │ │ │ ├── ordinals.h │ │ │ │ │ │ │ ├── stream_decoder.h │ │ │ │ │ │ │ └── stream_encoder.h │ │ │ │ │ ├── Resources │ │ │ │ │ │ ├── English.lproj │ │ │ │ │ │ │ └── InfoPlist.strings │ │ │ │ │ │ └── Info.plist │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ │ └── Current │ │ │ ├── Ogg.framework │ │ │ │ ├── Headers │ │ │ │ ├── LICENSE.ogg-vorbis.txt │ │ │ │ ├── Ogg │ │ │ │ ├── Resources │ │ │ │ └── Versions │ │ │ │ │ ├── A │ │ │ │ │ ├── Headers │ │ │ │ │ │ ├── ogg.h │ │ │ │ │ │ └── os_types.h │ │ │ │ │ ├── Ogg │ │ │ │ │ ├── Resources │ │ │ │ │ │ ├── English.lproj │ │ │ │ │ │ │ └── InfoPlist.strings │ │ │ │ │ │ └── Info.plist │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ │ └── Current │ │ │ ├── Vorbis.framework │ │ │ │ ├── Headers │ │ │ │ ├── LICENSE.ogg-vorbis.txt │ │ │ │ ├── Resources │ │ │ │ ├── Versions │ │ │ │ │ ├── A │ │ │ │ │ │ ├── Headers │ │ │ │ │ │ │ ├── codec.h │ │ │ │ │ │ │ ├── vorbisenc.h │ │ │ │ │ │ │ └── vorbisfile.h │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ ├── English.lproj │ │ │ │ │ │ │ │ └── InfoPlist.strings │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── Vorbis │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ └── Current │ │ │ │ └── Vorbis │ │ │ ├── modplug.framework │ │ │ │ ├── Headers │ │ │ │ ├── LICENSE.modplug.txt │ │ │ │ ├── Resources │ │ │ │ ├── Versions │ │ │ │ │ ├── A │ │ │ │ │ │ ├── Headers │ │ │ │ │ │ │ └── modplug.h │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── modplug │ │ │ │ │ └── Current │ │ │ │ └── modplug │ │ │ └── smpeg2.framework │ │ │ │ ├── Headers │ │ │ │ ├── LICENSE.smpeg.txt │ │ │ │ ├── Resources │ │ │ │ ├── Versions │ │ │ │ ├── A │ │ │ │ │ ├── Headers │ │ │ │ │ │ ├── MPEGframe.h │ │ │ │ │ │ └── smpeg.h │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ ├── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ │ └── smpeg2 │ │ │ │ └── Current │ │ │ │ └── smpeg2 │ │ ├── Headers │ │ │ └── SDL_mixer.h │ │ ├── Resources │ │ │ └── Info.plist │ │ ├── SDL2_mixer │ │ └── _CodeSignature │ │ │ └── CodeResources │ │ └── Current │ ├── Launcher.h │ ├── Launcher.m │ ├── Maps.icns │ ├── main.m │ ├── tesseract.icns │ ├── tesseract.plist │ └── tesseract.xcodeproj │ └── project.pbxproj ├── tesseract.bat └── tesseract_unix /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "media"] 2 | path = media 3 | url = git@github.com:team-cube/open-cube-data.git 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Open Cube 2 | Open Cube is a fork of Tesseract which is based on the Cube 2: Sauerbraten engine. 3 | Both Tesseract and Cube 2 use SVN which makes branching and merging awkward and does not allow for pull requests. By removing the binary data and putting the media folder in a submodule getting the source is faster. 4 | 5 | The goal of Open Cube is to make mapping more fun by using modern dynamic rendering techniques, so 6 | that you can get instant feedback on lighting changes, not just geometry. 7 | 8 | Open Cube removes the static lightmapping system of Sauerbraten and replaces 9 | it with completely dynamic lighting system based on deferred shading and 10 | shadowmapping. 11 | 12 | It provides a bunch of new rendering features such as: 13 | 14 | * deferred shading 15 | * omnidirectional point lights using cubemap shadowmaps 16 | * perspective projection spotlight shadowmaps 17 | * orthographic projection sunlight using cascaded shadowmaps 18 | * HDR rendering with tonemapping and bloom 19 | * real-time diffuse global illumination for sunlight (radiance hints) 20 | * volumetric lighting 21 | * screen-space ambient occlusion 22 | * screen-space reflections and refractions for water and glass (use as many water planes as you want now!) 23 | * screen-space refractive alpha cubes 24 | * deferred MSAA, subpixel morphological anti-aliasing (SMAA 1x, T2x, S2x, and 4x), FXAA, and temporal AA 25 | * runs on both OpenGL Core (3.0+) and legacy (2.1+) contexts 26 | -------------------------------------------------------------------------------- /USAGE.md: -------------------------------------------------------------------------------- 1 | # Editing 2 | 3 | To make shadowmapped point lights, just make light entities as normal. Optionally you can control the shadowing properties of the light using attribute 5: 0 = shadows, 1 = no shadows, 2 = static shadows - world and mapmodels only (no playermodels or pickups). Shadowmaps are cached from frame to frame if no dynamic entities such as playermodels are rendered into them, so static lights (2) will generally be much faster than normal lights (0) during gameplay and should be used where possible. Unshadowed lights (1) are even faster as they further reduce shading costs, so they should also be used where possible. 4 | 5 | To make cascaded shadowmapped sunlight, just use the normal sunlight commands: 6 | sunlight 7 | sunlightyaw 8 | sunlightpitch 9 | You can also set sunlightyaw and sunlightpitch from your current direction with the following command: 10 | getsundir 11 | 12 | You can control the diffuse global illumination of sunlight using the following parameters: 13 | giscale - scales the contribution of indirect light 14 | gidist - limits the distance which indirect light travels (smaller values are more intense, but higher values allow farther travel) 15 | giaoscale - controls the contribution of atmospheric light 16 | skylight - controls the color of atmospheric light 17 | 18 | Screen-space ambient occlusion affects mostly ambient light and to a lesser degree sunlight, 19 | but it does not affect point lights. If you want to make use of SSAO in your map, just use 20 | the ambient command to set an appropriate ambient light color/intensity. 21 | 22 | To make refractive alpha cubes: 23 | First mark the cubes with the alpha material. Use valpha or texalpha to set the transparency level as normal. 24 | Then use either of the following commands: 25 | vrefract K [R G B] 26 | K is the strength of the refraction, on a scale of 0 to 1, 1 meaning distortion spanning the entire screen, 0.5 spanning half the screen, etc. 27 | The direction of the distortion is taken from the normal-map of the texture. 28 | R G B are optional and specify a color for the refraction, with each component being on a scale of 0 to 1 as well. 29 | 30 | After editing operations your map may be full of small cubes and triangles, and you will notice that your map looks faceted. 31 | To fix this you still need to use the calclight command, however, it no longer generates lightmaps anymore. 32 | It just does a remip optimization pass as well as calculates smoothed normals to make things look better. 33 | Eventually this may be done differently using some sort of background optimization while editing. 34 | 35 | ## To make decals 36 | 37 | newent decal SLOT YAW PITCH ROLL SIZE 38 | 39 | If you don't specify the yaw, pitch, and roll, or leave them all 0, then newent will fill them with current direction you are looking at. 40 | The slot refers to a decal slot in the map configuration, starting at offset 0. 41 | The size is specified in cube units. 42 | 43 | ## To make decal slots 44 | 45 | decelreset // functions like texture reset, clears all decal texture slots 46 | 47 | setshader bumpspecmapdecal // shaders work like for world shaders, but with the -decal suffix instead of -world 48 | texture decal "diffuse.png" // all decal slots start with the "decal" sub-slot instead of "0", and this texture must have an alpha-channel 49 | texture n "normals.png" 50 | texture s "spec.png" 51 | 52 | ## To make volumetric lights 53 | 54 | Set attribute 5 of a light entity to 4. 55 | 56 | The intensity of the volumetric lighting medium can be controlled by volscale and the color can by controlled by volcolour. 57 | 58 | -------------------------------------------------------------------------------- /config/blendbrush.cfg: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | // Texture-Blending Brush List // 3 | /////////////////////////////////////////////////////////////////////////////// 4 | 5 | looplist2 n p [ 6 | "Dot 1px Soft" dot_1_soft 7 | "Dot 1px Hard" dot_1_hard 8 | "Dot 1px Solid" dot_1_solid 9 | "Circle 8px Soft" circle_8_soft 10 | "Circle 8px Hard" circle_8_hard 11 | "Circle 8px Solid" circle_8_solid 12 | "Circle 16px Soft" circle_16_soft 13 | "Circle 16px Hard" circle_16_hard 14 | "Circle 16px Solid" circle_16_solid 15 | "Circle 32px Soft" circle_32_soft 16 | "Circle 32px Hard" circle_32_hard 17 | "Circle 32px Solid" circle_32_solid 18 | "Circle 64px Soft" circle_64_soft 19 | "Circle 64px Hard" circle_64_hard 20 | "Circle 64px Solid" circle_64_solid 21 | "Circle 128px Soft" circle_128_soft 22 | "Circle 128px Hard" circle_128_hard 23 | "Circle 128px Solid" circle_128_solid 24 | "Circle 256px Soft" circle_256_soft 25 | "Circle 256px Hard" circle_256_hard 26 | "Circle 256px Solid" circle_256_solid 27 | "Noise 64px Soft" noise_64_soft 28 | "Noise 64px Hard" noise_64_hard 29 | "Noise 128px Soft" noise_128_soft 30 | "Noise 128px Hard" noise_128_hard 31 | "Noise 256px Soft" noise_256_soft 32 | "Noise 256px Hard" noise_256_hard 33 | "Noise 512px Soft" noise_512_soft 34 | "Noise 512px Hard" noise_512_hard 35 | "Noise 1024px Soft" noise_1024_soft 36 | "Noise 1024px Hard" noise_1024_hard 37 | "Square 16px Hard" square_16_hard 38 | "Square 16px Solid" square_16_solid 39 | "Square 32px Hard" square_32_hard 40 | "Square 32px Solid" square_32_solid 41 | "Square 64px Hard" square_64_hard 42 | "Square 64px Solid" square_64_solid 43 | "Gradient 16px" gradient_16 44 | "Gradient 32px" gradient_32 45 | "Gradient 64px" gradient_64 46 | "Gradient 128px" gradient_128 47 | ] [addblendbrush $n (concatword "media/blendbrush/" $p ".png")] 48 | -------------------------------------------------------------------------------- /config/default_map_models.cfg: -------------------------------------------------------------------------------- 1 | // Notice: This list is dynamic and will change with every release. 2 | // Please use a dedicated map.cfg. 3 | 4 | mapmodelreset 5 | mapmodel "obj_cube" 6 | mapmodel "obj_sphere" 7 | 8 | // Nieb/Complex 9 | mapmodel "nieb/complex/bench/2" 10 | mapmodel "nieb/complex/bench/3" 11 | mapmodel "nieb/complex/box_copy-paper" 12 | mapmodel "nieb/complex/box_large/label_0" 13 | mapmodel "nieb/complex/box_large/label_a" 14 | mapmodel "nieb/complex/box_large/label_b" 15 | mapmodel "nieb/complex/box_small/label_0" 16 | mapmodel "nieb/complex/box_small/label_a" 17 | mapmodel "nieb/complex/box_small/label_b" 18 | mapmodel "nieb/complex/box_small-open/label_0" 19 | mapmodel "nieb/complex/box_small-open/label_a" 20 | mapmodel "nieb/complex/box_small-open/label_b" 21 | mapmodel "nieb/complex/chair_office" 22 | mapmodel "nieb/complex/clock_wall" 23 | mapmodel "nieb/complex/coffee_cup" 24 | mapmodel "nieb/complex/computer_case_v/off" 25 | mapmodel "nieb/complex/computer_case_v/on" 26 | mapmodel "nieb/complex/computer_keyboard" 27 | mapmodel "nieb/complex/computer_monitor" 28 | mapmodel "nieb/complex/computer_mouse" 29 | mapmodel "nieb/complex/cooling_fan" 30 | mapmodel "nieb/complex/copy-machine" 31 | mapmodel "nieb/complex/desk" 32 | mapmodel "nieb/complex/desk/flip" 33 | mapmodel "nieb/complex/door" 34 | mapmodel "nieb/complex/door/flip" 35 | mapmodel "nieb/complex/drinking_fountain" 36 | mapmodel "nieb/complex/filing_cab1" 37 | mapmodel "nieb/complex/filing_cab2" 38 | mapmodel "nieb/complex/fire_alarm" 39 | mapmodel "nieb/complex/fire_extinguisher" 40 | mapmodel "nieb/complex/fire_sprinkler" 41 | mapmodel "nieb/complex/garbage_bin" 42 | mapmodel "nieb/complex/garbage_can" 43 | mapmodel "nieb/complex/light_fluorescent/on" 44 | mapmodel "nieb/complex/light_fluorescent/off" 45 | mapmodel "nieb/complex/locker01" 46 | mapmodel "nieb/complex/locker02" 47 | mapmodel "nieb/complex/mop_bucket" 48 | mapmodel "nieb/complex/pallet_lift" 49 | mapmodel "nieb/complex/phone" 50 | mapmodel "nieb/complex/picture/1" 51 | mapmodel "nieb/complex/picture/2" 52 | mapmodel "nieb/complex/picture/3" 53 | mapmodel "nieb/complex/projector" 54 | mapmodel "nieb/complex/projector_screen" 55 | mapmodel "nieb/complex/safety_post" 56 | mapmodel "nieb/complex/server_rack/1" 57 | mapmodel "nieb/complex/server_rack/2" 58 | mapmodel "nieb/complex/server_rack/3" 59 | mapmodel "nieb/complex/shelf_storage" 60 | mapmodel "nieb/complex/signage/1" 61 | mapmodel "nieb/complex/signage/2" 62 | mapmodel "nieb/complex/signage/3" 63 | mapmodel "nieb/complex/sign_caution" 64 | mapmodel "nieb/complex/sign_drinking" 65 | mapmodel "nieb/complex/sign_exit" 66 | mapmodel "nieb/complex/sign_fire_extinguisher" 67 | mapmodel "nieb/complex/sign_restroom/f" 68 | mapmodel "nieb/complex/sign_restroom/m" 69 | mapmodel "nieb/complex/sign_room/conference" 70 | mapmodel "nieb/complex/sign_room/office" 71 | mapmodel "nieb/complex/sign_room/server" 72 | mapmodel "nieb/complex/storage_tote" 73 | mapmodel "nieb/complex/white_board" 74 | 75 | // Nobiax 76 | mapmodel "nobiax/cardboardbox1" 77 | mapmodel "nobiax/gaz_tank" 78 | mapmodel "nobiax/pallet2" -------------------------------------------------------------------------------- /config/font.cfg: -------------------------------------------------------------------------------- 1 | loopfiles f "media/interface/font" cfg [ 2 | exec (concatword "media/interface/font/" $f ".cfg") 3 | ] -------------------------------------------------------------------------------- /config/game.cfg: -------------------------------------------------------------------------------- 1 | // Game specific config stuff goes here 2 | 3 | // Scoreboard Options 4 | defvarp showscore 0 1 1 5 | defvarp showkills 0 1 1 6 | defvarp showdeaths 0 0 1 7 | defvarp showip 0 0 1 8 | defvarp sbtransparent 0 1 1 9 | 10 | nextspecmode = [ 11 | if $specmode [ 12 | specmode (mod (+ $specmode 1) 3) 13 | ] [ 14 | specmode (? (>= (getfollow) 0) 2 1) 15 | ] 16 | ] 17 | 18 | defvarp zoomtoggle 0 0 1 19 | dozoom = [if $zoomtoggle [zoom (? $zoom -1 1)] [zoom 1 ; onrelease [zoom -1]]] 20 | 21 | sayteamcommand = [inputcommand $arg1 [sayteam $commandbuf] "[team]"] 22 | 23 | mapcomplete = [complete $arg1 media/map ogz] 24 | mapcomplete map 25 | 26 | modenames = "edit rdm pdm rtdm ptdm rctf pctf" 27 | 28 | loop i (listlen $modenames) [ 29 | mname = (at $modenames $i) 30 | alias $mname [if (mode @i) [if (> $numargs 0) [map $arg1] [map]]] 31 | mapcomplete $mname 32 | ] 33 | 34 | demo = [stopdemo; if (mode -1) [map $arg1]] 35 | complete demo . dmo 36 | 37 | allowedittoggle = [result 1] 38 | 39 | playermodelnum = 1 40 | 41 | playermodeldir0 = "bones" 42 | playermodelicon0 = "bones" 43 | playermodelname0 = "Bones" 44 | playermodelstory0 = [Half cyborg, half american rugby player, full fragging machine.] 45 | 46 | playermodeldir = [getalias [playermodeldir@(? $numargs $arg1 $playermodel)]] 47 | playermodelicon = [getalias [playermodelicon@(? $numargs $arg1 $playermodel)]] 48 | playermodelname = [getalias [playermodelname@(? $numargs $arg1 $playermodel)]] 49 | playermodelstory = [getalias [playermodelstory@(? $numargs $arg1 $playermodel)]] 50 | -------------------------------------------------------------------------------- /config/glsl.cfg: -------------------------------------------------------------------------------- 1 | exec "config/glsl/shared.cfg" 2 | exec "config/glsl/misc.cfg" 3 | exec "config/glsl/hud.cfg" 4 | exec "config/glsl/world.cfg" 5 | exec "config/glsl/decal.cfg" 6 | exec "config/glsl/grass.cfg" 7 | exec "config/glsl/model.cfg" 8 | exec "config/glsl/ao.cfg" 9 | exec "config/glsl/gi.cfg" 10 | exec "config/glsl/particle.cfg" 11 | exec "config/glsl/stain.cfg" 12 | exec "config/glsl/material.cfg" 13 | exec "config/glsl/deferred.cfg" 14 | exec "config/glsl/tonemap.cfg" 15 | exec "config/glsl/volumetric.cfg" 16 | exec "config/glsl/sky.cfg" 17 | exec "config/glsl/aa.cfg" 18 | exec "config/glsl/scale.cfg" 19 | exec "config/glsl/blur.cfg" 20 | exec "config/glsl/ui.cfg" 21 | exec "config/glsl/postfx.cfg" 22 | exec "config/glsl/edit.cfg" 23 | exec "config/glsl/movie.cfg" 24 | 25 | -------------------------------------------------------------------------------- /config/glsl/aa.cfg: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////// 2 | // 3 | // anti-aliasing 4 | // 5 | //////////////////////////////////////////////// 6 | 7 | lazyshader 0 "tqaaresolve" [ 8 | attribute vec4 vvertex; 9 | @(screentexcoord 0) 10 | varying vec2 texcoord0; 11 | @(? $tqaaresolvegather [ 12 | varying vec2 texcoord1; 13 | ]) 14 | void main(void) 15 | { 16 | gl_Position = vvertex; 17 | texcoord0 = vtexcoord0; 18 | @(? $tqaaresolvegather [ 19 | texcoord1 = vtexcoord0 - 0.5; 20 | ]) 21 | } 22 | ] [ 23 | @(gfetchdefs tex2) 24 | uniform vec4 quincunx; 25 | uniform sampler2DRect tex0, tex1; 26 | uniform mat4 reprojectmatrix; 27 | uniform vec2 maxvelocity; 28 | uniform vec2 colorweight; 29 | varying vec2 texcoord0; 30 | @(? $tqaaresolvegather [ 31 | varying vec2 texcoord1; 32 | ]) 33 | fragdata(0, fragcolor, vec4) 34 | void main(void) 35 | { 36 | @(gdepthunpack depth [gfetch(tex2, texcoord0)] [ 37 | vec4 prevtc = reprojectmatrix * vec4(depth*texcoord0, depth, 1.0); 38 | ] [ 39 | vec4 prevtc = reprojectmatrix * vec4(texcoord0, depth, 1.0); 40 | ]) 41 | 42 | vec2 vel = prevtc.xy/prevtc.w - texcoord0; 43 | float scale = clamp(maxvelocity.x*inversesqrt(dot(vel, vel) + 1e-6), 0.0, 1.0); 44 | 45 | float mask = 1.0 - texture2DRect(tex0, texcoord0 + quincunx.xy).a; 46 | vec4 color = texture2DRect(tex0, texcoord0 + mask*quincunx.xy); 47 | vec4 prevcolor = texture2DRect(tex1, texcoord0 + mask*(quincunx.zw + vel*scale)); 48 | 49 | @(? $tqaaresolvegather [ 50 | vec4 l0 = textureGather(tex0, texcoord1, 1); 51 | vec4 l1 = textureGatherOffset(tex0, texcoord1, ivec2(1, 1), 1); 52 | float l2 = texture2DRectOffset(tex0, texcoord0, ivec2(1, -1)).g; 53 | float l3 = texture2DRectOffset(tex0, texcoord0, ivec2(-1, 1)).g; 54 | vec4 l01min = min(l0, l1), l01max = max(l0, l1); 55 | l01min.xy = min(l01min.xy, l01min.zw); 56 | l01max.xy = max(l01max.xy, l01max.zw); 57 | float lmin = min(min(l01min.x, l01min.y), min(l2, l3)); 58 | float lmax = max(max(l01max.x, l01max.y), max(l2, l3)); 59 | ] [ 60 | float l0 = texture2DRect(tex0, texcoord0 + vec2(-1.0, -0.5)).g; 61 | float l1 = texture2DRect(tex0, texcoord0 + vec2( 0.5, -1.0)).g; 62 | float l2 = texture2DRect(tex0, texcoord0 + vec2( 1.0, 0.5)).g; 63 | float l3 = texture2DRect(tex0, texcoord0 + vec2(-0.5, 1.0)).g; 64 | float lmin = min(color.g, min(min(l0, l1), min(l2, l3))); 65 | float lmax = max(color.g, max(max(l0, l1), max(l2, l3))); 66 | ]) 67 | 68 | float weight = 0.5 - 0.5*clamp((colorweight.x*max(prevcolor.g - lmax, lmin - prevcolor.g) + colorweight.y) / (lmax - lmin + 1e-4), 0.0, 1.0); 69 | weight *= clamp(1.0 - 2.0*(prevcolor.a - color.a), 0.0, 1.0); 70 | fragcolor.rgb = mix(color.rgb, prevcolor.rgb, weight); 71 | fragcolor.a = color.a; 72 | } 73 | ] 74 | 75 | smaaopt = [ >= (strstr $smaaopts $arg1) 0 ] 76 | smaashaders = [ 77 | smaapreset = $arg1 78 | smaaopts = $arg2 79 | exec "config/glsl/smaa.cfg" 80 | ] 81 | 82 | fxaaopt = [ >= (strstr $fxaaopts $arg1) 0 ] 83 | fxaashaders = [ 84 | fxaapreset = $arg1 85 | fxaaopts = $arg2 86 | exec "config/glsl/fxaa.cfg" 87 | ] 88 | 89 | -------------------------------------------------------------------------------- /config/glsl/blur.cfg: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////// 2 | // 3 | // separable blur with up to 7 taps 4 | // 5 | //////////////////////////////////////////////// 6 | 7 | blurshader = [ 8 | shader 0 $arg1 [ 9 | attribute vec4 vvertex; 10 | @(screentexcoord 0) 11 | uniform float offsets[8]; 12 | varying vec2 texcoord0, texcoordp1, texcoordn1; 13 | @(loopconcat+ i 2 (min (- $arg2 1) 2) [result [ 14 | varying vec2 texcoordp@i, texcoordn@i; 15 | ]]) 16 | void main(void) 17 | { 18 | gl_Position = vvertex; 19 | texcoord0 = vtexcoord0; 20 | vec2 tcp = vtexcoord0, tcn = vtexcoord0; 21 | tcp.@arg3 += offsets[1]; 22 | tcn.@arg3 -= offsets[1]; 23 | texcoordp1 = tcp; 24 | texcoordn1 = tcn; 25 | @(loopconcat+ i 2 (min (- $arg2 1) 2) [result [ 26 | tcp.@arg3 = vtexcoord0.@arg3 + offsets[@@i]; 27 | tcn.@arg3 = vtexcoord0.@arg3 - offsets[@@i]; 28 | texcoordp@i = tcp; 29 | texcoordn@i = tcn; 30 | ]]) 31 | } 32 | ] [ 33 | uniform float weights[8]; 34 | uniform float offsets[8]; 35 | uniform sampler@[arg4] tex0; 36 | varying vec2 texcoord0, texcoordp1, texcoordn1; 37 | @(loopconcat+ i 2 (min (- $arg2 1) 2) [result [ 38 | varying vec2 texcoordp@i, texcoordn@i; 39 | ]]) 40 | fragdata(0, fragcolor, vec4) 41 | void main(void) 42 | { 43 | #define texval(coords) texture@[arg4](tex0, (coords)) 44 | vec4 val = texval(texcoord0) * weights[0]; 45 | @(loopconcat+ i 1 $arg2 [ 46 | if (< $i 4) [result [ 47 | val += weights[@@i] * (texval(texcoordp@i) + texval(texcoordn@i)); 48 | ]] [result [ 49 | val += weights[@@i] * 50 | @(if (=s $arg3 "x") [result [ 51 | (texval(vec2(texcoord0.x + offsets[@@i], texcoord0.y)) + texval(vec2(texcoord0.x - offsets[@@i], texcoord0.y))); 52 | ]] [result [ 53 | (texval(vec2(texcoord0.x, texcoord0.y + offsets[@@i])) + texval(vec2(texcoord0.x, texcoord0.y - offsets[@@i]))); 54 | ]]) 55 | ]] 56 | ]) 57 | fragcolor = val; 58 | } 59 | ] 60 | ] 61 | 62 | loop+ i 1 7 [ 63 | blurshader (format "blurx%1" $i) $i x 2D 64 | blurshader (format "blury%1" $i) $i y 2D 65 | blurshader (format "blurx%1rect" $i) $i x 2DRect 66 | blurshader (format "blury%1rect" $i) $i y 2DRect 67 | ] 68 | 69 | -------------------------------------------------------------------------------- /config/glsl/edit.cfg: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////// 2 | // 3 | // miscellaneous edit shaders 4 | // 5 | //////////////////////////////////////////////// 6 | 7 | shader 0 "blendbrush" [ 8 | attribute vec4 vvertex, vcolor; 9 | uniform mat4 camprojmatrix; 10 | uniform vec4 texgenS, texgenT; 11 | uniform float ldrscale; 12 | varying vec4 color; 13 | varying vec2 texcoord0; 14 | void main(void) 15 | { 16 | gl_Position = camprojmatrix * vvertex; 17 | color = vec4(ldrscale * vcolor.rgb, vcolor.a); 18 | texcoord0 = vec2(dot(texgenS, vvertex), dot(texgenT, vvertex)); 19 | } 20 | ] [ 21 | uniform sampler2D tex0; 22 | varying vec4 color; 23 | varying vec2 texcoord0; 24 | fragdata(0, fragcolor, vec4) 25 | void main(void) 26 | { 27 | fragcolor = texture2D(tex0, texcoord0).r * color; 28 | } 29 | ] 30 | 31 | lazyshader 0 "prefab" [ 32 | attribute vec4 vvertex, vcolor; 33 | attribute vec3 vnormal; 34 | uniform mat4 prefabmatrix; 35 | uniform mat3 prefabworld; 36 | varying vec3 nvec; 37 | varying vec4 color; 38 | @(msaainterpvert) 39 | 40 | void main(void) 41 | { 42 | gl_Position = prefabmatrix * vvertex; 43 | color = vcolor; 44 | nvec = prefabworld * vnormal; 45 | @(msaapackvert) 46 | } 47 | ] [ 48 | varying vec3 nvec; 49 | varying vec4 color; 50 | @(msaainterpfrag) 51 | 52 | void main(void) 53 | { 54 | gcolor.rgb = color.rgb; 55 | gcolor.a = 0.0; 56 | vec3 normal = normalize(nvec); 57 | @(gnormpackdef normal packnorm) 58 | @(msaapackfrag) 59 | } 60 | ] 61 | 62 | -------------------------------------------------------------------------------- /config/glsl/grass.cfg: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////// 2 | // 3 | // grass shaders 4 | // 5 | //////////////////////////////////////////////// 6 | 7 | // grasstype: 8 | // b -> blendmap 9 | 10 | grassopt = [ >= (strstr $grasstype $arg1) 0 ] 11 | 12 | grassvariantshader = [ 13 | local grasstype 14 | grasstype = $arg2 15 | variantshader 0 $arg1 (? (grassopt "b") 0 -1) [ 16 | attribute vec4 vvertex, vcolor; 17 | attribute vec2 vtexcoord0; 18 | uniform mat4 camprojmatrix; 19 | @(ginterpvert) 20 | varying vec2 texcoord0; 21 | varying vec4 colorscale; 22 | @(? (grassopt "b") [uniform vec4 blendmapparams; varying vec2 texcoord1;]) 23 | void main(void) 24 | { 25 | gl_Position = camprojmatrix * vvertex; 26 | colorscale = vcolor; 27 | texcoord0 = vtexcoord0; 28 | @(? (grassopt "b") [ 29 | texcoord1 = (vvertex.xy - blendmapparams.xy)*blendmapparams.zw; 30 | ]) 31 | @(gdepthpackvert) 32 | } 33 | ] [ 34 | uniform sampler2D tex0; 35 | uniform float grasstest; 36 | @(ginterpfrag) 37 | varying vec2 texcoord0; 38 | varying vec4 colorscale; 39 | @(? (grassopt "b") [uniform sampler2D tex1; varying vec2 texcoord1;]) 40 | void main(void) 41 | { 42 | vec4 color = texture2D(tex0, texcoord0) * colorscale; 43 | @(? (grassopt "b") [ 44 | color.a *= texture2D(tex1, texcoord1).r; 45 | ]) 46 | if(color.a <= grasstest) 47 | discard; 48 | gcolor = vec4(color.rgb, 0.0); 49 | @(gnormpack [vec3(0.5, 0.5, 1.0)]) 50 | @(gdepthpackfrag) 51 | } 52 | ] 53 | ] 54 | 55 | grassshader = [ 56 | shadername = (concatword "grass" $arg1) 57 | grassvariantshader $shadername $arg1 58 | grassvariantshader $shadername (concatword $arg1 "b") 59 | ] 60 | 61 | -------------------------------------------------------------------------------- /config/glsl/scale.cfg: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////// 2 | // 3 | // upscaling shaders 4 | // 5 | ////////////////////////////////////////////////////////////////////// 6 | 7 | shader 0 "scalelinear" [ 8 | attribute vec4 vvertex; 9 | @(screentexcoord 0) 10 | varying vec2 texcoord0; 11 | 12 | void main(void) 13 | { 14 | gl_Position = vvertex; 15 | texcoord0 = vtexcoord0; 16 | } 17 | ] [ 18 | uniform sampler2DRect tex0; 19 | varying vec2 texcoord0; 20 | fragdata(0, fragcolor, vec4) 21 | 22 | void main(void) 23 | { 24 | fragcolor = texture2DRect(tex0, texcoord0); 25 | } 26 | ] 27 | 28 | loop i 2 [ 29 | lazyshader 0 (? $i "scalecubicy" "scalecubicx") [ 30 | attribute vec4 vvertex; 31 | @(screentexcoord 0) 32 | varying vec2 texcoord0; 33 | 34 | void main(void) 35 | { 36 | gl_Position = vvertex; 37 | texcoord0 = vtexcoord0; 38 | } 39 | ] [ 40 | uniform sampler2DRect tex0; 41 | varying vec2 texcoord0; 42 | fragdata(0, fragcolor, vec4) 43 | 44 | vec4 cubic(float s) 45 | { 46 | const float B = @gscalecubicsoft, C = @(divf (-f 1 $gscalecubicsoft) 2); 47 | float s2 = s*s, s3 = s2*s; 48 | return vec4((-1.0/6.0*B - C) * s3 + (0.5*B + 2.0*C) * s2 + (-0.5*B - C) * s + 1.0/6.0*B, 49 | (2.0 - 1.5*B - C) * s3 + (-3.0 + 2.0*B + C) * s2 + (1.0 - 1.0/3.0*B), 50 | (-2.0 + 1.5*B + C) * s3 + (3.0 - 2.5*B - 2.0*C) * s2 + (0.5*B + C)*s + 1.0/6.0*B, 51 | (1.0/6.0*B + C) * s3 - C * s2); 52 | } 53 | 54 | void main(void) 55 | { 56 | vec2 center = texcoord0; 57 | @(if $i [result [ 58 | float offset = fract(texcoord0.y-0.5); 59 | center.y -= offset; 60 | #define texval(tap) texture2DRect(tex0, center + vec2(0.0, tap)) 61 | #define texvaloffset(tap) texture2DRectOffset(tex0, center, ivec2(0, tap)) 62 | ]] [result [ 63 | float offset = fract(texcoord0.x-0.5); 64 | center.x -= offset; 65 | #define texval(tap) texture2DRect(tex0, center + vec2(tap, 0.0)) 66 | #define texvaloffset(tap) texture2DRectOffset(tex0, center, ivec2(tap, 0)) 67 | ]]) 68 | vec4 weight = cubic(offset); 69 | weight.y += weight.z; 70 | weight.z /= weight.y; 71 | fragcolor = weight.x*texvaloffset(-1) + weight.y*texval(weight.z) + weight.w*texvaloffset(2); 72 | } 73 | ] 74 | ] 75 | 76 | shader 0 "reorient" [ 77 | attribute vec4 vvertex; 78 | uniform vec3 reorientx, reorienty; 79 | varying vec2 texcoord0; 80 | 81 | void main(void) 82 | { 83 | gl_Position = vvertex; 84 | texcoord0.x = dot(vvertex.xy, reorientx.xy) + reorientx.z; 85 | texcoord0.y = dot(vvertex.xy, reorienty.xy) + reorienty.z; 86 | } 87 | ] [ 88 | uniform sampler2DRect tex0; 89 | varying vec2 texcoord0; 90 | fragdata(0, fragcolor, vec4) 91 | 92 | void main(void) 93 | { 94 | fragcolor = texture2DRect(tex0, texcoord0); 95 | } 96 | ] 97 | 98 | 99 | -------------------------------------------------------------------------------- /config/glsl/stain.cfg: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////// 2 | // 3 | // stain shaders 4 | // 5 | //////////////////////////////////////////////// 6 | 7 | // staintype: 8 | // o -> overbright 9 | // t -> transparent 10 | // f -> fogged 11 | 12 | stainopt = [ >= (strstr $staintype $arg1) 0 ] 13 | 14 | stainvariantshader = [ 15 | local staintype 16 | staintype = $arg2 17 | variantshader 0 $arg1 (? (stainopt "t") 1 -1) (if (! (stainopt "t")) [result [ 18 | @(? (stainopt "f") [ 19 | #pragma CUBE2_fog 20 | ]) 21 | attribute vec4 vvertex, vcolor; 22 | attribute vec2 vtexcoord0; 23 | uniform mat4 camprojmatrix; 24 | uniform vec4 colorscale; 25 | varying vec4 color; 26 | varying vec2 texcoord0; 27 | void main(void) 28 | { 29 | gl_Position = camprojmatrix * vvertex; 30 | color = vcolor * colorscale; 31 | texcoord0 = vtexcoord0; 32 | } 33 | ]]) [ 34 | uniform sampler2D tex0; 35 | varying vec4 color; 36 | varying vec2 texcoord0; 37 | fragdata(0, fragcolor, vec4) 38 | @(? (stainopt "t") [ 39 | fragdata(1, gglow, vec4) 40 | ]) 41 | void main(void) 42 | { 43 | vec4 diffuse = texture2D(tex0, texcoord0); 44 | #pragma CUBE2_swizzle diffuse 45 | @(if (stainopt "o") [result [ 46 | diffuse.rgb = mix(vec3(0.5), diffuse.rgb, color.rgb); 47 | fragcolor.rgb = diffuse.rgb; 48 | fragcolor.a = 0.5; 49 | @(? (stainopt "t") [ 50 | gglow.rgb = diffuse.rgb; 51 | gglow.a = 0.5; 52 | ]) 53 | ]] [result [ 54 | diffuse *= color; 55 | fragcolor = diffuse; 56 | @(? (stainopt "t") [ 57 | gglow.rgb = vec3(0.0); 58 | gglow.a = diffuse.a; 59 | ]) 60 | ]]) 61 | } 62 | ] 63 | ] 64 | 65 | stainshader = [ 66 | staintype = $arg2 67 | stainvariantshader $arg1 $arg2 68 | if (! (stainopt "f")) [ 69 | stainvariantshader $arg1 (concatword $arg2 "t") 70 | ] 71 | ] 72 | 73 | stainshader "stain" "" 74 | stainshader "overbrightstain" "o" 75 | stainshader "foggedstain" "f" 76 | 77 | -------------------------------------------------------------------------------- /config/glsl/ui.cfg: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////// 2 | // 3 | // UI shaders 4 | // 5 | //////////////////////////////////////////////// 6 | 7 | lazyshader 0 "modelpreview" [ 8 | attribute vec4 vvertex; 9 | attribute vec2 vtexcoord0; 10 | varying vec2 texcoord0; 11 | 12 | void main(void) 13 | { 14 | gl_Position = vvertex; 15 | texcoord0 = vtexcoord0; 16 | } 17 | ] [ 18 | @(gfetchdefs [tex0 tex1 tex3]) 19 | uniform vec3 camera; 20 | uniform mat4 worldmatrix; 21 | uniform vec4 lightscale; 22 | uniform vec3 sunlightdir; 23 | uniform vec3 sunlightcolor; 24 | uniform float cutout; 25 | varying vec2 texcoord0; 26 | fragdata(0, fragcolor, vec4) 27 | 28 | void main(void) 29 | { 30 | vec4 normal = gfetch(tex1, texcoord0); 31 | if(normal.x + normal.y == cutout) discard; 32 | 33 | normal.xyz = normal.xyz*2.0 - 1.0; 34 | @(if $usepacknorm [result [ 35 | float glowscale = dot(normal.xyz, normal.xyz); 36 | normal.xyz *= inversesqrt(glowscale); 37 | @(unpacknorm glowscale) 38 | ]] [result [ 39 | #define glowscale normal.a 40 | ]]) 41 | 42 | vec4 diffuse = gfetch(tex0, texcoord0); 43 | vec3 glow = diffuse.rgb * (1.0 - glowscale); 44 | diffuse.rgb *= glowscale; 45 | 46 | vec3 light = diffuse.rgb * lightscale.rgb; 47 | light += glow.rgb * lightscale.a; 48 | 49 | float sunfacing = dot(sunlightdir, normal.xyz); 50 | if(sunfacing > 0.0) 51 | { 52 | @(gdepthunpack depth [gfetch(tex3, texcoord0)] [ 53 | vec3 pos = (worldmatrix * vec4(depth*texcoord0, depth, 1.0)).xyz; 54 | ] [ 55 | vec4 pos = worldmatrix * vec4(texcoord0, depth, 1.0); 56 | pos.xyz /= pos.w; 57 | ]) 58 | @(unpackspec) 59 | float sunspec = pow(clamp(sunfacing*facing - dot(camdir, sunlightdir), 0.0, 1.0), gloss) * specscale; 60 | light += (diffuse.rgb*sunfacing + sunspec) * sunlightcolor; 61 | } 62 | 63 | fragcolor.rgb = light; 64 | fragcolor.a = 1.0; 65 | } 66 | ] 67 | 68 | 69 | -------------------------------------------------------------------------------- /config/keymap.cfg: -------------------------------------------------------------------------------- 1 | // do not modify, use "bind" in autoexec.cfg instead 2 | 3 | keymap -1 MOUSELEFT 4 | keymap -2 MOUSEMIDDLE 5 | keymap -3 MOUSERIGHT 6 | keymap -4 MOUSEWHEELUP 7 | keymap -5 MOUSEWHEELDOWN 8 | keymap -6 MOUSEBACK 9 | keymap -7 MOUSEFORWARD 10 | keymap 8 BACKSPACE 11 | keymap 9 TAB 12 | keymap 13 RETURN 13 | keymap 27 ESCAPE 14 | keymap 32 SPACE 15 | keymap 33 EXCLAIM 16 | keymap 34 QUOTEDBL 17 | keymap 35 HASH 18 | keymap 36 DOLLAR 19 | keymap 38 AMPERSAND 20 | keymap 39 QUOTE 21 | keymap 40 LEFTPAREN 22 | keymap 41 RIGHTPAREN 23 | keymap 42 ASTERISK 24 | keymap 43 PLUS 25 | keymap 44 COMMA 26 | keymap 45 MINUS 27 | keymap 46 PERIOD 28 | keymap 47 SLASH 29 | keymap 48 0 30 | keymap 49 1 31 | keymap 50 2 32 | keymap 51 3 33 | keymap 52 4 34 | keymap 53 5 35 | keymap 54 6 36 | keymap 55 7 37 | keymap 56 8 38 | keymap 57 9 39 | keymap 58 COLON 40 | keymap 59 SEMICOLON 41 | keymap 60 LESS 42 | keymap 61 EQUALS 43 | keymap 62 GREATER 44 | keymap 63 QUESTION 45 | keymap 64 AT 46 | keymap 91 LEFTBRACKET 47 | keymap 92 BACKSLASH 48 | keymap 93 RIGHTBRACKET 49 | keymap 94 CARET 50 | keymap 95 UNDERSCORE 51 | keymap 96 BACKQUOTE 52 | keymap 97 A 53 | keymap 98 B 54 | keymap 99 C 55 | keymap 100 D 56 | keymap 101 E 57 | keymap 102 F 58 | keymap 103 G 59 | keymap 104 H 60 | keymap 105 I 61 | keymap 106 J 62 | keymap 107 K 63 | keymap 108 L 64 | keymap 109 M 65 | keymap 110 N 66 | keymap 111 O 67 | keymap 112 P 68 | keymap 113 Q 69 | keymap 114 R 70 | keymap 115 S 71 | keymap 116 T 72 | keymap 117 U 73 | keymap 118 V 74 | keymap 119 W 75 | keymap 120 X 76 | keymap 121 Y 77 | keymap 122 Z 78 | keymap 127 DELETE 79 | keymap 0x40000059 KP1 80 | keymap 0x4000005a KP2 81 | keymap 0x4000005b KP3 82 | keymap 0x4000005c KP4 83 | keymap 0x4000005d KP5 84 | keymap 0x4000005e KP6 85 | keymap 0x4000005f KP7 86 | keymap 0x40000060 KP8 87 | keymap 0x40000061 KP9 88 | keymap 0x40000062 KP0 89 | keymap 0x40000063 KP_PERIOD 90 | keymap 0x40000054 KP_DIVIDE 91 | keymap 0x40000055 KP_MULTIPLY 92 | keymap 0x40000056 KP_MINUS 93 | keymap 0x40000057 KP_PLUS 94 | keymap 0x40000058 KP_ENTER 95 | keymap 0x40000067 KP_EQUALS 96 | keymap 0x40000052 UP 97 | keymap 0x40000051 DOWN 98 | keymap 0x4000004f RIGHT 99 | keymap 0x40000050 LEFT 100 | keymap 0x40000048 PAUSE 101 | keymap 0x40000049 INSERT 102 | keymap 0x4000004a HOME 103 | keymap 0x4000004d END 104 | keymap 0x4000004b PAGEUP 105 | keymap 0x4000004e PAGEDOWN 106 | keymap 0x4000003a F1 107 | keymap 0x4000003b F2 108 | keymap 0x4000003c F3 109 | keymap 0x4000003d F4 110 | keymap 0x4000003e F5 111 | keymap 0x4000003f F6 112 | keymap 0x40000040 F7 113 | keymap 0x40000041 F8 114 | keymap 0x40000042 F9 115 | keymap 0x40000043 F10 116 | keymap 0x40000044 F11 117 | keymap 0x40000045 F12 118 | keymap 0x40000053 NUMLOCK 119 | keymap 0x40000039 CAPSLOCK 120 | keymap 0x40000047 SCROLLOCK 121 | keymap 0x400000e5 RSHIFT 122 | keymap 0x400000e1 LSHIFT 123 | keymap 0x400000e4 RCTRL 124 | keymap 0x400000e0 LCTRL 125 | keymap 0x400000e6 RALT 126 | keymap 0x400000e2 LALT 127 | keymap 0x400000e7 RMETA 128 | keymap 0x400000e3 LMETA 129 | keymap 0x40000065 COMPOSE 130 | keymap 0x40000075 HELP 131 | keymap 0x40000046 PRINT 132 | keymap 0x4000009a SYSREQ 133 | keymap 0x40000076 MENU 134 | -------------------------------------------------------------------------------- /config/server-init.cfg: -------------------------------------------------------------------------------- 1 | // basic server configuration script 2 | // note that some commands are commented out with //, and need to be uncommented and set to a value to work 3 | 4 | // optional specific IP for server to use 5 | // serverip N.N.N.N 6 | 7 | // optional specific port for server to use 8 | // serverport 42000 9 | 10 | // maximum number of allowed clients 11 | maxclients 8 12 | 13 | // maximum number of bots a master can add - admins are unaffected by this limit 14 | // set to 0 to disallow bots 15 | serverbotlimit 8 16 | 17 | // controls whether or not the server is intended for "public" use 18 | // when set to 0, allows "setmaster 1" and locked/private mastermodes (for coop-editing and such) 19 | // when set to 1, can only gain master by "auth" or admin, and doesn't allow locked/private mastermodes 20 | // when set to 2, allows "setmaster 1" but disallows private mastermode (for public coop-editing) 21 | publicserver 0 22 | 23 | // description server shows for the server browser 24 | serverdesc "" 25 | 26 | // password required to connect to the server 27 | // generally unnecessary unless you really don't want anyone connecting to your server 28 | // using the serverauth option allows people with an appropriate local authkey to connect regardless 29 | // serverpass "" 30 | 31 | // password that allows you to gain admin by "setmaster password_here" 32 | // local authkeys are more secure than this and should be used instead if possible 33 | // adminpass "" 34 | 35 | // domain to use for local authkeys to the server so people can authenticate by "auth domain_here" 36 | // must be a non-empty string that should be unique to your server to prevent clashes with other servers 37 | // serverauth "" 38 | 39 | // controls whether or not the server reports to the masterserver 40 | updatemaster 1 41 | 42 | // optional message of the day to send to players on connect 43 | // servermotd "..." 44 | 45 | // controls whether admin privs are necessary to record a demo 46 | // when 1 requires admin (default) 47 | // when 0 only requires master 48 | // restrictdemos 1 49 | 50 | // maximum number of demos the server will store 51 | // maxdemos 5 52 | 53 | // maximum size a demo is allowed to grow to in megabytes 54 | // maxdemosize 16 55 | 56 | // controls whether admin privs are necessary to pause a game 57 | // when 1 requires admin (default) 58 | // when 0 only requires master 59 | // restrictpausegame 1 60 | 61 | // whether or not to allow players to vote on maps not in the rotation 62 | // when 1 requires master 63 | // when 2 requires admin 64 | // when 0 allows any votes (default) 65 | // lockmaprotation 0 66 | 67 | dmmaps = [ 68 | complex alphacorp ot turbine 69 | ] 70 | ctfmaps = [ 71 | alphacorp steelribs test_ctf waterworks 72 | ] 73 | tdmmaps = (listunion $dmmaps $ctfmaps) 74 | 75 | maprotationreset 76 | maprotation "*" $dmmaps 77 | maprotation "?tdm" $tdmmaps 78 | maprotation "?ctf" $ctfmaps 79 | 80 | teamkillkickreset 81 | teamkillkick "*" 7 30 82 | 83 | -------------------------------------------------------------------------------- /config/sound.cfg: -------------------------------------------------------------------------------- 1 | defaultsoundpack = [ 2 | soundreset 3 | registersound "uphys/jump" 60 4 | registersound "uphys/land" 180 5 | registersound "uphys/splashin" 160 6 | registersound "uphys/splashout" 100 7 | registersound "soundsnap/burn" 210 8 | registersound // itemspawn 9 | registersound "q009/teleport" 255 10 | registersound "uphys/jumppad" 100 11 | registersound "uphys/punch_swing" 190 12 | registersound "uphys/pulse_third" 255 13 | registersound "uphys/pulse_first" 255 14 | registersound "uphys/pulse_burst" 255 15 | registersound "dacker/rail_third" 255 16 | registersound "dacker/rail_first" 255 17 | registersound "uphys/weapon_switch" 50 18 | registersound // noammo 19 | registersound "free/hit" 100 20 | registersound // pain1 21 | registersound // pain2 22 | registersound "uphys/die1" 150 23 | registersound "uphys/die2" 150 24 | registersound "ctf/flagpickup" 100 25 | registersound "ctf/flagdrop" 100 26 | registersound "ctf/flagreturn" 100 27 | registersound "ctf/flagscore" 100 28 | registersound "ctf/flagreturn" 100 29 | registersound "ctf/flagfail" 100 30 | ] 31 | 32 | loadsoundpack = [ 33 | if $soundpack [ 34 | if (! (exec [media/sound/game/@soundpack/soundpack.cfg] 0)) [ 35 | error [Failed to load soundpack: @soundpack. Using default sounds.] 36 | defaultsoundpack 37 | ] 38 | ] [ 39 | defaultsoundpack 40 | ] 41 | ] 42 | 43 | defsvarp soundpack "" [loadsoundpack] 44 | 45 | defaultsoundpack 46 | 47 | -------------------------------------------------------------------------------- /config/stdlib.cfg: -------------------------------------------------------------------------------- 1 | // Console language standard library 2 | 3 | // Binds a key so that it will toggle a variable 4 | bindvar = [bind $arg1 [@arg2 (= $@arg2 0); if (= $@arg2 0) [echo @@arg2 OFF] [echo @@arg2 ON]]] 5 | bindvarquiet = [bind $arg1 [@arg2 (= $@arg2 0)]] 6 | editbindvar = [editbind $arg1 [@arg2 (= $@arg2 0); if (= $@arg2 0) [echo @@arg2 OFF] [echo @@arg2 ON]]] 7 | editbindvarquiet = [editbind $arg1 [@arg2 (= $@arg2 0)]] 8 | 9 | // Binds a key so that it will set a modifier while held down 10 | bindmod = [bind $arg1 [@arg2 1; onrelease [@@arg2 0]]] 11 | editbindmod = [editbind $arg1 [@arg2 1; onrelease [@@arg2 0]]] 12 | 13 | quine = [echo (format "quine = [%1]" $quine)] 14 | 15 | issomeoneelsemaster = [ 16 | >= (listfind cn $listclients [ismaster $cn]) 0 17 | ] 18 | 19 | numbots = [ 20 | listcount cn $listclients [isai $cn] 21 | ] 22 | clearbots = [ 23 | looplist cn $listclients [ 24 | if (isai $cn) [delbot] 25 | ] 26 | ] 27 | 28 | // Returns given RGB color as an INT color 29 | // usage: (rgbtoint R G B) 30 | rgbtoint = [+ (<< $arg1 16) (<< $arg2 8) $arg3] 31 | 32 | // Returns given RGB color as a HEX color 33 | // usage: (rgbtohex R G B) 34 | rgbtohex = [tohex (rgbtoint $arg1 $arg2 $arg3) 6] 35 | 36 | // Returns given INT color as an RGB color 37 | // usage: (inttorgb R-var G-var B-var) 38 | inttorgb = [ 39 | $arg2 = (& (>> $arg1 16) 0xFF) 40 | $arg3 = (& (>> $arg1 8) 0xFF) 41 | $arg4 = (& $arg1 0xFF) 42 | ] 43 | 44 | // *.tex file handling 45 | texsky = [setshader "stdworld"; texture 0 "game/sky.png"] 46 | texerror = [setshader "stdworld"; texture 0 "game/notexture.png"] 47 | texnorender = [setshader "stdworld"; texture 0 "game/norender.png"] 48 | texload = [ 49 | if (! (exec [media/texture/@arg1.tex] 0)) [ 50 | error [texload error: @arg1.tex not found] 51 | texerror 52 | ] 53 | ] 54 | 55 | decalload = [ 56 | if (! (exec [media/decal/@arg1.cfg] 0)) [ 57 | error [decalload error: @arg1.cfg not found] 58 | ] 59 | ] 60 | 61 | -------------------------------------------------------------------------------- /config/ui/edithud.cfg: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | // Edit HUD Elements // 3 | /////////////////////////////////////////////////////////////////////////////// 4 | edittoggled = [ 5 | if $editing [ 6 | showui "editstats" 7 | showui "varicons" 8 | ] [ 9 | hideallui 10 | ] 11 | ] 12 | 13 | newui "editstats" [ 14 | uiallowinput 0 15 | if $hidehud [] [ 16 | uialign -1 1 17 | uiabovehud 18 | uicolor $c_menu_a 0 0 [ 19 | uispace $UIwindow_padding $UIwindow_padding [ 20 | uivlist 0 [ 21 | uicontext ( 22 | format "%4^f7%5^f7gridsize :^f8 %1 ^f7| worldsize :^f8 %2 ^f7| floatspeed :^f8 %3" $gridpower $mapscale $floatspeed ( 23 | if $hmapedit [format "heightmap brush^f8 %1 ^f7:^f8 %2^n" $hbrushindex $hbrushname] [ 24 | if $blendpaintmode [ 25 | format "blendpaint mode : ^f8%1^f7^nblend brush : ^f8%2^n" (at $blendpaintmodes $blendpaintmode) (getblendbrushname (curblendbrush)) 26 | ] [if (! (enthavesel)) [ 27 | format "index^f8 %1 ^f7:^f8 %2^n" (max 0 (getseltex)) (gettexname (getseltex)) 28 | ]] 29 | ] 30 | ) (if (enthavesel) [concat (entget) ":^f8" (enthavesel) "^f7selected^n"]) 31 | ) 32 | uicontext (format "cube %1%2" $selchildcount (if $showmat [selchildmat ": "])) 33 | uihlist 0 [ 34 | uicontextfill 12 0 [uicontext (format "wtr:%1k(%2%%)" $editstatwtr $editstatvtr) ; uialign- -1 0] 35 | uicontextfill 12 0 [uicontext (format "wvt:%1k(%2%%)" $editstatwvt $editstatvvt) ; uialign- -1 0] 36 | uicontextfill 11 0 [uicontext (format "evt:%1k" $editstatevt) ; uialign- -1 0] 37 | uicontextfill 7 0 [uicontext (format "eva:%1k" $editstateva) ; uialign- -1 0] 38 | ] 39 | uihlist 0 [ 40 | uicontextfill 12 0 [uicontext (concatword "ond:" $editstatocta) ; uialign- -1 0] 41 | uicontextfill 12 0 [uicontext (concatword "va:" $editstatva) ; uialign- -1 0] 42 | uicontextfill 11 0 [uicontext (format "gl:%1(%2)" $editstatglde $editstatgeombatch) ; uialign- -1 0] 43 | uicontextfill 7 0 [uicontext (concatword "oq:" $editstatoq) ; uialign- -1 0] 44 | uicontextfill 7 0 [uicontext (concatword "pvs:" $editstatpvs) ; uialign- -1 0] 45 | ] 46 | uialign* -1 0 47 | ] 48 | ] 49 | uioutline $c_line ; uiclamp- 1 1 1 1 50 | ] 51 | ] 52 | ] 53 | 54 | newui "varicons" [ 55 | uiallowinput 0 56 | if $hidehud [] [ 57 | uialign 1 1 58 | uispace 0.01 0.1 [ 59 | uivlist 0 [ 60 | looplist i (concatword "allfaces entselsnap entediting fullbright showmat " (? $scoreboardmultiplayer "nompedit")) [ 61 | uifont "default_outline" [ 62 | uialign 1 63 | if $$i [ 64 | uitext (concatword "^f8" $i) 0.47 65 | ] [uicolortext $i 0x80FFFFFF 0.47] 66 | ] 67 | ] 68 | ] 69 | ] 70 | ] 71 | ] 72 | -------------------------------------------------------------------------------- /doc/dev/IQM Tools - Github.URL: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=https://github.com/lsalzman/iqm 3 | -------------------------------------------------------------------------------- /doc/dev/IQM Tools.URL: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://sauerbraten.org/iqm/ 3 | -------------------------------------------------------------------------------- /doc/dev/Ragdoll Tools.URL: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://sauerbraten.org/lee/ragdoll.tar.gz 3 | -------------------------------------------------------------------------------- /doc/dev/old/2014-05-12_default_map_models.cfg: -------------------------------------------------------------------------------- 1 | // Notice: This list is dynamic and will change with every release. 2 | // Please use a dedicated map.cfg. 3 | 4 | mapmodelreset 5 | mapmodel "obj_cube" 6 | mapmodel "obj_sphere" 7 | 8 | // Nieb/Complex 9 | mapmodel "nieb/complex/bench/2" 10 | mapmodel "nieb/complex/bench/3" 11 | mapmodel "nieb/complex/box_copy-paper" 12 | mapmodel "nieb/complex/box_large/label_0" 13 | mapmodel "nieb/complex/box_large/label_a" 14 | mapmodel "nieb/complex/box_large/label_b" 15 | mapmodel "nieb/complex/box_small/label_0" 16 | mapmodel "nieb/complex/box_small/label_a" 17 | mapmodel "nieb/complex/box_small/label_b" 18 | mapmodel "nieb/complex/box_small-open/label_0" 19 | mapmodel "nieb/complex/box_small-open/label_a" 20 | mapmodel "nieb/complex/box_small-open/label_b" 21 | mapmodel "nieb/complex/chair_office" 22 | mapmodel "nieb/complex/clock_wall" 23 | mapmodel "nieb/complex/coffee_cup" 24 | mapmodel "nieb/complex/computer_case_v/off" 25 | mapmodel "nieb/complex/computer_case_v/on" 26 | mapmodel "nieb/complex/computer_keyboard" 27 | mapmodel "nieb/complex/computer_monitor" 28 | mapmodel "nieb/complex/computer_mouse" 29 | mapmodel "nieb/complex/cooling_fan" 30 | mapmodel "nieb/complex/copy-machine" 31 | mapmodel "nieb/complex/desk" 32 | mapmodel "nieb/complex/desk/flip" 33 | mapmodel "nieb/complex/door" 34 | mapmodel "nieb/complex/door/flip" 35 | mapmodel "nieb/complex/drinking_fountain" 36 | mapmodel "nieb/complex/filing_cab1" 37 | mapmodel "nieb/complex/filing_cab2" 38 | mapmodel "nieb/complex/fire_alarm" 39 | mapmodel "nieb/complex/fire_extinguisher" 40 | mapmodel "nieb/complex/fire_sprinkler" 41 | mapmodel "nieb/complex/garbage_bin" 42 | mapmodel "nieb/complex/garbage_can" 43 | mapmodel "nieb/complex/light_fluorescent/on" 44 | mapmodel "nieb/complex/light_fluorescent/off" 45 | mapmodel "nieb/complex/locker01" 46 | mapmodel "nieb/complex/locker02" 47 | mapmodel "nieb/complex/mop_bucket" 48 | mapmodel "nieb/complex/pallet_lift" 49 | mapmodel "nieb/complex/phone" 50 | mapmodel "nieb/complex/picture/1" 51 | mapmodel "nieb/complex/picture/2" 52 | mapmodel "nieb/complex/picture/3" 53 | mapmodel "nieb/complex/projector" 54 | mapmodel "nieb/complex/projector_screen" 55 | mapmodel "nieb/complex/safety_post" 56 | mapmodel "nieb/complex/server_rack/1" 57 | mapmodel "nieb/complex/server_rack/2" 58 | mapmodel "nieb/complex/server_rack/3" 59 | mapmodel "nieb/complex/shelf_storage" 60 | mapmodel "nieb/complex/signage/1" 61 | mapmodel "nieb/complex/signage/2" 62 | mapmodel "nieb/complex/signage/3" 63 | mapmodel "nieb/complex/sign_caution" 64 | mapmodel "nieb/complex/sign_drinking" 65 | mapmodel "nieb/complex/sign_exit" 66 | mapmodel "nieb/complex/sign_fire_extinguisher" 67 | mapmodel "nieb/complex/sign_restroom/f" 68 | mapmodel "nieb/complex/sign_restroom/m" 69 | mapmodel "nieb/complex/sign_room/conference" 70 | mapmodel "nieb/complex/sign_room/office" 71 | mapmodel "nieb/complex/sign_room/server" 72 | mapmodel "nieb/complex/storage_tote" 73 | mapmodel "nieb/complex/white_board" 74 | 75 | // Nobiax 76 | mapmodel "nobiax/cardboardbox1" 77 | mapmodel "nobiax/gaz_tank" 78 | mapmodel "nobiax/pallet2" -------------------------------------------------------------------------------- /doc/dev/ref_CubeScript.URL: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=https://github.com/Hirato/lamiae/wiki/CubeScript 3 | 4 | -------------------------------------------------------------------------------- /doc/dev/ref_Miscellaneous.txt: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | // Text String Colors // 3 | /////////////////////////////////////////////////////////////////////////////// 4 | 5 | ^f# 6 | 7 | Example: echo "^f1This is blue text, ^f6this is orange text." 8 | 9 | 0 = green 64, 255, 128 0x40FF80 Player talk 10 | 1 = blue 96, 160, 255 0x60A0FF "echo" command 11 | 2 = yellow 255, 192, 64 0xFFC040 Gameplay messages 12 | 3 = red 255, 64, 64 0xFF4040 Important errors 13 | 4 = gray 128, 128, 128 0x808080 14 | 5 = magenta 192, 64, 192 0xC040C0 15 | 6 = orange 255, 128, 0 0xFF8000 16 | 7 = white 255, 255, 255 0xFFFFFF 17 | 8 = "Tesseract Blue" 80, 207, 229 0x50CFE5 18 | -------------------------------------------------------------------------------- /doc/dev/todo_nieb.txt: -------------------------------------------------------------------------------- 1 | =============================================================== 2 | 3 | ***First package release approximately here*** 4 | 5 | =============================================================== 6 | 7 | UI Stuff 8 | -Keybind/Input menu 9 | 10 | -Edit HUD 11 | Revamp* 12 | 13 | -Edit Entity 14 | ... 15 | 16 | -Texture Browser 17 | Directories 18 | Used & Listed Texture View 19 | allfaces toggle 20 | Thumbnail Size 21 | 22 | -Mapmodel Browser 23 | Revamp* 24 | Directories 25 | Thumbnails? 26 | 27 | -Environment Settings 28 | ... 29 | 30 | -Misc Editing? 31 | 32 | -Master 33 | 34 | -clean up ui_style 35 | 36 | =============================================================== 37 | 38 | Custom Forum Theme 39 | 40 | =============================================================== 41 | 42 | *************************************************************** 43 | *************************************************************** 44 | Misc Stuff: 45 | -tweak hudgun animations 46 | 47 | -Flagstone remake 48 | -shipwreck remake 49 | -turbine remake 50 | -Ot remake 51 | 52 | *************************************************************** 53 | *************************************************************** 54 | Theme Ideas: 55 | -evil lair 56 | cafateria (from clone map) 57 | big screen room from goldeneye 58 | -Chess/checkers board 59 | -Halloween (Hallo-ish) 60 | -Classical architecture (nmp8-ish) 61 | -Lego blocks / Toys 62 | -Movie-TV studio / Music stage / Club 63 | -Video Game Arcade / Game hall / Casino 64 | -Castle in the Alps 65 | -Asian Cliff Temple 66 | -Suburbia / modern american neighborhood 67 | -NiebTek Labs (Portal-ish) 68 | -(autumn-ish) 69 | -(garden-ish) 70 | 71 | *************************************************************** 72 | *************************************************************** 73 | -------------------------------------------------------------------------------- /server.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | set TESS_BIN=bin 4 | 5 | IF /I "%PROCESSOR_ARCHITECTURE%" == "amd64" ( 6 | set TESS_BIN=bin64 7 | ) 8 | IF /I "%PROCESSOR_ARCHITEW6432%" == "amd64" ( 9 | set TESS_BIN=bin64 10 | ) 11 | 12 | start %TESS_BIN%\tesseract.exe "-u$HOME\My Games\Tesseract" -gserver-log.txt -d %* 13 | -------------------------------------------------------------------------------- /src/enet/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2002-2015 Lee Salzman 2 | 3 | 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: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | 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. 8 | -------------------------------------------------------------------------------- /src/enet/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-O3 -fomit-frame-pointer 2 | override CFLAGS:= $(CFLAGS) -Iinclude $(shell ./check_cflags.sh $(CC) $(CFLAGS)) 3 | 4 | OBJS= \ 5 | callbacks.o \ 6 | compress.o \ 7 | host.o \ 8 | list.o \ 9 | packet.o \ 10 | peer.o \ 11 | protocol.o \ 12 | unix.o \ 13 | win32.o 14 | 15 | libenet.a: $(OBJS) 16 | $(AR) rcs $@ $(OBJS) 17 | 18 | default: libenet.a 19 | 20 | clean: 21 | -$(RM) libenet.a $(OBJS) 22 | 23 | -------------------------------------------------------------------------------- /src/enet/README: -------------------------------------------------------------------------------- 1 | Please visit the ENet homepage at http://enet.bespin.org for installation 2 | and usage instructions. 3 | 4 | If you obtained this package from github, the quick description on how to build 5 | is: 6 | 7 | # Generate the build system. 8 | 9 | autoreconf -vfi 10 | 11 | # Compile and install the library. 12 | 13 | ./configure && make && make install 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/enet/callbacks.c: -------------------------------------------------------------------------------- 1 | /** 2 | @file callbacks.c 3 | @brief ENet callback functions 4 | */ 5 | #define ENET_BUILDING_LIB 1 6 | #include "enet/enet.h" 7 | 8 | static ENetCallbacks callbacks = { malloc, free, abort }; 9 | 10 | int 11 | enet_initialize_with_callbacks (ENetVersion version, const ENetCallbacks * inits) 12 | { 13 | if (version < ENET_VERSION_CREATE (1, 3, 0)) 14 | return -1; 15 | 16 | if (inits -> malloc != NULL || inits -> free != NULL) 17 | { 18 | if (inits -> malloc == NULL || inits -> free == NULL) 19 | return -1; 20 | 21 | callbacks.malloc = inits -> malloc; 22 | callbacks.free = inits -> free; 23 | } 24 | 25 | if (inits -> no_memory != NULL) 26 | callbacks.no_memory = inits -> no_memory; 27 | 28 | return enet_initialize (); 29 | } 30 | 31 | ENetVersion 32 | enet_linked_version (void) 33 | { 34 | return ENET_VERSION; 35 | } 36 | 37 | void * 38 | enet_malloc (size_t size) 39 | { 40 | void * memory = callbacks.malloc (size); 41 | 42 | if (memory == NULL) 43 | callbacks.no_memory (); 44 | 45 | return memory; 46 | } 47 | 48 | void 49 | enet_free (void * memory) 50 | { 51 | callbacks.free (memory); 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/enet/check_cflags.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ENet cflags detection for unix by Daniel 'q66' Kolesa 3 | # I hereby put this file into public domain, use as you wish 4 | 5 | CC=$* 6 | 7 | cat << EOF > check_func.c 8 | void TEST_FUN(); 9 | int main() { TEST_FUN(); return 0; } 10 | EOF 11 | cat << EOF > check_member.c 12 | #include "check_member.h" 13 | static void pass() {} 14 | int main() { struct TEST_STRUCT test; pass(test.TEST_FIELD); return 0; } 15 | EOF 16 | cat << EOF > check_type.c 17 | #include "check_type.h" 18 | int main() { TEST_TYPE test; return 0; } 19 | EOF 20 | 21 | CHECK_FUNC() { 22 | $CC check_func.c -DTEST_FUN=$1 -o check_func 2>/dev/null 23 | if [ $? -eq 0 ]; then printf " $2"; rm check_func; fi 24 | } 25 | 26 | CHECK_FUNC getaddrinfo -DHAS_GETADDRINFO 27 | CHECK_FUNC getnameinfo -DHAS_GETNAMEINFO 28 | CHECK_FUNC gethostbyaddr_r -DHAS_GETHOSTBYADDR_R 29 | CHECK_FUNC gethostbyname_r -DHAS_GETHOSTBYNAME_R 30 | CHECK_FUNC poll -DHAS_POLL 31 | CHECK_FUNC fcntl -DHAS_FCNTL 32 | CHECK_FUNC inet_pton -DHAS_INET_PTON 33 | CHECK_FUNC inet_ntop -DHAS_INET_NTOP 34 | 35 | echo "#include " > check_member.h 36 | $CC check_member.c -DTEST_STRUCT=msghdr -DTEST_FIELD=msg_flags \ 37 | -o check_member 2>/dev/null 38 | if [ $? -eq 0 ]; then printf " -DHAS_MSGHDR_FLAGS"; rm check_member; fi 39 | rm check_member.h 40 | 41 | echo "#include " > check_type.h 42 | echo "#include " >> check_type.h 43 | $CC check_type.c -DTEST_TYPE=socklen_t -o check_type 2>/dev/null 44 | if [ $? -eq 0 ]; then printf " -DHAS_SOCKLEN_T"; rm check_type; fi 45 | rm check_type.h 46 | 47 | echo '' 48 | rm check_func.c 49 | rm check_member.c 50 | rm check_type.c 51 | -------------------------------------------------------------------------------- /src/enet/include/enet/callbacks.h: -------------------------------------------------------------------------------- 1 | /** 2 | @file callbacks.h 3 | @brief ENet callbacks 4 | */ 5 | #ifndef __ENET_CALLBACKS_H__ 6 | #define __ENET_CALLBACKS_H__ 7 | 8 | #include 9 | 10 | typedef struct _ENetCallbacks 11 | { 12 | void * (ENET_CALLBACK * malloc) (size_t size); 13 | void (ENET_CALLBACK * free) (void * memory); 14 | void (ENET_CALLBACK * no_memory) (void); 15 | } ENetCallbacks; 16 | 17 | /** @defgroup callbacks ENet internal callbacks 18 | @{ 19 | @ingroup private 20 | */ 21 | extern void * enet_malloc (size_t); 22 | extern void enet_free (void *); 23 | 24 | /** @} */ 25 | 26 | #endif /* __ENET_CALLBACKS_H__ */ 27 | 28 | -------------------------------------------------------------------------------- /src/enet/include/enet/list.h: -------------------------------------------------------------------------------- 1 | /** 2 | @file list.h 3 | @brief ENet list management 4 | */ 5 | #ifndef __ENET_LIST_H__ 6 | #define __ENET_LIST_H__ 7 | 8 | #include 9 | 10 | typedef struct _ENetListNode 11 | { 12 | struct _ENetListNode * next; 13 | struct _ENetListNode * previous; 14 | } ENetListNode; 15 | 16 | typedef ENetListNode * ENetListIterator; 17 | 18 | typedef struct _ENetList 19 | { 20 | ENetListNode sentinel; 21 | } ENetList; 22 | 23 | extern void enet_list_clear (ENetList *); 24 | 25 | extern ENetListIterator enet_list_insert (ENetListIterator, void *); 26 | extern void * enet_list_remove (ENetListIterator); 27 | extern ENetListIterator enet_list_move (ENetListIterator, void *, void *); 28 | 29 | extern size_t enet_list_size (ENetList *); 30 | 31 | #define enet_list_begin(list) ((list) -> sentinel.next) 32 | #define enet_list_end(list) (& (list) -> sentinel) 33 | 34 | #define enet_list_empty(list) (enet_list_begin (list) == enet_list_end (list)) 35 | 36 | #define enet_list_next(iterator) ((iterator) -> next) 37 | #define enet_list_previous(iterator) ((iterator) -> previous) 38 | 39 | #define enet_list_front(list) ((void *) (list) -> sentinel.next) 40 | #define enet_list_back(list) ((void *) (list) -> sentinel.previous) 41 | 42 | #endif /* __ENET_LIST_H__ */ 43 | 44 | -------------------------------------------------------------------------------- /src/enet/include/enet/time.h: -------------------------------------------------------------------------------- 1 | /** 2 | @file time.h 3 | @brief ENet time constants and macros 4 | */ 5 | #ifndef __ENET_TIME_H__ 6 | #define __ENET_TIME_H__ 7 | 8 | #define ENET_TIME_OVERFLOW 86400000 9 | 10 | #define ENET_TIME_LESS(a, b) ((a) - (b) >= ENET_TIME_OVERFLOW) 11 | #define ENET_TIME_GREATER(a, b) ((b) - (a) >= ENET_TIME_OVERFLOW) 12 | #define ENET_TIME_LESS_EQUAL(a, b) (! ENET_TIME_GREATER (a, b)) 13 | #define ENET_TIME_GREATER_EQUAL(a, b) (! ENET_TIME_LESS (a, b)) 14 | 15 | #define ENET_TIME_DIFFERENCE(a, b) ((a) - (b) >= ENET_TIME_OVERFLOW ? (b) - (a) : (a) - (b)) 16 | 17 | #endif /* __ENET_TIME_H__ */ 18 | 19 | -------------------------------------------------------------------------------- /src/enet/include/enet/types.h: -------------------------------------------------------------------------------- 1 | /** 2 | @file types.h 3 | @brief type definitions for ENet 4 | */ 5 | #ifndef __ENET_TYPES_H__ 6 | #define __ENET_TYPES_H__ 7 | 8 | typedef unsigned char enet_uint8; /**< unsigned 8-bit type */ 9 | typedef unsigned short enet_uint16; /**< unsigned 16-bit type */ 10 | typedef unsigned int enet_uint32; /**< unsigned 32-bit type */ 11 | 12 | #endif /* __ENET_TYPES_H__ */ 13 | 14 | -------------------------------------------------------------------------------- /src/enet/include/enet/unix.h: -------------------------------------------------------------------------------- 1 | /** 2 | @file unix.h 3 | @brief ENet Unix header 4 | */ 5 | #ifndef __ENET_UNIX_H__ 6 | #define __ENET_UNIX_H__ 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | #ifdef MSG_MAXIOVLEN 16 | #define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN 17 | #endif 18 | 19 | typedef int ENetSocket; 20 | 21 | #define ENET_SOCKET_NULL -1 22 | 23 | #define ENET_HOST_TO_NET_16(value) (htons (value)) /**< macro that converts host to net byte-order of a 16-bit value */ 24 | #define ENET_HOST_TO_NET_32(value) (htonl (value)) /**< macro that converts host to net byte-order of a 32-bit value */ 25 | 26 | #define ENET_NET_TO_HOST_16(value) (ntohs (value)) /**< macro that converts net to host byte-order of a 16-bit value */ 27 | #define ENET_NET_TO_HOST_32(value) (ntohl (value)) /**< macro that converts net to host byte-order of a 32-bit value */ 28 | 29 | typedef struct 30 | { 31 | void * data; 32 | size_t dataLength; 33 | } ENetBuffer; 34 | 35 | #define ENET_CALLBACK 36 | 37 | #define ENET_API extern 38 | 39 | typedef fd_set ENetSocketSet; 40 | 41 | #define ENET_SOCKETSET_EMPTY(sockset) FD_ZERO (& (sockset)) 42 | #define ENET_SOCKETSET_ADD(sockset, socket) FD_SET (socket, & (sockset)) 43 | #define ENET_SOCKETSET_REMOVE(sockset, socket) FD_CLR (socket, & (sockset)) 44 | #define ENET_SOCKETSET_CHECK(sockset, socket) FD_ISSET (socket, & (sockset)) 45 | 46 | #endif /* __ENET_UNIX_H__ */ 47 | 48 | -------------------------------------------------------------------------------- /src/enet/include/enet/utility.h: -------------------------------------------------------------------------------- 1 | /** 2 | @file utility.h 3 | @brief ENet utility header 4 | */ 5 | #ifndef __ENET_UTILITY_H__ 6 | #define __ENET_UTILITY_H__ 7 | 8 | #define ENET_MAX(x, y) ((x) > (y) ? (x) : (y)) 9 | #define ENET_MIN(x, y) ((x) < (y) ? (x) : (y)) 10 | 11 | #endif /* __ENET_UTILITY_H__ */ 12 | 13 | -------------------------------------------------------------------------------- /src/enet/include/enet/win32.h: -------------------------------------------------------------------------------- 1 | /** 2 | @file win32.h 3 | @brief ENet Win32 header 4 | */ 5 | #ifndef __ENET_WIN32_H__ 6 | #define __ENET_WIN32_H__ 7 | 8 | #ifdef _MSC_VER 9 | #ifdef ENET_BUILDING_LIB 10 | #pragma warning (disable: 4267) // size_t to int conversion 11 | #pragma warning (disable: 4244) // 64bit to 32bit int 12 | #pragma warning (disable: 4018) // signed/unsigned mismatch 13 | #pragma warning (disable: 4146) // unary minus operator applied to unsigned type 14 | #endif 15 | #endif 16 | 17 | #include 18 | #include 19 | 20 | typedef SOCKET ENetSocket; 21 | 22 | #define ENET_SOCKET_NULL INVALID_SOCKET 23 | 24 | #define ENET_HOST_TO_NET_16(value) (htons (value)) 25 | #define ENET_HOST_TO_NET_32(value) (htonl (value)) 26 | 27 | #define ENET_NET_TO_HOST_16(value) (ntohs (value)) 28 | #define ENET_NET_TO_HOST_32(value) (ntohl (value)) 29 | 30 | typedef struct 31 | { 32 | size_t dataLength; 33 | void * data; 34 | } ENetBuffer; 35 | 36 | #define ENET_CALLBACK __cdecl 37 | 38 | #ifdef ENET_DLL 39 | #ifdef ENET_BUILDING_LIB 40 | #define ENET_API __declspec( dllexport ) 41 | #else 42 | #define ENET_API __declspec( dllimport ) 43 | #endif /* ENET_BUILDING_LIB */ 44 | #else /* !ENET_DLL */ 45 | #define ENET_API extern 46 | #endif /* ENET_DLL */ 47 | 48 | typedef fd_set ENetSocketSet; 49 | 50 | #define ENET_SOCKETSET_EMPTY(sockset) FD_ZERO (& (sockset)) 51 | #define ENET_SOCKETSET_ADD(sockset, socket) FD_SET (socket, & (sockset)) 52 | #define ENET_SOCKETSET_REMOVE(sockset, socket) FD_CLR (socket, & (sockset)) 53 | #define ENET_SOCKETSET_CHECK(sockset, socket) FD_ISSET (socket, & (sockset)) 54 | 55 | #endif /* __ENET_WIN32_H__ */ 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/enet/list.c: -------------------------------------------------------------------------------- 1 | /** 2 | @file list.c 3 | @brief ENet linked list functions 4 | */ 5 | #define ENET_BUILDING_LIB 1 6 | #include "enet/enet.h" 7 | 8 | /** 9 | @defgroup list ENet linked list utility functions 10 | @ingroup private 11 | @{ 12 | */ 13 | void 14 | enet_list_clear (ENetList * list) 15 | { 16 | list -> sentinel.next = & list -> sentinel; 17 | list -> sentinel.previous = & list -> sentinel; 18 | } 19 | 20 | ENetListIterator 21 | enet_list_insert (ENetListIterator position, void * data) 22 | { 23 | ENetListIterator result = (ENetListIterator) data; 24 | 25 | result -> previous = position -> previous; 26 | result -> next = position; 27 | 28 | result -> previous -> next = result; 29 | position -> previous = result; 30 | 31 | return result; 32 | } 33 | 34 | void * 35 | enet_list_remove (ENetListIterator position) 36 | { 37 | position -> previous -> next = position -> next; 38 | position -> next -> previous = position -> previous; 39 | 40 | return position; 41 | } 42 | 43 | ENetListIterator 44 | enet_list_move (ENetListIterator position, void * dataFirst, void * dataLast) 45 | { 46 | ENetListIterator first = (ENetListIterator) dataFirst, 47 | last = (ENetListIterator) dataLast; 48 | 49 | first -> previous -> next = last -> next; 50 | last -> next -> previous = first -> previous; 51 | 52 | first -> previous = position -> previous; 53 | last -> next = position; 54 | 55 | first -> previous -> next = first; 56 | position -> previous = last; 57 | 58 | return first; 59 | } 60 | 61 | size_t 62 | enet_list_size (ENetList * list) 63 | { 64 | size_t size = 0; 65 | ENetListIterator position; 66 | 67 | for (position = enet_list_begin (list); 68 | position != enet_list_end (list); 69 | position = enet_list_next (position)) 70 | ++ size; 71 | 72 | return size; 73 | } 74 | 75 | /** @} */ 76 | -------------------------------------------------------------------------------- /src/engine/bih.h: -------------------------------------------------------------------------------- 1 | struct stainrenderer; 2 | 3 | struct BIH 4 | { 5 | struct node 6 | { 7 | short split[2]; 8 | ushort child[2]; 9 | 10 | int axis() const { return child[0]>>14; } 11 | int childindex(int which) const { return child[which]&0x3FFF; } 12 | bool isleaf(int which) const { return (child[1]&(1<<(14+which)))!=0; } 13 | }; 14 | 15 | struct tri 16 | { 17 | ushort vert[3]; 18 | }; 19 | 20 | struct tribb 21 | { 22 | svec center, radius; 23 | 24 | bool outside(const ivec &bo, const ivec &br) const 25 | { 26 | return abs(bo.x - center.x) > br.x + radius.x || 27 | abs(bo.y - center.y) > br.y + radius.y || 28 | abs(bo.z - center.z) > br.z + radius.z; 29 | } 30 | }; 31 | 32 | enum { MESH_RENDER = 1<<1, MESH_NOCLIP = 1<<2, MESH_ALPHA = 1<<3, MESH_COLLIDE = 1<<4, MESH_CULLFACE = 1<<5 }; 33 | 34 | struct mesh 35 | { 36 | matrix4x3 xform, invxform; 37 | matrix3 xformnorm, invxformnorm; 38 | float scale, invscale; 39 | node *nodes; 40 | int numnodes; 41 | const tri *tris; 42 | const tribb *tribbs; 43 | int numtris; 44 | const uchar *pos, *tc; 45 | int posstride, tcstride; 46 | Texture *tex; 47 | int flags; 48 | vec bbmin, bbmax; 49 | 50 | mesh() : numnodes(0), numtris(0), tex(NULL), flags(0) {} 51 | 52 | vec getpos(int i) const { return *(const vec *)(pos + i*posstride); } 53 | vec2 gettc(int i) const { return *(const vec2 *)(tc + i*tcstride); } 54 | }; 55 | 56 | mesh *meshes; 57 | int nummeshes; 58 | node *nodes; 59 | int numnodes; 60 | tribb *tribbs; 61 | int numtris; 62 | vec bbmin, bbmax, center; 63 | float radius, entradius; 64 | 65 | BIH(vector &buildmeshes); 66 | 67 | ~BIH(); 68 | 69 | void build(mesh &m, ushort *indices, int numindices, const ivec &vmin, const ivec &vmax); 70 | 71 | bool traverse(const vec &o, const vec &ray, float maxdist, float &dist, int mode); 72 | bool traverse(const mesh &m, const vec &o, const vec &ray, const vec &invray, float maxdist, float &dist, int mode, node *curnode, float tmin, float tmax); 73 | bool triintersect(const mesh &m, int tidx, const vec &mo, const vec &mray, float maxdist, float &dist, int mode); 74 | 75 | bool boxcollide(physent *d, const vec &dir, float cutoff, const vec &o, int yaw, int pitch, int roll, float scale = 1); 76 | bool ellipsecollide(physent *d, const vec &dir, float cutoff, const vec &o, int yaw, int pitch, int roll, float scale = 1); 77 | 78 | template 79 | void collide(const mesh &m, physent *d, const vec &dir, float cutoff, const vec ¢er, const vec &radius, const matrix4x3 &orient, float &dist, node *curnode, const ivec &bo, const ivec &br); 80 | template 81 | void tricollide(const mesh &m, int tidx, physent *d, const vec &dir, float cutoff, const vec ¢er, const vec &radius, const matrix4x3 &orient, float &dist, const ivec &bo, const ivec &br); 82 | 83 | void genstaintris(stainrenderer *s, const vec &staincenter, float stainradius, const vec &o, int yaw, int pitch, int roll, float scale = 1); 84 | void genstaintris(stainrenderer *s, const mesh &m, const vec ¢er, float radius, const matrix4x3 &orient, node *curnode, const ivec &bo, const ivec &br); 85 | void genstaintris(stainrenderer *s, const mesh &m, int tidx, const vec ¢er, float radius, const matrix4x3 &orient, const ivec &bo, const ivec &br); 86 | 87 | void preload(); 88 | }; 89 | 90 | extern bool mmintersect(const extentity &e, const vec &o, const vec &ray, float maxdist, int mode, float &dist); 91 | 92 | -------------------------------------------------------------------------------- /src/engine/light.h: -------------------------------------------------------------------------------- 1 | struct PackNode 2 | { 3 | PackNode *child1, *child2; 4 | ushort x, y, w, h; 5 | int available; 6 | 7 | PackNode(ushort x, ushort y, ushort w, ushort h) : child1(0), child2(0), x(x), y(y), w(w), h(h), available(min(w, h)) {} 8 | 9 | void discardchildren() 10 | { 11 | DELETEP(child1); 12 | DELETEP(child2); 13 | } 14 | 15 | void forceempty() 16 | { 17 | discardchildren(); 18 | available = 0; 19 | } 20 | 21 | void reset() 22 | { 23 | discardchildren(); 24 | available = min(w, h); 25 | } 26 | 27 | bool resize(int nw, int nh) 28 | { 29 | if(w == nw && h == nw) return false; 30 | discardchildren(); 31 | w = nw; 32 | h = nh; 33 | available = min(w, h); 34 | return true; 35 | } 36 | 37 | ~PackNode() 38 | { 39 | discardchildren(); 40 | } 41 | 42 | bool insert(ushort &tx, ushort &ty, ushort tw, ushort th); 43 | void reserve(ushort tx, ushort ty, ushort tw, ushort th); 44 | }; 45 | 46 | extern bvec ambient, skylight, sunlight; 47 | extern float ambientscale, skylightscale, sunlightscale; 48 | extern float sunlightyaw, sunlightpitch; 49 | extern vec sunlightdir; 50 | extern int fullbright, fullbrightlevel; 51 | 52 | extern void clearlights(); 53 | extern void initlights(); 54 | extern void clearlightcache(int id = -1); 55 | extern void brightencube(cube &c); 56 | extern void setsurfaces(cube &c, const surfaceinfo *surfs, const vertinfo *verts, int numverts); 57 | extern void setsurface(cube &c, int orient, const surfaceinfo &surf, const vertinfo *verts, int numverts); 58 | extern void previewblends(const ivec &bo, const ivec &bs); 59 | 60 | extern void calcnormals(bool lerptjoints = false); 61 | extern void clearnormals(); 62 | extern void resetsmoothgroups(); 63 | extern int smoothangle(int id, int angle); 64 | extern void findnormal(const vec &key, int smooth, const vec &surface, vec &v); 65 | 66 | #define CHECK_CALCLIGHT_PROGRESS_LOCKED(exit, show_calclight_progress, before, after) \ 67 | if(check_calclight_progress) \ 68 | { \ 69 | if(!calclight_canceled) \ 70 | { \ 71 | before; \ 72 | show_calclight_progress(); \ 73 | check_calclight_canceled(); \ 74 | after; \ 75 | } \ 76 | if(calclight_canceled) { exit; } \ 77 | } 78 | #define CHECK_CALCLIGHT_PROGRESS(exit, show_calclight_progress) CHECK_CALCLIGHT_PROGRESS_LOCKED(exit, show_calclight_progress, , ) 79 | 80 | extern bool calclight_canceled; 81 | extern volatile bool check_calclight_progress; 82 | 83 | extern void check_calclight_canceled(); 84 | 85 | extern const vector &checklightcache(int x, int y); 86 | 87 | -------------------------------------------------------------------------------- /src/engine/menus.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.h" 2 | 3 | void notifywelcome() 4 | { 5 | UI::hideui("servers"); 6 | } 7 | 8 | struct change 9 | { 10 | int type; 11 | const char *desc; 12 | 13 | change() {} 14 | change(int type, const char *desc) : type(type), desc(desc) {} 15 | }; 16 | static vector needsapply; 17 | 18 | VARP(applydialog, 0, 1, 1); 19 | VAR(hidechanges, 0, 0, 1); 20 | 21 | void addchange(const char *desc, int type) 22 | { 23 | if(!applydialog) return; 24 | loopv(needsapply) if(!strcmp(needsapply[i].desc, desc)) return; 25 | needsapply.add(change(type, desc)); 26 | if(!hidechanges) UI::showui("changes"); 27 | } 28 | 29 | void clearchanges(int type) 30 | { 31 | loopvrev(needsapply) 32 | { 33 | change &c = needsapply[i]; 34 | if(c.type&type) 35 | { 36 | c.type &= ~type; 37 | if(!c.type) needsapply.remove(i); 38 | } 39 | } 40 | if(needsapply.empty()) UI::hideui("changes"); 41 | } 42 | 43 | void applychanges() 44 | { 45 | int changetypes = 0; 46 | loopv(needsapply) changetypes |= needsapply[i].type; 47 | if(changetypes&CHANGE_GFX) execident("resetgl"); 48 | else if(changetypes&CHANGE_SHADERS) execident("resetshaders"); 49 | if(changetypes&CHANGE_SOUND) execident("resetsound"); 50 | } 51 | 52 | COMMAND(applychanges, ""); 53 | ICOMMAND(pendingchanges, "b", (int *idx), { if(needsapply.inrange(*idx)) result(needsapply[*idx].desc); else if(*idx < 0) intret(needsapply.length()); }); 54 | 55 | void menuprocess() 56 | { 57 | if(mainmenu && !isconnected(true) && !UI::hascursor()) UI::showui("main"); 58 | } 59 | 60 | VAR(mainmenu, 1, 1, 0); 61 | 62 | void clearmainmenu() 63 | { 64 | hidechanges = 0; 65 | if(mainmenu && isconnected()) 66 | { 67 | mainmenu = 0; 68 | UI::hideui(NULL); 69 | } 70 | } 71 | 72 | -------------------------------------------------------------------------------- /src/engine/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.h" 2 | 3 | -------------------------------------------------------------------------------- /src/engine/world.h: -------------------------------------------------------------------------------- 1 | 2 | enum // hardcoded texture numbers 3 | { 4 | DEFAULT_SKY = 0, 5 | DEFAULT_GEOM, 6 | NUMDEFAULTSLOTS 7 | }; 8 | 9 | #define OCTAVERSION 33 10 | 11 | struct octaheader 12 | { 13 | char magic[4]; // "OCTA" 14 | int version; // any >8bit quantity is little endian 15 | int headersize; // sizeof(header) 16 | int worldsize; 17 | int numents; 18 | int numpvs; 19 | int lightmaps; 20 | int blendmap; 21 | int numvars; 22 | int numvslots; 23 | }; 24 | 25 | #define MAPVERSION 1 // bump if map format changes, see worldio.cpp 26 | 27 | struct mapheader 28 | { 29 | char magic[4]; // "TMAP" 30 | int version; // any >8bit quantity is little endian 31 | int headersize; // sizeof(header) 32 | int worldsize; 33 | int numents; 34 | int numpvs; 35 | int blendmap; 36 | int numvars; 37 | int numvslots; 38 | }; 39 | 40 | #define WATER_AMPLITUDE 0.4f 41 | #define WATER_OFFSET 1.1f 42 | 43 | enum 44 | { 45 | MATSURF_NOT_VISIBLE = 0, 46 | MATSURF_VISIBLE, 47 | MATSURF_EDIT_ONLY 48 | }; 49 | 50 | #define TEX_SCALE 16.0f 51 | 52 | struct vertex { vec pos; bvec4 norm; vec tc; bvec4 tangent; }; 53 | 54 | -------------------------------------------------------------------------------- /src/game/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "game.h" 2 | 3 | -------------------------------------------------------------------------------- /src/include/SDL_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_bits.h 24 | * 25 | * Functions for fiddling with bits and bitmasks. 26 | */ 27 | 28 | #ifndef _SDL_bits_h 29 | #define _SDL_bits_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \file SDL_bits.h 41 | */ 42 | 43 | /** 44 | * Get the index of the most significant bit. Result is undefined when called 45 | * with 0. This operation can also be stated as "count leading zeroes" and 46 | * "log base 2". 47 | * 48 | * \return Index of the most significant bit, or -1 if the value is 0. 49 | */ 50 | SDL_FORCE_INLINE int 51 | SDL_MostSignificantBitIndex32(Uint32 x) 52 | { 53 | #if defined(__GNUC__) && __GNUC__ >= 4 54 | /* Count Leading Zeroes builtin in GCC. 55 | * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html 56 | */ 57 | if (x == 0) { 58 | return -1; 59 | } 60 | return 31 - __builtin_clz(x); 61 | #else 62 | /* Based off of Bit Twiddling Hacks by Sean Eron Anderson 63 | * , released in the public domain. 64 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog 65 | */ 66 | const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000}; 67 | const int S[] = {1, 2, 4, 8, 16}; 68 | 69 | int msbIndex = 0; 70 | int i; 71 | 72 | if (x == 0) { 73 | return -1; 74 | } 75 | 76 | for (i = 4; i >= 0; i--) 77 | { 78 | if (x & b[i]) 79 | { 80 | x >>= S[i]; 81 | msbIndex |= S[i]; 82 | } 83 | } 84 | 85 | return msbIndex; 86 | #endif 87 | } 88 | 89 | /* Ends C function definitions when using C++ */ 90 | #ifdef __cplusplus 91 | } 92 | #endif 93 | #include "close_code.h" 94 | 95 | #endif /* _SDL_bits_h */ 96 | 97 | /* vi: set ts=4 sw=4 expandtab: */ 98 | -------------------------------------------------------------------------------- /src/include/SDL_blendmode.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_blendmode.h 24 | * 25 | * Header file declaring the SDL_BlendMode enumeration 26 | */ 27 | 28 | #ifndef _SDL_blendmode_h 29 | #define _SDL_blendmode_h 30 | 31 | #include "begin_code.h" 32 | /* Set up for C function definitions, even when using C++ */ 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | /** 38 | * \brief The blend mode used in SDL_RenderCopy() and drawing operations. 39 | */ 40 | typedef enum 41 | { 42 | SDL_BLENDMODE_NONE = 0x00000000, /**< no blending 43 | dstRGBA = srcRGBA */ 44 | SDL_BLENDMODE_BLEND = 0x00000001, /**< alpha blending 45 | dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA)) 46 | dstA = srcA + (dstA * (1-srcA)) */ 47 | SDL_BLENDMODE_ADD = 0x00000002, /**< additive blending 48 | dstRGB = (srcRGB * srcA) + dstRGB 49 | dstA = dstA */ 50 | SDL_BLENDMODE_MOD = 0x00000004 /**< color modulate 51 | dstRGB = srcRGB * dstRGB 52 | dstA = dstA */ 53 | } SDL_BlendMode; 54 | 55 | /* Ends C function definitions when using C++ */ 56 | #ifdef __cplusplus 57 | } 58 | #endif 59 | #include "close_code.h" 60 | 61 | #endif /* _SDL_video_h */ 62 | 63 | /* vi: set ts=4 sw=4 expandtab: */ 64 | -------------------------------------------------------------------------------- /src/include/SDL_clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef _SDL_clipboard_h 29 | #define _SDL_clipboard_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | /** 42 | * \brief Put UTF-8 text into the clipboard 43 | * 44 | * \sa SDL_GetClipboardText() 45 | */ 46 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 47 | 48 | /** 49 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 50 | * 51 | * \sa SDL_SetClipboardText() 52 | */ 53 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 54 | 55 | /** 56 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 57 | * 58 | * \sa SDL_GetClipboardText() 59 | */ 60 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 61 | 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* _SDL_clipboard_h */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /src/include/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_config_h 23 | #define _SDL_config_h 24 | 25 | #include "SDL_platform.h" 26 | 27 | /** 28 | * \file SDL_config.h 29 | */ 30 | 31 | /* Add any platform that doesn't build using the configure system. */ 32 | #ifdef USING_PREMAKE_CONFIG_H 33 | #include "SDL_config_premake.h" 34 | #elif defined(__WIN32__) 35 | #include "SDL_config_windows.h" 36 | #elif defined(__WINRT__) 37 | #include "SDL_config_winrt.h" 38 | #elif defined(__MACOSX__) 39 | #include "SDL_config_macosx.h" 40 | #elif defined(__IPHONEOS__) 41 | #include "SDL_config_iphoneos.h" 42 | #elif defined(__ANDROID__) 43 | #include "SDL_config_android.h" 44 | #elif defined(__PSP__) 45 | #include "SDL_config_psp.h" 46 | #else 47 | /* This is a minimal configuration just to get SDL running on new platforms */ 48 | #include "SDL_config_minimal.h" 49 | #endif /* platform config */ 50 | 51 | #ifdef USING_GENERATED_CONFIG_H 52 | #error Wrong SDL_config.h, check your include path? 53 | #endif 54 | 55 | #endif /* _SDL_config_h */ 56 | -------------------------------------------------------------------------------- /src/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /src/include/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_error.h 24 | * 25 | * Simple error message routines for SDL. 26 | */ 27 | 28 | #ifndef _SDL_error_h 29 | #define _SDL_error_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Public functions */ 40 | /* SDL_SetError() unconditionally returns -1. */ 41 | extern DECLSPEC int SDLCALL SDL_SetError(const char *fmt, ...); 42 | extern DECLSPEC const char *SDLCALL SDL_GetError(void); 43 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 44 | 45 | /** 46 | * \name Internal error functions 47 | * 48 | * \internal 49 | * Private error reporting function - used internally. 50 | */ 51 | /* @{ */ 52 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 53 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 54 | #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) 55 | typedef enum 56 | { 57 | SDL_ENOMEM, 58 | SDL_EFREAD, 59 | SDL_EFWRITE, 60 | SDL_EFSEEK, 61 | SDL_UNSUPPORTED, 62 | SDL_LASTERROR 63 | } SDL_errorcode; 64 | /* SDL_Error() unconditionally returns -1. */ 65 | extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code); 66 | /* @} *//* Internal error functions */ 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* _SDL_error_h */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /src/include/SDL_gesture.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_gesture.h 24 | * 25 | * Include file for SDL gesture event handling. 26 | */ 27 | 28 | #ifndef _SDL_gesture_h 29 | #define _SDL_gesture_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "SDL_touch.h" 36 | 37 | 38 | #include "begin_code.h" 39 | /* Set up for C function definitions, even when using C++ */ 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef Sint64 SDL_GestureID; 45 | 46 | /* Function prototypes */ 47 | 48 | /** 49 | * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 50 | * 51 | * 52 | */ 53 | extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 54 | 55 | 56 | /** 57 | * \brief Save all currently loaded Dollar Gesture templates 58 | * 59 | * 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst); 62 | 63 | /** 64 | * \brief Save a currently loaded Dollar Gesture template 65 | * 66 | * 67 | */ 68 | extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst); 69 | 70 | 71 | /** 72 | * \brief Load Dollar Gesture templates from a file 73 | * 74 | * 75 | */ 76 | extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 77 | 78 | 79 | /* Ends C function definitions when using C++ */ 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | #include "close_code.h" 84 | 85 | #endif /* _SDL_gesture_h */ 86 | 87 | /* vi: set ts=4 sw=4 expandtab: */ 88 | -------------------------------------------------------------------------------- /src/include/SDL_loadso.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_loadso.h 24 | * 25 | * System dependent library loading routines 26 | * 27 | * Some things to keep in mind: 28 | * \li These functions only work on C function names. Other languages may 29 | * have name mangling and intrinsic language support that varies from 30 | * compiler to compiler. 31 | * \li Make sure you declare your function pointers with the same calling 32 | * convention as the actual library function. Your code will crash 33 | * mysteriously if you do not do this. 34 | * \li Avoid namespace collisions. If you load a symbol from the library, 35 | * it is not defined whether or not it goes into the global symbol 36 | * namespace for the application. If it does and it conflicts with 37 | * symbols in your code or other shared libraries, you will not get 38 | * the results you expect. :) 39 | */ 40 | 41 | #ifndef _SDL_loadso_h 42 | #define _SDL_loadso_h 43 | 44 | #include "SDL_stdinc.h" 45 | #include "SDL_error.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /** 54 | * This function dynamically loads a shared object and returns a pointer 55 | * to the object handle (or NULL if there was an error). 56 | * The 'sofile' parameter is a system dependent name of the object file. 57 | */ 58 | extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile); 59 | 60 | /** 61 | * Given an object handle, this function looks up the address of the 62 | * named function in the shared object and returns it. This address 63 | * is no longer valid after calling SDL_UnloadObject(). 64 | */ 65 | extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, 66 | const char *name); 67 | 68 | /** 69 | * Unload a shared object from memory. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* _SDL_loadso_h */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /src/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDLname_h_ 23 | #define _SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* _SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | 28 | #ifdef __IPHONEOS__ 29 | #include 30 | #include 31 | #else 32 | #include 33 | #include 34 | #endif 35 | 36 | #ifndef APIENTRY 37 | #define APIENTRY 38 | #endif 39 | -------------------------------------------------------------------------------- /src/include/SDL_power.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_power_h 23 | #define _SDL_power_h 24 | 25 | /** 26 | * \file SDL_power.h 27 | * 28 | * Header for the SDL power management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief The basic state for the system's power supply. 41 | */ 42 | typedef enum 43 | { 44 | SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */ 45 | SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */ 46 | SDL_POWERSTATE_NO_BATTERY, /**< Plugged in, no battery available */ 47 | SDL_POWERSTATE_CHARGING, /**< Plugged in, charging battery */ 48 | SDL_POWERSTATE_CHARGED /**< Plugged in, battery charged */ 49 | } SDL_PowerState; 50 | 51 | 52 | /** 53 | * \brief Get the current power supply details. 54 | * 55 | * \param secs Seconds of battery life left. You can pass a NULL here if 56 | * you don't care. Will return -1 if we can't determine a 57 | * value, or we're not running on a battery. 58 | * 59 | * \param pct Percentage of battery life left, between 0 and 100. You can 60 | * pass a NULL here if you don't care. Will return -1 if we 61 | * can't determine a value, or we're not running on a battery. 62 | * 63 | * \return The state of the battery (if any). 64 | */ 65 | extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 66 | 67 | /* Ends C function definitions when using C++ */ 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* _SDL_power_h */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /src/include/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef _SDL_quit_h 29 | #define _SDL_quit_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* _SDL_quit_h */ 59 | -------------------------------------------------------------------------------- /src/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-8628:b558f99d48f0" 2 | #define SDL_REVISION_NUMBER 8628 3 | -------------------------------------------------------------------------------- /src/include/SDL_touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_touch.h 24 | * 25 | * Include file for SDL touch event handling. 26 | */ 27 | 28 | #ifndef _SDL_touch_h 29 | #define _SDL_touch_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "begin_code.h" 36 | /* Set up for C function definitions, even when using C++ */ 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | typedef Sint64 SDL_TouchID; 42 | typedef Sint64 SDL_FingerID; 43 | 44 | typedef struct SDL_Finger 45 | { 46 | SDL_FingerID id; 47 | float x; 48 | float y; 49 | float pressure; 50 | } SDL_Finger; 51 | 52 | /* Used as the device ID for mouse events simulated with touch input */ 53 | #define SDL_TOUCH_MOUSEID ((Uint32)-1) 54 | 55 | 56 | /* Function prototypes */ 57 | 58 | /** 59 | * \brief Get the number of registered touch devices. 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); 62 | 63 | /** 64 | * \brief Get the touch ID with the given index, or 0 if the index is invalid. 65 | */ 66 | extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index); 67 | 68 | /** 69 | * \brief Get the number of active fingers for a given touch device. 70 | */ 71 | extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID); 72 | 73 | /** 74 | * \brief Get the finger object of the given touch, with the given index. 75 | */ 76 | extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index); 77 | 78 | /* Ends C function definitions when using C++ */ 79 | #ifdef __cplusplus 80 | } 81 | #endif 82 | #include "close_code.h" 83 | 84 | #endif /* _SDL_touch_h */ 85 | 86 | /* vi: set ts=4 sw=4 expandtab: */ 87 | -------------------------------------------------------------------------------- /src/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /src/include/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #undef _begin_code_h 30 | 31 | /* Reset structure packing at previous byte alignment */ 32 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__) 33 | #ifdef __BORLANDC__ 34 | #pragma nopackwarning 35 | #endif 36 | #pragma pack(pop) 37 | #endif /* Compiler needs structure packing set */ 38 | -------------------------------------------------------------------------------- /src/lib/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib/SDL2.lib -------------------------------------------------------------------------------- /src/lib/SDL2_image.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib/SDL2_image.lib -------------------------------------------------------------------------------- /src/lib/SDL2_mixer.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib/SDL2_mixer.lib -------------------------------------------------------------------------------- /src/lib/enet.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib/enet.lib -------------------------------------------------------------------------------- /src/lib/zdll.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib/zdll.lib -------------------------------------------------------------------------------- /src/lib64/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib64/SDL2.lib -------------------------------------------------------------------------------- /src/lib64/SDL2_image.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib64/SDL2_image.lib -------------------------------------------------------------------------------- /src/lib64/SDL2_mixer.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib64/SDL2_mixer.lib -------------------------------------------------------------------------------- /src/lib64/enet.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib64/enet.lib -------------------------------------------------------------------------------- /src/lib64/zdll.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/lib64/zdll.lib -------------------------------------------------------------------------------- /src/shared/cube.h: -------------------------------------------------------------------------------- 1 | #ifndef __CUBE_H__ 2 | #define __CUBE_H__ 3 | 4 | #define _FILE_OFFSET_BITS 64 5 | 6 | #ifdef __GNUC__ 7 | #define gamma __gamma 8 | #endif 9 | 10 | #ifdef WIN32 11 | #define _USE_MATH_DEFINES 12 | #endif 13 | #include 14 | 15 | #ifdef __GNUC__ 16 | #undef gamma 17 | #endif 18 | 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | #ifdef WIN32 30 | #define WIN32_LEAN_AND_MEAN 31 | #ifdef _WIN32_WINNT 32 | #undef _WIN32_WINNT 33 | #endif 34 | #define _WIN32_WINNT 0x0500 35 | #include "windows.h" 36 | #ifndef _WINDOWS 37 | #define _WINDOWS 38 | #endif 39 | #ifndef __GNUC__ 40 | #include 41 | #include 42 | #include 43 | #endif 44 | #define ZLIB_DLL 45 | #endif 46 | 47 | #ifndef STANDALONE 48 | #ifdef __APPLE__ 49 | #include "SDL2/SDL.h" 50 | #include "SDL2/SDL_opengl.h" 51 | #define main SDL_main 52 | #else 53 | #include 54 | #include 55 | #endif 56 | #endif 57 | 58 | #include 59 | 60 | #include 61 | 62 | #include "tools.h" 63 | #include "geom.h" 64 | #include "ents.h" 65 | #include "command.h" 66 | 67 | #ifndef STANDALONE 68 | #include "glexts.h" 69 | #include "glemu.h" 70 | #endif 71 | 72 | #include "iengine.h" 73 | #include "igame.h" 74 | 75 | #endif 76 | 77 | -------------------------------------------------------------------------------- /src/shared/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "cube.h" 2 | -------------------------------------------------------------------------------- /src/vcpp/dpiaware.manifest: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | true 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/vcpp/mingw.rc: -------------------------------------------------------------------------------- 1 | #include "tesseract.rc" 2 | CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "dpiaware.manifest" 3 | -------------------------------------------------------------------------------- /src/vcpp/tesseract.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/vcpp/tesseract.ico -------------------------------------------------------------------------------- /src/vcpp/tesseract.nsi: -------------------------------------------------------------------------------- 1 | Name "Tesseract" 2 | 3 | OutFile "tesseract_20YY_MM_DD_foo_edition_windows.exe" 4 | 5 | InstallDir $PROGRAMFILES\Tesseract 6 | 7 | InstallDirRegKey HKLM "Software\Tesseract" "Install_Dir" 8 | 9 | SetCompressor /SOLID lzma 10 | XPStyle on 11 | 12 | Page components 13 | Page directory 14 | Page instfiles 15 | 16 | UninstPage uninstConfirm 17 | UninstPage instfiles 18 | 19 | Section "Tesseract (required)" 20 | 21 | SectionIn RO 22 | 23 | SetOutPath $INSTDIR 24 | 25 | File /r "..\..\*.*" 26 | 27 | WriteRegStr HKLM SOFTWARE\Tesseract "Install_Dir" "$INSTDIR" 28 | 29 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tesseract" "DisplayName" "Tesseract" 30 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tesseract" "UninstallString" '"$INSTDIR\uninstall.exe"' 31 | WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tesseract" "NoModify" 1 32 | WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tesseract" "NoRepair" 1 33 | WriteUninstaller "uninstall.exe" 34 | 35 | IfFileExists "$DOCUMENTS\My Games\Tesseract\config\saved.cfg" ConfigFound NoConfig 36 | ConfigFound: 37 | Delete "$DOCUMENTS\My Games\Tesseract\config\old-saved.cfg" 38 | Rename "$DOCUMENTS\My Games\Tesseract\config\saved.cfg" "$DOCUMENTS\My Games\Tesseract\config\old-saved.cfg" 39 | NoConfig: 40 | 41 | SectionEnd 42 | 43 | Section "Start Menu Shortcuts" 44 | 45 | CreateDirectory "$SMPROGRAMS\Tesseract" 46 | 47 | CreateDirectory "$DOCUMENTS\My Games\Tesseract" 48 | 49 | SetOutPath "$INSTDIR" 50 | 51 | CreateShortCut "$INSTDIR\Tesseract.lnk" "$INSTDIR\tesseract.bat" "" "$INSTDIR\bin\tesseract.exe" 0 SW_SHOWMINIMIZED 52 | CreateShortCut "$SMPROGRAMS\Tesseract\Tesseract.lnk" "$INSTDIR\tesseract.bat" "" "$INSTDIR\bin\tesseract.exe" 0 SW_SHOWMINIMIZED 53 | ; CreateShortCut "$SMPROGRAMS\Tesseract\README.lnk" "$INSTDIR\README.html" "" "$INSTDIR\README.html" 0 54 | 55 | CreateShortCut "$INSTDIR\User Data.lnk" "$DOCUMENTS\My Games\Tesseract" 56 | CreateShortCut "$SMPROGRAMS\Tesseract\User Data.lnk" "$DOCUMENTS\My Games\Tesseract" 57 | 58 | CreateShortCut "$SMPROGRAMS\Tesseract\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 59 | SectionEnd 60 | 61 | Section "Uninstall" 62 | 63 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tesseract" 64 | DeleteRegKey HKLM SOFTWARE\Tesseract 65 | 66 | RMDir /r "$SMPROGRAMS\Tesseract" 67 | RMDir /r "$INSTDIR" 68 | 69 | SectionEnd 70 | -------------------------------------------------------------------------------- /src/vcpp/tesseract.rc: -------------------------------------------------------------------------------- 1 | #include "winresrc.h" 2 | #define IDI_ICON1 1 3 | 4 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 5 | IDI_ICON1 ICON "tesseract.ico" 6 | -------------------------------------------------------------------------------- /src/vcpp/tesseract.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tesseract", "tesseract.vcxproj", "{06594C6D-6DA9-49DC-9A91-8F47221DDCFD}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Debug|x64 = Debug|x64 10 | Profile|Win32 = Profile|Win32 11 | Profile|x64 = Profile|x64 12 | Release|Win32 = Release|Win32 13 | Release|x64 = Release|x64 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Debug|Win32.Build.0 = Debug|Win32 18 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Debug|x64.ActiveCfg = Debug|x64 19 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Debug|x64.Build.0 = Debug|x64 20 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Profile|Win32.ActiveCfg = Profile|Win32 21 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Profile|Win32.Build.0 = Profile|Win32 22 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Profile|x64.ActiveCfg = Profile|x64 23 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Profile|x64.Build.0 = Profile|x64 24 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Release|Win32.ActiveCfg = Release|Win32 25 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Release|Win32.Build.0 = Release|Win32 26 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Release|x64.ActiveCfg = Release|x64 27 | {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Release|x64.Build.0 = Release|x64 28 | EndGlobalSection 29 | GlobalSection(SolutionProperties) = preSolution 30 | HideSolutionNode = FALSE 31 | EndGlobalSection 32 | EndGlobal 33 | -------------------------------------------------------------------------------- /src/xcode/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /src/xcode/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/SDL2: -------------------------------------------------------------------------------- 1 | Versions/Current/SDL2 -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_bits.h 24 | * 25 | * Functions for fiddling with bits and bitmasks. 26 | */ 27 | 28 | #ifndef _SDL_bits_h 29 | #define _SDL_bits_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \file SDL_bits.h 41 | */ 42 | 43 | /** 44 | * Get the index of the most significant bit. Result is undefined when called 45 | * with 0. This operation can also be stated as "count leading zeroes" and 46 | * "log base 2". 47 | * 48 | * \return Index of the most significant bit, or -1 if the value is 0. 49 | */ 50 | SDL_FORCE_INLINE int 51 | SDL_MostSignificantBitIndex32(Uint32 x) 52 | { 53 | #if defined(__GNUC__) && __GNUC__ >= 4 54 | /* Count Leading Zeroes builtin in GCC. 55 | * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html 56 | */ 57 | if (x == 0) { 58 | return -1; 59 | } 60 | return 31 - __builtin_clz(x); 61 | #else 62 | /* Based off of Bit Twiddling Hacks by Sean Eron Anderson 63 | * , released in the public domain. 64 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog 65 | */ 66 | const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000}; 67 | const int S[] = {1, 2, 4, 8, 16}; 68 | 69 | int msbIndex = 0; 70 | int i; 71 | 72 | if (x == 0) { 73 | return -1; 74 | } 75 | 76 | for (i = 4; i >= 0; i--) 77 | { 78 | if (x & b[i]) 79 | { 80 | x >>= S[i]; 81 | msbIndex |= S[i]; 82 | } 83 | } 84 | 85 | return msbIndex; 86 | #endif 87 | } 88 | 89 | /* Ends C function definitions when using C++ */ 90 | #ifdef __cplusplus 91 | } 92 | #endif 93 | #include "close_code.h" 94 | 95 | #endif /* _SDL_bits_h */ 96 | 97 | /* vi: set ts=4 sw=4 expandtab: */ 98 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_blendmode.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_blendmode.h 24 | * 25 | * Header file declaring the SDL_BlendMode enumeration 26 | */ 27 | 28 | #ifndef _SDL_blendmode_h 29 | #define _SDL_blendmode_h 30 | 31 | #include "begin_code.h" 32 | /* Set up for C function definitions, even when using C++ */ 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | /** 38 | * \brief The blend mode used in SDL_RenderCopy() and drawing operations. 39 | */ 40 | typedef enum 41 | { 42 | SDL_BLENDMODE_NONE = 0x00000000, /**< no blending 43 | dstRGBA = srcRGBA */ 44 | SDL_BLENDMODE_BLEND = 0x00000001, /**< alpha blending 45 | dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA)) 46 | dstA = srcA + (dstA * (1-srcA)) */ 47 | SDL_BLENDMODE_ADD = 0x00000002, /**< additive blending 48 | dstRGB = (srcRGB * srcA) + dstRGB 49 | dstA = dstA */ 50 | SDL_BLENDMODE_MOD = 0x00000004 /**< color modulate 51 | dstRGB = srcRGB * dstRGB 52 | dstA = dstA */ 53 | } SDL_BlendMode; 54 | 55 | /* Ends C function definitions when using C++ */ 56 | #ifdef __cplusplus 57 | } 58 | #endif 59 | #include "close_code.h" 60 | 61 | #endif /* _SDL_video_h */ 62 | 63 | /* vi: set ts=4 sw=4 expandtab: */ 64 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef _SDL_clipboard_h 29 | #define _SDL_clipboard_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | /** 42 | * \brief Put UTF-8 text into the clipboard 43 | * 44 | * \sa SDL_GetClipboardText() 45 | */ 46 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 47 | 48 | /** 49 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 50 | * 51 | * \sa SDL_SetClipboardText() 52 | */ 53 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 54 | 55 | /** 56 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 57 | * 58 | * \sa SDL_GetClipboardText() 59 | */ 60 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 61 | 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* _SDL_clipboard_h */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_config_h 23 | #define _SDL_config_h 24 | 25 | #include "SDL_platform.h" 26 | 27 | /** 28 | * \file SDL_config.h 29 | */ 30 | 31 | /* Add any platform that doesn't build using the configure system. */ 32 | #if defined(__WIN32__) 33 | #include "SDL_config_windows.h" 34 | #elif defined(__MACOSX__) 35 | #include "SDL_config_macosx.h" 36 | #elif defined(__IPHONEOS__) 37 | #include "SDL_config_iphoneos.h" 38 | #elif defined(__ANDROID__) 39 | #include "SDL_config_android.h" 40 | #elif defined(__PSP__) 41 | #include "SDL_config_psp.h" 42 | #else 43 | /* This is a minimal configuration just to get SDL running on new platforms */ 44 | #include "SDL_config_minimal.h" 45 | #endif /* platform config */ 46 | 47 | #ifdef USING_GENERATED_CONFIG_H 48 | #error Wrong SDL_config.h, check your include path? 49 | #endif 50 | 51 | #endif /* _SDL_config_h */ 52 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_error.h 24 | * 25 | * Simple error message routines for SDL. 26 | */ 27 | 28 | #ifndef _SDL_error_h 29 | #define _SDL_error_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Public functions */ 40 | /* SDL_SetError() unconditionally returns -1. */ 41 | extern DECLSPEC int SDLCALL SDL_SetError(const char *fmt, ...); 42 | extern DECLSPEC const char *SDLCALL SDL_GetError(void); 43 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 44 | 45 | /** 46 | * \name Internal error functions 47 | * 48 | * \internal 49 | * Private error reporting function - used internally. 50 | */ 51 | /* @{ */ 52 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 53 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 54 | #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) 55 | typedef enum 56 | { 57 | SDL_ENOMEM, 58 | SDL_EFREAD, 59 | SDL_EFWRITE, 60 | SDL_EFSEEK, 61 | SDL_UNSUPPORTED, 62 | SDL_LASTERROR 63 | } SDL_errorcode; 64 | /* SDL_Error() unconditionally returns -1. */ 65 | extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code); 66 | /* @} *//* Internal error functions */ 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* _SDL_error_h */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_gesture.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_gesture.h 24 | * 25 | * Include file for SDL gesture event handling. 26 | */ 27 | 28 | #ifndef _SDL_gesture_h 29 | #define _SDL_gesture_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "SDL_touch.h" 36 | 37 | 38 | #include "begin_code.h" 39 | /* Set up for C function definitions, even when using C++ */ 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef Sint64 SDL_GestureID; 45 | 46 | /* Function prototypes */ 47 | 48 | /** 49 | * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 50 | * 51 | * 52 | */ 53 | extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 54 | 55 | 56 | /** 57 | * \brief Save all currently loaded Dollar Gesture templates 58 | * 59 | * 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *src); 62 | 63 | /** 64 | * \brief Save a currently loaded Dollar Gesture template 65 | * 66 | * 67 | */ 68 | extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *src); 69 | 70 | 71 | /** 72 | * \brief Load Dollar Gesture templates from a file 73 | * 74 | * 75 | */ 76 | extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 77 | 78 | 79 | /* Ends C function definitions when using C++ */ 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | #include "close_code.h" 84 | 85 | #endif /* _SDL_gesture_h */ 86 | 87 | /* vi: set ts=4 sw=4 expandtab: */ 88 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_loadso.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_loadso.h 24 | * 25 | * System dependent library loading routines 26 | * 27 | * Some things to keep in mind: 28 | * \li These functions only work on C function names. Other languages may 29 | * have name mangling and intrinsic language support that varies from 30 | * compiler to compiler. 31 | * \li Make sure you declare your function pointers with the same calling 32 | * convention as the actual library function. Your code will crash 33 | * mysteriously if you do not do this. 34 | * \li Avoid namespace collisions. If you load a symbol from the library, 35 | * it is not defined whether or not it goes into the global symbol 36 | * namespace for the application. If it does and it conflicts with 37 | * symbols in your code or other shared libraries, you will not get 38 | * the results you expect. :) 39 | */ 40 | 41 | #ifndef _SDL_loadso_h 42 | #define _SDL_loadso_h 43 | 44 | #include "SDL_stdinc.h" 45 | #include "SDL_error.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /** 54 | * This function dynamically loads a shared object and returns a pointer 55 | * to the object handle (or NULL if there was an error). 56 | * The 'sofile' parameter is a system dependent name of the object file. 57 | */ 58 | extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile); 59 | 60 | /** 61 | * Given an object handle, this function looks up the address of the 62 | * named function in the shared object and returns it. This address 63 | * is no longer valid after calling SDL_UnloadObject(). 64 | */ 65 | extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, 66 | const char *name); 67 | 68 | /** 69 | * Unload a shared object from memory. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* _SDL_loadso_h */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_name.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SDLname_h_ 3 | #define _SDLname_h_ 4 | 5 | #if defined(__STDC__) || defined(__cplusplus) 6 | #define NeedFunctionPrototypes 1 7 | #endif 8 | 9 | #define SDL_NAME(X) SDL_##X 10 | 11 | #endif /* _SDLname_h_ */ 12 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | 28 | #ifdef __IPHONEOS__ 29 | #include 30 | #include 31 | #else 32 | #include 33 | #include 34 | #endif 35 | 36 | #ifndef APIENTRY 37 | #define APIENTRY 38 | #endif 39 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_opengles2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 2.0 API headers. 26 | */ 27 | 28 | #ifdef __IPHONEOS__ 29 | #include 30 | #include 31 | #else 32 | #include 33 | #include 34 | #endif 35 | 36 | #ifndef APIENTRY 37 | #define APIENTRY 38 | #endif 39 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_power.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_power_h 23 | #define _SDL_power_h 24 | 25 | /** 26 | * \file SDL_power.h 27 | * 28 | * Header for the SDL power management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief The basic state for the system's power supply. 41 | */ 42 | typedef enum 43 | { 44 | SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */ 45 | SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */ 46 | SDL_POWERSTATE_NO_BATTERY, /**< Plugged in, no battery available */ 47 | SDL_POWERSTATE_CHARGING, /**< Plugged in, charging battery */ 48 | SDL_POWERSTATE_CHARGED /**< Plugged in, battery charged */ 49 | } SDL_PowerState; 50 | 51 | 52 | /** 53 | * \brief Get the current power supply details. 54 | * 55 | * \param secs Seconds of battery life left. You can pass a NULL here if 56 | * you don't care. Will return -1 if we can't determine a 57 | * value, or we're not running on a battery. 58 | * 59 | * \param pct Percentage of battery life left, between 0 and 100. You can 60 | * pass a NULL here if you don't care. Will return -1 if we 61 | * can't determine a value, or we're not running on a battery. 62 | * 63 | * \return The state of the battery (if any). 64 | */ 65 | extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 66 | 67 | /* Ends C function definitions when using C++ */ 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* _SDL_power_h */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef _SDL_quit_h 29 | #define _SDL_quit_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* _SDL_quit_h */ 59 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-7890:c031abe0b287" 2 | #define SDL_REVISION_NUMBER 7890 3 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_touch.h 24 | * 25 | * Include file for SDL touch event handling. 26 | */ 27 | 28 | #ifndef _SDL_touch_h 29 | #define _SDL_touch_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "begin_code.h" 36 | /* Set up for C function definitions, even when using C++ */ 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | typedef Sint64 SDL_TouchID; 42 | typedef Sint64 SDL_FingerID; 43 | 44 | typedef struct SDL_Finger 45 | { 46 | SDL_FingerID id; 47 | float x; 48 | float y; 49 | float pressure; 50 | } SDL_Finger; 51 | 52 | /* Used as the device ID for mouse events simulated with touch input */ 53 | #define SDL_TOUCH_MOUSEID ((Uint32)-1) 54 | 55 | 56 | /* Function prototypes */ 57 | 58 | /** 59 | * \brief Get the number of registered touch devices. 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); 62 | 63 | /** 64 | * \brief Get the touch ID with the given index, or 0 if the index is invalid. 65 | */ 66 | extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index); 67 | 68 | /** 69 | * \brief Get the number of active fingers for a given touch device. 70 | */ 71 | extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID); 72 | 73 | /** 74 | * \brief Get the finger object of the given touch, with the given index. 75 | */ 76 | extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index); 77 | 78 | /* Ends C function definitions when using C++ */ 79 | #ifdef __cplusplus 80 | } 81 | #endif 82 | #include "close_code.h" 83 | 84 | #endif /* _SDL_touch_h */ 85 | 86 | /* vi: set ts=4 sw=4 expandtab: */ 87 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Headers/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #undef _begin_code_h 30 | 31 | /* Reset structure packing at previous byte alignment */ 32 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__) 33 | #ifdef __BORLANDC__ 34 | #pragma nopackwarning 35 | #endif 36 | #pragma pack(pop) 37 | #endif /* Compiler needs structure packing set */ 38 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 12F45 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | SDL2 11 | CFBundleGetInfoString 12 | http://www.libsdl.org 13 | CFBundleIdentifier 14 | org.libsdl.SDL2 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | Simple DirectMedia Layer 19 | CFBundlePackageType 20 | FMWK 21 | CFBundleShortVersionString 22 | 2.0.1 23 | CFBundleSignature 24 | SDLX 25 | CFBundleVersion 26 | 2.0.1 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 5A1413 31 | DTPlatformVersion 32 | GM 33 | DTSDKBuild 34 | 12D75 35 | DTSDKName 36 | macosx10.8 37 | DTXcode 38 | 0500 39 | DTXcodeBuild 40 | 5A1413 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/SDL2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2.framework/Versions/A/SDL2 -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | JRuxtv/EQj2j8iY1LSkIkgO0I/I= 10 | 11 | 12 | rules 13 | 14 | ^Resources/ 15 | 16 | ^Resources/.*\.lproj/ 17 | 18 | optional 19 | 20 | weight 21 | 1000 22 | 23 | ^Resources/.*\.lproj/locversion.plist$ 24 | 25 | omit 26 | 27 | weight 28 | 1100 29 | 30 | ^version.plist$ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Frameworks: -------------------------------------------------------------------------------- 1 | Versions/Current/Frameworks -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/SDL2_image: -------------------------------------------------------------------------------- 1 | Versions/Current/SDL2_image -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Headers/webp/types.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Google Inc. All Rights Reserved. 2 | // 3 | // This code is licensed under the same terms as WebM: 4 | // Software License Agreement: http://www.webmproject.org/license/software/ 5 | // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ 6 | // ----------------------------------------------------------------------------- 7 | // 8 | // Common types 9 | // 10 | // Author: Skal (pascal.massimino@gmail.com) 11 | 12 | #ifndef WEBP_WEBP_TYPES_H_ 13 | #define WEBP_WEBP_TYPES_H_ 14 | 15 | #include // for size_t 16 | 17 | #ifndef _MSC_VER 18 | #include 19 | #ifdef __STRICT_ANSI__ 20 | #define WEBP_INLINE 21 | #else /* __STRICT_ANSI__ */ 22 | #define WEBP_INLINE inline 23 | #endif 24 | #else 25 | typedef signed char int8_t; 26 | typedef unsigned char uint8_t; 27 | typedef signed short int16_t; 28 | typedef unsigned short uint16_t; 29 | typedef signed int int32_t; 30 | typedef unsigned int uint32_t; 31 | typedef unsigned long long int uint64_t; 32 | typedef long long int int64_t; 33 | #define WEBP_INLINE __forceinline 34 | #endif /* _MSC_VER */ 35 | 36 | #ifndef WEBP_EXTERN 37 | // This explicitly marks library functions and allows for changing the 38 | // signature for e.g., Windows DLL builds. 39 | #define WEBP_EXTERN(type) extern type 40 | #endif /* WEBP_EXTERN */ 41 | 42 | // Macro to check ABI compatibility (same major revision number) 43 | #define WEBP_ABI_IS_INCOMPATIBLE(a, b) (((a) >> 8) != ((b) >> 8)) 44 | 45 | #endif /* WEBP_WEBP_TYPES_H_ */ 46 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/LICENSE.webp.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | http://www.libsdl.org/projects/SDL_image/libs/ 3 | --- 4 | 5 | Copyright (c) 2010, Google Inc. All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions are 9 | met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in 16 | the documentation and/or other materials provided with the 17 | distribution. 18 | 19 | * Neither the name of Google nor the names of its contributors may 20 | be used to endorse or promote products derived from this software 21 | without specific prior written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 29 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | webp 9 | CFBundleGetInfoString 10 | libwebp 0.1.3 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | webp 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 0.1.3 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/A/Headers/webp/types.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Google Inc. All Rights Reserved. 2 | // 3 | // This code is licensed under the same terms as WebM: 4 | // Software License Agreement: http://www.webmproject.org/license/software/ 5 | // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ 6 | // ----------------------------------------------------------------------------- 7 | // 8 | // Common types 9 | // 10 | // Author: Skal (pascal.massimino@gmail.com) 11 | 12 | #ifndef WEBP_WEBP_TYPES_H_ 13 | #define WEBP_WEBP_TYPES_H_ 14 | 15 | #include // for size_t 16 | 17 | #ifndef _MSC_VER 18 | #include 19 | #ifdef __STRICT_ANSI__ 20 | #define WEBP_INLINE 21 | #else /* __STRICT_ANSI__ */ 22 | #define WEBP_INLINE inline 23 | #endif 24 | #else 25 | typedef signed char int8_t; 26 | typedef unsigned char uint8_t; 27 | typedef signed short int16_t; 28 | typedef unsigned short uint16_t; 29 | typedef signed int int32_t; 30 | typedef unsigned int uint32_t; 31 | typedef unsigned long long int uint64_t; 32 | typedef long long int int64_t; 33 | #define WEBP_INLINE __forceinline 34 | #endif /* _MSC_VER */ 35 | 36 | #ifndef WEBP_EXTERN 37 | // This explicitly marks library functions and allows for changing the 38 | // signature for e.g., Windows DLL builds. 39 | #define WEBP_EXTERN(type) extern type 40 | #endif /* WEBP_EXTERN */ 41 | 42 | // Macro to check ABI compatibility (same major revision number) 43 | #define WEBP_ABI_IS_INCOMPATIBLE(a, b) (((a) >> 8) != ((b) >> 8)) 44 | 45 | #endif /* WEBP_WEBP_TYPES_H_ */ 46 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/A/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/A/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | webp 9 | CFBundleGetInfoString 10 | libwebp 0.1.3 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | webp 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 0.1.3 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/English.lproj/InfoPlist.strings 8 | 9 | hash 10 | 11 | hR2cZIxfKUdqrI5n/tbc5YRa0dQ= 12 | 13 | optional 14 | 15 | 16 | Resources/Info.plist 17 | 18 | JQA5GLP9cIbArAnod8n9CRtOHFE= 19 | 20 | 21 | rules 22 | 23 | ^Resources/ 24 | 25 | ^Resources/.*\.lproj/ 26 | 27 | optional 28 | 29 | weight 30 | 1000 31 | 32 | ^Resources/.*\.lproj/locversion.plist$ 33 | 34 | omit 35 | 36 | weight 37 | 1100 38 | 39 | ^version.plist$ 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/A/webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/A/webp -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/Current/Headers/webp/types.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Google Inc. All Rights Reserved. 2 | // 3 | // This code is licensed under the same terms as WebM: 4 | // Software License Agreement: http://www.webmproject.org/license/software/ 5 | // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ 6 | // ----------------------------------------------------------------------------- 7 | // 8 | // Common types 9 | // 10 | // Author: Skal (pascal.massimino@gmail.com) 11 | 12 | #ifndef WEBP_WEBP_TYPES_H_ 13 | #define WEBP_WEBP_TYPES_H_ 14 | 15 | #include // for size_t 16 | 17 | #ifndef _MSC_VER 18 | #include 19 | #ifdef __STRICT_ANSI__ 20 | #define WEBP_INLINE 21 | #else /* __STRICT_ANSI__ */ 22 | #define WEBP_INLINE inline 23 | #endif 24 | #else 25 | typedef signed char int8_t; 26 | typedef unsigned char uint8_t; 27 | typedef signed short int16_t; 28 | typedef unsigned short uint16_t; 29 | typedef signed int int32_t; 30 | typedef unsigned int uint32_t; 31 | typedef unsigned long long int uint64_t; 32 | typedef long long int int64_t; 33 | #define WEBP_INLINE __forceinline 34 | #endif /* _MSC_VER */ 35 | 36 | #ifndef WEBP_EXTERN 37 | // This explicitly marks library functions and allows for changing the 38 | // signature for e.g., Windows DLL builds. 39 | #define WEBP_EXTERN(type) extern type 40 | #endif /* WEBP_EXTERN */ 41 | 42 | // Macro to check ABI compatibility (same major revision number) 43 | #define WEBP_ABI_IS_INCOMPATIBLE(a, b) (((a) >> 8) != ((b) >> 8)) 44 | 45 | #endif /* WEBP_WEBP_TYPES_H_ */ 46 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | webp 9 | CFBundleGetInfoString 10 | libwebp 0.1.3 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | webp 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 0.1.3 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/Current/webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/Versions/Current/webp -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_image.framework/Versions/A/Frameworks/webp.framework/webp -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 12E55 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | SDL2_image 11 | CFBundleIdentifier 12 | org.libsdl.SDL2-image 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | SDL2_image 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.0.0 21 | CFBundleVersion 22 | 2.0.0 23 | DTCompiler 24 | 25 | DTPlatformBuild 26 | 4H1503 27 | DTPlatformVersion 28 | GM 29 | DTSDKBuild 30 | 12D75 31 | DTSDKName 32 | macosx10.8 33 | DTXcode 34 | 0463 35 | DTXcodeBuild 36 | 4H1503 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/SDL2_image: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_image.framework/Versions/A/SDL2_image -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | Pr0pXeo9+uzH63FwehZDZKLWPb4= 10 | 11 | 12 | rules 13 | 14 | ^Resources/ 15 | 16 | ^Resources/.*\.lproj/ 17 | 18 | optional 19 | 20 | weight 21 | 1000 22 | 23 | ^Resources/.*\.lproj/locversion.plist$ 24 | 25 | omit 26 | 27 | weight 28 | 1100 29 | 30 | ^version.plist$ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_image.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Frameworks: -------------------------------------------------------------------------------- 1 | Versions/Current/Frameworks -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/SDL2_mixer: -------------------------------------------------------------------------------- 1 | Versions/Current/SDL2_mixer -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/FLAC: -------------------------------------------------------------------------------- 1 | Versions/Current/FLAC -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/LICENSE.FLAC.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | http://www.libsdl.org/projects/SDL_mixer/libs/ 3 | --- 4 | 5 | Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 26 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 28 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 29 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 31 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/FLAC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/FLAC -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/Headers/FLAC/assert.h: -------------------------------------------------------------------------------- 1 | /* libFLAC - Free Lossless Audio Codec library 2 | * Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson 3 | * 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions 6 | * are met: 7 | * 8 | * - Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 11 | * - Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * 15 | * - Neither the name of the Xiph.org Foundation nor the names of its 16 | * contributors may be used to endorse or promote products derived from 17 | * this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 23 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | */ 31 | 32 | #ifndef FLAC__ASSERT_H 33 | #define FLAC__ASSERT_H 34 | 35 | /* we need this since some compilers (like MSVC) leave assert()s on release code (and we don't want to use their ASSERT) */ 36 | #ifdef DEBUG 37 | #include 38 | #define FLAC__ASSERT(x) assert(x) 39 | #define FLAC__ASSERT_DECLARATION(x) x 40 | #else 41 | #define FLAC__ASSERT(x) 42 | #define FLAC__ASSERT_DECLARATION(x) 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/Headers/FLAC/export.h: -------------------------------------------------------------------------------- 1 | /* libFLAC - Free Lossless Audio Codec library 2 | * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson 3 | * 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions 6 | * are met: 7 | * 8 | * - Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 11 | * - Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * 15 | * - Neither the name of the Xiph.org Foundation nor the names of its 16 | * contributors may be used to endorse or promote products derived from 17 | * this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 23 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | */ 31 | 32 | #ifndef FLAC__EXPORT_H 33 | #define FLAC__EXPORT_H 34 | 35 | /** \file include/FLAC/export.h 36 | * 37 | * \brief 38 | * This module contains #defines and symbols for exporting function 39 | * calls, and providing version information and compiled-in features. 40 | * 41 | * See the \link flac_export export \endlink module. 42 | */ 43 | 44 | /** \defgroup flac_export FLAC/export.h: export symbols 45 | * \ingroup flac 46 | * 47 | * \brief 48 | * This module contains #defines and symbols for exporting function 49 | * calls, and providing version information and compiled-in features. 50 | * 51 | * If you are compiling with MSVC and will link to the static library 52 | * (libFLAC.lib) you should define FLAC__NO_DLL in your project to 53 | * make sure the symbols are exported properly. 54 | * 55 | * \{ 56 | */ 57 | 58 | #if defined(FLAC__NO_DLL) || !defined(_MSC_VER) 59 | #define FLAC_API 60 | 61 | #else 62 | 63 | #ifdef FLAC_API_EXPORTS 64 | #define FLAC_API _declspec(dllexport) 65 | #else 66 | #define FLAC_API _declspec(dllimport) 67 | 68 | #endif 69 | #endif 70 | 71 | /** These #defines will mirror the libtool-based library version number, see 72 | * http://www.gnu.org/software/libtool/manual.html#Libtool-versioning 73 | */ 74 | #define FLAC_API_VERSION_CURRENT 10 75 | #define FLAC_API_VERSION_REVISION 0 /**< see above */ 76 | #define FLAC_API_VERSION_AGE 2 /**< see above */ 77 | 78 | #ifdef __cplusplus 79 | extern "C" { 80 | #endif 81 | 82 | /** \c 1 if the library has been compiled with support for Ogg FLAC, else \c 0. */ 83 | extern FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC; 84 | 85 | #ifdef __cplusplus 86 | } 87 | #endif 88 | 89 | /* \} */ 90 | 91 | #endif 92 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/Headers/FLAC/ordinals.h: -------------------------------------------------------------------------------- 1 | /* libFLAC - Free Lossless Audio Codec library 2 | * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson 3 | * 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions 6 | * are met: 7 | * 8 | * - Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 11 | * - Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * 15 | * - Neither the name of the Xiph.org Foundation nor the names of its 16 | * contributors may be used to endorse or promote products derived from 17 | * this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 23 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | */ 31 | 32 | #ifndef FLAC__ORDINALS_H 33 | #define FLAC__ORDINALS_H 34 | 35 | #if !(defined(_MSC_VER) || defined(__BORLANDC__) || defined(__EMX__)) 36 | #include 37 | #endif 38 | 39 | typedef signed char FLAC__int8; 40 | typedef unsigned char FLAC__uint8; 41 | 42 | #if defined(_MSC_VER) || defined(__BORLANDC__) 43 | typedef __int16 FLAC__int16; 44 | typedef __int32 FLAC__int32; 45 | typedef __int64 FLAC__int64; 46 | typedef unsigned __int16 FLAC__uint16; 47 | typedef unsigned __int32 FLAC__uint32; 48 | typedef unsigned __int64 FLAC__uint64; 49 | #elif defined(__EMX__) 50 | typedef short FLAC__int16; 51 | typedef long FLAC__int32; 52 | typedef long long FLAC__int64; 53 | typedef unsigned short FLAC__uint16; 54 | typedef unsigned long FLAC__uint32; 55 | typedef unsigned long long FLAC__uint64; 56 | #else 57 | typedef int16_t FLAC__int16; 58 | typedef int32_t FLAC__int32; 59 | typedef int64_t FLAC__int64; 60 | typedef uint16_t FLAC__uint16; 61 | typedef uint32_t FLAC__uint32; 62 | typedef uint64_t FLAC__uint64; 63 | #endif 64 | 65 | typedef int FLAC__bool; 66 | 67 | typedef FLAC__uint8 FLAC__byte; 68 | 69 | #ifdef true 70 | #undef true 71 | #endif 72 | #ifdef false 73 | #undef false 74 | #endif 75 | #ifndef __cplusplus 76 | #define true 1 77 | #define false 0 78 | #endif 79 | 80 | #endif 81 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | FLAC 9 | CFBundleGetInfoString 10 | libFLAC 1.2.1 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | FLAC 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.2.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.2.1 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/English.lproj/InfoPlist.strings 8 | 9 | hash 10 | 11 | j2eWOF8MeujNuGiOuUJX/p9icME= 12 | 13 | optional 14 | 15 | 16 | Resources/Info.plist 17 | 18 | U0NugdhGt5l2wJIS2IOd6ifvq8Y= 19 | 20 | 21 | rules 22 | 23 | ^Resources/ 24 | 25 | ^Resources/.*\.lproj/ 26 | 27 | optional 28 | 29 | weight 30 | 1000 31 | 32 | ^Resources/.*\.lproj/locversion.plist$ 33 | 34 | omit 35 | 36 | weight 37 | 1100 38 | 39 | ^version.plist$ 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/FLAC.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/LICENSE.ogg-vorbis.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | http://www.libsdl.org/projects/SDL_mixer/libs/ 3 | --- 4 | 5 | Copyright (c) 2002-2008 Xiph.org Foundation 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Ogg: -------------------------------------------------------------------------------- 1 | Versions/Current/Ogg -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Ogg -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 12D78 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | Ogg 11 | CFBundleGetInfoString 12 | Ogg framework 1.1.4, Copyright © 1994-2009 Xiph.Org Foundation 13 | CFBundleIdentifier 14 | org.xiph.ogg 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.1.4 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.1.4 25 | CSResourcesFileMapped 26 | 27 | DTCompiler 28 | 29 | DTPlatformBuild 30 | 4H1003 31 | DTPlatformVersion 32 | GM 33 | DTSDKBuild 34 | 12D75 35 | DTSDKName 36 | macosx10.8 37 | DTXcode 38 | 0462 39 | DTXcodeBuild 40 | 4H1003 41 | NSHumanReadableCopyright 42 | Ogg framework 1.1.4, Copyright © 1994-2009 Xiph.Org Foundation 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/English.lproj/InfoPlist.strings 8 | 9 | hash 10 | 11 | SpvCfw0UsHoD71ReAIyHRtgJ5+8= 12 | 13 | optional 14 | 15 | 16 | Resources/Info.plist 17 | 18 | VZ7nwhRWES3q6ztfCbmZbkiN1zw= 19 | 20 | 21 | rules 22 | 23 | ^Resources/ 24 | 25 | ^Resources/.*\.lproj/ 26 | 27 | optional 28 | 29 | weight 30 | 1000 31 | 32 | ^Resources/.*\.lproj/locversion.plist$ 33 | 34 | omit 35 | 36 | weight 37 | 1100 38 | 39 | ^version.plist$ 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/LICENSE.ogg-vorbis.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | http://www.libsdl.org/projects/SDL_mixer/libs/ 3 | --- 4 | 5 | Copyright (c) 2002-2008 Xiph.org Foundation 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 12D78 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | Vorbis 11 | CFBundleGetInfoString 12 | Vorbis framework 1.2.3, Copyright © 1994-2009 Xiph.Org Foundation 13 | CFBundleIdentifier 14 | org.xiph.vorbis 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.2.3 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.2.3 25 | CSResourcesFileMapped 26 | 27 | DTCompiler 28 | 29 | DTPlatformBuild 30 | 4H1003 31 | DTPlatformVersion 32 | GM 33 | DTSDKBuild 34 | 12D75 35 | DTSDKName 36 | macosx10.8 37 | DTXcode 38 | 0462 39 | DTXcodeBuild 40 | 4H1003 41 | NSHumanReadableCopyright 42 | Vorbis framework 1.2.3, Copyright © 1994-2009 Xiph.Org Foundation 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/Vorbis: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/Vorbis -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/English.lproj/InfoPlist.strings 8 | 9 | hash 10 | 11 | xvZa7r5RUJvaJF/StlZX2cDVlmc= 12 | 13 | optional 14 | 15 | 16 | Resources/Info.plist 17 | 18 | QAy1wcbXHr7RDNBRuIhZbuRFr9E= 19 | 20 | 21 | rules 22 | 23 | ^Resources/ 24 | 25 | ^Resources/.*\.lproj/ 26 | 27 | optional 28 | 29 | weight 30 | 1000 31 | 32 | ^Resources/.*\.lproj/locversion.plist$ 33 | 34 | omit 35 | 36 | weight 37 | 1100 38 | 39 | ^version.plist$ 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Vorbis: -------------------------------------------------------------------------------- 1 | Versions/Current/Vorbis -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/LICENSE.modplug.txt: -------------------------------------------------------------------------------- 1 | ModPlug-XMMS and libmodplug are now in the public domain. 2 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | modplug 9 | CFBundleGetInfoString 10 | libmodplug 0.8.8 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | modplug 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.8.8 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 0.8.8 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | z9M1jtRolj5yvBs/drKclNJtB0c= 10 | 11 | 12 | rules 13 | 14 | ^Resources/ 15 | 16 | ^Resources/.*\.lproj/ 17 | 18 | optional 19 | 20 | weight 21 | 1000 22 | 23 | ^Resources/.*\.lproj/locversion.plist$ 24 | 25 | omit 26 | 27 | weight 28 | 1100 29 | 30 | ^version.plist$ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/Versions/A/modplug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/Versions/A/modplug -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/modplug.framework/modplug: -------------------------------------------------------------------------------- 1 | Versions/Current/modplug -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/Headers/MPEGframe.h: -------------------------------------------------------------------------------- 1 | /* 2 | SMPEG - SDL MPEG Player Library 3 | Copyright (C) 1999 Loki Entertainment Software 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | */ 19 | 20 | /* MPEG video frame */ 21 | 22 | #ifndef _MPEGFRAME_H_ 23 | #define _MPEGFRAME_H_ 24 | 25 | /* A YV12 format video frame */ 26 | typedef struct SMPEG_Frame { 27 | unsigned int w, h; 28 | unsigned int image_width; 29 | unsigned int image_height; 30 | Uint8 *image; 31 | } SMPEG_Frame; 32 | 33 | #endif /* _MPEGFRAME_H_ */ 34 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 12D78 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | smpeg2 11 | CFBundleIdentifier 12 | org.libsdl.smpeg2 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | smpeg2 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.0.0 21 | CFBundleVersion 22 | 2.0.0 23 | DTCompiler 24 | 25 | DTPlatformBuild 26 | 4H1003 27 | DTPlatformVersion 28 | GM 29 | DTSDKBuild 30 | 12D75 31 | DTSDKName 32 | macosx10.8 33 | DTXcode 34 | 0462 35 | DTXcodeBuild 36 | 4H1003 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | saKvKQeg9udEYHv4X7o3gZzGvUM= 10 | 11 | 12 | rules 13 | 14 | ^Resources/ 15 | 16 | ^Resources/.*\.lproj/ 17 | 18 | optional 19 | 20 | weight 21 | 1000 22 | 23 | ^Resources/.*\.lproj/locversion.plist$ 24 | 25 | omit 26 | 27 | weight 28 | 1100 29 | 30 | ^version.plist$ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2 -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/smpeg2: -------------------------------------------------------------------------------- 1 | Versions/Current/smpeg2 -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 12E55 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | SDL2_mixer 11 | CFBundleIdentifier 12 | org.libsdl.SDL2-mixer 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | SDL2_mixer 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.0.0 21 | CFBundleVersion 22 | 2.0.0 23 | DTCompiler 24 | 25 | DTPlatformBuild 26 | 4H1503 27 | DTPlatformVersion 28 | GM 29 | DTSDKBuild 30 | 12D75 31 | DTSDKName 32 | macosx10.8 33 | DTXcode 34 | 0463 35 | DTXcodeBuild 36 | 4H1503 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/SDL2_mixer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/SDL2_mixer -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | ICdcY3F9F+RRJ4X+q1ArMnDUEkk= 10 | 11 | 12 | rules 13 | 14 | ^Resources/ 15 | 16 | ^Resources/.*\.lproj/ 17 | 18 | optional 19 | 20 | weight 21 | 1000 22 | 23 | ^Resources/.*\.lproj/locversion.plist$ 24 | 25 | omit 26 | 27 | weight 28 | 1100 29 | 30 | ^version.plist$ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/xcode/Frameworks/SDL2_mixer.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /src/xcode/Launcher.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface Launcher : NSObject { 4 | @private 5 | NSString *dataPath, *userPath; 6 | NSString *command; 7 | } 8 | @end 9 | -------------------------------------------------------------------------------- /src/xcode/Maps.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/Maps.icns -------------------------------------------------------------------------------- /src/xcode/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "SDL2/SDL.h" 3 | #import "Launcher.h" 4 | 5 | @interface SDLApplication : NSApplication 6 | @end 7 | 8 | @implementation SDLApplication 9 | 10 | // Ensure SDL exits too 11 | - (void)terminate:(id)sender 12 | { 13 | SDL_Event event; 14 | event.type = SDL_QUIT; 15 | SDL_PushEvent(&event); 16 | 17 | [super terminate:sender]; 18 | } 19 | 20 | // Prevent beeps from unhandled keys as a consequence of having enabled SDL_ENABLEAPPEVENTS 21 | - (void)sendEvent:(NSEvent *)anEvent 22 | { 23 | if(NSKeyDown == [anEvent type] || NSKeyUp == [anEvent type]) { 24 | if( [anEvent modifierFlags] & NSCommandKeyMask ) 25 | [super sendEvent: anEvent]; 26 | } else 27 | [super sendEvent: anEvent]; 28 | } 29 | @end 30 | 31 | #ifdef main 32 | # undef main 33 | #endif 34 | 35 | int main(int argc, char *argv[]) 36 | { 37 | BOOL server = NO; 38 | int i; 39 | for(i = 0; i < argc; i++) if(strcmp(argv[i], "-d") == 0) { server = YES; break; } 40 | if(server) return SDL_main(argc, (char**)argv); 41 | 42 | // neither of the followin is necessary as the principal class is set to SDLApplication in the plist 43 | //[SDLApplication sharedApplication]; 44 | //[SDLApplication poseAsClass:[NSApplication class]]; 45 | 46 | return NSApplicationMain(argc, (const char **)argv); 47 | } 48 | -------------------------------------------------------------------------------- /src/xcode/tesseract.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/team-cube/open-cube/ca1365327c3db85138e5779ff0e0262fbedcc782/src/xcode/tesseract.icns -------------------------------------------------------------------------------- /src/xcode/tesseract.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDocumentTypes 8 | 9 | 10 | CFBundleTypeExtensions 11 | 12 | dmo 13 | 14 | CFBundleTypeIconFile 15 | Maps.icns 16 | CFBundleTypeName 17 | Tesseract demo 18 | CFBundleTypeRole 19 | Viewer 20 | LSTypeIsPackage 21 | 22 | NSPersistentStoreTypeKey 23 | Binary 24 | 25 | 26 | CFBundleTypeExtensions 27 | 28 | ogz 29 | 30 | CFBundleTypeIconFile 31 | Maps.icns 32 | CFBundleTypeName 33 | Tesseract map 34 | CFBundleTypeRole 35 | Editor 36 | LSTypeIsPackage 37 | 38 | NSPersistentStoreTypeKey 39 | Binary 40 | 41 | 42 | CFBundleExecutable 43 | tesseract 44 | CFBundleHelpBookFolder 45 | help 46 | CFBundleHelpBookName 47 | Tesseract help 48 | CFBundleIconFile 49 | tesseract 50 | CFBundleIdentifier 51 | com.dot3labs.tesseract 52 | CFBundleInfoDictionaryVersion 53 | 6.0 54 | CFBundlePackageType 55 | APPL 56 | CFBundleSignature 57 | ???? 58 | CFBundleURLTypes 59 | 60 | 61 | CFBundleTypeRole 62 | Editor 63 | CFBundleURLName 64 | TesseractServer 65 | CFBundleURLSchemes 66 | 67 | tesseract 68 | 69 | 70 | 71 | CFBundleVersion 72 | 1.4 73 | LSMinimumSystemVersionByArchitecture 74 | 75 | i386 76 | 10.5.0 77 | x86_64 78 | 10.6.0 79 | 80 | NSMainNibFile 81 | MainMenu 82 | NSPrincipalClass 83 | SDLApplication 84 | 85 | 86 | -------------------------------------------------------------------------------- /tesseract.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | set TESS_BIN=bin 4 | 5 | IF EXIST bin64\tesseract.exe ( 6 | IF /I "%PROCESSOR_ARCHITECTURE%" == "amd64" ( 7 | set TESS_BIN=bin64 8 | ) 9 | IF /I "%PROCESSOR_ARCHITEW6432%" == "amd64" ( 10 | set TESS_BIN=bin64 11 | ) 12 | ) 13 | 14 | start %TESS_BIN%\tesseract.exe "-u$HOME\My Games\Tesseract" -glog.txt %* 15 | -------------------------------------------------------------------------------- /tesseract_unix: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # TESS_DATA should refer to the directory in which Tesseract data files are placed. 3 | #TESS_DATA=~/tesseract 4 | #TESS_DATA=/usr/local/tesseract 5 | TESS_DATA=. 6 | 7 | # TESS_BIN should refer to the directory in which Tesseract executable files are placed. 8 | TESS_BIN=${TESS_DATA}/bin_unix 9 | 10 | # TESS_OPTIONS contains any command line options you would like to start Tesseract with. 11 | #TESS_OPTIONS="" 12 | TESS_OPTIONS="-u${HOME}/.tesseract" 13 | 14 | # SYSTEM_NAME should be set to the name of your operating system. 15 | #SYSTEM_NAME=Linux 16 | SYSTEM_NAME=`uname -s` 17 | 18 | # MACHINE_NAME should be set to the name of your processor. 19 | #MACHINE_NAME=i686 20 | MACHINE_NAME=`uname -m` 21 | 22 | case ${SYSTEM_NAME} in 23 | Linux) 24 | SYSTEM_NAME=linux_ 25 | ;; 26 | *) 27 | SYSTEM_NAME=unknown_ 28 | ;; 29 | esac 30 | 31 | case ${MACHINE_NAME} in 32 | i486|i586|i686) 33 | MACHINE_NAME= 34 | ;; 35 | x86_64|amd64) 36 | MACHINE_NAME=64_ 37 | ;; 38 | *) 39 | if [ ${SYSTEM_NAME} != native_ ] 40 | then 41 | SYSTEM_NAME=native_ 42 | fi 43 | MACHINE_NAME= 44 | ;; 45 | esac 46 | 47 | if [ -x ${TESS_BIN}/native_client ] 48 | then 49 | SYSTEM_NAME=native_ 50 | MACHINE_NAME= 51 | fi 52 | 53 | if [ -x ${TESS_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ] 54 | then 55 | cd ${TESS_DATA} 56 | exec ${TESS_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ${TESS_OPTIONS} "$@" 57 | else 58 | echo "Your platform does not have a pre-compiled Tesseract client." 59 | echo "Please follow the following steps to build a native client:" 60 | echo "1) Ensure you have the SDL2, SDL2-image, SDL2-mixer, and OpenGL libraries installed." 61 | echo "2) Type \"make -C src install\"." 62 | echo "3) If the build succeeds, run this script again." 63 | exit 1 64 | fi 65 | 66 | --------------------------------------------------------------------------------