├── .gitignore ├── 1ST_READ.BIN ├── LICENSE.md ├── Makefile ├── Makefile_quake_dreamsdk.dc ├── README.md ├── credits.txt ├── data └── font.bmp ├── deps ├── GLdc-master │ ├── .gitattributes │ ├── .gitignore │ ├── .gitlab-ci.yml │ ├── CMakeLists.txt │ ├── GL │ │ ├── alloc │ │ │ ├── alloc.c │ │ │ └── alloc.h │ │ ├── config.h │ │ ├── draw.c │ │ ├── draw_fastpath.inc │ │ ├── error.c │ │ ├── flush.c │ │ ├── fog.c │ │ ├── framebuffer.c │ │ ├── gl_assert.h │ │ ├── glu.c │ │ ├── immediate.c │ │ ├── lighting.c │ │ ├── matrix.c │ │ ├── platform.h │ │ ├── platforms │ │ │ ├── sh4.c │ │ │ ├── sh4.h │ │ │ ├── sh4_math.h │ │ │ ├── software.c │ │ │ ├── software.h │ │ │ └── software │ │ │ │ ├── edge_equation.c │ │ │ │ ├── edge_equation.h │ │ │ │ ├── parameter_equation.c │ │ │ │ └── parameter_equation.h │ │ ├── private.h │ │ ├── state.c │ │ ├── texture.c │ │ ├── types.h │ │ ├── util.c │ │ └── version.c.in │ ├── LICENSE │ ├── README.md │ ├── containers │ │ ├── aligned_vector.c │ │ ├── aligned_vector.h │ │ ├── named_array.c │ │ ├── named_array.h │ │ ├── stack.c │ │ └── stack.h │ ├── include │ │ └── GL │ │ │ ├── gl.h │ │ │ ├── glext.h │ │ │ ├── glkos.h │ │ │ └── glu.h │ ├── samples │ │ ├── blend_test │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── cubes │ │ │ └── main.cpp │ │ ├── depth_funcs │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── depth_funcs_alpha_testing │ │ │ ├── gl_png.c │ │ │ ├── gl_png.h │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── convertToDtex.sh │ │ │ │ ├── disk.png │ │ │ │ ├── disk_1555.dtex │ │ │ │ ├── disk_4444.dtex │ │ │ │ ├── disk_565.dtex │ │ │ │ ├── preview_1555.png │ │ │ │ ├── preview_4444.png │ │ │ │ ├── preview_565.png │ │ │ │ └── spritesheet.dtex │ │ ├── depth_funcs_ortho │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── lerabot01 │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── NeHe.bmp │ │ │ │ ├── PLACEHOLDER │ │ │ │ └── flag1.bmp │ │ ├── lights │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── NeHe.bmp │ │ │ │ └── PLACEHOLDER │ │ ├── loadbmp.c │ │ ├── loadbmp.h │ │ ├── mipmap │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── NeHe.bmp │ │ │ │ └── PLACEHOLDER │ │ ├── multitexture_arrays │ │ │ ├── main.c │ │ │ ├── pvr-texture.c │ │ │ └── romdisk │ │ │ │ ├── FlareWS_256.pvr │ │ │ │ ├── PLACEHOLDER │ │ │ │ └── wp001vq.pvr │ │ ├── nehe02 │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── nehe02de │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── nehe02va │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── nehe03 │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── nehe04 │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── nehe05 │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── nehe06 │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── NeHe.bmp │ │ │ │ └── PLACEHOLDER │ │ ├── nehe06_4444twid │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── NeHe.bmp │ │ │ │ ├── NeHe.png │ │ │ │ ├── NeHe.tex │ │ │ │ └── PLACEHOLDER │ │ ├── nehe06_vq │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── NeHe.bmp │ │ │ │ ├── NeHe.png │ │ │ │ ├── NeHe.tex │ │ │ │ └── PLACEHOLDER │ │ ├── nehe08 │ │ │ ├── main.c │ │ │ ├── pvr-texture.c │ │ │ └── romdisk │ │ │ │ └── glass.pvr │ │ ├── nehe10 │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── brick.bmp │ │ │ │ └── world.txt │ │ ├── nehe20 │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── image1.bmp │ │ │ │ ├── image2.bmp │ │ │ │ ├── logo.bmp │ │ │ │ ├── mask1.bmp │ │ │ │ └── mask2.bmp │ │ ├── ortho2d │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── paletted │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── NeHe.bmp │ │ │ │ ├── NeHe.tex │ │ │ │ ├── NeHe.tex.pal │ │ │ │ └── PLACEHOLDER │ │ ├── paletted_pcx │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── NeHe-Alpha.bmp │ │ │ │ ├── NeHe-Alpha.pcx │ │ │ │ ├── NeHe.bmp │ │ │ │ ├── NeHe.pcx │ │ │ │ └── PLACEHOLDER │ │ ├── polygon_offset │ │ │ └── main.c │ │ ├── polymark │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── primitive_modes │ │ │ └── main.c │ │ ├── prof_texture_upload │ │ │ ├── image.h │ │ │ └── main.c │ │ ├── profiler.c │ │ ├── profiler.h │ │ ├── quadmark │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── scissor │ │ │ └── main.c │ │ ├── terrain │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── trimark │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ └── PLACEHOLDER │ │ ├── zclip │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── PLACEHOLDER │ │ │ │ ├── facade00.tga │ │ │ │ ├── facade01.tga │ │ │ │ ├── facade02.tga │ │ │ │ ├── floor.tga │ │ │ │ └── lightmap.tga │ │ ├── zclip_triangle │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ │ ├── PLACEHOLDER │ │ │ │ ├── facade00.tga │ │ │ │ ├── facade01.tga │ │ │ │ ├── facade02.tga │ │ │ │ └── floor.tga │ │ └── zclip_trianglestrip │ │ │ ├── main.c │ │ │ └── romdisk │ │ │ ├── PLACEHOLDER │ │ │ ├── facade00.tga │ │ │ ├── facade01.tga │ │ │ ├── facade02.tga │ │ │ └── floor.tga │ ├── tests │ │ ├── CMakeLists.txt │ │ ├── test_allocator.h │ │ ├── test_glteximage2d.h │ │ └── zclip │ │ │ └── main.cpp │ ├── toolchains │ │ └── Dreamcast.cmake │ └── tools │ │ ├── test.h │ │ └── test_generator.py ├── SDL │ ├── include │ │ ├── SDL.h │ │ ├── SDL_active.h │ │ ├── SDL_audio.h │ │ ├── SDL_byteorder.h │ │ ├── SDL_cdrom.h │ │ ├── SDL_config.h │ │ ├── SDL_config.h.default │ │ ├── SDL_config.h.in │ │ ├── SDL_config_dreamcast.h │ │ ├── SDL_config_macos.h │ │ ├── SDL_config_macosx.h │ │ ├── SDL_config_minimal.h │ │ ├── SDL_config_nds.h │ │ ├── SDL_config_os2.h │ │ ├── SDL_config_symbian.h │ │ ├── SDL_config_win32.h │ │ ├── SDL_copying.h │ │ ├── SDL_cpuinfo.h │ │ ├── SDL_dreamcast.h │ │ ├── SDL_endian.h │ │ ├── SDL_error.h │ │ ├── SDL_events.h │ │ ├── SDL_framerate.h │ │ ├── SDL_getenv.h │ │ ├── SDL_gfxPrimitives.h │ │ ├── SDL_gfxPrimitives_font.h │ │ ├── SDL_gfx_10x20_fnt.h │ │ ├── SDL_gfx_5x7_fnt.h │ │ ├── SDL_gfx_5x8_fnt.h │ │ ├── SDL_gfx_6x10_fnt.h │ │ ├── SDL_gfx_6x12_fnt.h │ │ ├── SDL_gfx_6x13B_fnt.h │ │ ├── SDL_gfx_6x13O_fnt.h │ │ ├── SDL_gfx_6x13_fnt.h │ │ ├── SDL_gfx_6x9_fnt.h │ │ ├── SDL_gfx_7x13B_fnt.h │ │ ├── SDL_gfx_7x13O_fnt.h │ │ ├── SDL_gfx_7x13_fnt.h │ │ ├── SDL_gfx_7x14B_fnt.h │ │ ├── SDL_gfx_7x14_fnt.h │ │ ├── SDL_gfx_8x13B_fnt.h │ │ ├── SDL_gfx_8x13O_fnt.h │ │ ├── SDL_gfx_8x13_fnt.h │ │ ├── SDL_gfx_9x15B_fnt.h │ │ ├── SDL_gfx_9x15_fnt.h │ │ ├── SDL_gfx_9x18B_fnt.h │ │ ├── SDL_gfx_9x18_fnt.h │ │ ├── SDL_gfx_fnt.h │ │ ├── SDL_image.h │ │ ├── SDL_imageFilter.h │ │ ├── SDL_joystick.h │ │ ├── SDL_keyboard.h │ │ ├── SDL_keysym.h │ │ ├── SDL_loadso.h │ │ ├── SDL_main.h │ │ ├── SDL_mixer.h │ │ ├── SDL_mixer.hZone.Identifier │ │ ├── SDL_mouse.h │ │ ├── SDL_mutex.h │ │ ├── SDL_name.h │ │ ├── SDL_opengl.h │ │ ├── SDL_platform.h │ │ ├── SDL_quit.h │ │ ├── SDL_rotozoom.h │ │ ├── SDL_rwops.h │ │ ├── SDL_stdinc.h │ │ ├── SDL_syswm.h │ │ ├── SDL_thread.h │ │ ├── SDL_timer.h │ │ ├── SDL_types.h │ │ ├── SDL_version.h │ │ ├── SDL_video.h │ │ ├── begin_code.h │ │ ├── close_code.h │ │ ├── math-sll.h │ │ └── memfuncs.h │ ├── libSDL.a │ ├── libSDL.rar │ ├── libSDL_gfx.a │ ├── libSDL_image.a │ ├── libSDL_mixer_126.a │ └── readme.md ├── cglm │ ├── .gitattributes │ ├── .github │ │ └── FUNDING.yml │ ├── .gitignore │ ├── .gitmodules │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── CREDITS │ ├── LICENSE │ ├── Makefile.am │ ├── README.md │ ├── _config.yml │ ├── appveyor.yml │ ├── autogen.sh │ ├── cglm.pc.in │ ├── cglm.podspec │ ├── configure.ac │ ├── docs │ │ ├── make.bat │ │ ├── make.batZone.Identifier │ │ └── source │ │ │ ├── affine-mat.rst │ │ │ ├── affine.rst │ │ │ ├── api.rst │ │ │ ├── bezier.rst │ │ │ ├── box.rst │ │ │ ├── build.rst │ │ │ ├── call.rst │ │ │ ├── cam.rst │ │ │ ├── cglm-intro.png │ │ │ ├── color.rst │ │ │ ├── conf.py │ │ │ ├── curve.rst │ │ │ ├── euler.rst │ │ │ ├── features.rst │ │ │ ├── frustum.rst │ │ │ ├── getting_started.rst │ │ │ ├── index.rst │ │ │ ├── io.rst │ │ │ ├── mat3.rst │ │ │ ├── mat4.rst │ │ │ ├── opengl.rst │ │ │ ├── opt.rst │ │ │ ├── plane.rst │ │ │ ├── project.rst │ │ │ ├── quat.rst │ │ │ ├── sphere.rst │ │ │ ├── troubleshooting.rst │ │ │ ├── util.rst │ │ │ ├── vec3-ext.rst │ │ │ ├── vec3.rst │ │ │ ├── vec4-ext.rst │ │ │ └── vec4.rst │ ├── include │ │ └── cglm │ │ │ ├── affine-mat.h │ │ │ ├── affine.h │ │ │ ├── bezier.h │ │ │ ├── box.h │ │ │ ├── call.h │ │ │ ├── call │ │ │ ├── affine.h │ │ │ ├── bezier.h │ │ │ ├── box.h │ │ │ ├── cam.h │ │ │ ├── curve.h │ │ │ ├── ease.h │ │ │ ├── euler.h │ │ │ ├── frustum.h │ │ │ ├── io.h │ │ │ ├── mat3.h │ │ │ ├── mat4.h │ │ │ ├── plane.h │ │ │ ├── project.h │ │ │ ├── quat.h │ │ │ ├── sphere.h │ │ │ ├── vec3.h │ │ │ └── vec4.h │ │ │ ├── cam.h │ │ │ ├── cglm.h │ │ │ ├── color.h │ │ │ ├── common.h │ │ │ ├── curve.h │ │ │ ├── ease.h │ │ │ ├── euler.h │ │ │ ├── frustum.h │ │ │ ├── io.h │ │ │ ├── mat3.h │ │ │ ├── mat4.h │ │ │ ├── plane.h │ │ │ ├── project.h │ │ │ ├── quat.h │ │ │ ├── simd │ │ │ ├── arm.h │ │ │ ├── avx │ │ │ │ ├── affine.h │ │ │ │ └── mat4.h │ │ │ ├── intrin.h │ │ │ ├── neon │ │ │ │ └── mat4.h │ │ │ ├── sse2 │ │ │ │ ├── affine.h │ │ │ │ ├── mat3.h │ │ │ │ ├── mat4.h │ │ │ │ └── quat.h │ │ │ └── x86.h │ │ │ ├── sphere.h │ │ │ ├── struct.h │ │ │ ├── struct │ │ │ ├── affine.h │ │ │ ├── box.h │ │ │ ├── cam.h │ │ │ ├── color.h │ │ │ ├── curve.h │ │ │ ├── euler.h │ │ │ ├── frustum.h │ │ │ ├── io.h │ │ │ ├── mat3.h │ │ │ ├── mat4.h │ │ │ ├── plane.h │ │ │ ├── project.h │ │ │ ├── quat.h │ │ │ ├── sphere.h │ │ │ ├── vec3-ext.h │ │ │ ├── vec3.h │ │ │ ├── vec4-ext.h │ │ │ └── vec4.h │ │ │ ├── types-struct.h │ │ │ ├── types.h │ │ │ ├── util.h │ │ │ ├── vec2-ext.h │ │ │ ├── vec2.h │ │ │ ├── vec3-ext.h │ │ │ ├── vec3.h │ │ │ ├── vec4-ext.h │ │ │ ├── vec4.h │ │ │ └── version.h │ ├── src │ │ ├── affine.c │ │ ├── bezier.c │ │ ├── box.c │ │ ├── cam.c │ │ ├── config.h │ │ ├── curve.c │ │ ├── ease.c │ │ ├── euler.c │ │ ├── frustum.c │ │ ├── io.c │ │ ├── mat3.c │ │ ├── mat4.c │ │ ├── plane.c │ │ ├── project.c │ │ ├── quat.c │ │ ├── sphere.c │ │ ├── vec3.c │ │ └── vec4.c │ └── test │ │ └── src │ │ ├── test_affine.c │ │ ├── test_bezier.c │ │ ├── test_cam.c │ │ ├── test_clamp.c │ │ ├── test_common.c │ │ ├── test_common.h │ │ ├── test_euler.c │ │ ├── test_mat3.c │ │ ├── test_mat4.c │ │ ├── test_project.c │ │ ├── test_quat.c │ │ ├── test_vec3.c │ │ └── test_vec4.c ├── libgl │ ├── GL │ │ ├── alloc │ │ │ ├── alloc.c │ │ │ └── alloc.h │ │ ├── config.h │ │ ├── draw.c │ │ ├── draw_fastpath.inc │ │ ├── error.c │ │ ├── flush.c │ │ ├── fog.c │ │ ├── framebuffer.c │ │ ├── gl_assert.h │ │ ├── glu.c │ │ ├── immediate.c │ │ ├── lighting.c │ │ ├── matrix.c │ │ ├── platform.h │ │ ├── platforms │ │ │ ├── sh4.c │ │ │ ├── sh4.h │ │ │ ├── sh4_math.h │ │ │ ├── software.c │ │ │ ├── software.h │ │ │ └── software │ │ │ │ ├── edge_equation.c │ │ │ │ ├── edge_equation.h │ │ │ │ ├── parameter_equation.c │ │ │ │ └── parameter_equation.h │ │ ├── private.h │ │ ├── state.c │ │ ├── texture.c │ │ ├── types.h │ │ ├── util.c │ │ └── version.c.in │ ├── LICENSE │ ├── include │ │ ├── gl.h │ │ ├── glext.h │ │ ├── glkos.h │ │ └── glu.h │ └── libGLdc.a ├── minilzo │ ├── libminilzo.a │ └── minilzo.o └── zlib-master │ ├── .gitignore │ ├── CMakeLists.txt │ ├── ChangeLog │ ├── FAQ │ ├── INDEX │ ├── Makefile │ ├── Makefile.in │ ├── README │ ├── adler32.c │ ├── amiga │ ├── Makefile.pup │ └── Makefile.sas │ ├── compress.c │ ├── configure │ ├── contrib │ ├── README.contrib │ ├── ada │ │ ├── buffer_demo.adb │ │ ├── mtest.adb │ │ ├── read.adb │ │ ├── readme.txt │ │ ├── test.adb │ │ ├── zlib-streams.adb │ │ ├── zlib-streams.ads │ │ ├── zlib-thin.adb │ │ ├── zlib-thin.ads │ │ ├── zlib.adb │ │ ├── zlib.ads │ │ └── zlib.gpr │ ├── amd64 │ │ └── amd64-match.S │ ├── asm686 │ │ ├── README.686 │ │ └── match.S │ ├── blast │ │ ├── Makefile │ │ ├── README │ │ ├── blast.c │ │ ├── blast.h │ │ ├── test.pk │ │ └── test.txt │ ├── delphi │ │ ├── ZLib.pas │ │ ├── ZLibConst.pas │ │ ├── readme.txt │ │ └── zlibd32.mak │ ├── dotzlib │ │ ├── DotZLib.build │ │ ├── DotZLib.chm │ │ ├── DotZLib.sln │ │ ├── DotZLib │ │ │ ├── AssemblyInfo.cs │ │ │ ├── ChecksumImpl.cs │ │ │ ├── CircularBuffer.cs │ │ │ ├── CodecBase.cs │ │ │ ├── Deflater.cs │ │ │ ├── DotZLib.cs │ │ │ ├── DotZLib.csproj │ │ │ ├── GZipStream.cs │ │ │ ├── Inflater.cs │ │ │ └── UnitTests.cs │ │ ├── LICENSE_1_0.txt │ │ └── readme.txt │ ├── gcc_gvmat64 │ │ └── gvmat64.S │ ├── infback9 │ │ ├── README │ │ ├── infback9.c │ │ ├── infback9.h │ │ ├── inffix9.h │ │ ├── inflate9.h │ │ ├── inftree9.c │ │ └── inftree9.h │ ├── inflate86 │ │ ├── inffas86.c │ │ └── inffast.S │ ├── iostream │ │ ├── test.cpp │ │ ├── zfstream.cpp │ │ └── zfstream.h │ ├── iostream2 │ │ ├── zstream.h │ │ └── zstream_test.cpp │ ├── iostream3 │ │ ├── README │ │ ├── TODO │ │ ├── test.cc │ │ ├── zfstream.cc │ │ └── zfstream.h │ ├── masmx64 │ │ ├── bld_ml64.bat │ │ ├── bld_ml64.batZone.Identifier │ │ ├── gvmat64.asm │ │ ├── inffas8664.c │ │ ├── inffasx64.asm │ │ └── readme.txt │ ├── masmx86 │ │ ├── bld_ml32.bat │ │ ├── bld_ml32.batZone.Identifier │ │ ├── inffas32.asm │ │ ├── match686.asm │ │ └── readme.txt │ ├── minizip │ │ ├── Makefile │ │ ├── Makefile.am │ │ ├── MiniZip64_Changes.txt │ │ ├── MiniZip64_info.txt │ │ ├── configure.ac │ │ ├── crypt.h │ │ ├── ioapi.c │ │ ├── ioapi.h │ │ ├── iowin32.c │ │ ├── iowin32.h │ │ ├── make_vms.com │ │ ├── miniunz.c │ │ ├── miniunzip.1 │ │ ├── minizip.1 │ │ ├── minizip.c │ │ ├── minizip.pc.in │ │ ├── mztools.c │ │ ├── mztools.h │ │ ├── unzip.c │ │ ├── unzip.h │ │ ├── zip.c │ │ └── zip.h │ ├── pascal │ │ ├── example.pas │ │ ├── readme.txt │ │ ├── zlibd32.mak │ │ └── zlibpas.pas │ ├── puff │ │ ├── Makefile │ │ ├── README │ │ ├── puff.c │ │ ├── puff.h │ │ ├── pufftest.c │ │ └── zeros.raw │ ├── testzlib │ │ ├── testzlib.c │ │ └── testzlib.txt │ ├── untgz │ │ ├── Makefile │ │ ├── Makefile.msc │ │ └── untgz.c │ └── vstudio │ │ ├── readme.txt │ │ ├── vc10 │ │ ├── miniunz.vcxproj │ │ ├── miniunz.vcxproj.filters │ │ ├── minizip.vcxproj │ │ ├── minizip.vcxproj.filters │ │ ├── testzlib.vcxproj │ │ ├── testzlib.vcxproj.filters │ │ ├── testzlibdll.vcxproj │ │ ├── testzlibdll.vcxproj.filters │ │ ├── zlib.rc │ │ ├── zlibstat.vcxproj │ │ ├── zlibstat.vcxproj.filters │ │ ├── zlibvc.def │ │ ├── zlibvc.sln │ │ ├── zlibvc.vcxproj │ │ └── zlibvc.vcxproj.filters │ │ ├── vc11 │ │ ├── miniunz.vcxproj │ │ ├── minizip.vcxproj │ │ ├── testzlib.vcxproj │ │ ├── testzlibdll.vcxproj │ │ ├── zlib.rc │ │ ├── zlibstat.vcxproj │ │ ├── zlibvc.def │ │ ├── zlibvc.sln │ │ └── zlibvc.vcxproj │ │ ├── vc12 │ │ ├── miniunz.vcxproj │ │ ├── minizip.vcxproj │ │ ├── testzlib.vcxproj │ │ ├── testzlibdll.vcxproj │ │ ├── zlib.rc │ │ ├── zlibstat.vcxproj │ │ ├── zlibvc.def │ │ ├── zlibvc.sln │ │ └── zlibvc.vcxproj │ │ ├── vc14 │ │ ├── miniunz.vcxproj │ │ ├── minizip.vcxproj │ │ ├── testzlib.vcxproj │ │ ├── testzlibdll.vcxproj │ │ ├── zlib.rc │ │ ├── zlibstat.vcxproj │ │ ├── zlibvc.def │ │ ├── zlibvc.sln │ │ └── zlibvc.vcxproj │ │ └── vc9 │ │ ├── miniunz.vcproj │ │ ├── minizip.vcproj │ │ ├── testzlib.vcproj │ │ ├── testzlibdll.vcproj │ │ ├── zlib.rc │ │ ├── zlibstat.vcproj │ │ ├── zlibvc.def │ │ ├── zlibvc.sln │ │ └── zlibvc.vcproj │ ├── crc32.c │ ├── crc32.h │ ├── deflate.c │ ├── deflate.h │ ├── doc │ ├── algorithm.txt │ ├── rfc1950.txt │ ├── rfc1951.txt │ ├── rfc1952.txt │ └── txtvsbin.txt │ ├── examples │ ├── README.examples │ ├── enough.c │ ├── fitblk.c │ ├── gun.c │ ├── gzappend.c │ ├── gzjoin.c │ ├── gzlog.c │ ├── gzlog.h │ ├── zlib_how.html │ ├── zpipe.c │ └── zran.c │ ├── gzclose.c │ ├── gzguts.h │ ├── gzlib.c │ ├── gzread.c │ ├── gzwrite.c │ ├── infback.c │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── make_vms.com │ ├── msdos │ ├── Makefile.bor │ ├── Makefile.dj2 │ ├── Makefile.emx │ ├── Makefile.msc │ └── Makefile.tc │ ├── nintendods │ ├── Makefile │ └── README │ ├── old │ ├── Makefile.emx │ ├── Makefile.riscos │ ├── README │ ├── descrip.mms │ ├── os2 │ │ ├── Makefile.os2 │ │ └── zlib.def │ └── visual-basic.txt │ ├── os400 │ ├── README400 │ ├── bndsrc │ ├── make.sh │ └── zlib.inc │ ├── qnx │ └── package.qpg │ ├── test │ ├── example.c │ ├── infcover.c │ └── minigzip.c │ ├── treebuild.xml │ ├── trees.c │ ├── trees.h │ ├── uncompr.c │ ├── watcom │ ├── watcom_f.mak │ └── watcom_l.mak │ ├── win32 │ ├── DLL_FAQ.txt │ ├── Makefile.bor │ ├── Makefile.gcc │ ├── Makefile.msc │ ├── README-WIN32.txt │ ├── VisualC.txt │ ├── zlib.def │ └── zlib1.rc │ ├── zconf.h │ ├── zconf.h.cmakein │ ├── zconf.h.in │ ├── zlib.3 │ ├── zlib.3.pdf │ ├── zlib.h │ ├── zlib.map │ ├── zlib.pc.cmakein │ ├── zlib.pc.in │ ├── zlib2ansi │ ├── zutil.c │ └── zutil.h ├── quake ├── client │ ├── anorms.h │ ├── cdaudio.h │ ├── cl_demo.c │ ├── cl_input.c │ ├── cl_main.c │ ├── cl_parse.c │ ├── cl_tent.c │ ├── client.h │ ├── input.h │ ├── keys.c │ ├── keys.h │ ├── menu.c │ ├── menu.h │ ├── menu_save_dreamcast.h │ ├── menu_save_win32.h │ ├── render.h │ ├── snd_dma.c │ ├── snd_mem.c │ ├── sound.h │ ├── vid.h │ ├── view.c │ └── view.h ├── common │ ├── bspfile.h │ ├── chase.c │ ├── cmd.c │ ├── cmd.h │ ├── common.c │ ├── common.h │ ├── console.c │ ├── console.h │ ├── crc.c │ ├── crc.h │ ├── cvar.c │ ├── cvar.h │ ├── draw.h │ ├── host.c │ ├── host_cmd.c │ ├── mathlib.c │ ├── mathlib.h │ ├── net.h │ ├── net_dgrm.c │ ├── net_dgrm.h │ ├── net_loop.c │ ├── net_loop.h │ ├── net_main.c │ ├── net_udp.h │ ├── net_vcr.h │ ├── protocol.h │ ├── quakedef.h │ ├── sbar.c │ ├── sbar.h │ ├── screen.h │ ├── sys.h │ ├── wad.c │ ├── wad.h │ ├── world.c │ ├── world.h │ ├── zone.c │ └── zone.h ├── dreamcast │ ├── cd_dreamcast.c │ ├── in_dreamcast.c │ ├── net_dc.c │ ├── net_udp.c │ ├── ram.c │ ├── sh4_math.h │ ├── snd_mix.c │ ├── snd_sdl.c │ ├── sys_dreamcast.c │ ├── vid_gldc.c │ ├── vmu_misc.c │ ├── vmu_misc.h │ ├── vmu_state.c │ ├── vmuheader.c │ └── vmuheader.h ├── linux │ ├── net_none.c │ ├── snd_null.c │ ├── sys_linux.c │ └── vid_xgl.c ├── null │ ├── cd_null.c │ ├── in_null.c │ ├── net_none.c │ ├── snd_null.c │ ├── sys_null.c │ └── vid_null.c ├── renderer │ ├── anorms.h │ ├── bait.txt │ ├── gl_batcher.c │ ├── gl_batcher.h │ ├── gl_batcher.last_night.txt │ ├── gl_draw.c │ ├── gl_local.h │ ├── gl_mesh.c │ ├── gl_model.c │ ├── gl_model.h │ ├── gl_refrag.c │ ├── gl_rlight.c │ ├── gl_rmain.c │ ├── gl_rmisc.c │ ├── gl_rsurf.c │ ├── gl_rsurf_bak.txt │ ├── gl_screen.c │ ├── gl_warp.c │ ├── gl_warp_sin.h │ ├── glquake.h │ ├── menu_loader.c │ ├── modelgen.h │ ├── r_local.h │ ├── r_part.c │ ├── r_shared.h │ └── spritegn.h ├── server │ ├── server.h │ ├── sv_main.c │ ├── sv_move.c │ ├── sv_phys.c │ └── sv_user.c ├── vm │ ├── pr_cmds.c │ ├── pr_comp.h │ ├── pr_edict.c │ ├── pr_exec.c │ ├── progdefs.h │ ├── progdefs.q1 │ └── progs.h └── win32 │ ├── AL │ ├── al.h │ └── alc.h │ ├── asm_i386.h │ ├── conproc.c │ ├── conproc.h │ ├── in_win.c │ ├── math.S │ ├── net_none.c │ ├── net_wins.h │ ├── net_wipx.h │ ├── qasm.h │ ├── qe3.ico │ ├── quakeasm.h │ ├── ref.h │ ├── resource.h │ ├── snd_mix.c │ ├── snd_win.c │ ├── sys_win.c │ ├── vid_wgl.c │ ├── winquake.h │ └── winrc.rc ├── scripts └── scramble.sh └── src └── dreamcast └── snd_sdl.c /.gitignore: -------------------------------------------------------------------------------- 1 | <<<<<<< HEAD 2 | *.o 3 | *.BIN 4 | /build_dc 5 | ======= 6 | 7 | 1ST_READ.BIN 8 | /build_dc 9 | dreamcast.map 10 | >>>>>>> testing 11 | -------------------------------------------------------------------------------- /1ST_READ.BIN: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/1ST_READ.BIN -------------------------------------------------------------------------------- /credits.txt: -------------------------------------------------------------------------------- 1 | Hayden Kowalchuck 2 | David Croshaw 3 | Ian Michael 4 | Maximqad 5 | Bruceleet 6 | Bero 7 | DarkAura 8 | mankrip 9 | John Carmack 10 | Id Software 11 | -------------------------------------------------------------------------------- /data/font.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/data/font.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | # Set .c, .h, .cnf, and Makefiles to all be text. 4 | *.c text 5 | *.h text 6 | Makefile text 7 | *.cnf text 8 | -------------------------------------------------------------------------------- /deps/GLdc-master/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | .*.swp 3 | *~ 4 | *.a 5 | *.elf 6 | *.img 7 | dc-build.sh 8 | .buildconfig 9 | build/* 10 | builddir/* 11 | version.[c|h] 12 | pcbuild/* 13 | dcbuild/* -------------------------------------------------------------------------------- /deps/GLdc-master/.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | stages: 2 | - build 3 | - test 4 | 5 | build:sh4-gcc: 6 | stage: build 7 | image: kazade/dreamcast-sdk 8 | script: 9 | - source /etc/bash.bashrc 10 | - mkdir builddir 11 | - cd builddir 12 | - cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/Dreamcast.cmake -DCMAKE_BUILD_TYPE=Release .. 13 | - make 14 | - tar -zcf gldc.tar.gz libGL.a ../LICENSE ../README.md ../include 15 | artifacts: 16 | paths: 17 | - builddir/gldc.tar.gz 18 | 19 | build:x86-gcc: 20 | stage: build 21 | image: fedora:38 22 | before_script: 23 | - sudo dnf install -y cmake gcc gcc-c++ SDL2.i686 SDL2-devel.x86_64 glibc-devel glibc-devel.i686 SDL2-devel.i686 pkgconf-pkg-config.i686 pkgconf-pkg-config.x86_64 24 | script: 25 | - mkdir builddir 26 | - cd builddir 27 | - cmake -DCMAKE_BUILD_TYPE=Release .. 28 | - make 29 | artifacts: 30 | paths: 31 | - builddir/tests/gldc_tests 32 | 33 | test:x86-gcc: 34 | stage: test 35 | image: fedora:38 36 | dependencies: 37 | - build:x86-gcc 38 | before_script: 39 | - sudo dnf install -y cmake gcc gcc-c++ SDL2.i686 SDL2-devel glibc-devel pkgconf-pkg-config glibc-devel.i686 SDL2-devel.i686 pkgconf-pkg-config.i686 40 | script: 41 | - cd builddir/tests/ 42 | - SDL_VIDEODRIVER=dummy ./gldc_tests --junit-xml=report.xml 43 | artifacts: 44 | reports: 45 | junit: builddir/tests/report.xml 46 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/alloc/alloc.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | int alloc_init(void* pool, size_t size); 12 | void alloc_shutdown(void* pool); 13 | 14 | void *alloc_malloc(void* pool, size_t size); 15 | void alloc_free(void* pool, void* p); 16 | 17 | typedef void (defrag_address_move)(void*, void*, void*); 18 | void alloc_run_defrag(void* pool, defrag_address_move callback, int max_iterations, void* user_data); 19 | 20 | size_t alloc_count_free(void* pool); 21 | size_t alloc_count_continuous(void* pool); 22 | 23 | void* alloc_next_available(void* pool, size_t required_size); 24 | void* alloc_base_address(void* pool); 25 | size_t alloc_block_count(void* pool); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/config.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | /* This figure is derived from the needs of Quake 1 */ 4 | #define MAX_TEXTURE_COUNT 1088 5 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/error.c: -------------------------------------------------------------------------------- 1 | /* KallistiGL for KallistiOS ##version## 2 | 3 | libgl/gl-error.c 4 | Copyright (C) 2014 Josh Pearson 5 | Copyright (C) 2016 Lawrence Sebald 6 | * Copyright (C) 2017 Luke Benstead 7 | 8 | KOS Open GL State Machine Error Code Implementation. 9 | */ 10 | 11 | #include 12 | 13 | #include "private.h" 14 | 15 | GLenum LAST_ERROR = GL_NO_ERROR; 16 | char ERROR_FUNCTION[64] = { '\0' }; 17 | 18 | /* Quoth the GL Spec: 19 | When an error occurs, the error flag is set to the appropriate error code 20 | value. No other errors are recorded until glGetError is called, the error 21 | code is returned, and the flag is reset to GL_NO_ERROR. 22 | 23 | So, we only record an error here if the error code is currently unset. 24 | Nothing in the spec requires recording multiple error flags, although it is 25 | allowed by the spec. We take the easy way out for now. */ 26 | 27 | 28 | GLenum glGetError(void) { 29 | GLenum rv = LAST_ERROR; 30 | _glKosResetError(); 31 | return rv; 32 | } 33 | 34 | const GLubyte *gluErrorString(GLenum error) { 35 | switch(error) { 36 | case GL_NO_ERROR: 37 | return (GLubyte *)"no error"; 38 | 39 | case GL_INVALID_ENUM: 40 | return (GLubyte *)"invalid enumerant"; 41 | 42 | case GL_INVALID_OPERATION: 43 | return (GLubyte *)"invalid operation"; 44 | 45 | case GL_INVALID_VALUE: 46 | return (GLubyte *)"invalid value"; 47 | 48 | case GL_OUT_OF_MEMORY: 49 | return (GLubyte *)"out of memory"; 50 | 51 | default: 52 | return (GLubyte *)"unknown error"; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/gl_assert.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef NDEBUG 3 | /* We're debugging, use normal assert */ 4 | #include 5 | #define gl_assert assert 6 | #else 7 | /* Release mode, use our custom assert */ 8 | #include 9 | #include 10 | 11 | #define gl_assert(x) \ 12 | do {\ 13 | if(!(x)) {\ 14 | fprintf(stderr, "Assertion failed at %s:%d\n", __FILE__, __LINE__);\ 15 | exit(1);\ 16 | }\ 17 | } while(0); \ 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/glu.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "private.h" 3 | 4 | /* Set the Perspective */ 5 | void APIENTRY gluPerspective(GLfloat angle, GLfloat aspect, 6 | GLfloat znear, GLfloat zfar) { 7 | GLfloat fW, fH; 8 | 9 | fH = tanf(angle * (M_PI / 360.0f)) * znear; 10 | fW = fH * aspect; 11 | 12 | glFrustum(-fW, fW, -fH, fH, znear, zfar); 13 | } 14 | 15 | void APIENTRY gluOrtho2D(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top) { 16 | glOrtho(left, right, bottom, top, -1.0f, 1.0f); 17 | } 18 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/platforms/software/edge_equation.c: -------------------------------------------------------------------------------- 1 | #include "edge_equation.h" 2 | 3 | void EdgeEquationInit(EdgeEquation* edge, const float* v0, const float* v1) { 4 | edge->a = v0[1] - v1[1]; 5 | edge->b = v1[0] - v0[0]; 6 | edge->c = -(edge->a * (v0[0] + v1[0]) + edge->b * (v0[1] + v1[1])) / 2; 7 | edge->tie = edge->a != 0 ? edge->a > 0 : edge->b > 0; 8 | } 9 | 10 | float EdgeEquationEvaluate(const EdgeEquation* edge, float x, float y) { 11 | return edge->a * x + edge->b * y + edge->c; 12 | } 13 | 14 | bool EdgeEquationTestValue(const EdgeEquation* edge, float value) { 15 | return (value >= 0 || (value == 0 && edge->tie)); 16 | } 17 | 18 | bool EdgeEquationTestPoint(const EdgeEquation* edge, float x, float y) { 19 | return EdgeEquationTestValue(edge, EdgeEquationEvaluate(edge, x, y)); 20 | } 21 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/platforms/software/edge_equation.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | typedef struct EdgeEquation { 7 | float a; 8 | float b; 9 | float c; 10 | bool tie; 11 | } EdgeEquation; 12 | 13 | void EdgeEquationInit(EdgeEquation* edge, const float* v0, const float* v1); 14 | float EdgeEquationEvaluate(const EdgeEquation* edge, float x, float y); 15 | bool EdgeEquationTestValue(const EdgeEquation* edge, float value); 16 | bool EdgeEquationTestPoint(const EdgeEquation* edge, float x, float y); 17 | 18 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/platforms/software/parameter_equation.c: -------------------------------------------------------------------------------- 1 | #include "parameter_equation.h" 2 | #include "edge_equation.h" 3 | 4 | void ParameterEquationInit(ParameterEquation* equation, float p0, float p1, float p2, const EdgeEquation* e0, const EdgeEquation* e1, const EdgeEquation* e2, float area) { 5 | 6 | float factor = 1.0f / (2.0f * area); 7 | 8 | equation->a = factor * (p0 * e0->a + p1 * e1->a + p2 * e2->a); 9 | equation->b = factor * (p0 * e0->b + p1 * e1->b + p2 * e2->b); 10 | equation->c = factor * (p0 * e0->c + p1 * e1->c + p2 * e2->c); 11 | } 12 | 13 | 14 | float ParameterEquationEvaluate(const ParameterEquation* equation, float x, float y) { 15 | return equation->a * x + equation->b * y + equation->c; 16 | } 17 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/platforms/software/parameter_equation.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef struct ParameterEquation { 4 | float a; 5 | float b; 6 | float c; 7 | } ParameterEquation; 8 | 9 | struct EdgeEquation; 10 | 11 | void ParameterEquationInit( 12 | ParameterEquation* equation, 13 | float p0, float p1, float p2, 14 | const struct EdgeEquation* e0, const struct EdgeEquation* e1, const struct EdgeEquation* e2, float area); 15 | 16 | float ParameterEquationEvaluate(const ParameterEquation* equation, float x, float y); 17 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/types.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | typedef struct { 6 | /* Same 32 byte layout as pvr_vertex_t */ 7 | uint32_t flags; 8 | float xyz[3]; 9 | float uv[2]; 10 | uint8_t bgra[4]; 11 | 12 | /* In the pvr_vertex_t structure, this next 4 bytes is oargb 13 | * but we're not using that for now, so having W here makes the code 14 | * simpler */ 15 | float w; 16 | } __attribute__ ((aligned (32))) Vertex; 17 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/util.c: -------------------------------------------------------------------------------- 1 | #include "private.h" 2 | 3 | void APIENTRY glVertexPackColor3fKOS(GLVertexKOS* vertex, float r, float g, float b) { 4 | vertex->bgra[3] = 255; 5 | vertex->bgra[2] = (r * 255.0f); 6 | vertex->bgra[1] = (g * 255.0f); 7 | vertex->bgra[0] = (b * 255.0f); 8 | } 9 | 10 | void APIENTRY glVertexPackColor4fKOS(GLVertexKOS* vertex, float r, float g, float b, float a) { 11 | vertex->bgra[3] = (a * 255.0f); 12 | vertex->bgra[2] = (r * 255.0f); 13 | vertex->bgra[1] = (g * 255.0f); 14 | vertex->bgra[0] = (b * 255.0f); 15 | } 16 | -------------------------------------------------------------------------------- /deps/GLdc-master/GL/version.c.in: -------------------------------------------------------------------------------- 1 | 2 | const char* GLDC_VERSION = "@GLDC_VERSION@"; 3 | -------------------------------------------------------------------------------- /deps/GLdc-master/LICENSE: -------------------------------------------------------------------------------- 1 | BSD 2-Clause License 2 | 3 | Copyright (c) 2018, Luke Benstead 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | * Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | -------------------------------------------------------------------------------- /deps/GLdc-master/containers/named_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef NAMED_ARRAY_H 4 | #define NAMED_ARRAY_H 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | typedef struct { 11 | unsigned int element_size; 12 | unsigned int max_element_count; 13 | unsigned char* elements; 14 | unsigned char* used_markers; 15 | unsigned char marker_count; 16 | } NamedArray; 17 | 18 | void named_array_init(NamedArray* array, unsigned int element_size, unsigned int max_elements); 19 | static inline char named_array_used(NamedArray* array, unsigned int id) { 20 | const unsigned int i = id / 8; 21 | const unsigned int j = id % 8; 22 | 23 | unsigned char v = array->used_markers[i] & (unsigned char) (1 << j); 24 | return !!(v); 25 | } 26 | 27 | void* named_array_alloc(NamedArray* array, unsigned int* new_id); 28 | void* named_array_reserve(NamedArray* array, unsigned int id); 29 | 30 | void named_array_release(NamedArray* array, unsigned int new_id); 31 | void* named_array_get(NamedArray* array, unsigned int id); 32 | void named_array_cleanup(NamedArray* array); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif // NAMED_ARRAY_H 39 | -------------------------------------------------------------------------------- /deps/GLdc-master/containers/stack.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #if defined(__APPLE__) || defined(__WIN32__) 5 | /* Linux + Kos define this, OSX does not, so just use malloc there */ 6 | static inline void* memalign(size_t alignment, size_t size) { 7 | return malloc(size); 8 | } 9 | #else 10 | #include 11 | #endif 12 | 13 | #include "stack.h" 14 | 15 | void init_stack(Stack* stack, unsigned int element_size, unsigned int capacity) { 16 | stack->size = 0; 17 | stack->capacity = capacity; 18 | stack->element_size = element_size; 19 | stack->data = (unsigned char*) memalign(0x20, element_size * capacity); 20 | } 21 | 22 | void* stack_top(Stack* stack) { 23 | return &stack->data[(stack->size - 1) * stack->element_size]; 24 | } 25 | 26 | void* stack_replace(Stack* stack, const void* element) { 27 | memcpy(stack->data + ((stack->size - 1) * stack->element_size), element, stack->element_size); 28 | return stack_top(stack); 29 | } 30 | 31 | void* stack_push(Stack* stack, const void* element) { 32 | if(stack->size + 1 == stack->capacity) { 33 | return NULL; 34 | } 35 | 36 | memcpy(stack->data + (stack->size * stack->element_size), element, stack->element_size); 37 | stack->size++; 38 | 39 | return stack_top(stack); 40 | } 41 | 42 | void stack_pop(Stack* stack) { 43 | if(stack->size == 0) { 44 | return; 45 | } 46 | 47 | stack->size--; 48 | } 49 | -------------------------------------------------------------------------------- /deps/GLdc-master/containers/stack.h: -------------------------------------------------------------------------------- 1 | #ifndef STACK_H 2 | #define STACK_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | typedef struct { 9 | unsigned char* data; 10 | unsigned int capacity; 11 | unsigned int size; 12 | unsigned int element_size; 13 | } Stack; 14 | 15 | void init_stack(Stack* stack, unsigned int element_size, unsigned int capacity); 16 | void* stack_top(Stack* stack); 17 | void* stack_replace(Stack* stack, const void* element); 18 | void* stack_push(Stack* stack, const void* element); 19 | void stack_pop(Stack* stack); 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | 25 | #endif // STACK_H 26 | -------------------------------------------------------------------------------- /deps/GLdc-master/include/GL/glu.h: -------------------------------------------------------------------------------- 1 | /* KallistiGL for KallistiOS ##version## 2 | 3 | libgl/glu.h 4 | Copyright (C) 2013-2014 Josh "PH3NOM" Pearson 5 | Copyright (C) 2016 Lawrence Sebald 6 | 7 | Some functionality adapted from the original KOS libgl: 8 | Copyright (C) 2001 Dan Potter 9 | Copyright (C) 2002 Benoit Miller 10 | 11 | */ 12 | 13 | #ifndef __GL_GLU_H 14 | #define __GL_GLU_H 15 | 16 | #include 17 | __BEGIN_DECLS 18 | 19 | #ifndef BUILD_LIBGL 20 | #include "gl.h" 21 | #endif 22 | 23 | #define GLU_FALSE 0 24 | #define GLU_TRUE 1 25 | 26 | GLAPI void APIENTRY gluOrtho2D(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top); 27 | 28 | /* gluPerspective - Set the Perspective for Rendering. */ 29 | GLAPI void APIENTRY gluPerspective(GLdouble fovy, GLdouble aspect, 30 | GLdouble zNear, GLdouble zFar); 31 | 32 | /* gluLookAt - Set Camera Position for Rendering. */ 33 | GLAPI void APIENTRY gluLookAt(GLfloat eyex, GLfloat eyey, GLfloat eyez, 34 | GLfloat centerx, GLfloat centery, GLfloat centerz, 35 | GLfloat upx, GLfloat upy, GLfloat upz); 36 | 37 | /* generate mipmaps for any image provided by the user and then pass them to OpenGL */ 38 | GLAPI GLint APIENTRY gluBuild2DMipmaps(GLenum target, GLint internalFormat, 39 | GLsizei width, GLsizei height, 40 | GLenum format, GLenum type, const void *data); 41 | 42 | GLAPI const GLubyte* APIENTRY gluErrorString(GLenum error); 43 | 44 | __END_DECLS 45 | 46 | #endif /* !__GL_GLU_H */ 47 | -------------------------------------------------------------------------------- /deps/GLdc-master/samples/blend_test/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/blend_test/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/gl_png.h: -------------------------------------------------------------------------------- 1 | #ifndef __GL_PNG_H__ 2 | #define __GL_PNG_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | typedef struct _texture { 9 | GLuint id; 10 | GLenum format; 11 | GLenum min_filter; 12 | GLenum mag_filter; 13 | GLenum blend_source; 14 | GLenum blend_dest; 15 | int loaded; 16 | uint16_t w, h; // width / height of texture image 17 | int size[2]; 18 | float u, v; //uv COORD 19 | float uSize, vSize; // uvSize 20 | float xScale, yScale; //render scale 21 | float a; //alpha 22 | float light; //alpha 23 | float color[3]; 24 | char path[32]; 25 | } texture; 26 | 27 | /* DTEX Image type - contains height, width, and data */ 28 | typedef struct Image { 29 | unsigned long sizeX; 30 | unsigned long sizeY; 31 | char *data; 32 | GLenum internalFormat; 33 | GLboolean mipmapped; 34 | unsigned int dataSize; 35 | } Image; 36 | 37 | 38 | int dtex_to_gl_texture(texture *tex, char* filename); 39 | void draw_textured_quad(texture *tex); 40 | 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/convertToDtex.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | FILE=$1 4 | FILE_FLIP="$1_flip.png" 5 | FILE_PATH=${FILE%/*} 6 | 7 | echo $FILE_PATH 8 | 9 | convert $FILE -flip $FILE_FLIP 10 | 11 | $KOS_BASE/utils/texconv/texconv --in $FILE_FLIP --format ARGB1555 --preview $FILE_PATH/preview_1555.png --out $FILE_PATH/disk_1555.dtex 12 | $KOS_BASE/utils/texconv/texconv --in $FILE_FLIP --format RGB565 --preview $FILE_PATH/preview_565.png --out $FILE_PATH/disk_565.dtex 13 | $KOS_BASE/utils/texconv/texconv --in $FILE_FLIP --format ARGB4444 --preview $FILE_PATH/preview_4444.png --out $FILE_PATH/disk_4444.dtex 14 | 15 | rm $FILE_FLIP 16 | 17 | #rm $FILE_FLIP 18 | -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/disk.png -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/disk_1555.dtex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/disk_1555.dtex -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/disk_4444.dtex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/disk_4444.dtex -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/disk_565.dtex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/disk_565.dtex -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/preview_1555.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/preview_1555.png -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/preview_4444.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/preview_4444.png -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/preview_565.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/preview_565.png -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/spritesheet.dtex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_alpha_testing/romdisk/spritesheet.dtex -------------------------------------------------------------------------------- /deps/GLdc-master/samples/depth_funcs_ortho/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/depth_funcs_ortho/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/lerabot01/romdisk/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/lerabot01/romdisk/NeHe.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/lerabot01/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/lerabot01/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/lerabot01/romdisk/flag1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/lerabot01/romdisk/flag1.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/lights/romdisk/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/lights/romdisk/NeHe.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/lights/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/lights/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/loadbmp.h: -------------------------------------------------------------------------------- 1 | // quick and dirty bitmap loader...for 24 bit bitmaps with 1 plane only. 2 | // See http://www.dcs.ed.ac.uk/~mxr/gfx/2d/BMP.txt for more info. 3 | #ifndef __LOADBMP_H 4 | #define __LOADBMP_H 5 | 6 | /* Image type - contains height, width, and data */ 7 | struct Image { 8 | unsigned int sizeX; 9 | unsigned int sizeY; 10 | char *data; 11 | }; 12 | typedef struct Image Image; 13 | 14 | int ImageLoad(char *, Image *); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /deps/GLdc-master/samples/mipmap/romdisk/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/mipmap/romdisk/NeHe.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/mipmap/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/mipmap/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/multitexture_arrays/romdisk/FlareWS_256.pvr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/multitexture_arrays/romdisk/FlareWS_256.pvr -------------------------------------------------------------------------------- /deps/GLdc-master/samples/multitexture_arrays/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/multitexture_arrays/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/multitexture_arrays/romdisk/wp001vq.pvr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/multitexture_arrays/romdisk/wp001vq.pvr -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe02/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe02/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe02de/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe02de/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe02va/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe02va/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe03/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe03/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe04/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe04/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe05/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe05/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06/romdisk/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06/romdisk/NeHe.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06_4444twid/romdisk/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06_4444twid/romdisk/NeHe.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06_4444twid/romdisk/NeHe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06_4444twid/romdisk/NeHe.png -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06_4444twid/romdisk/NeHe.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06_4444twid/romdisk/NeHe.tex -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06_4444twid/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06_4444twid/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06_vq/romdisk/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06_vq/romdisk/NeHe.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06_vq/romdisk/NeHe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06_vq/romdisk/NeHe.png -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06_vq/romdisk/NeHe.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06_vq/romdisk/NeHe.tex -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe06_vq/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe06_vq/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe08/romdisk/glass.pvr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe08/romdisk/glass.pvr -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe10/romdisk/brick.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe10/romdisk/brick.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe20/romdisk/image1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe20/romdisk/image1.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe20/romdisk/image2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe20/romdisk/image2.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe20/romdisk/logo.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe20/romdisk/logo.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe20/romdisk/mask1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe20/romdisk/mask1.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/nehe20/romdisk/mask2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/nehe20/romdisk/mask2.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/ortho2d/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/ortho2d/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted/romdisk/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted/romdisk/NeHe.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted/romdisk/NeHe.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted/romdisk/NeHe.tex -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted/romdisk/NeHe.tex.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted/romdisk/NeHe.tex.pal -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted_pcx/romdisk/NeHe-Alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted_pcx/romdisk/NeHe-Alpha.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted_pcx/romdisk/NeHe-Alpha.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted_pcx/romdisk/NeHe-Alpha.pcx -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted_pcx/romdisk/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted_pcx/romdisk/NeHe.bmp -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted_pcx/romdisk/NeHe.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted_pcx/romdisk/NeHe.pcx -------------------------------------------------------------------------------- /deps/GLdc-master/samples/paletted_pcx/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/paletted_pcx/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/polymark/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/polymark/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/prof_texture_upload/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #ifdef __DREAMCAST__ 6 | #include 7 | #include "../profiler.h" 8 | #endif 9 | 10 | #include 11 | #include 12 | 13 | #include "image.h" 14 | 15 | #define PROFILE 0 16 | 17 | int main(int argc, char* argv[]) { 18 | (void) argc; 19 | (void) argv; 20 | 21 | fprintf(stdout, "Initializing\n"); 22 | glKosInit(); 23 | glClearColor(0.5f, 0.0f, 0.5f, 1.0f); 24 | glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 25 | glKosSwapBuffers(); 26 | 27 | GLuint texture_id = 0; 28 | glGenTextures(1, &texture_id); 29 | glBindTexture(GL_TEXTURE_2D, texture_id); 30 | 31 | time_t start = time(NULL); 32 | time_t end = start; 33 | 34 | int counter = 0; 35 | 36 | fprintf(stderr, "Starting test run...\n"); 37 | 38 | #ifdef __DREAMCAST__ 39 | #if PROFILE 40 | profiler_init("/pc/gmon.out"); 41 | profiler_start(); 42 | #endif 43 | #endif 44 | 45 | while((end - start) < 5) { 46 | glTexImage2D( 47 | GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, header_data 48 | ); 49 | 50 | ++counter; 51 | end = time(NULL); 52 | } 53 | 54 | #ifdef __DREAMCAST__ 55 | #if PROFILE 56 | profiler_stop(); 57 | profiler_clean_up(); 58 | #endif 59 | #endif 60 | 61 | fprintf(stderr, "Called glTexImage2D %d times (%.4f per call)\n", counter, (float)(end - start) / (float)(counter)); 62 | 63 | return 0; 64 | } 65 | -------------------------------------------------------------------------------- /deps/GLdc-master/samples/profiler.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | /* 4 | * The Dreamcast doesn't have any kind of profiling support from GCC 5 | * so this is a cumbersome sampling profiler that runs in a background thread 6 | */ 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | void profiler_init(const char* output); 12 | void profiler_start(); 13 | void profiler_stop(); 14 | void profiler_clean_up(); 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | -------------------------------------------------------------------------------- /deps/GLdc-master/samples/quadmark/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/quadmark/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/terrain/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/terrain/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/trimark/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/trimark/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip/romdisk/facade00.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip/romdisk/facade00.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip/romdisk/facade01.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip/romdisk/facade01.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip/romdisk/facade02.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip/romdisk/facade02.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip/romdisk/floor.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip/romdisk/floor.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip/romdisk/lightmap.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip/romdisk/lightmap.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_triangle/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_triangle/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_triangle/romdisk/facade00.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_triangle/romdisk/facade00.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_triangle/romdisk/facade01.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_triangle/romdisk/facade01.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_triangle/romdisk/facade02.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_triangle/romdisk/facade02.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_triangle/romdisk/floor.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_triangle/romdisk/floor.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_trianglestrip/romdisk/PLACEHOLDER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_trianglestrip/romdisk/PLACEHOLDER -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_trianglestrip/romdisk/facade00.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_trianglestrip/romdisk/facade00.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_trianglestrip/romdisk/facade01.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_trianglestrip/romdisk/facade01.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_trianglestrip/romdisk/facade02.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_trianglestrip/romdisk/facade02.tga -------------------------------------------------------------------------------- /deps/GLdc-master/samples/zclip_trianglestrip/romdisk/floor.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/GLdc-master/samples/zclip_trianglestrip/romdisk/floor.tga -------------------------------------------------------------------------------- /deps/GLdc-master/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | FILE(GLOB GL_TESTS ${CMAKE_CURRENT_SOURCE_DIR}/test_*.h) 4 | 5 | INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) 6 | 7 | SET(TEST_GENERATOR_BIN ${CMAKE_SOURCE_DIR}/tools/test_generator.py) 8 | SET(TEST_MAIN_FILENAME ${CMAKE_CURRENT_BINARY_DIR}/main.cpp) 9 | 10 | ADD_CUSTOM_COMMAND( 11 | OUTPUT ${TEST_MAIN_FILENAME} 12 | COMMAND ${TEST_GENERATOR_BIN} --output ${TEST_MAIN_FILENAME} ${TEST_FILES} ${GL_TESTS} 13 | DEPENDS ${TEST_FILES} ${GL_TESTS} ${TEST_GENERATOR_BIN} 14 | ) 15 | 16 | add_executable(gldc_tests ${TEST_FILES} ${TEST_SOURCES} ${TEST_MAIN_FILENAME}) 17 | target_link_libraries(gldc_tests GL) 18 | 19 | if(NOT PLATFORM_DREAMCAST) 20 | set_target_properties( 21 | gldc_tests 22 | PROPERTIES 23 | COMPILE_OPTIONS "-m32" 24 | LINK_OPTIONS "-m32" 25 | ) 26 | endif() 27 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_byteorder.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /* DEPRECATED */ 24 | #include "SDL_endian.h" 25 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | #ifndef _SDL_config_h 24 | #define _SDL_config_h 25 | 26 | #include "SDL_platform.h" 27 | 28 | /* Add any platform that doesn't build using the configure system */ 29 | #if defined(__DREAMCAST__) 30 | #include "SDL_config_dreamcast.h" 31 | #elif defined(__MACOS__) 32 | #include "SDL_config_macos.h" 33 | #elif defined(__MACOSX__) 34 | #include "SDL_config_macosx.h" 35 | #elif defined(__SYMBIAN32__) 36 | #include "SDL_config_symbian.h" /* must be before win32! */ 37 | #elif defined(__WIN32__) 38 | #include "SDL_config_win32.h" 39 | #elif defined(__OS2__) 40 | #include "SDL_config_os2.h" 41 | #else 42 | #include "SDL_config_minimal.h" 43 | #endif /* platform config */ 44 | 45 | #endif /* _SDL_config_h */ 46 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_config.h.default: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | #ifndef _SDL_config_h 24 | #define _SDL_config_h 25 | 26 | #include "SDL_platform.h" 27 | 28 | /* Add any platform that doesn't build using the configure system */ 29 | #if defined(__DREAMCAST__) 30 | #include "SDL_config_dreamcast.h" 31 | #elif defined(__MACOS__) 32 | #include "SDL_config_macos.h" 33 | #elif defined(__MACOSX__) 34 | #include "SDL_config_macosx.h" 35 | #elif defined(__SYMBIAN32__) 36 | #include "SDL_config_symbian.h" /* must be before win32! */ 37 | #elif defined(__WIN32__) 38 | #include "SDL_config_win32.h" 39 | #elif defined(__OS2__) 40 | #include "SDL_config_os2.h" 41 | #else 42 | #include "SDL_config_minimal.h" 43 | #endif /* platform config */ 44 | 45 | #endif /* _SDL_config_h */ 46 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_dreamcast.h: -------------------------------------------------------------------------------- 1 | #ifndef SDL_DREAMCAST_H 2 | #define SDL_DREAMCAST_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | 9 | typedef enum { 10 | SDL_DC_DMA_VIDEO, 11 | SDL_DC_TEXTURED_VIDEO, 12 | SDL_DC_DIRECT_VIDEO 13 | } SDL_DC_driver; 14 | 15 | void SDL_DC_SetVideoDriver(SDL_DC_driver value); 16 | void SDL_DC_SetWindow(int width, int height); 17 | void SDL_DC_VerticalWait(SDL_bool value); 18 | void SDL_DC_ShowAskHz(SDL_bool value); 19 | void SDL_DC_Default60Hz(SDL_bool value); 20 | 21 | typedef enum { 22 | SDL_DC_START=3, 23 | SDL_DC_A=2, 24 | SDL_DC_B=1, 25 | SDL_DC_X=5, 26 | SDL_DC_Y=6, 27 | SDL_DC_L=7, 28 | SDL_DC_R=8, 29 | SDL_DC_LEFT=11, 30 | SDL_DC_RIGHT=12, 31 | SDL_DC_UP=9, 32 | SDL_DC_DOWN=10 33 | } SDL_DC_button; 34 | 35 | void SDL_DC_MapKey(int joy, SDL_DC_button button, SDLKey key); 36 | void SDL_DC_EmulateKeyboard(SDL_bool value); 37 | void SDL_DC_EmulateMouse(SDL_bool value); 38 | 39 | void SDL_DC_SetSoundBuffer(void *buffer); 40 | void SDL_DC_RestoreSoundBuffer(void); 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_framerate.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | 4 | SDL_framerate: framerate manager 5 | 6 | LGPL (c) A. Schiffler 7 | 8 | */ 9 | 10 | #ifndef _SDL_framerate_h 11 | #define _SDL_framerate_h 12 | 13 | /* Set up for C function definitions, even when using C++ */ 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /* --- */ 19 | 20 | #include "SDL.h" 21 | 22 | /* --------- Definitions */ 23 | 24 | /* Some rates in Hz */ 25 | 26 | #define FPS_UPPER_LIMIT 200 27 | #define FPS_LOWER_LIMIT 1 28 | #define FPS_DEFAULT 30 29 | 30 | /* --------- Structure variables */ 31 | 32 | typedef struct { 33 | Uint32 framecount; 34 | float rateticks; 35 | Uint32 lastticks; 36 | Uint32 rate; 37 | } FPSmanager; 38 | 39 | /* --------- Function prototypes */ 40 | 41 | #ifndef DLLINTERFACE 42 | #ifdef WIN32 43 | #ifdef BUILD_DLL 44 | #define DLLINTERFACE __declspec(dllexport) 45 | #else 46 | #define DLLINTERFACE __declspec(dllimport) 47 | #endif 48 | #else 49 | #define DLLINTERFACE 50 | #endif 51 | #endif 52 | 53 | /* Functions return 0 or value for sucess and -1 for error */ 54 | 55 | DLLINTERFACE void SDL_initFramerate(FPSmanager * manager); 56 | DLLINTERFACE int SDL_setFramerate(FPSmanager * manager, int rate); 57 | DLLINTERFACE int SDL_getFramerate(FPSmanager * manager); 58 | DLLINTERFACE void SDL_framerateDelay(FPSmanager * manager); 59 | 60 | /* --- */ 61 | 62 | /* Ends C function definitions when using C++ */ 63 | #ifdef __cplusplus 64 | } 65 | #endif 66 | 67 | #endif /* _SDL_framerate_h */ 68 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_getenv.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /* DEPRECATED */ 24 | #include "SDL_stdinc.h" 25 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_gfxPrimitives_font.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/SDL/include/SDL_gfxPrimitives_font.h -------------------------------------------------------------------------------- /deps/SDL/include/SDL_gfx_fnt.h: -------------------------------------------------------------------------------- 1 | 2 | extern unsigned char SDL_gfx_font_10x20_fnt[]; 3 | extern unsigned char SDL_gfx_font_5x7_fnt[]; 4 | extern unsigned char SDL_gfx_font_5x8_fnt[]; 5 | extern unsigned char SDL_gfx_font_6x10_fnt[]; 6 | extern unsigned char SDL_gfx_font_6x12_fnt[]; 7 | extern unsigned char SDL_gfx_font_6x13B_fnt[]; 8 | extern unsigned char SDL_gfx_font_6x13O_fnt[]; 9 | extern unsigned char SDL_gfx_font_6x13_fnt[]; 10 | extern unsigned char SDL_gfx_font_6x9_fnt[]; 11 | extern unsigned char SDL_gfx_font_7x13B_fnt[]; 12 | extern unsigned char SDL_gfx_font_7x13O_fnt[]; 13 | extern unsigned char SDL_gfx_font_7x13_fnt[]; 14 | extern unsigned char SDL_gfx_font_7x14B_fnt[]; 15 | extern unsigned char SDL_gfx_font_7x14_fnt[]; 16 | extern unsigned char SDL_gfx_font_8x13B_fnt[]; 17 | extern unsigned char SDL_gfx_font_8x13O_fnt[]; 18 | extern unsigned char SDL_gfx_font_8x13_fnt[]; 19 | extern unsigned char SDL_gfx_font_9x15B_fnt[]; 20 | extern unsigned char SDL_gfx_font_9x15_fnt[]; 21 | extern unsigned char SDL_gfx_font_9x18B_fnt[]; 22 | extern unsigned char SDL_gfx_font_9x18_fnt[]; 23 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_mixer.hZone.Identifier: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/SDL/include/SDL_mixer.hZone.Identifier -------------------------------------------------------------------------------- /deps/SDL/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SDLname_h_ 3 | #define _SDLname_h_ 4 | 5 | #if defined(__STDC__) || defined(__cplusplus) 6 | #define NeedFunctionPrototypes 1 7 | #endif 8 | 9 | #define SDL_NAME(X) SDL_##X 10 | 11 | #endif /* _SDLname_h_ */ 12 | -------------------------------------------------------------------------------- /deps/SDL/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /* DEPRECATED */ 24 | #include "SDL_stdinc.h" 25 | -------------------------------------------------------------------------------- /deps/SDL/include/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /* This file reverses the effects of begin_code.h and should be included 24 | after you finish any function and structure declarations in your headers 25 | */ 26 | 27 | #undef _begin_code_h 28 | 29 | /* Reset structure packing at previous byte alignment */ 30 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__) 31 | #ifdef __BORLANDC__ 32 | #pragma nopackwarning 33 | #endif 34 | #if (defined(__MWERKS__) && defined(__MACOS__)) 35 | #pragma options align=reset 36 | #pragma enumsalwaysint reset 37 | #else 38 | #pragma pack(pop) 39 | #endif 40 | #endif /* Compiler needs structure packing set */ 41 | 42 | -------------------------------------------------------------------------------- /deps/SDL/libSDL.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/SDL/libSDL.a -------------------------------------------------------------------------------- /deps/SDL/libSDL.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/SDL/libSDL.rar -------------------------------------------------------------------------------- /deps/SDL/libSDL_gfx.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/SDL/libSDL_gfx.a -------------------------------------------------------------------------------- /deps/SDL/libSDL_image.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/SDL/libSDL_image.a -------------------------------------------------------------------------------- /deps/SDL/libSDL_mixer_126.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/SDL/libSDL_mixer_126.a -------------------------------------------------------------------------------- /deps/cglm/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /deps/cglm/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: cglm 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | custom: # Replace with a single custom sponsorship URL 9 | -------------------------------------------------------------------------------- /deps/cglm/.gitignore: -------------------------------------------------------------------------------- 1 | *.xcodeproj 2 | *.xcworkspace 3 | *.sln 4 | *.vcxproj 5 | *.vcxproj.* 6 | *.suo 7 | *.sdf 8 | *.opensdf 9 | ipch/ 10 | Debug/ 11 | Release/ 12 | .DS_Store 13 | .vs 14 | *.nupkg 15 | *.opendb 16 | packages.config 17 | /aclocal.m4 18 | /ar-lib 19 | /autom4te.cache/ 20 | /compile 21 | /config.guess 22 | /config.log 23 | /config.status 24 | /config.sub 25 | /configure 26 | /depcomp 27 | /install-sh 28 | /ltmain.sh 29 | /missing 30 | /libtool 31 | /.libs/ 32 | .deps/ 33 | *.[oa] 34 | *.l[oa] 35 | Makefile 36 | Makefile.in 37 | m4/*.m4 38 | .buildstamp 39 | .dirstamp 40 | packages/ 41 | .anjuta/* 42 | *.anjuta* 43 | config.h.* 44 | /config.h 45 | stamp* 46 | COPYING 47 | .idea/* 48 | *.VC.db 49 | cscope.* 50 | *-git-ignored-file.* 51 | test/*.trs 52 | test/test_* 53 | *.log 54 | test-* 55 | test/.libs/* 56 | test/tests 57 | cglm_arm/* 58 | cglm_test_ios/* 59 | cglm_test_iosTests/* 60 | docs/build/* 61 | win/cglm_test_* 62 | * copy.* 63 | *.o 64 | *.obj 65 | *codeanalysis.*.xml 66 | *codeanalysis.xml 67 | *.lib 68 | *.tlog 69 | win/x64 70 | win/x85 71 | win/Debug 72 | cglm-test-ios* 73 | /cglm.pc 74 | -------------------------------------------------------------------------------- /deps/cglm/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "test/lib/cmocka"] 2 | path = test/lib/cmocka 3 | url = git://git.cryptomilk.org/projects/cmocka.git 4 | -------------------------------------------------------------------------------- /deps/cglm/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | 3 | os: 4 | - linux 5 | - osx 6 | 7 | sudo: required 8 | dist: trusty 9 | 10 | compiler: 11 | - clang 12 | - gcc 13 | 14 | matrix: 15 | fast_finish: true 16 | exclude: 17 | # Skip GCC builds on macOS. 18 | - os: osx 19 | compiler: gcc 20 | include: 21 | # Additional GCC builds for code coverage. 22 | - os: linux 23 | compiler: gcc 24 | env: CODE_COVERAGE=ON 25 | 26 | cache: 27 | apt: true 28 | 29 | addons: 30 | apt: 31 | packages: 32 | - clang-3.6 33 | - lcov 34 | 35 | branches: 36 | only: 37 | - master 38 | 39 | script: 40 | - sh ./build-deps.sh 41 | - sh ./autogen.sh 42 | - if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then 43 | ./configure CFLAGS="-ftest-coverage -fprofile-arcs"; 44 | else 45 | ./configure; 46 | fi 47 | - make 48 | - make check 49 | 50 | after_success: 51 | - if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then 52 | pip install --user cpp-coveralls && 53 | coveralls 54 | --build-root . 55 | --exclude lib 56 | --exclude test 57 | --gcov-options '\-lp' 58 | --verbose; 59 | fi 60 | 61 | after_failure: 62 | - cat ./test-suite.log 63 | -------------------------------------------------------------------------------- /deps/cglm/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Recep Aslantas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /deps/cglm/_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-minimal -------------------------------------------------------------------------------- /deps/cglm/appveyor.yml: -------------------------------------------------------------------------------- 1 | image: Visual Studio 2017 2 | 3 | build_script: 4 | - ps: >- 5 | cd win 6 | 7 | .\build.bat 8 | -------------------------------------------------------------------------------- /deps/cglm/autogen.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Copyright (c), Recep Aslantas. 4 | # 5 | # MIT License (MIT), http://opensource.org/licenses/MIT 6 | # Full license can be found in the LICENSE file 7 | # 8 | 9 | cd $(dirname "$0") 10 | 11 | autoheader 12 | 13 | if [ "$(uname)" = "Darwin" ]; then 14 | glibtoolize 15 | else 16 | libtoolize 17 | fi 18 | 19 | aclocal -I m4 20 | autoconf 21 | automake --add-missing --copy 22 | -------------------------------------------------------------------------------- /deps/cglm/cglm.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: @PACKAGE_NAME@ 7 | Description: OpenGL Mathematics (glm) for C 8 | URL: https://github.com/recp/cglm 9 | Version: @PACKAGE_VERSION@ 10 | Cflags: -I${includedir} 11 | Libs: -L${libdir} -lcglm @LIBS@ 12 | -------------------------------------------------------------------------------- /deps/cglm/cglm.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | 3 | # Description 4 | s.name = "cglm" 5 | s.version = "0.5.1" 6 | s.summary = "📽 Optimized OpenGL/Graphics Math (glm) for C" 7 | s.description = <<-DESC 8 | cglm is math library for graphics programming for C. It is similar to original glm but it is written for C instead of C++ (you can use here too). See the documentation or README for all features. 9 | DESC 10 | 11 | s.documentation_url = "http://cglm.readthedocs.io" 12 | 13 | # Home 14 | s.homepage = "https://github.com/recp/cglm" 15 | s.license = { :type => "MIT", :file => "LICENSE" } 16 | s.author = { "Recep Aslantas" => "recp@acm.org" } 17 | 18 | # Sources 19 | s.source = { :git => "https://github.com/recp/cglm.git", :tag => "v#{s.version}" } 20 | s.source_files = "src", "include/cglm/**/*.h" 21 | s.public_header_files = "include", "include/cglm/**/*.h" 22 | s.exclude_files = "src/win/*", "src/dllmain.c", "src/**/*.h" 23 | s.preserve_paths = "include", "src" 24 | s.header_mappings_dir = "include" 25 | 26 | # Linking 27 | s.library = "m" 28 | end 29 | -------------------------------------------------------------------------------- /deps/cglm/docs/make.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | pushd %~dp0 4 | 5 | REM Command file for Sphinx documentation 6 | 7 | if "%SPHINXBUILD%" == "" ( 8 | set SPHINXBUILD=python -msphinx 9 | ) 10 | set SOURCEDIR=source 11 | set BUILDDIR=build 12 | set SPHINXPROJ=cglm 13 | 14 | if "%1" == "" goto help 15 | 16 | %SPHINXBUILD% >NUL 2>NUL 17 | if errorlevel 9009 ( 18 | echo. 19 | echo.The Sphinx module was not found. Make sure you have Sphinx installed, 20 | echo.then set the SPHINXBUILD environment variable to point to the full 21 | echo.path of the 'sphinx-build' executable. Alternatively you may add the 22 | echo.Sphinx directory to PATH. 23 | echo. 24 | echo.If you don't have Sphinx installed, grab it from 25 | echo.http://sphinx-doc.org/ 26 | exit /b 1 27 | ) 28 | 29 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% 30 | goto end 31 | 32 | :help 33 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% 34 | 35 | :end 36 | popd 37 | -------------------------------------------------------------------------------- /deps/cglm/docs/make.batZone.Identifier: -------------------------------------------------------------------------------- 1 | [ZoneTransfer] 2 | ZoneId=3 3 | -------------------------------------------------------------------------------- /deps/cglm/docs/source/api.rst: -------------------------------------------------------------------------------- 1 | API documentation 2 | ================================ 3 | 4 | Some functions may exist twice, 5 | once for their namespace and once for global namespace 6 | to make easier to write very common functions 7 | 8 | For instance, in general we use :code:`glm_vec3_dot` to get dot product 9 | of two **vec3**. Now we can also do this with :code:`glm_dot`, 10 | same for *_cross* and so on... 11 | 12 | The original function stays where it is, the function in global namespace 13 | of same name is just an alias, so there is no call version of those functions. 14 | e.g there is no func like :code:`glmc_dot` because *glm_dot* is just alias for 15 | :code:`glm_vec3_dot` 16 | 17 | By including **cglm/cglm.h** header you will include all inline version 18 | of functions. Since functions in this header[s] are inline you don't need to 19 | build or link *cglm* against your project. 20 | 21 | But by including **cglm/call.h** header you will include all *non-inline* 22 | version of functions. You need to build *cglm* and link it. 23 | Follow the :doc:`build` documentation for this 24 | 25 | .. toctree:: 26 | :maxdepth: 1 27 | :caption: API categories: 28 | 29 | affine 30 | affine-mat 31 | cam 32 | frustum 33 | box 34 | quat 35 | euler 36 | mat4 37 | mat3 38 | vec3 39 | vec3-ext 40 | vec4 41 | vec4-ext 42 | color 43 | plane 44 | project 45 | util 46 | io 47 | call 48 | sphere 49 | curve 50 | bezier 51 | -------------------------------------------------------------------------------- /deps/cglm/docs/source/call.rst: -------------------------------------------------------------------------------- 1 | .. default-domain:: C 2 | 3 | precompiled functions (call) 4 | ================================================================================ 5 | 6 | All funcitons in **glm_** namespace are forced to **inline**. 7 | Most functions also have pre-compiled version. 8 | 9 | Precompiled versions are in **glmc_** namespace. *c* in the namespace stands for 10 | "call". 11 | 12 | Since precompiled functions are just wrapper for inline verisons, 13 | these functions are not documented individually. 14 | It would be duplicate documentation also it 15 | would be hard to sync documentation between inline and call verison for me. 16 | 17 | By including **clgm/cglm.h** you include all inline verisons. To get precompiled 18 | versions you need to include **cglm/call.h** header it also includes all 19 | call versions plus *clgm/cglm.h* (inline verisons) 20 | -------------------------------------------------------------------------------- /deps/cglm/docs/source/cglm-intro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/cglm/docs/source/cglm-intro.png -------------------------------------------------------------------------------- /deps/cglm/docs/source/color.rst: -------------------------------------------------------------------------------- 1 | .. default-domain:: C 2 | 3 | color 4 | ================================================================================ 5 | 6 | Header: cglm/color.h 7 | 8 | Table of contents (click to go): 9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10 | 11 | Functions: 12 | 13 | 1. :c:func:`glm_luminance` 14 | 15 | Functions documentation 16 | ~~~~~~~~~~~~~~~~~~~~~~~ 17 | 18 | .. c:function:: float glm_luminance(vec3 rgb) 19 | 20 | | averages the color channels into one value 21 | 22 | This function uses formula in COLLADA 1.5 spec which is 23 | 24 | .. code-block:: text 25 | 26 | luminance = (color.r * 0.212671) + 27 | (color.g * 0.715160) + 28 | (color.b * 0.072169) 29 | 30 | It is based on the ISO/CIE color standards (see ITU-R Recommendation BT.709-4), 31 | that averages the color channels into one value 32 | 33 | Parameters: 34 | | *[in]* **rgb** RGB color 35 | -------------------------------------------------------------------------------- /deps/cglm/docs/source/curve.rst: -------------------------------------------------------------------------------- 1 | .. default-domain:: C 2 | 3 | Curve 4 | ================================================================================ 5 | 6 | Header: cglm/curve.h 7 | 8 | Common helpers for common curves. For specific curve see its header/doc 9 | e.g bezier 10 | 11 | Table of contents (click to go): 12 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13 | 14 | Functions: 15 | 16 | 1. :c:func:`glm_smc` 17 | 18 | Functions documentation 19 | ~~~~~~~~~~~~~~~~~~~~~~~ 20 | 21 | .. c:function:: float glm_smc(float s, mat4 m, vec4 c) 22 | 23 | | helper function to calculate **S** * **M** * **C** multiplication for curves 24 | 25 | | this function does not encourage you to use SMC, instead it is a helper if you use SMC. 26 | 27 | | if you want to specify S as vector then use more generic glm_mat4_rmc() func. 28 | 29 | | Example usage: 30 | 31 | .. code-block:: c 32 | 33 | Bs = glm_smc(s, GLM_BEZIER_MAT, (vec4){p0, c0, c1, p1}) 34 | 35 | Parameters: 36 | | *[in]* **s** parameter between 0 and 1 (this will be [s3, s2, s, 1]) 37 | | *[in]* **m** basis matrix 38 | | *[out]* **c** position/control vector 39 | 40 | Returns: 41 | scalar value e.g. Bs 42 | -------------------------------------------------------------------------------- /deps/cglm/docs/source/features.rst: -------------------------------------------------------------------------------- 1 | Features 2 | ================================================================================ 3 | 4 | * general purpose matrix operations (mat4, mat3) 5 | * chain matrix multiplication (square only) 6 | * general purpose vector operations (cross, dot, rotate, proj, angle...) 7 | * affine transforms 8 | * matrix decomposition (extract rotation, scaling factor) 9 | * optimized affine transform matrices (mul, rigid-body inverse) 10 | * camera (lookat) 11 | * projections (ortho, perspective) 12 | * quaternions 13 | * euler angles / yaw-pitch-roll to matrix 14 | * extract euler angles 15 | * inline or pre-compiled function call 16 | * frustum (extract view frustum planes, corners...) 17 | * bounding box (AABB in Frustum (culling), crop, merge...) 18 | * bounding sphere 19 | * project, unproject 20 | * easing functions 21 | * curves 22 | * curve interpolation helpers (SMC, deCasteljau...) 23 | * and other... 24 | -------------------------------------------------------------------------------- /deps/cglm/docs/source/index.rst: -------------------------------------------------------------------------------- 1 | .. cglm documentation master file, created by 2 | sphinx-quickstart on Tue Jun 6 20:31:05 2017. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | cglm Documentation 7 | ================================ 8 | 9 | **cglm** is optimized 3D math library written in C99 (compatible with C89). 10 | It is similar to original **glm** library except this is mainly for **C** 11 | 12 | This library stores matrices as column-major order but in the future row-major 13 | is considered to be supported as optional. 14 | 15 | Also currently only **float** type is supported for most operations. 16 | 17 | .. toctree:: 18 | :maxdepth: 2 19 | :caption: Getting Started: 20 | 21 | features 22 | build 23 | getting_started 24 | 25 | .. toctree:: 26 | :maxdepth: 2 27 | :caption: How To: 28 | 29 | opengl 30 | 31 | .. toctree:: 32 | :maxdepth: 2 33 | :caption: API: 34 | 35 | api 36 | 37 | .. toctree:: 38 | :maxdepth: 2 39 | :caption: Options: 40 | 41 | opt 42 | 43 | .. toctree:: 44 | :maxdepth: 2 45 | :caption: Troubleshooting: 46 | 47 | troubleshooting 48 | 49 | Indices and tables 50 | ================== 51 | 52 | * :ref:`genindex` 53 | * :ref:`modindex` 54 | * :ref:`search` 55 | -------------------------------------------------------------------------------- /deps/cglm/docs/source/plane.rst: -------------------------------------------------------------------------------- 1 | .. default-domain:: C 2 | 3 | plane 4 | ================================================================================ 5 | 6 | Header: cglm/plane.h 7 | 8 | Plane extract functions are in frustum header and documented 9 | in :doc:`frustum` page. 10 | 11 | **Definition of plane:** 12 | 13 | Plane equation: **Ax + By + Cz + D = 0** 14 | 15 | Plan is stored in **vec4** as **[A, B, C, D]**. (A, B, C) is normal and D is distance 16 | 17 | Table of contents (click to go): 18 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 19 | 20 | Functions: 21 | 22 | 1. :c:func:`glm_plane_normalize` 23 | 24 | 25 | Functions documentation 26 | ~~~~~~~~~~~~~~~~~~~~~~~ 27 | 28 | .. c:function:: void glm_plane_normalize(vec4 plane) 29 | 30 | | normalizes a plane 31 | 32 | Parameters: 33 | | *[in, out]* **plane** pnale to normalize 34 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_call_h 9 | #define cglm_call_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "cglm.h" 15 | #include "call/vec3.h" 16 | #include "call/vec4.h" 17 | #include "call/mat4.h" 18 | #include "call/mat3.h" 19 | #include "call/affine.h" 20 | #include "call/cam.h" 21 | #include "call/quat.h" 22 | #include "call/euler.h" 23 | #include "call/plane.h" 24 | #include "call/frustum.h" 25 | #include "call/box.h" 26 | #include "call/io.h" 27 | #include "call/project.h" 28 | #include "call/sphere.h" 29 | #include "call/ease.h" 30 | #include "call/curve.h" 31 | #include "call/bezier.h" 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | #endif /* cglm_call_h */ 37 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/bezier.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_bezier_h 9 | #define cglmc_bezier_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | float 18 | glmc_bezier(float s, float p0, float c0, float c1, float p1); 19 | 20 | CGLM_EXPORT 21 | float 22 | glmc_hermite(float s, float p0, float t0, float t1, float p1); 23 | 24 | CGLM_EXPORT 25 | float 26 | glmc_decasteljau(float prm, float p0, float c0, float c1, float p1); 27 | 28 | #ifdef __cplusplus 29 | } 30 | #endif 31 | #endif /* cglmc_bezier_h */ 32 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/box.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_box_h 9 | #define cglmc_box_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | void 18 | glmc_aabb_transform(vec3 box[2], mat4 m, vec3 dest[2]); 19 | 20 | CGLM_EXPORT 21 | void 22 | glmc_aabb_merge(vec3 box1[2], vec3 box2[2], vec3 dest[2]); 23 | 24 | CGLM_EXPORT 25 | void 26 | glmc_aabb_crop(vec3 box[2], vec3 cropBox[2], vec3 dest[2]); 27 | 28 | CGLM_EXPORT 29 | void 30 | glmc_aabb_crop_until(vec3 box[2], 31 | vec3 cropBox[2], 32 | vec3 clampBox[2], 33 | vec3 dest[2]); 34 | 35 | CGLM_EXPORT 36 | bool 37 | glmc_aabb_frustum(vec3 box[2], vec4 planes[6]); 38 | 39 | CGLM_EXPORT 40 | void 41 | glmc_aabb_invalidate(vec3 box[2]); 42 | 43 | CGLM_EXPORT 44 | bool 45 | glmc_aabb_isvalid(vec3 box[2]); 46 | 47 | CGLM_EXPORT 48 | float 49 | glmc_aabb_size(vec3 box[2]); 50 | 51 | CGLM_EXPORT 52 | float 53 | glmc_aabb_radius(vec3 box[2]); 54 | 55 | CGLM_EXPORT 56 | void 57 | glmc_aabb_center(vec3 box[2], vec3 dest); 58 | 59 | CGLM_EXPORT 60 | bool 61 | glmc_aabb_aabb(vec3 box[2], vec3 other[2]); 62 | 63 | CGLM_EXPORT 64 | bool 65 | glmc_aabb_point(vec3 box[2], vec3 point); 66 | 67 | CGLM_EXPORT 68 | bool 69 | glmc_aabb_contains(vec3 box[2], vec3 other[2]); 70 | 71 | CGLM_EXPORT 72 | bool 73 | glmc_aabb_sphere(vec3 box[2], vec4 s); 74 | 75 | #ifdef __cplusplus 76 | } 77 | #endif 78 | #endif /* cglmc_box_h */ 79 | 80 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/curve.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_curve_h 9 | #define cglmc_curve_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | float 18 | glmc_smc(float s, mat4 m, vec4 c); 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif 23 | #endif /* cglmc_curve_h */ 24 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/euler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_euler_h 9 | #define cglmc_euler_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | void 18 | glmc_euler_angles(mat4 m, vec3 dest); 19 | 20 | CGLM_EXPORT 21 | void 22 | glmc_euler(vec3 angles, mat4 dest); 23 | 24 | CGLM_EXPORT 25 | void 26 | glmc_euler_xyz(vec3 angles, mat4 dest); 27 | 28 | CGLM_EXPORT 29 | void 30 | glmc_euler_zyx(vec3 angles, mat4 dest); 31 | 32 | CGLM_EXPORT 33 | void 34 | glmc_euler_zxy(vec3 angles, mat4 dest); 35 | 36 | CGLM_EXPORT 37 | void 38 | glmc_euler_xzy(vec3 angles, mat4 dest); 39 | 40 | CGLM_EXPORT 41 | void 42 | glmc_euler_yzx(vec3 angles, mat4 dest); 43 | 44 | CGLM_EXPORT 45 | void 46 | glmc_euler_yxz(vec3 angles, mat4 dest); 47 | 48 | CGLM_EXPORT 49 | void 50 | glmc_euler_by_order(vec3 angles, glm_euler_sq axis, mat4 dest); 51 | 52 | #ifdef __cplusplus 53 | } 54 | #endif 55 | #endif /* cglmc_euler_h */ 56 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/frustum.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_frustum_h 9 | #define cglmc_frustum_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | void 18 | glmc_frustum_planes(mat4 m, vec4 dest[6]); 19 | 20 | CGLM_EXPORT 21 | void 22 | glmc_frustum_corners(mat4 invMat, vec4 dest[8]); 23 | 24 | CGLM_EXPORT 25 | void 26 | glmc_frustum_center(vec4 corners[8], vec4 dest); 27 | 28 | CGLM_EXPORT 29 | void 30 | glmc_frustum_box(vec4 corners[8], mat4 m, vec3 box[2]); 31 | 32 | CGLM_EXPORT 33 | void 34 | glmc_frustum_corners_at(vec4 corners[8], 35 | float splitDist, 36 | float farDist, 37 | vec4 planeCorners[4]); 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | #endif /* cglmc_frustum_h */ 42 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/io.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_io_h 9 | #define cglmc_io_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | void 18 | glmc_mat4_print(mat4 matrix, 19 | FILE * __restrict ostream); 20 | 21 | CGLM_EXPORT 22 | void 23 | glmc_mat3_print(mat3 matrix, 24 | FILE * __restrict ostream); 25 | 26 | CGLM_EXPORT 27 | void 28 | glmc_vec4_print(vec4 vec, 29 | FILE * __restrict ostream); 30 | 31 | CGLM_EXPORT 32 | void 33 | glmc_vec3_print(vec3 vec, 34 | FILE * __restrict ostream); 35 | 36 | CGLM_EXPORT 37 | void 38 | glmc_versor_print(versor vec, 39 | FILE * __restrict ostream); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | #endif /* cglmc_io_h */ 45 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/mat3.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_mat3_h 9 | #define cglmc_mat3_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | /* DEPRECATED! use _copy, _ucopy versions */ 17 | #define glmc_mat3_dup(mat, dest) glmc_mat3_copy(mat, dest) 18 | 19 | CGLM_EXPORT 20 | void 21 | glmc_mat3_copy(mat3 mat, mat3 dest); 22 | 23 | CGLM_EXPORT 24 | void 25 | glmc_mat3_identity(mat3 mat); 26 | 27 | CGLM_EXPORT 28 | void 29 | glmc_mat3_identity_array(mat3 * __restrict mat, size_t count); 30 | 31 | CGLM_EXPORT 32 | void 33 | glmc_mat3_mul(mat3 m1, mat3 m2, mat3 dest); 34 | 35 | CGLM_EXPORT 36 | void 37 | glmc_mat3_transpose_to(mat3 m, mat3 dest); 38 | 39 | CGLM_EXPORT 40 | void 41 | glmc_mat3_transpose(mat3 m); 42 | 43 | CGLM_EXPORT 44 | void 45 | glmc_mat3_mulv(mat3 m, vec3 v, vec3 dest); 46 | 47 | CGLM_EXPORT 48 | float 49 | glmc_mat3_trace(mat3 m); 50 | 51 | CGLM_EXPORT 52 | void 53 | glmc_mat3_quat(mat3 m, versor dest); 54 | 55 | CGLM_EXPORT 56 | void 57 | glmc_mat3_scale(mat3 m, float s); 58 | 59 | CGLM_EXPORT 60 | float 61 | glmc_mat3_det(mat3 mat); 62 | 63 | CGLM_EXPORT 64 | void 65 | glmc_mat3_inv(mat3 mat, mat3 dest); 66 | 67 | CGLM_EXPORT 68 | void 69 | glmc_mat3_swap_col(mat3 mat, int col1, int col2); 70 | 71 | CGLM_EXPORT 72 | void 73 | glmc_mat3_swap_row(mat3 mat, int row1, int row2); 74 | 75 | CGLM_EXPORT 76 | float 77 | glmc_mat3_rmc(vec3 r, mat3 m, vec3 c); 78 | 79 | #ifdef __cplusplus 80 | } 81 | #endif 82 | #endif /* cglmc_mat3_h */ 83 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/plane.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_plane_h 9 | #define cglmc_plane_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | void 18 | glmc_plane_normalize(vec4 plane); 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif 23 | #endif /* cglmc_plane_h */ 24 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/project.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_project_h 9 | #define cglmc_project_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | void 18 | glmc_unprojecti(vec3 pos, mat4 invMat, vec4 vp, vec3 dest); 19 | 20 | CGLM_EXPORT 21 | void 22 | glmc_unproject(vec3 pos, mat4 m, vec4 vp, vec3 dest); 23 | 24 | CGLM_EXPORT 25 | void 26 | glmc_project(vec3 pos, mat4 m, vec4 vp, vec3 dest); 27 | 28 | #ifdef __cplusplus 29 | } 30 | #endif 31 | #endif /* cglmc_project_h */ 32 | 33 | 34 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/call/sphere.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglmc_sphere_h 9 | #define cglmc_sphere_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "../cglm.h" 15 | 16 | CGLM_EXPORT 17 | float 18 | glmc_sphere_radii(vec4 s); 19 | 20 | CGLM_EXPORT 21 | void 22 | glmc_sphere_transform(vec4 s, mat4 m, vec4 dest); 23 | 24 | CGLM_EXPORT 25 | void 26 | glmc_sphere_merge(vec4 s1, vec4 s2, vec4 dest); 27 | 28 | CGLM_EXPORT 29 | bool 30 | glmc_sphere_sphere(vec4 s1, vec4 s2); 31 | 32 | CGLM_EXPORT 33 | bool 34 | glmc_sphere_point(vec4 s, vec3 point); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | #endif /* cglmc_sphere_h */ 40 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/cglm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_h 9 | #define cglm_h 10 | 11 | #include "common.h" 12 | #include "vec2.h" 13 | #include "vec3.h" 14 | #include "vec4.h" 15 | #include "mat4.h" 16 | #include "mat3.h" 17 | #include "affine.h" 18 | #include "cam.h" 19 | #include "frustum.h" 20 | #include "quat.h" 21 | #include "euler.h" 22 | #include "plane.h" 23 | #include "box.h" 24 | #include "color.h" 25 | #include "util.h" 26 | //#include "io.h" 27 | #include "project.h" 28 | #include "sphere.h" 29 | #include "ease.h" 30 | #include "curve.h" 31 | #include "bezier.h" 32 | 33 | #endif /* cglm_h */ 34 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/color.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_color_h 9 | #define cglm_color_h 10 | 11 | #include "common.h" 12 | #include "vec3.h" 13 | 14 | /*! 15 | * @brief averages the color channels into one value 16 | * 17 | * @param[in] rgb RGB color 18 | */ 19 | CGLM_INLINE 20 | float 21 | glm_luminance(vec3 rgb) { 22 | vec3 l = {0.212671f, 0.715160f, 0.072169f}; 23 | return glm_dot(rgb, l); 24 | } 25 | 26 | #endif /* cglm_color_h */ 27 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_common_h 9 | #define cglm_common_h 10 | 11 | #define _USE_MATH_DEFINES /* for windows */ 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | #if defined(_MSC_VER) 20 | # ifdef CGLM_DLL 21 | # define CGLM_EXPORT __declspec(dllexport) 22 | # else 23 | # define CGLM_EXPORT __declspec(dllimport) 24 | # endif 25 | # define CGLM_INLINE __forceinline 26 | #else 27 | # define CGLM_EXPORT __attribute__((visibility("default"))) 28 | # define CGLM_INLINE static inline __attribute((always_inline)) 29 | #endif 30 | 31 | #define GLM_SHUFFLE4(z, y, x, w) (((z) << 6) | ((y) << 4) | ((x) << 2) | (w)) 32 | #define GLM_SHUFFLE3(z, y, x) (((z) << 4) | ((y) << 2) | (x)) 33 | 34 | #include "types.h" 35 | #ifndef _arch_dreamcast 36 | #include "simd/intrin.h" 37 | #endif 38 | 39 | #endif /* cglm_common_h */ 40 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/curve.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_curve_h 9 | #define cglm_curve_h 10 | 11 | #include "common.h" 12 | #include "vec4.h" 13 | #include "mat4.h" 14 | 15 | /*! 16 | * @brief helper function to calculate S*M*C multiplication for curves 17 | * 18 | * This function does not encourage you to use SMC, 19 | * instead it is a helper if you use SMC. 20 | * 21 | * if you want to specify S as vector then use more generic glm_mat4_rmc() func. 22 | * 23 | * Example usage: 24 | * B(s) = glm_smc(s, GLM_BEZIER_MAT, (vec4){p0, c0, c1, p1}) 25 | * 26 | * @param[in] s parameter between 0 and 1 (this will be [s3, s2, s, 1]) 27 | * @param[in] m basis matrix 28 | * @param[in] c position/control vector 29 | * 30 | * @return B(s) 31 | */ 32 | CGLM_INLINE 33 | float 34 | glm_smc(float s, mat4 m, vec4 c) { 35 | vec4 vs; 36 | glm_vec4_cubic(s, vs); 37 | return glm_mat4_rmc(vs, m, c); 38 | } 39 | 40 | #endif /* cglm_curve_h */ 41 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/plane.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_plane_h 9 | #define cglm_plane_h 10 | 11 | #include "common.h" 12 | #include "vec4.h" 13 | 14 | /* 15 | Plane equation: Ax + By + Cz + D = 0; 16 | 17 | It stored in vec4 as [A, B, C, D]. (A, B, C) is normal and D is distance 18 | */ 19 | 20 | /* 21 | Functions: 22 | CGLM_INLINE void glm_plane_normalize(vec4 plane); 23 | */ 24 | 25 | /*! 26 | * @brief normalizes a plane 27 | * 28 | * @param[in, out] plane plane to normalize 29 | */ 30 | CGLM_INLINE 31 | void 32 | glm_plane_normalize(vec4 plane) { 33 | glm_vec4_scale(plane, 1.0f / glm_vec3_norm(plane), plane); 34 | } 35 | 36 | #endif /* cglm_plane_h */ 37 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/simd/arm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_simd_arm_h 9 | #define cglm_simd_arm_h 10 | #include "intrin.h" 11 | #ifdef CGLM_SIMD_ARM 12 | 13 | #define glmm_load(p) vld1q_f32(p) 14 | #define glmm_store(p, a) vst1q_f32(p, a) 15 | 16 | static inline 17 | float 18 | glmm_hadd(float32x4_t v) { 19 | #if defined(__aarch64__) 20 | return vaddvq_f32(v); 21 | #else 22 | v = vaddq_f32(v, vrev64q_f32(v)); 23 | v = vaddq_f32(v, vcombine_f32(vget_high_f32(v), vget_low_f32(v))); 24 | return vgetq_lane_f32(v, 0); 25 | #endif 26 | } 27 | 28 | static inline 29 | float 30 | glmm_dot(float32x4_t a, float32x4_t b) { 31 | return glmm_hadd(vmulq_f32(a, b)); 32 | } 33 | 34 | static inline 35 | float 36 | glmm_norm(float32x4_t a) { 37 | return sqrtf(glmm_dot(a, a)); 38 | } 39 | 40 | #endif 41 | #endif /* cglm_simd_arm_h */ 42 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/simd/sse2/quat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_quat_simd_h 9 | #define cglm_quat_simd_h 10 | #if defined( __SSE__ ) || defined( __SSE2__ ) 11 | 12 | #include "../../common.h" 13 | #include "../intrin.h" 14 | 15 | CGLM_INLINE 16 | void 17 | glm_quat_mul_sse2(versor p, versor q, versor dest) { 18 | /* 19 | + (a1 b2 + b1 a2 + c1 d2 − d1 c2)i 20 | + (a1 c2 − b1 d2 + c1 a2 + d1 b2)j 21 | + (a1 d2 + b1 c2 − c1 b2 + d1 a2)k 22 | a1 a2 − b1 b2 − c1 c2 − d1 d2 23 | */ 24 | 25 | __m128 xp, xq, x0, r; 26 | 27 | xp = glmm_load(p); /* 3 2 1 0 */ 28 | xq = glmm_load(q); 29 | 30 | r = _mm_mul_ps(glmm_shuff1x(xp, 3), xq); 31 | 32 | x0 = _mm_xor_ps(glmm_shuff1x(xp, 0), _mm_set_ps(-0.f, 0.f, -0.f, 0.f)); 33 | r = _mm_add_ps(r, _mm_mul_ps(x0, glmm_shuff1(xq, 0, 1, 2, 3))); 34 | 35 | x0 = _mm_xor_ps(glmm_shuff1x(xp, 1), _mm_set_ps(-0.f, -0.f, 0.f, 0.f)); 36 | r = _mm_add_ps(r, _mm_mul_ps(x0, glmm_shuff1(xq, 1, 0, 3, 2))); 37 | 38 | x0 = _mm_xor_ps(glmm_shuff1x(xp, 2), _mm_set_ps(-0.f, 0.f, 0.f, -0.f)); 39 | r = _mm_add_ps(r, _mm_mul_ps(x0, glmm_shuff1(xq, 2, 3, 0, 1))); 40 | 41 | glmm_store(dest, r); 42 | } 43 | 44 | 45 | #endif 46 | #endif /* cglm_quat_simd_h */ 47 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/struct.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_structs_h 9 | #define cglm_structs_h 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include "cglm.h" 15 | #include "types-struct.h" 16 | #include "struct/vec3.h" 17 | #include "struct/vec4.h" 18 | #include "struct/mat3.h" 19 | #include "struct/mat4.h" 20 | #include "struct/affine.h" 21 | #include "struct/frustum.h" 22 | #include "struct/plane.h" 23 | #include "struct/box.h" 24 | #include "struct/color.h" 25 | #include "struct/io.h" 26 | #include "struct/cam.h" 27 | #include "struct/quat.h" 28 | #include "struct/euler.h" 29 | #include "struct/project.h" 30 | #include "struct/sphere.h" 31 | #include "struct/curve.h" 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | #endif /* cglm_structs_h */ 37 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/struct/color.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglms_colors_h 9 | #define cglms_colors_h 10 | 11 | #include "../common.h" 12 | #include "../types-struct.h" 13 | #include "../color.h" 14 | #include "vec3.h" 15 | 16 | /*! 17 | * @brief averages the color channels into one value 18 | * 19 | * @param[in] rgb RGB color 20 | */ 21 | CGLM_INLINE 22 | float 23 | glms_luminance(vec3s rgb) { 24 | return glm_luminance(rgb.raw); 25 | } 26 | 27 | #endif /* cglms_colors_h */ 28 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/struct/curve.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglms_curves_h 9 | #define cglms_curves_h 10 | 11 | #include "../common.h" 12 | #include "../types-struct.h" 13 | #include "../curve.h" 14 | #include "vec4.h" 15 | #include "mat4.h" 16 | 17 | /*! 18 | * @brief helper function to calculate S*M*C multiplication for curves 19 | * 20 | * This function does not encourage you to use SMC, 21 | * instead it is a helper if you use SMC. 22 | * 23 | * if you want to specify S as vector then use more generic glm_mat4_rmc() func. 24 | * 25 | * Example usage: 26 | * B(s) = glm_smc(s, GLM_BEZIER_MAT, (vec4){p0, c0, c1, p1}) 27 | * 28 | * @param[in] s parameter between 0 and 1 (this will be [s3, s2, s, 1]) 29 | * @param[in] m basis matrix 30 | * @param[in] c position/control vector 31 | * 32 | * @return B(s) 33 | */ 34 | CGLM_INLINE 35 | float 36 | glms_smc(float s, mat4s m, vec4s c) { 37 | return glm_smc(s, m.raw, c.raw); 38 | } 39 | 40 | #endif /* cglms_curves_h */ 41 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/struct/plane.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglms_planes_h 9 | #define cglms_planes_h 10 | 11 | #include "../common.h" 12 | #include "../types-struct.h" 13 | #include "../plane.h" 14 | #include "vec4.h" 15 | 16 | /* 17 | Plane equation: Ax + By + Cz + D = 0; 18 | 19 | It stored in vec4 as [A, B, C, D]. (A, B, C) is normal and D is distance 20 | */ 21 | 22 | /* 23 | Functions: 24 | CGLM_INLINE vec4s glms_plane_normalize(vec4s plane); 25 | */ 26 | 27 | /*! 28 | * @brief normalizes a plane 29 | * 30 | * @param[in] plane plane to normalize 31 | * @returns normalized plane 32 | */ 33 | CGLM_INLINE 34 | vec4s 35 | glms_plane_normalize(vec4s plane) { 36 | glm_plane_normalize(plane.raw); 37 | return plane; 38 | } 39 | 40 | #endif /* cglms_planes_h */ 41 | -------------------------------------------------------------------------------- /deps/cglm/include/cglm/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm_version_h 9 | #define cglm_version_h 10 | 11 | #define CGLM_VERSION_MAJOR 0 12 | #define CGLM_VERSION_MINOR 6 13 | #define CGLM_VERSION_PATCH 0 14 | 15 | #endif /* cglm_version_h */ 16 | -------------------------------------------------------------------------------- /deps/cglm/src/bezier.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "../include/cglm/cglm.h" 9 | #include "../include/cglm/call.h" 10 | 11 | CGLM_EXPORT 12 | float 13 | glmc_bezier(float s, float p0, float c0, float c1, float p1) { 14 | return glm_bezier(s, p0, c0, c1, p1); 15 | } 16 | 17 | CGLM_EXPORT 18 | float 19 | glmc_hermite(float s, float p0, float t0, float t1, float p1) { 20 | return glm_hermite(s, p0, t0, t1, p1); 21 | } 22 | 23 | CGLM_EXPORT 24 | float 25 | glmc_decasteljau(float prm, float p0, float c0, float c1, float p1) { 26 | return glm_decasteljau(prm, p0, c0, c1, p1); 27 | } 28 | -------------------------------------------------------------------------------- /deps/cglm/src/config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef cglm__config__h_ 9 | #define cglm__config__h_ 10 | 11 | #if defined(_WIN32) || defined(WIN32) 12 | 13 | /* Exclude rarely-used stuff from Windows headers */ 14 | # define WIN32_LEAN_AND_MEAN 15 | # include 16 | 17 | /* Windows Header Files: */ 18 | # include 19 | 20 | #endif 21 | 22 | #endif /* cglm__config__h_ */ 23 | -------------------------------------------------------------------------------- /deps/cglm/src/curve.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "../include/cglm/cglm.h" 9 | #include "../include/cglm/call.h" 10 | 11 | CGLM_EXPORT 12 | float 13 | glmc_smc(float s, mat4 m, vec4 c) { 14 | return glm_smc(s, m, c); 15 | } 16 | -------------------------------------------------------------------------------- /deps/cglm/src/euler.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "../include/cglm/cglm.h" 9 | #include "../include/cglm/call.h" 10 | 11 | CGLM_EXPORT 12 | void 13 | glmc_euler_angles(mat4 m, vec3 dest) { 14 | glm_euler_angles(m, dest); 15 | } 16 | 17 | CGLM_EXPORT 18 | void 19 | glmc_euler(vec3 angles, mat4 dest) { 20 | glm_euler(angles, dest); 21 | } 22 | 23 | CGLM_EXPORT 24 | void 25 | glmc_euler_xyz(vec3 angles, mat4 dest) { 26 | glm_euler_xyz(angles, dest); 27 | } 28 | 29 | CGLM_EXPORT 30 | void 31 | glmc_euler_zyx(vec3 angles, mat4 dest) { 32 | glm_euler_zyx(angles, dest); 33 | } 34 | 35 | CGLM_EXPORT 36 | void 37 | glmc_euler_zxy(vec3 angles, mat4 dest) { 38 | glm_euler_zxy(angles, dest); 39 | } 40 | 41 | CGLM_EXPORT 42 | void 43 | glmc_euler_xzy(vec3 angles, mat4 dest) { 44 | glm_euler_xzy(angles, dest); 45 | } 46 | 47 | CGLM_EXPORT 48 | void 49 | glmc_euler_yzx(vec3 angles, mat4 dest) { 50 | glm_euler_yzx(angles, dest); 51 | } 52 | 53 | CGLM_EXPORT 54 | void 55 | glmc_euler_yxz(vec3 angles, mat4 dest) { 56 | glm_euler_yxz(angles, dest); 57 | } 58 | 59 | CGLM_EXPORT 60 | void 61 | glmc_euler_by_order(vec3 angles, glm_euler_sq axis, mat4 dest) { 62 | glm_euler_by_order(angles, axis, dest); 63 | } 64 | -------------------------------------------------------------------------------- /deps/cglm/src/frustum.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "../include/cglm/cglm.h" 9 | #include "../include/cglm/call.h" 10 | 11 | CGLM_EXPORT 12 | void 13 | glmc_frustum_planes(mat4 m, vec4 dest[6]) { 14 | glm_frustum_planes(m, dest); 15 | } 16 | 17 | CGLM_EXPORT 18 | void 19 | glmc_frustum_corners(mat4 invMat, vec4 dest[8]) { 20 | glm_frustum_corners(invMat, dest); 21 | } 22 | 23 | CGLM_EXPORT 24 | void 25 | glmc_frustum_center(vec4 corners[8], vec4 dest) { 26 | glm_frustum_center(corners, dest); 27 | } 28 | 29 | CGLM_EXPORT 30 | void 31 | glmc_frustum_box(vec4 corners[8], mat4 m, vec3 box[2]) { 32 | glm_frustum_box(corners, m, box); 33 | } 34 | 35 | CGLM_EXPORT 36 | void 37 | glmc_frustum_corners_at(vec4 corners[8], 38 | float splitDist, 39 | float farDist, 40 | vec4 planeCorners[4]) { 41 | glm_frustum_corners_at(corners, splitDist, farDist, planeCorners); 42 | } 43 | -------------------------------------------------------------------------------- /deps/cglm/src/io.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "../include/cglm/cglm.h" 9 | #include "../include/cglm/call.h" 10 | 11 | CGLM_EXPORT 12 | void 13 | glmc_mat4_print(mat4 matrix, 14 | FILE * __restrict ostream) { 15 | glm_mat4_print(matrix, ostream); 16 | } 17 | 18 | CGLM_EXPORT 19 | void 20 | glmc_mat3_print(mat3 matrix, 21 | FILE * __restrict ostream) { 22 | glm_mat3_print(matrix, ostream); 23 | } 24 | 25 | CGLM_EXPORT 26 | void 27 | glmc_vec4_print(vec4 vec, 28 | FILE * __restrict ostream) { 29 | glm_vec4_print(vec, ostream); 30 | } 31 | 32 | CGLM_EXPORT 33 | void 34 | glmc_vec3_print(vec3 vec, 35 | FILE * __restrict ostream) { 36 | glm_vec3_print(vec, ostream); 37 | } 38 | 39 | CGLM_EXPORT 40 | void 41 | glmc_versor_print(versor vec, 42 | FILE * __restrict ostream) { 43 | glm_versor_print(vec, ostream); 44 | } 45 | -------------------------------------------------------------------------------- /deps/cglm/src/plane.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "../include/cglm/cglm.h" 9 | #include "../include/cglm/call.h" 10 | 11 | CGLM_EXPORT 12 | void 13 | glmc_plane_normalize(vec4 plane) { 14 | glm_plane_normalize(plane); 15 | } 16 | -------------------------------------------------------------------------------- /deps/cglm/src/project.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "../include/cglm/cglm.h" 9 | #include "../include/cglm/call.h" 10 | 11 | CGLM_EXPORT 12 | void 13 | glmc_unprojecti(vec3 pos, mat4 invMat, vec4 vp, vec3 dest) { 14 | glm_unprojecti(pos, invMat, vp, dest); 15 | } 16 | 17 | CGLM_EXPORT 18 | void 19 | glmc_unproject(vec3 pos, mat4 m, vec4 vp, vec3 dest) { 20 | glm_unproject(pos, m, vp, dest); 21 | } 22 | 23 | CGLM_EXPORT 24 | void 25 | glmc_project(vec3 pos, mat4 m, vec4 vp, vec3 dest) { 26 | glm_project(pos, m, vp, dest); 27 | } 28 | -------------------------------------------------------------------------------- /deps/cglm/src/sphere.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "../include/cglm/cglm.h" 9 | #include "../include/cglm/call.h" 10 | 11 | CGLM_EXPORT 12 | float 13 | glmc_sphere_radii(vec4 s) { 14 | return glm_sphere_radii(s); 15 | } 16 | 17 | CGLM_EXPORT 18 | void 19 | glmc_sphere_transform(vec4 s, mat4 m, vec4 dest) { 20 | glm_sphere_transform(s, m, dest); 21 | } 22 | 23 | CGLM_EXPORT 24 | void 25 | glmc_sphere_merge(vec4 s1, vec4 s2, vec4 dest) { 26 | glm_sphere_merge(s1, s2, dest); 27 | } 28 | 29 | CGLM_EXPORT 30 | bool 31 | glmc_sphere_sphere(vec4 s1, vec4 s2) { 32 | return glm_sphere_sphere(s1, s2); 33 | } 34 | 35 | CGLM_EXPORT 36 | bool 37 | glmc_sphere_point(vec4 s, vec3 point) { 38 | return glm_sphere_point(s, point); 39 | } 40 | -------------------------------------------------------------------------------- /deps/cglm/test/src/test_cam.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "test_common.h" 9 | 10 | void 11 | test_camera_lookat(void **state) { 12 | mat4 view1, view2; 13 | vec3 center, 14 | eye = {0.024f, 14.6f, 67.04f}, 15 | dir = {0.0f, 0.0f, -1.0f}, 16 | up = {0.0f, 1.0f, 0.0f} 17 | ; 18 | 19 | glm_vec3_add(eye, dir, center); 20 | glm_lookat(eye, center, up, view1); 21 | 22 | glm_look(eye, dir, up, view2); 23 | 24 | test_assert_mat4_eq(view1, view2); 25 | } 26 | 27 | void 28 | test_camera_decomp(void **state) { 29 | mat4 proj, proj2; 30 | vec4 sizes; 31 | float aspect, fovy, nearVal, farVal; 32 | 33 | aspect = 0.782f; 34 | fovy = glm_rad(49.984f); 35 | nearVal = 0.1f; 36 | farVal = 100.0f; 37 | 38 | glm_perspective(fovy, aspect, nearVal, farVal, proj); 39 | assert_true(fabsf(aspect - glm_persp_aspect(proj)) < FLT_EPSILON); 40 | assert_true(fabsf(fovy - glm_persp_fovy(proj)) < FLT_EPSILON); 41 | assert_true(fabsf(49.984f - glm_deg(glm_persp_fovy(proj))) < FLT_EPSILON); 42 | 43 | glm_persp_sizes(proj, fovy, sizes); 44 | 45 | glm_frustum(-sizes[0] * 0.5, 46 | sizes[0] * 0.5, 47 | -sizes[1] * 0.5, 48 | sizes[1] * 0.5, 49 | nearVal, 50 | farVal, 51 | proj2); 52 | 53 | test_assert_mat4_eq(proj, proj2); 54 | } 55 | -------------------------------------------------------------------------------- /deps/cglm/test/src/test_clamp.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "test_common.h" 9 | 10 | void 11 | test_clamp(void **state) { 12 | vec3 v3 = {15.07, 0.4, 17.3}; 13 | vec4 v4 = {5.07, 2.3, 1.3, 1.4}; 14 | 15 | assert_true(glm_clamp(1.6f, 0.0f, 1.0f) == 1.0f); 16 | assert_true(glm_clamp(-1.6f, 0.0f, 1.0f) == 0.0f); 17 | assert_true(glm_clamp(0.6f, 0.0f, 1.0f) == 0.6f); 18 | 19 | glm_vec3_clamp(v3, 0.0, 1.0); 20 | glm_vec4_clamp(v4, 1.5, 3.0); 21 | 22 | assert_true(v3[0] == 1.0f); 23 | assert_true(v3[1] == 0.4f); 24 | assert_true(v3[2] == 1.0f); 25 | 26 | assert_true(v4[0] == 3.0f); 27 | assert_true(v4[1] == 2.3f); 28 | assert_true(v4[2] == 1.5f); 29 | assert_true(v4[3] == 1.5f); 30 | } 31 | -------------------------------------------------------------------------------- /deps/cglm/test/src/test_common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #ifndef test_common_h 9 | #define test_common_h 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | void 27 | test_rand_mat4(mat4 dest); 28 | 29 | void 30 | test_rand_mat3(mat3 dest); 31 | 32 | void 33 | test_assert_eqf(float a, float b); 34 | 35 | void 36 | test_assert_mat4_eq(mat4 m1, mat4 m2); 37 | 38 | void 39 | test_assert_mat4_eq2(mat4 m1, mat4 m2, float eps); 40 | 41 | void 42 | test_assert_mat3_eq(mat3 m1, mat3 m2); 43 | 44 | void 45 | test_assert_vec3_eq(vec3 v1, vec3 v2); 46 | 47 | void 48 | test_assert_vec3s_eq(vec3s v1, vec3s v2); 49 | 50 | void 51 | test_assert_vec4_eq(vec4 v1, vec4 v2); 52 | 53 | void 54 | test_assert_vec4s_eq(vec4s v1, vec4s v2); 55 | 56 | void 57 | test_assert_quat_eq(versor v1, versor v2); 58 | 59 | void 60 | test_assert_quat_eq_abs(versor v1, versor v2); 61 | 62 | void 63 | test_rand_vec3(vec3 dest); 64 | 65 | vec3s 66 | test_rand_vec3s(void); 67 | 68 | void 69 | test_rand_vec4(vec4 dest); 70 | 71 | vec4s 72 | test_rand_vec4s(void); 73 | 74 | float 75 | test_rand(void); 76 | 77 | void 78 | test_rand_quat(versor q); 79 | 80 | #endif /* test_common_h */ 81 | -------------------------------------------------------------------------------- /deps/cglm/test/src/test_euler.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "test_common.h" 9 | 10 | void 11 | test_euler(void **state) { 12 | mat4 rot1, rot2; 13 | vec3 inAngles, outAngles; 14 | 15 | inAngles[0] = glm_rad(-45.0f); /* X angle */ 16 | inAngles[1] = glm_rad(88.0f); /* Y angle */ 17 | inAngles[2] = glm_rad(18.0f); /* Z angle */ 18 | 19 | glm_euler_xyz(inAngles, rot1); 20 | 21 | /* extract angles */ 22 | glmc_euler_angles(rot1, outAngles); 23 | 24 | /* angles must be equal in that range */ 25 | test_assert_vec3_eq(inAngles, outAngles); 26 | 27 | /* matrices must be equal */ 28 | glmc_euler_xyz(outAngles, rot2); 29 | test_assert_mat4_eq(rot1, rot2); 30 | 31 | /* change range */ 32 | inAngles[0] = glm_rad(-145.0f); /* X angle */ 33 | inAngles[1] = glm_rad(818.0f); /* Y angle */ 34 | inAngles[2] = glm_rad(181.0f); /* Z angle */ 35 | 36 | glm_euler_xyz(inAngles, rot1); 37 | glmc_euler_angles(rot1, outAngles); 38 | 39 | /* angles may not be equal but matrices MUST! */ 40 | 41 | /* matrices must be equal */ 42 | glmc_euler_xyz(outAngles, rot2); 43 | test_assert_mat4_eq(rot1, rot2); 44 | } 45 | -------------------------------------------------------------------------------- /deps/cglm/test/src/test_mat3.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "test_common.h" 9 | 10 | #define m 3 11 | #define n 3 12 | 13 | void 14 | test_mat3(void **state) { 15 | mat3 m1 = GLM_MAT3_IDENTITY_INIT; 16 | mat3 m2 = GLM_MAT3_IDENTITY_INIT; 17 | mat3 m3; 18 | mat3 m4 = GLM_MAT3_ZERO_INIT; 19 | mat3 m5; 20 | int i, j, k; 21 | 22 | /* test identity matrix multiplication */ 23 | glmc_mat3_mul(m1, m2, m3); 24 | for (i = 0; i < m; i++) { 25 | for (j = 0; j < n; j++) { 26 | if (i == j) 27 | assert_true(glm_eq(m3[i][j], 1.0f)); 28 | else 29 | assert_true(glm_eq(m3[i][j], 0.0f)); 30 | } 31 | } 32 | 33 | /* test random matrices */ 34 | /* random matrices */ 35 | test_rand_mat3(m1); 36 | test_rand_mat3(m2); 37 | 38 | glmc_mat3_mul(m1, m2, m3); 39 | for (i = 0; i < m; i++) { 40 | for (j = 0; j < n; j++) { 41 | for (k = 0; k < m; k++) 42 | /* column-major */ 43 | m4[i][j] += m1[k][j] * m2[i][k]; 44 | } 45 | } 46 | 47 | test_assert_mat3_eq(m3, m4); 48 | 49 | for (i = 0; i < 100000; i++) { 50 | test_rand_mat3(m3); 51 | test_rand_mat3(m4); 52 | 53 | /* test inverse precise */ 54 | glmc_mat3_inv(m3, m4); 55 | glmc_mat3_inv(m4, m5); 56 | test_assert_mat3_eq(m3, m5); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /deps/cglm/test/src/test_project.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c), Recep Aslantas. 3 | * 4 | * MIT License (MIT), http://opensource.org/licenses/MIT 5 | * Full license can be found in the LICENSE file 6 | */ 7 | 8 | #include "test_common.h" 9 | 10 | void 11 | test_project(void **state) { 12 | mat4 model, view, proj, mvp; 13 | vec4 viewport = {0.0f, 0.0f, 800.0f, 600.0f}; 14 | vec3 pos = {13.0f, 45.0f, 0.74f}; 15 | vec3 projected, unprojected; 16 | 17 | glm_translate_make(model, (vec3){0.0f, 0.0f, -10.0f}); 18 | glm_lookat((vec3){0.0f, 0.0f, 0.0f}, pos, GLM_YUP, view); 19 | 20 | glm_perspective_default(0.5f, proj); 21 | glm_mat4_mulN((mat4 *[]){&proj, &view, &model}, 3, mvp); 22 | 23 | glmc_project(pos, mvp, viewport, projected); 24 | glmc_unproject(projected, mvp, viewport, unprojected); 25 | 26 | /* unprojected of projected vector must be same as original one */ 27 | /* we used 0.01 because of projection floating point errors */ 28 | assert_true(fabsf(pos[0] - unprojected[0]) < 0.01); 29 | assert_true(fabsf(pos[1] - unprojected[1]) < 0.01); 30 | assert_true(fabsf(pos[2] - unprojected[2]) < 0.01); 31 | } 32 | -------------------------------------------------------------------------------- /deps/libgl/GL/alloc/alloc.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | int alloc_init(void* pool, size_t size); 12 | void alloc_shutdown(void* pool); 13 | 14 | void *alloc_malloc(void* pool, size_t size); 15 | void alloc_free(void* pool, void* p); 16 | 17 | typedef void (defrag_address_move)(void*, void*, void*); 18 | void alloc_run_defrag(void* pool, defrag_address_move callback, int max_iterations, void* user_data); 19 | 20 | size_t alloc_count_free(void* pool); 21 | size_t alloc_count_continuous(void* pool); 22 | 23 | void* alloc_next_available(void* pool, size_t required_size); 24 | void* alloc_base_address(void* pool); 25 | size_t alloc_block_count(void* pool); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | -------------------------------------------------------------------------------- /deps/libgl/GL/config.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | /* This figure is derived from the needs of Quake 1 */ 4 | #define MAX_TEXTURE_COUNT 1088 5 | -------------------------------------------------------------------------------- /deps/libgl/GL/error.c: -------------------------------------------------------------------------------- 1 | /* KallistiGL for KallistiOS ##version## 2 | 3 | libgl/gl-error.c 4 | Copyright (C) 2014 Josh Pearson 5 | Copyright (C) 2016 Lawrence Sebald 6 | * Copyright (C) 2017 Luke Benstead 7 | 8 | KOS Open GL State Machine Error Code Implementation. 9 | */ 10 | 11 | #include 12 | 13 | #include "private.h" 14 | 15 | GLenum LAST_ERROR = GL_NO_ERROR; 16 | char ERROR_FUNCTION[64] = { '\0' }; 17 | 18 | /* Quoth the GL Spec: 19 | When an error occurs, the error flag is set to the appropriate error code 20 | value. No other errors are recorded until glGetError is called, the error 21 | code is returned, and the flag is reset to GL_NO_ERROR. 22 | 23 | So, we only record an error here if the error code is currently unset. 24 | Nothing in the spec requires recording multiple error flags, although it is 25 | allowed by the spec. We take the easy way out for now. */ 26 | 27 | 28 | GLenum glGetError(void) { 29 | GLenum rv = LAST_ERROR; 30 | _glKosResetError(); 31 | return rv; 32 | } 33 | 34 | const GLubyte *gluErrorString(GLenum error) { 35 | switch(error) { 36 | case GL_NO_ERROR: 37 | return (GLubyte *)"no error"; 38 | 39 | case GL_INVALID_ENUM: 40 | return (GLubyte *)"invalid enumerant"; 41 | 42 | case GL_INVALID_OPERATION: 43 | return (GLubyte *)"invalid operation"; 44 | 45 | case GL_INVALID_VALUE: 46 | return (GLubyte *)"invalid value"; 47 | 48 | case GL_OUT_OF_MEMORY: 49 | return (GLubyte *)"out of memory"; 50 | 51 | default: 52 | return (GLubyte *)"unknown error"; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /deps/libgl/GL/gl_assert.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef NDEBUG 3 | /* We're debugging, use normal assert */ 4 | #include 5 | #define gl_assert assert 6 | #else 7 | /* Release mode, use our custom assert */ 8 | #include 9 | #include 10 | 11 | #define gl_assert(x) \ 12 | do {\ 13 | if(!(x)) {\ 14 | fprintf(stderr, "Assertion failed at %s:%d\n", __FILE__, __LINE__);\ 15 | exit(1);\ 16 | }\ 17 | } while(0); \ 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /deps/libgl/GL/glu.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "private.h" 3 | 4 | /* Set the Perspective */ 5 | void APIENTRY gluPerspective(GLfloat angle, GLfloat aspect, 6 | GLfloat znear, GLfloat zfar) { 7 | GLfloat fW, fH; 8 | 9 | fH = tanf(angle * (M_PI / 360.0f)) * znear; 10 | fW = fH * aspect; 11 | 12 | glFrustum(-fW, fW, -fH, fH, znear, zfar); 13 | } 14 | 15 | void APIENTRY gluOrtho2D(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top) { 16 | glOrtho(left, right, bottom, top, -1.0f, 1.0f); 17 | } 18 | -------------------------------------------------------------------------------- /deps/libgl/GL/platforms/software/edge_equation.c: -------------------------------------------------------------------------------- 1 | #include "edge_equation.h" 2 | 3 | void EdgeEquationInit(EdgeEquation* edge, const float* v0, const float* v1) { 4 | edge->a = v0[1] - v1[1]; 5 | edge->b = v1[0] - v0[0]; 6 | edge->c = -(edge->a * (v0[0] + v1[0]) + edge->b * (v0[1] + v1[1])) / 2; 7 | edge->tie = edge->a != 0 ? edge->a > 0 : edge->b > 0; 8 | } 9 | 10 | float EdgeEquationEvaluate(const EdgeEquation* edge, float x, float y) { 11 | return edge->a * x + edge->b * y + edge->c; 12 | } 13 | 14 | bool EdgeEquationTestValue(const EdgeEquation* edge, float value) { 15 | return (value >= 0 || (value == 0 && edge->tie)); 16 | } 17 | 18 | bool EdgeEquationTestPoint(const EdgeEquation* edge, float x, float y) { 19 | return EdgeEquationTestValue(edge, EdgeEquationEvaluate(edge, x, y)); 20 | } 21 | -------------------------------------------------------------------------------- /deps/libgl/GL/platforms/software/edge_equation.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | typedef struct EdgeEquation { 7 | float a; 8 | float b; 9 | float c; 10 | bool tie; 11 | } EdgeEquation; 12 | 13 | void EdgeEquationInit(EdgeEquation* edge, const float* v0, const float* v1); 14 | float EdgeEquationEvaluate(const EdgeEquation* edge, float x, float y); 15 | bool EdgeEquationTestValue(const EdgeEquation* edge, float value); 16 | bool EdgeEquationTestPoint(const EdgeEquation* edge, float x, float y); 17 | 18 | -------------------------------------------------------------------------------- /deps/libgl/GL/platforms/software/parameter_equation.c: -------------------------------------------------------------------------------- 1 | #include "parameter_equation.h" 2 | #include "edge_equation.h" 3 | 4 | void ParameterEquationInit(ParameterEquation* equation, float p0, float p1, float p2, const EdgeEquation* e0, const EdgeEquation* e1, const EdgeEquation* e2, float area) { 5 | 6 | float factor = 1.0f / (2.0f * area); 7 | 8 | equation->a = factor * (p0 * e0->a + p1 * e1->a + p2 * e2->a); 9 | equation->b = factor * (p0 * e0->b + p1 * e1->b + p2 * e2->b); 10 | equation->c = factor * (p0 * e0->c + p1 * e1->c + p2 * e2->c); 11 | } 12 | 13 | 14 | float ParameterEquationEvaluate(const ParameterEquation* equation, float x, float y) { 15 | return equation->a * x + equation->b * y + equation->c; 16 | } 17 | -------------------------------------------------------------------------------- /deps/libgl/GL/platforms/software/parameter_equation.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef struct ParameterEquation { 4 | float a; 5 | float b; 6 | float c; 7 | } ParameterEquation; 8 | 9 | struct EdgeEquation; 10 | 11 | void ParameterEquationInit( 12 | ParameterEquation* equation, 13 | float p0, float p1, float p2, 14 | const struct EdgeEquation* e0, const struct EdgeEquation* e1, const struct EdgeEquation* e2, float area); 15 | 16 | float ParameterEquationEvaluate(const ParameterEquation* equation, float x, float y); 17 | -------------------------------------------------------------------------------- /deps/libgl/GL/types.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | typedef struct { 6 | /* Same 32 byte layout as pvr_vertex_t */ 7 | uint32_t flags; 8 | float xyz[3]; 9 | float uv[2]; 10 | uint8_t bgra[4]; 11 | 12 | /* In the pvr_vertex_t structure, this next 4 bytes is oargb 13 | * but we're not using that for now, so having W here makes the code 14 | * simpler */ 15 | float w; 16 | } __attribute__ ((aligned (32))) Vertex; 17 | -------------------------------------------------------------------------------- /deps/libgl/GL/util.c: -------------------------------------------------------------------------------- 1 | #include "private.h" 2 | 3 | void APIENTRY glVertexPackColor3fKOS(GLVertexKOS* vertex, float r, float g, float b) { 4 | vertex->bgra[3] = 255; 5 | vertex->bgra[2] = (r * 255.0f); 6 | vertex->bgra[1] = (g * 255.0f); 7 | vertex->bgra[0] = (b * 255.0f); 8 | } 9 | 10 | void APIENTRY glVertexPackColor4fKOS(GLVertexKOS* vertex, float r, float g, float b, float a) { 11 | vertex->bgra[3] = (a * 255.0f); 12 | vertex->bgra[2] = (r * 255.0f); 13 | vertex->bgra[1] = (g * 255.0f); 14 | vertex->bgra[0] = (b * 255.0f); 15 | } 16 | -------------------------------------------------------------------------------- /deps/libgl/GL/version.c.in: -------------------------------------------------------------------------------- 1 | 2 | const char* GLDC_VERSION = "@GLDC_VERSION@"; 3 | -------------------------------------------------------------------------------- /deps/libgl/LICENSE: -------------------------------------------------------------------------------- 1 | BSD 2-Clause License 2 | 3 | Copyright (c) 2018, Luke Benstead 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | * Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | -------------------------------------------------------------------------------- /deps/libgl/include/glu.h: -------------------------------------------------------------------------------- 1 | /* KallistiGL for KallistiOS ##version## 2 | 3 | libgl/glu.h 4 | Copyright (C) 2013-2014 Josh "PH3NOM" Pearson 5 | Copyright (C) 2016 Lawrence Sebald 6 | 7 | Some functionality adapted from the original KOS libgl: 8 | Copyright (C) 2001 Dan Potter 9 | Copyright (C) 2002 Benoit Miller 10 | 11 | */ 12 | 13 | #ifndef __GL_GLU_H 14 | #define __GL_GLU_H 15 | 16 | #include 17 | __BEGIN_DECLS 18 | 19 | #ifndef BUILD_LIBGL 20 | #include "gl.h" 21 | #endif 22 | 23 | #define GLU_FALSE 0 24 | #define GLU_TRUE 1 25 | 26 | GLAPI void APIENTRY gluOrtho2D(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top); 27 | 28 | /* gluPerspective - Set the Perspective for Rendering. */ 29 | GLAPI void APIENTRY gluPerspective(GLdouble fovy, GLdouble aspect, 30 | GLdouble zNear, GLdouble zFar); 31 | 32 | /* gluLookAt - Set Camera Position for Rendering. */ 33 | GLAPI void APIENTRY gluLookAt(GLfloat eyex, GLfloat eyey, GLfloat eyez, 34 | GLfloat centerx, GLfloat centery, GLfloat centerz, 35 | GLfloat upx, GLfloat upy, GLfloat upz); 36 | 37 | /* generate mipmaps for any image provided by the user and then pass them to OpenGL */ 38 | GLAPI GLint APIENTRY gluBuild2DMipmaps(GLenum target, GLint internalFormat, 39 | GLsizei width, GLsizei height, 40 | GLenum format, GLenum type, const void *data); 41 | 42 | GLAPI const GLubyte* APIENTRY gluErrorString(GLenum error); 43 | 44 | __END_DECLS 45 | 46 | #endif /* !__GL_GLU_H */ 47 | -------------------------------------------------------------------------------- /deps/libgl/libGLdc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/libgl/libGLdc.a -------------------------------------------------------------------------------- /deps/minilzo/libminilzo.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/minilzo/libminilzo.a -------------------------------------------------------------------------------- /deps/minilzo/minilzo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/minilzo/minilzo.o -------------------------------------------------------------------------------- /deps/zlib-master/.gitignore: -------------------------------------------------------------------------------- 1 | *.diff 2 | *.patch 3 | *.orig 4 | *.rej 5 | 6 | *~ 7 | *.a 8 | *.lo 9 | *.o 10 | *.dylib 11 | 12 | *.gcda 13 | *.gcno 14 | *.gcov 15 | 16 | /example 17 | /example64 18 | /examplesh 19 | /libz.so* 20 | /minigzip 21 | /minigzip64 22 | /minigzipsh 23 | /zlib.pc 24 | /configure.log 25 | 26 | .DS_Store 27 | -------------------------------------------------------------------------------- /deps/zlib-master/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -@echo "Please use ./configure first. Thank you." 3 | 4 | distclean: 5 | make -f Makefile.in distclean 6 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/ada/zlib.gpr: -------------------------------------------------------------------------------- 1 | project Zlib is 2 | 3 | for Languages use ("Ada"); 4 | for Source_Dirs use ("."); 5 | for Object_Dir use "."; 6 | for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo"); 7 | 8 | package Compiler is 9 | for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst"); 10 | end Compiler; 11 | 12 | package Linker is 13 | for Default_Switches ("ada") use ("-lz"); 14 | end Linker; 15 | 16 | package Builder is 17 | for Default_Switches ("ada") use ("-s", "-gnatQ"); 18 | end Builder; 19 | 20 | end Zlib; 21 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/blast/Makefile: -------------------------------------------------------------------------------- 1 | blast: blast.c blast.h 2 | cc -DTEST -o blast blast.c 3 | 4 | test: blast 5 | blast < test.pk | cmp - test.txt 6 | 7 | clean: 8 | rm -f blast blast.o 9 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/blast/README: -------------------------------------------------------------------------------- 1 | Read blast.h for purpose and usage. 2 | 3 | Mark Adler 4 | madler@alumni.caltech.edu 5 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/blast/test.pk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/blast/test.pk -------------------------------------------------------------------------------- /deps/zlib-master/contrib/blast/test.txt: -------------------------------------------------------------------------------- 1 | AIAIAIAIAIAIA -------------------------------------------------------------------------------- /deps/zlib-master/contrib/delphi/ZLibConst.pas: -------------------------------------------------------------------------------- 1 | unit ZLibConst; 2 | 3 | interface 4 | 5 | resourcestring 6 | sTargetBufferTooSmall = 'ZLib error: target buffer may be too small'; 7 | sInvalidStreamOp = 'Invalid stream operation'; 8 | 9 | implementation 10 | 11 | end. 12 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib.build: -------------------------------------------------------------------------------- 1 |  2 | 3 | A .Net wrapper library around ZLib1.dll 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/dotzlib/DotZLib.chm -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET 13 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET 14 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET 15 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib/ChecksumImpl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/dotzlib/DotZLib/ChecksumImpl.cs -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib/CircularBuffer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/dotzlib/DotZLib/CircularBuffer.cs -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib/CodecBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/dotzlib/DotZLib/CodecBase.cs -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib/Deflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/dotzlib/DotZLib/Deflater.cs -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib/DotZLib.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/dotzlib/DotZLib/DotZLib.cs -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib/GZipStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/dotzlib/DotZLib/GZipStream.cs -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/DotZLib/Inflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/dotzlib/DotZLib/Inflater.cs -------------------------------------------------------------------------------- /deps/zlib-master/contrib/dotzlib/LICENSE_1_0.txt: -------------------------------------------------------------------------------- 1 | Boost Software License - Version 1.0 - August 17th, 2003 2 | 3 | Permission is hereby granted, free of charge, to any person or organization 4 | obtaining a copy of the software and accompanying documentation covered by 5 | this license (the "Software") to use, reproduce, display, distribute, 6 | execute, and transmit the Software, and to prepare derivative works of the 7 | Software, and to permit third-parties to whom the Software is furnished to 8 | do so, all subject to the following: 9 | 10 | The copyright notices in the Software and this entire statement, including 11 | the above license grant, this restriction and the following disclaimer, 12 | must be included in all copies of the Software, in whole or in part, and 13 | all derivative works of the Software, unless such copies or derivative 14 | works are solely in the form of machine-executable object code generated by 15 | a source language processor. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT 20 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE 21 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, 22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 | DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /deps/zlib-master/contrib/infback9/README: -------------------------------------------------------------------------------- 1 | See infback9.h for what this is and how to use it. 2 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/infback9/infback9.h: -------------------------------------------------------------------------------- 1 | /* infback9.h -- header for using inflateBack9 functions 2 | * Copyright (C) 2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* 7 | * This header file and associated patches provide a decoder for PKWare's 8 | * undocumented deflate64 compression method (method 9). Use with infback9.c, 9 | * inftree9.h, inftree9.c, and inffix9.h. These patches are not supported. 10 | * This should be compiled with zlib, since it uses zutil.h and zutil.o. 11 | * This code has not yet been tested on 16-bit architectures. See the 12 | * comments in zlib.h for inflateBack() usage. These functions are used 13 | * identically, except that there is no windowBits parameter, and a 64K 14 | * window must be provided. Also if int's are 16 bits, then a zero for 15 | * the third parameter of the "out" function actually means 65536UL. 16 | * zlib.h must be included before this header file. 17 | */ 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | ZEXTERN int ZEXPORT inflateBack9 OF((z_stream FAR *strm, 24 | in_func in, void FAR *in_desc, 25 | out_func out, void FAR *out_desc)); 26 | ZEXTERN int ZEXPORT inflateBack9End OF((z_stream FAR *strm)); 27 | ZEXTERN int ZEXPORT inflateBack9Init_ OF((z_stream FAR *strm, 28 | unsigned char FAR *window, 29 | const char *version, 30 | int stream_size)); 31 | #define inflateBack9Init(strm, window) \ 32 | inflateBack9Init_((strm), (window), \ 33 | ZLIB_VERSION, sizeof(z_stream)) 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/iostream/test.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "zfstream.h" 3 | 4 | int main() { 5 | 6 | // Construct a stream object with this filebuffer. Anything sent 7 | // to this stream will go to standard out. 8 | gzofstream os( 1, ios::out ); 9 | 10 | // This text is getting compressed and sent to stdout. 11 | // To prove this, run 'test | zcat'. 12 | os << "Hello, Mommy" << endl; 13 | 14 | os << setcompressionlevel( Z_NO_COMPRESSION ); 15 | os << "hello, hello, hi, ho!" << endl; 16 | 17 | setcompressionlevel( os, Z_DEFAULT_COMPRESSION ) 18 | << "I'm compressing again" << endl; 19 | 20 | os.close(); 21 | 22 | return 0; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/iostream2/zstream_test.cpp: -------------------------------------------------------------------------------- 1 | #include "zstream.h" 2 | #include 3 | #include 4 | #include 5 | 6 | void main() { 7 | char h[256] = "Hello"; 8 | char* g = "Goodbye"; 9 | ozstream out("temp.gz"); 10 | out < "This works well" < h < g; 11 | out.close(); 12 | 13 | izstream in("temp.gz"); // read it back 14 | char *x = read_string(in), *y = new char[256], z[256]; 15 | in > y > z; 16 | in.close(); 17 | cout << x << endl << y << endl << z << endl; 18 | 19 | out.open("temp.gz"); // try ascii output; zcat temp.gz to see the results 20 | out << setw(50) << setfill('#') << setprecision(20) << x << endl << y << endl << z << endl; 21 | out << z << endl << y << endl << x << endl; 22 | out << 1.1234567890123456789 << endl; 23 | 24 | delete[] x; delete[] y; 25 | } 26 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/iostream3/README: -------------------------------------------------------------------------------- 1 | These classes provide a C++ stream interface to the zlib library. It allows you 2 | to do things like: 3 | 4 | gzofstream outf("blah.gz"); 5 | outf << "These go into the gzip file " << 123 << endl; 6 | 7 | It does this by deriving a specialized stream buffer for gzipped files, which is 8 | the way Stroustrup would have done it. :-> 9 | 10 | The gzifstream and gzofstream classes were originally written by Kevin Ruland 11 | and made available in the zlib contrib/iostream directory. The older version still 12 | compiles under gcc 2.xx, but not under gcc 3.xx, which sparked the development of 13 | this version. 14 | 15 | The new classes are as standard-compliant as possible, closely following the 16 | approach of the standard library's fstream classes. It compiles under gcc versions 17 | 3.2 and 3.3, but not under gcc 2.xx. This is mainly due to changes in the standard 18 | library naming scheme. The new version of gzifstream/gzofstream/gzfilebuf differs 19 | from the previous one in the following respects: 20 | - added showmanyc 21 | - added setbuf, with support for unbuffered output via setbuf(0,0) 22 | - a few bug fixes of stream behavior 23 | - gzipped output file opened with default compression level instead of maximum level 24 | - setcompressionlevel()/strategy() members replaced by single setcompression() 25 | 26 | The code is provided "as is", with the permission to use, copy, modify, distribute 27 | and sell it for any purpose without fee. 28 | 29 | Ludwig Schwardt 30 | 31 | 32 | DSP Lab 33 | Electrical & Electronic Engineering Department 34 | University of Stellenbosch 35 | South Africa 36 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/iostream3/TODO: -------------------------------------------------------------------------------- 1 | Possible upgrades to gzfilebuf: 2 | 3 | - The ability to do putback (e.g. putbackfail) 4 | 5 | - The ability to seek (zlib supports this, but could be slow/tricky) 6 | 7 | - Simultaneous read/write access (does it make sense?) 8 | 9 | - Support for ios_base::ate open mode 10 | 11 | - Locale support? 12 | 13 | - Check public interface to see which calls give problems 14 | (due to dependence on library internals) 15 | 16 | - Override operator<<(ostream&, gzfilebuf*) to allow direct copying 17 | of stream buffer to stream ( i.e. os << is.rdbuf(); ) 18 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/iostream3/test.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Test program for gzifstream and gzofstream 3 | * 4 | * by Ludwig Schwardt 5 | * original version by Kevin Ruland 6 | */ 7 | 8 | #include "zfstream.h" 9 | #include // for cout 10 | 11 | int main() { 12 | 13 | gzofstream outf; 14 | gzifstream inf; 15 | char buf[80]; 16 | 17 | outf.open("test1.txt.gz"); 18 | outf << "The quick brown fox sidestepped the lazy canine\n" 19 | << 1.3 << "\nPlan " << 9 << std::endl; 20 | outf.close(); 21 | std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n" 22 | << "The quick brown fox sidestepped the lazy canine\n" 23 | << 1.3 << "\nPlan " << 9 << std::endl; 24 | 25 | std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n"; 26 | inf.open("test1.txt.gz"); 27 | while (inf.getline(buf,80,'\n')) { 28 | std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; 29 | } 30 | inf.close(); 31 | 32 | outf.rdbuf()->pubsetbuf(0,0); 33 | outf.open("test2.txt.gz"); 34 | outf << setcompression(Z_NO_COMPRESSION) 35 | << "The quick brown fox sidestepped the lazy canine\n" 36 | << 1.3 << "\nPlan " << 9 << std::endl; 37 | outf.close(); 38 | std::cout << "\nWrote the same message to 'test2.txt.gz' in uncompressed form"; 39 | 40 | std::cout << "\nReading 'test2.txt.gz' (unbuffered) produces:\n"; 41 | inf.rdbuf()->pubsetbuf(0,0); 42 | inf.open("test2.txt.gz"); 43 | while (inf.getline(buf,80,'\n')) { 44 | std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; 45 | } 46 | inf.close(); 47 | 48 | return 0; 49 | 50 | } 51 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/masmx64/bld_ml64.bat: -------------------------------------------------------------------------------- 1 | ml64.exe /Flinffasx64 /c /Zi inffasx64.asm 2 | ml64.exe /Flgvmat64 /c /Zi gvmat64.asm 3 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/masmx64/bld_ml64.batZone.Identifier: -------------------------------------------------------------------------------- 1 | [ZoneTransfer] 2 | ZoneId=3 3 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/masmx64/readme.txt: -------------------------------------------------------------------------------- 1 | Summary 2 | ------- 3 | This directory contains ASM implementations of the functions 4 | longest_match() and inflate_fast(), for 64 bits x86 (both AMD64 and Intel EM64t), 5 | for use with Microsoft Macro Assembler (x64) for AMD64 and Microsoft C++ 64 bits. 6 | 7 | gvmat64.asm is written by Gilles Vollant (2005), by using Brian Raiter 686/32 bits 8 | assembly optimized version from Jean-loup Gailly original longest_match function 9 | 10 | inffasx64.asm and inffas8664.c were written by Chris Anderson, by optimizing 11 | original function from Mark Adler 12 | 13 | Use instructions 14 | ---------------- 15 | Assemble the .asm files using MASM and put the object files into the zlib source 16 | directory. You can also get object files here: 17 | 18 | http://www.winimage.com/zLibDll/zlib124_masm_obj.zip 19 | 20 | define ASMV and ASMINF in your project. Include inffas8664.c in your source tree, 21 | and inffasx64.obj and gvmat64.obj as object to link. 22 | 23 | 24 | Build instructions 25 | ------------------ 26 | run bld_64.bat with Microsoft Macro Assembler (x64) for AMD64 (ml64.exe) 27 | 28 | ml64.exe is given with Visual Studio 2005, Windows 2003 server DDK 29 | 30 | You can get Windows 2003 server DDK with ml64 and cl for AMD64 from 31 | http://www.microsoft.com/whdc/devtools/ddk/default.mspx for low price) 32 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/masmx86/bld_ml32.bat: -------------------------------------------------------------------------------- 1 | ml /coff /Zi /c /Flmatch686.lst match686.asm 2 | ml /coff /Zi /c /Flinffas32.lst inffas32.asm 3 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/masmx86/bld_ml32.batZone.Identifier: -------------------------------------------------------------------------------- 1 | [ZoneTransfer] 2 | ZoneId=3 3 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/masmx86/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | Summary 3 | ------- 4 | This directory contains ASM implementations of the functions 5 | longest_match() and inflate_fast(). 6 | 7 | 8 | Use instructions 9 | ---------------- 10 | Assemble using MASM, and copy the object files into the zlib source 11 | directory, then run the appropriate makefile, as suggested below. You can 12 | donwload MASM from here: 13 | 14 | http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64 15 | 16 | You can also get objects files here: 17 | 18 | http://www.winimage.com/zLibDll/zlib124_masm_obj.zip 19 | 20 | Build instructions 21 | ------------------ 22 | * With Microsoft C and MASM: 23 | nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj" 24 | 25 | * With Borland C and TASM: 26 | make -f win32/Makefile.bor LOCAL_ZLIB="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj" OBJPA="+match686c.obj+match686.obj+inffas32.obj" 27 | 28 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-O -I../.. 3 | 4 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a 5 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a 6 | 7 | .c.o: 8 | $(CC) -c $(CFLAGS) $*.c 9 | 10 | all: miniunz minizip 11 | 12 | miniunz: $(UNZ_OBJS) 13 | $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS) 14 | 15 | minizip: $(ZIP_OBJS) 16 | $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS) 17 | 18 | test: miniunz minizip 19 | ./minizip test readme.txt 20 | ./miniunz -l test.zip 21 | mv readme.txt readme.old 22 | ./miniunz test.zip 23 | 24 | clean: 25 | /bin/rm -f *.o *~ minizip miniunz 26 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libminizip.la 2 | 3 | if COND_DEMOS 4 | bin_PROGRAMS = miniunzip minizip 5 | endif 6 | 7 | zlib_top_srcdir = $(top_srcdir)/../.. 8 | zlib_top_builddir = $(top_builddir)/../.. 9 | 10 | AM_CPPFLAGS = -I$(zlib_top_srcdir) 11 | AM_LDFLAGS = -L$(zlib_top_builddir) 12 | 13 | if WIN32 14 | iowin32_src = iowin32.c 15 | iowin32_h = iowin32.h 16 | endif 17 | 18 | libminizip_la_SOURCES = \ 19 | ioapi.c \ 20 | mztools.c \ 21 | unzip.c \ 22 | zip.c \ 23 | ${iowin32_src} 24 | 25 | libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz 26 | 27 | minizip_includedir = $(includedir)/minizip 28 | minizip_include_HEADERS = \ 29 | crypt.h \ 30 | ioapi.h \ 31 | mztools.h \ 32 | unzip.h \ 33 | zip.h \ 34 | ${iowin32_h} 35 | 36 | pkgconfigdir = $(libdir)/pkgconfig 37 | pkgconfig_DATA = minizip.pc 38 | 39 | EXTRA_PROGRAMS = miniunzip minizip 40 | 41 | miniunzip_SOURCES = miniunz.c 42 | miniunzip_LDADD = libminizip.la 43 | 44 | minizip_SOURCES = minizip.c 45 | minizip_LDADD = libminizip.la -lz 46 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/MiniZip64_Changes.txt: -------------------------------------------------------------------------------- 1 | 2 | MiniZip 1.1 was derrived from MiniZip at version 1.01f 3 | 4 | Change in 1.0 (Okt 2009) 5 | - **TODO - Add history** 6 | 7 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/configure.ac: -------------------------------------------------------------------------------- 1 | # -*- Autoconf -*- 2 | # Process this file with autoconf to produce a configure script. 3 | 4 | AC_INIT([minizip], [1.2.11], [bugzilla.redhat.com]) 5 | AC_CONFIG_SRCDIR([minizip.c]) 6 | AM_INIT_AUTOMAKE([foreign]) 7 | LT_INIT 8 | 9 | AC_MSG_CHECKING([whether to build example programs]) 10 | AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs])) 11 | AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes]) 12 | if test "$enable_demos" = yes 13 | then 14 | AC_MSG_RESULT([yes]) 15 | else 16 | AC_MSG_RESULT([no]) 17 | fi 18 | 19 | case "${host}" in 20 | *-mingw* | mingw*) 21 | WIN32="yes" 22 | ;; 23 | *) 24 | ;; 25 | esac 26 | AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) 27 | 28 | 29 | AC_SUBST([HAVE_UNISTD_H], [0]) 30 | AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) 31 | AC_CONFIG_FILES([Makefile minizip.pc]) 32 | AC_OUTPUT 33 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/iowin32.h: -------------------------------------------------------------------------------- 1 | /* iowin32.h -- IO base function header for compress/uncompress .zip 2 | Version 1.1, February 14h, 2010 3 | part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 4 | 5 | Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html ) 6 | 7 | Modifications for Zip64 support 8 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) 9 | 10 | For more info read MiniZip_info.txt 11 | 12 | */ 13 | 14 | #include 15 | 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); 22 | void fill_win32_filefunc64 OF((zlib_filefunc64_def* pzlib_filefunc_def)); 23 | void fill_win32_filefunc64A OF((zlib_filefunc64_def* pzlib_filefunc_def)); 24 | void fill_win32_filefunc64W OF((zlib_filefunc64_def* pzlib_filefunc_def)); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/make_vms.com: -------------------------------------------------------------------------------- 1 | $ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig 2 | $ open/write zdef vmsdefs.h 3 | $ copy sys$input: zdef 4 | $ deck 5 | #define unix 6 | #define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from 7 | #define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator 8 | #define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord 9 | #define Write_EndOfCentralDirectoryRecord Write_EoDRecord 10 | $ eod 11 | $ close zdef 12 | $ copy vmsdefs.h,ioapi.h_orig ioapi.h 13 | $ cc/include=[--]/prefix=all ioapi.c 14 | $ cc/include=[--]/prefix=all miniunz.c 15 | $ cc/include=[--]/prefix=all unzip.c 16 | $ cc/include=[--]/prefix=all minizip.c 17 | $ cc/include=[--]/prefix=all zip.c 18 | $ link miniunz,unzip,ioapi,[--]libz.olb/lib 19 | $ link minizip,zip,ioapi,[--]libz.olb/lib 20 | $ mcr []minizip test minizip_info.txt 21 | $ mcr []miniunz -l test.zip 22 | $ rename minizip_info.txt; minizip_info.txt_old 23 | $ mcr []miniunz test.zip 24 | $ delete test.zip;* 25 | $exit 26 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/minizip.1: -------------------------------------------------------------------------------- 1 | .\" Hey, EMACS: -*- nroff -*- 2 | .TH minizip 1 "May 2, 2001" 3 | .\" Please adjust this date whenever revising the manpage. 4 | .\" 5 | .\" Some roff macros, for reference: 6 | .\" .nh disable hyphenation 7 | .\" .hy enable hyphenation 8 | .\" .ad l left justify 9 | .\" .ad b justify to both left and right margins 10 | .\" .nf disable filling 11 | .\" .fi enable filling 12 | .\" .br insert line break 13 | .\" .sp insert n+1 empty lines 14 | .\" for manpage-specific macros, see man(7) 15 | .SH NAME 16 | minizip - create ZIP archives 17 | .SH SYNOPSIS 18 | .B minizip 19 | .RI [ -o ] 20 | zipfile [ " files" ... ] 21 | .SH DESCRIPTION 22 | .B minizip 23 | is a simple tool which allows the creation of compressed file archives 24 | in the ZIP format used by the MS-DOS utility PKZIP. It was written as 25 | a demonstration of the 26 | .IR zlib (3) 27 | library and therefore lack many of the features of the 28 | .IR zip (1) 29 | program. 30 | .SH OPTIONS 31 | The first argument supplied is the name of the ZIP archive to create or 32 | .RI -o 33 | in which case it is ignored and the second argument treated as the 34 | name of the ZIP file. If the ZIP file already exists it will be 35 | overwritten. 36 | .PP 37 | Subsequent arguments specify a list of files to place in the ZIP 38 | archive. If none are specified then an empty archive will be created. 39 | .SH SEE ALSO 40 | .BR miniunzip (1), 41 | .BR zlib (3), 42 | .BR zip (1). 43 | .SH AUTHOR 44 | This program was written by Gilles Vollant. This manual page was 45 | written by Mark Brown . 46 | 47 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/minizip.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@/minizip 5 | 6 | Name: minizip 7 | Description: Minizip zip file manipulation library 8 | Requires: 9 | Version: @PACKAGE_VERSION@ 10 | Libs: -L${libdir} -lminizip 11 | Libs.private: -lz 12 | Cflags: -I${includedir} 13 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/minizip/mztools.h: -------------------------------------------------------------------------------- 1 | /* 2 | Additional tools for Minizip 3 | Code: Xavier Roche '2004 4 | License: Same as ZLIB (www.gzip.org) 5 | */ 6 | 7 | #ifndef _zip_tools_H 8 | #define _zip_tools_H 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #ifndef _ZLIB_H 15 | #include "zlib.h" 16 | #endif 17 | 18 | #include "unzip.h" 19 | 20 | /* Repair a ZIP file (missing central directory) 21 | file: file to recover 22 | fileOut: output file after recovery 23 | fileOutTmp: temporary file name used for recovery 24 | */ 25 | extern int ZEXPORT unzRepair(const char* file, 26 | const char* fileOut, 27 | const char* fileOutTmp, 28 | uLong* nRecovered, 29 | uLong* bytesRecovered); 30 | 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/puff/puff.h: -------------------------------------------------------------------------------- 1 | /* puff.h 2 | Copyright (C) 2002-2013 Mark Adler, all rights reserved 3 | version 2.3, 21 Jan 2013 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the author 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 | Mark Adler madler@alumni.caltech.edu 22 | */ 23 | 24 | 25 | /* 26 | * See puff.c for purpose and usage. 27 | */ 28 | #ifndef NIL 29 | # define NIL ((unsigned char *)0) /* for no output option */ 30 | #endif 31 | 32 | int puff(unsigned char *dest, /* pointer to destination pointer */ 33 | unsigned long *destlen, /* amount of output space */ 34 | const unsigned char *source, /* pointer to source data pointer */ 35 | unsigned long *sourcelen); /* amount of input available */ 36 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/puff/zeros.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/contrib/puff/zeros.raw -------------------------------------------------------------------------------- /deps/zlib-master/contrib/testzlib/testzlib.txt: -------------------------------------------------------------------------------- 1 | To build testzLib with Visual Studio 2005: 2 | 3 | copy to a directory file from : 4 | - root of zLib tree 5 | - contrib/testzlib 6 | - contrib/masmx86 7 | - contrib/masmx64 8 | - contrib/vstudio/vc7 9 | 10 | and open testzlib8.sln -------------------------------------------------------------------------------- /deps/zlib-master/contrib/untgz/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-g 3 | 4 | untgz: untgz.o ../../libz.a 5 | $(CC) $(CFLAGS) -o untgz untgz.o -L../.. -lz 6 | 7 | untgz.o: untgz.c ../../zlib.h 8 | $(CC) $(CFLAGS) -c -I../.. untgz.c 9 | 10 | ../../libz.a: 11 | cd ../..; ./configure; make 12 | 13 | clean: 14 | rm -f untgz untgz.o *~ 15 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/untgz/Makefile.msc: -------------------------------------------------------------------------------- 1 | CC=cl 2 | CFLAGS=-MD 3 | 4 | untgz.exe: untgz.obj ..\..\zlib.lib 5 | $(CC) $(CFLAGS) untgz.obj ..\..\zlib.lib 6 | 7 | untgz.obj: untgz.c ..\..\zlib.h 8 | $(CC) $(CFLAGS) -c -I..\.. untgz.c 9 | 10 | ..\..\zlib.lib: 11 | cd ..\.. 12 | $(MAKE) -f win32\makefile.msc 13 | cd contrib\untgz 14 | 15 | clean: 16 | -del untgz.obj 17 | -del untgz.exe 18 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/vstudio/vc10/miniunz.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {048af943-022b-4db6-beeb-a54c34774ee2} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {c1d600d2-888f-4aea-b73e-8b0dd9befa0c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {0844199a-966b-4f19-81db-1e0125e141b9} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/vstudio/vc10/minizip.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {c0419b40-bf50-40da-b153-ff74215b79de} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {bb87b070-735b-478e-92ce-7383abb2f36c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {f46ab6a6-548f-43cb-ae96-681abb5bd5db} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/vstudio/vc10/testzlibdll.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {fa61a89f-93fc-4c89-b29e-36224b7592f4} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {d4b85da0-2ba2-4934-b57f-e2584e3848ee} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {e573e075-00bd-4a7d-bd67-a8cc9bfc5aca} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/vstudio/vc10/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 11, 0 6 | PRODUCTVERSION 1, 2, 11, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.11\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2017 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/vstudio/vc11/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 11, 0 6 | PRODUCTVERSION 1, 2, 11, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.11\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2017 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/vstudio/vc12/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 11, 0 6 | PRODUCTVERSION 1, 2, 11, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.11\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2017 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/vstudio/vc14/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 11, 0 6 | PRODUCTVERSION 1, 2, 11, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.11\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2017 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/zlib-master/contrib/vstudio/vc9/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 11, 0 6 | PRODUCTVERSION 1, 2, 11, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.11\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2017 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/zlib-master/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(file) 12 | gzFile file; 13 | { 14 | #ifndef NO_GZCOMPRESS 15 | gz_statep state; 16 | 17 | if (file == NULL) 18 | return Z_STREAM_ERROR; 19 | state = (gz_statep)file; 20 | 21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 22 | #else 23 | return gzclose_r(file); 24 | #endif 25 | } 26 | -------------------------------------------------------------------------------- /deps/zlib-master/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /deps/zlib-master/msdos/Makefile.emx: -------------------------------------------------------------------------------- 1 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. 3 | # For conditions of distribution and use, see copyright notice in zlib.h 4 | 5 | # To compile, or to compile and test, type: 6 | # 7 | # make -fmakefile.emx; make test -fmakefile.emx 8 | # 9 | 10 | CC=gcc 11 | 12 | #CFLAGS=-MMD -O 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 14 | #CFLAGS=-MMD -g -DZLIB_DEBUG 15 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 16 | -Wstrict-prototypes -Wmissing-prototypes 17 | 18 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . 19 | CP=copy /Y 20 | # If gnu install.exe is available, replace $(CP) with ginstall. 21 | INSTALL=$(CP) 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: 23 | RM=del 24 | LDLIBS=-L. -lzlib 25 | LD=$(CC) -s -o 26 | LDSHARED=$(CC) 27 | 28 | INCL=zlib.h zconf.h 29 | LIBS=zlib.a 30 | 31 | AR=ar rcs 32 | 33 | prefix=/usr/local 34 | exec_prefix = $(prefix) 35 | 36 | OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \ 37 | uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o 38 | 39 | TEST_OBJS = example.o minigzip.o 40 | 41 | all: example.exe minigzip.exe 42 | 43 | test: all 44 | ./example 45 | echo hello world | .\minigzip | .\minigzip -d 46 | 47 | %.o : %.c 48 | $(CC) $(CFLAGS) -c $< -o $@ 49 | 50 | zlib.a: $(OBJS) 51 | $(AR) $@ $(OBJS) 52 | 53 | %.exe : %.o $(LIBS) 54 | $(LD) $@ $< $(LDLIBS) 55 | 56 | 57 | .PHONY : clean 58 | 59 | clean: 60 | $(RM) *.d 61 | $(RM) *.o 62 | $(RM) *.exe 63 | $(RM) zlib.a 64 | $(RM) foo.gz 65 | 66 | DEPS := $(wildcard *.d) 67 | ifneq ($(DEPS),) 68 | include $(DEPS) 69 | endif 70 | -------------------------------------------------------------------------------- /deps/zlib-master/nintendods/README: -------------------------------------------------------------------------------- 1 | This Makefile requires devkitARM (http://www.devkitpro.org/category/devkitarm/) and works inside "contrib/nds". It is based on a devkitARM template. 2 | 3 | Eduardo Costa 4 | January 3, 2009 5 | 6 | -------------------------------------------------------------------------------- /deps/zlib-master/old/README: -------------------------------------------------------------------------------- 1 | This directory contains files that have not been updated for zlib 1.2.x 2 | 3 | (Volunteers are encouraged to help clean this up. Thanks.) 4 | -------------------------------------------------------------------------------- /deps/zlib-master/old/descrip.mms: -------------------------------------------------------------------------------- 1 | # descrip.mms: MMS description file for building zlib on VMS 2 | # written by Martin P.J. Zinser 3 | 4 | cc_defs = 5 | c_deb = 6 | 7 | .ifdef __DECC__ 8 | pref = /prefix=all 9 | .endif 10 | 11 | OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj,\ 12 | deflate.obj, trees.obj, zutil.obj, inflate.obj, infblock.obj,\ 13 | inftrees.obj, infcodes.obj, infutil.obj, inffast.obj 14 | 15 | CFLAGS= $(C_DEB) $(CC_DEFS) $(PREF) 16 | 17 | all : example.exe minigzip.exe 18 | @ write sys$output " Example applications available" 19 | libz.olb : libz.olb($(OBJS)) 20 | @ write sys$output " libz available" 21 | 22 | example.exe : example.obj libz.olb 23 | link example,libz.olb/lib 24 | 25 | minigzip.exe : minigzip.obj libz.olb 26 | link minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib 27 | 28 | clean : 29 | delete *.obj;*,libz.olb;* 30 | 31 | 32 | # Other dependencies. 33 | adler32.obj : zutil.h zlib.h zconf.h 34 | compress.obj : zlib.h zconf.h 35 | crc32.obj : zutil.h zlib.h zconf.h 36 | deflate.obj : deflate.h zutil.h zlib.h zconf.h 37 | example.obj : zlib.h zconf.h 38 | gzio.obj : zutil.h zlib.h zconf.h 39 | infblock.obj : zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h 40 | infcodes.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h 41 | inffast.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h 42 | inflate.obj : zutil.h zlib.h zconf.h infblock.h 43 | inftrees.obj : zutil.h zlib.h zconf.h inftrees.h 44 | infutil.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h 45 | minigzip.obj : zlib.h zconf.h 46 | trees.obj : deflate.h zutil.h zlib.h zconf.h 47 | uncompr.obj : zlib.h zconf.h 48 | zutil.obj : zutil.h zlib.h zconf.h 49 | -------------------------------------------------------------------------------- /deps/zlib-master/old/os2/zlib.def: -------------------------------------------------------------------------------- 1 | ; 2 | ; Slightly modified version of ../nt/zlib.dnt :-) 3 | ; 4 | 5 | LIBRARY Z 6 | DESCRIPTION "Zlib compression library for OS/2" 7 | CODE PRELOAD MOVEABLE DISCARDABLE 8 | DATA PRELOAD MOVEABLE MULTIPLE 9 | 10 | EXPORTS 11 | adler32 12 | compress 13 | crc32 14 | deflate 15 | deflateCopy 16 | deflateEnd 17 | deflateInit2_ 18 | deflateInit_ 19 | deflateParams 20 | deflateReset 21 | deflateSetDictionary 22 | gzclose 23 | gzdopen 24 | gzerror 25 | gzflush 26 | gzopen 27 | gzread 28 | gzwrite 29 | inflate 30 | inflateEnd 31 | inflateInit2_ 32 | inflateInit_ 33 | inflateReset 34 | inflateSetDictionary 35 | inflateSync 36 | uncompress 37 | zlibVersion 38 | gzprintf 39 | gzputc 40 | gzgetc 41 | gzseek 42 | gzrewind 43 | gztell 44 | gzeof 45 | gzsetparams 46 | zError 47 | inflateSyncPoint 48 | get_crc_table 49 | compress2 50 | gzputs 51 | gzgets 52 | -------------------------------------------------------------------------------- /deps/zlib-master/watcom/watcom_f.mak: -------------------------------------------------------------------------------- 1 | # Makefile for zlib 2 | # OpenWatcom flat model 3 | # Last updated: 28-Dec-2005 4 | 5 | # To use, do "wmake -f watcom_f.mak" 6 | 7 | C_SOURCE = adler32.c compress.c crc32.c deflate.c & 8 | gzclose.c gzlib.c gzread.c gzwrite.c & 9 | infback.c inffast.c inflate.c inftrees.c & 10 | trees.c uncompr.c zutil.c 11 | 12 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj & 13 | gzclose.obj gzlib.obj gzread.obj gzwrite.obj & 14 | infback.obj inffast.obj inflate.obj inftrees.obj & 15 | trees.obj uncompr.obj zutil.obj 16 | 17 | CC = wcc386 18 | LINKER = wcl386 19 | CFLAGS = -zq -mf -3r -fp3 -s -bt=dos -oilrtfm -fr=nul -wx 20 | ZLIB_LIB = zlib_f.lib 21 | 22 | .C.OBJ: 23 | $(CC) $(CFLAGS) $[@ 24 | 25 | all: $(ZLIB_LIB) example.exe minigzip.exe 26 | 27 | $(ZLIB_LIB): $(OBJS) 28 | wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj 29 | wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj 30 | wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj 31 | wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj 32 | wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj 33 | 34 | example.exe: $(ZLIB_LIB) example.obj 35 | $(LINKER) -ldos32a -fe=example.exe example.obj $(ZLIB_LIB) 36 | 37 | minigzip.exe: $(ZLIB_LIB) minigzip.obj 38 | $(LINKER) -ldos32a -fe=minigzip.exe minigzip.obj $(ZLIB_LIB) 39 | 40 | clean: .SYMBOLIC 41 | del *.obj 42 | del $(ZLIB_LIB) 43 | @echo Cleaning done 44 | -------------------------------------------------------------------------------- /deps/zlib-master/watcom/watcom_l.mak: -------------------------------------------------------------------------------- 1 | # Makefile for zlib 2 | # OpenWatcom large model 3 | # Last updated: 28-Dec-2005 4 | 5 | # To use, do "wmake -f watcom_l.mak" 6 | 7 | C_SOURCE = adler32.c compress.c crc32.c deflate.c & 8 | gzclose.c gzlib.c gzread.c gzwrite.c & 9 | infback.c inffast.c inflate.c inftrees.c & 10 | trees.c uncompr.c zutil.c 11 | 12 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj & 13 | gzclose.obj gzlib.obj gzread.obj gzwrite.obj & 14 | infback.obj inffast.obj inflate.obj inftrees.obj & 15 | trees.obj uncompr.obj zutil.obj 16 | 17 | CC = wcc 18 | LINKER = wcl 19 | CFLAGS = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx 20 | ZLIB_LIB = zlib_l.lib 21 | 22 | .C.OBJ: 23 | $(CC) $(CFLAGS) $[@ 24 | 25 | all: $(ZLIB_LIB) example.exe minigzip.exe 26 | 27 | $(ZLIB_LIB): $(OBJS) 28 | wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj 29 | wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj 30 | wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj 31 | wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj 32 | wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj 33 | 34 | example.exe: $(ZLIB_LIB) example.obj 35 | $(LINKER) -fe=example.exe example.obj $(ZLIB_LIB) 36 | 37 | minigzip.exe: $(ZLIB_LIB) minigzip.obj 38 | $(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB) 39 | 40 | clean: .SYMBOLIC 41 | del *.obj 42 | del $(ZLIB_LIB) 43 | @echo Cleaning done 44 | -------------------------------------------------------------------------------- /deps/zlib-master/win32/VisualC.txt: -------------------------------------------------------------------------------- 1 | 2 | To build zlib using the Microsoft Visual C++ environment, 3 | use the appropriate project from the contrib/vstudio/ directory. 4 | -------------------------------------------------------------------------------- /deps/zlib-master/win32/zlib1.rc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "../zlib.h" 3 | 4 | #ifdef GCC_WINDRES 5 | VS_VERSION_INFO VERSIONINFO 6 | #else 7 | VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 8 | #endif 9 | FILEVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 10 | PRODUCTVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 11 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 12 | #ifdef _DEBUG 13 | FILEFLAGS 1 14 | #else 15 | FILEFLAGS 0 16 | #endif 17 | FILEOS VOS__WINDOWS32 18 | FILETYPE VFT_DLL 19 | FILESUBTYPE 0 // not used 20 | BEGIN 21 | BLOCK "StringFileInfo" 22 | BEGIN 23 | BLOCK "040904E4" 24 | //language ID = U.S. English, char set = Windows, Multilingual 25 | BEGIN 26 | VALUE "FileDescription", "zlib data compression library\0" 27 | VALUE "FileVersion", ZLIB_VERSION "\0" 28 | VALUE "InternalName", "zlib1.dll\0" 29 | VALUE "LegalCopyright", "(C) 1995-2017 Jean-loup Gailly & Mark Adler\0" 30 | VALUE "OriginalFilename", "zlib1.dll\0" 31 | VALUE "ProductName", "zlib\0" 32 | VALUE "ProductVersion", ZLIB_VERSION "\0" 33 | VALUE "Comments", "For more information visit http://www.zlib.net/\0" 34 | END 35 | END 36 | BLOCK "VarFileInfo" 37 | BEGIN 38 | VALUE "Translation", 0x0409, 1252 39 | END 40 | END 41 | -------------------------------------------------------------------------------- /deps/zlib-master/zlib.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/deps/zlib-master/zlib.3.pdf -------------------------------------------------------------------------------- /deps/zlib-master/zlib.pc.cmakein: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=@INSTALL_LIB_DIR@ 4 | sharedlibdir=@INSTALL_LIB_DIR@ 5 | includedir=@INSTALL_INC_DIR@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /deps/zlib-master/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | sharedlibdir=@sharedlibdir@ 5 | includedir=@includedir@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /quake/client/cdaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | int CDAudio_Init(void); 22 | void CDAudio_Play(byte track, qboolean looping); 23 | void CDAudio_Stop(void); 24 | void CDAudio_Pause(void); 25 | void CDAudio_Resume(void); 26 | void CDAudio_Shutdown(void); 27 | void CDAudio_Update(void); 28 | -------------------------------------------------------------------------------- /quake/client/input.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | // input.h -- external (non-keyboard) input devices 21 | 22 | void IN_Init (void); 23 | 24 | void IN_Shutdown (void); 25 | 26 | void IN_Commands (void); 27 | // oportunity for devices to stick commands on the script buffer 28 | 29 | void IN_Move (usercmd_t *cmd); 30 | // add additional movement on top of the keyboard move cmd 31 | 32 | void IN_ClearStates (void); 33 | // restores all button and position states to defaults 34 | 35 | -------------------------------------------------------------------------------- /quake/client/menu.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | // 22 | // the net drivers should just set the apropriate bits in m_activenet, 23 | // instead of having the menu code look through their internal tables 24 | // 25 | #define MNET_IPX 1 26 | #define MNET_TCP 2 27 | 28 | extern int m_activenet; 29 | 30 | // 31 | // menus 32 | // 33 | void M_Init (void); 34 | void M_Keydown (int key); 35 | void M_Draw (void); 36 | void M_ToggleMenu_f (void); 37 | 38 | enum menu_state {m_none, m_main, m_singleplayer, m_load, m_save, m_multiplayer, m_setup, m_net, m_options, m_video, m_vmu, m_developer, m_keys, m_help, m_quit, m_serialconfig, m_modemconfig, m_lanconfig, m_gameoptions, m_maplist , m_search, m_mod_loader, m_slist}; 39 | extern enum menu_state m_state; 40 | -------------------------------------------------------------------------------- /quake/client/view.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | // view.h 21 | 22 | extern cvar_t v_gamma; 23 | 24 | extern byte gammatable[256]; // palette is sent through this 25 | extern byte ramps[3][256]; 26 | extern float v_blend[4]; 27 | 28 | extern cvar_t lcd_x; 29 | 30 | 31 | void V_Init (void); 32 | void V_RenderView (void); 33 | float V_CalcRoll (vec3_t angles, vec3_t velocity); 34 | void V_UpdatePalette (void); 35 | 36 | -------------------------------------------------------------------------------- /quake/common/console.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | // 22 | // console 23 | // 24 | extern int con_totallines; 25 | extern int con_backscroll; 26 | extern qboolean con_forcedup; // because no entities to refresh 27 | extern qboolean con_initialized; 28 | extern byte *con_chars; 29 | extern int con_notifylines; // scan lines to clear for notify lines 30 | 31 | void Con_DrawCharacter (int cx, int line, int num); 32 | 33 | void Con_CheckResize (void); 34 | void Con_Init (void); 35 | void Con_DrawConsole (int lines, qboolean drawinput); 36 | void Con_Print (char *txt); 37 | void Con_Printf (char *fmt, ...); 38 | void Con_DPrintf (char *fmt, ...); 39 | void Con_SafePrintf (char *fmt, ...); 40 | void Con_Clear_f (void); 41 | void Con_DrawNotify (void); 42 | void Con_ClearNotify (void); 43 | void Con_ToggleConsole_f (void); 44 | 45 | void Con_NotifyBox (char *text); // during startup for sound / cd warnings 46 | 47 | -------------------------------------------------------------------------------- /quake/common/crc.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | /* crc.h */ 21 | 22 | void CRC_Init(unsigned short *crcvalue); 23 | void CRC_ProcessByte(unsigned short *crcvalue, byte data); 24 | unsigned short CRC_Value(unsigned short crcvalue); 25 | -------------------------------------------------------------------------------- /quake/common/draw.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | // draw.h -- these are the only functions outside the refresh allowed 22 | // to touch the vid buffer 23 | 24 | extern qpic_t *draw_disc; // also used on sbar 25 | 26 | void Draw_Init (void); 27 | void Draw_Character (int x, int y, int num); 28 | void Draw_DebugChar (char num); 29 | void Draw_Pic (int x, int y, qpic_t *pic); 30 | void Draw_TransPic (int x, int y, qpic_t *pic); 31 | void Draw_TransPicTranslate (int x, int y, qpic_t *pic, byte *translation); 32 | void Draw_ConsoleBackground (int lines); 33 | void Draw_BeginDisc (void); 34 | void Draw_EndDisc (void); 35 | void Draw_TileClear (int x, int y, int w, int h); 36 | void Draw_Fill (int x, int y, int w, int h, int c); 37 | void Draw_FadeScreen (void); 38 | void Draw_String (int x, int y, char *str); 39 | qpic_t *Draw_PicFromWad (char *name); 40 | qpic_t *Draw_CachePic (char *path); 41 | -------------------------------------------------------------------------------- /quake/common/net_dgrm.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | // net_dgrm.h 21 | 22 | 23 | int Datagram_Init (void); 24 | void Datagram_Listen (qboolean state); 25 | void Datagram_SearchForHosts (qboolean xmit); 26 | qsocket_t *Datagram_Connect (char *host); 27 | qsocket_t *Datagram_CheckNewConnections (void); 28 | int Datagram_GetMessage (qsocket_t *sock); 29 | int Datagram_SendMessage (qsocket_t *sock, sizebuf_t *data); 30 | int Datagram_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 31 | qboolean Datagram_CanSendMessage (qsocket_t *sock); 32 | qboolean Datagram_CanSendUnreliableMessage (qsocket_t *sock); 33 | void Datagram_Close (qsocket_t *sock); 34 | void Datagram_Shutdown (void); 35 | -------------------------------------------------------------------------------- /quake/common/net_loop.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | // net_loop.h 21 | 22 | int Loop_Init (void); 23 | void Loop_Listen (qboolean state); 24 | void Loop_SearchForHosts (qboolean xmit); 25 | qsocket_t *Loop_Connect (char *host); 26 | qsocket_t *Loop_CheckNewConnections (void); 27 | int Loop_GetMessage (qsocket_t *sock); 28 | int Loop_SendMessage (qsocket_t *sock, sizebuf_t *data); 29 | int Loop_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 30 | qboolean Loop_CanSendMessage (qsocket_t *sock); 31 | qboolean Loop_CanSendUnreliableMessage (qsocket_t *sock); 32 | void Loop_Close (qsocket_t *sock); 33 | void Loop_Shutdown (void); 34 | -------------------------------------------------------------------------------- /quake/common/net_vcr.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | // net_vcr.h 21 | 22 | #define VCR_OP_CONNECT 1 23 | #define VCR_OP_GETMESSAGE 2 24 | #define VCR_OP_SENDMESSAGE 3 25 | #define VCR_OP_CANSENDMESSAGE 4 26 | #define VCR_MAX_MESSAGE 4 27 | 28 | int VCR_Init (void); 29 | void VCR_Listen (qboolean state); 30 | void VCR_SearchForHosts (qboolean xmit); 31 | qsocket_t *VCR_Connect (char *host); 32 | qsocket_t *VCR_CheckNewConnections (void); 33 | int VCR_GetMessage (qsocket_t *sock); 34 | int VCR_SendMessage (qsocket_t *sock, sizebuf_t *data); 35 | qboolean VCR_CanSendMessage (qsocket_t *sock); 36 | void VCR_Close (qsocket_t *sock); 37 | void VCR_Shutdown (void); 38 | -------------------------------------------------------------------------------- /quake/common/sbar.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | // the status bar is only redrawn if something has changed, but if anything 22 | // does, the entire thing will be redrawn for the next vid.numpages frames. 23 | 24 | #define SBAR_HEIGHT 24 25 | 26 | extern int sb_lines; // scan lines to draw 27 | 28 | void Sbar_Init (void); 29 | 30 | void Sbar_Changed (void); 31 | // call whenever any of the client stats represented on the sbar changes 32 | 33 | void Sbar_Draw (void); 34 | // called every frame by screen 35 | 36 | void Sbar_IntermissionOverlay (void); 37 | // called each frame after the level has been completed 38 | 39 | void Sbar_FinaleOverlay (void); 40 | -------------------------------------------------------------------------------- /quake/dreamcast/vmu_misc.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "vmu_misc.h" 3 | #include "quakedef.h" 4 | 5 | int vmu_freeblocks, vmu_totalblocks; 6 | maple_device_t *vm_dev; 7 | 8 | cvar_t vmu_port = {"vmu_port", "0", true}; 9 | cvar_t vmu_unit = {"vmu_unit", "1", true}; 10 | cvar_t vmu_autosave = {"vmu_autosave", "1", true}; 11 | 12 | void VMU_init() 13 | { 14 | Cvar_RegisterVariable(&vmu_port); 15 | Cvar_RegisterVariable(&vmu_unit); 16 | Cvar_RegisterVariable(&vmu_autosave); 17 | } 18 | 19 | #define VMU_BAD_ROOT -1 20 | #define VMU_BAD_FAT -2 21 | #define VMU_BAD_DEV -3 22 | 23 | int VMU_GetFreeblocks() 24 | { 25 | int i; 26 | uint8 buf[512]; 27 | 28 | vmu_freeblocks = 0; 29 | vmu_totalblocks = 0; 30 | 31 | if (vm_dev == NULL) 32 | return VMU_BAD_DEV; 33 | 34 | if (vmu_block_read(vm_dev, 255, buf)) 35 | return VMU_BAD_ROOT; 36 | 37 | vmu_totalblocks = buf[0x50]; 38 | 39 | if (vmu_block_read(vm_dev, 254, buf)) 40 | return VMU_BAD_FAT; 41 | 42 | for (i = vmu_totalblocks - 1; i >= 0; i--) 43 | if (buf[i * 2] == 0xfc && buf[i * 2 + 1] == 0xff) 44 | vmu_freeblocks++; 45 | 46 | return vmu_freeblocks; 47 | } 48 | 49 | /* calcCRC() by Marcus Comstedt */ 50 | uint16 VMU_calcCRC(const uint8_t *file_buf, int data_len) 51 | { 52 | uint16 crc = 0; 53 | int i, j; 54 | 55 | for (i = 0; i < data_len; i++) 56 | { 57 | crc ^= (file_buf[i] << 8); 58 | 59 | for (j = 0; j < 8; j++) 60 | { 61 | if (crc & 0x8000) 62 | crc = (crc << 1) ^ 4129; 63 | else 64 | crc = (crc << 1); 65 | } 66 | } 67 | 68 | return crc; 69 | } -------------------------------------------------------------------------------- /quake/dreamcast/vmu_misc.h: -------------------------------------------------------------------------------- 1 | #ifndef VMU_MISC_H 2 | #define VMU_MISC_H 3 | 4 | #ifndef __KOS_H 5 | #include 6 | #endif 7 | 8 | extern uint8 icon_palette[32]; 9 | extern uint8 icon_bitmap[512]; 10 | 11 | extern int vmu_freeblocks; 12 | extern int vmu_totalblocks; 13 | extern maple_device_t *vm_dev; 14 | 15 | #define APP_NAME "nuQuake " // 16 characters 16 | #define VMU_NAME "NUQUAKE_" // 8 characters 17 | 18 | void VMU_init(); 19 | int VMU_GetFreeblocks(); 20 | // Fixed signature to match how it's actually used 21 | uint16 VMU_calcCRC(const uint8_t *file_buf, int data_len); 22 | void VMU_initLCDicons(); 23 | void VMU_loadLCDicon(uint8 *src_icon, uint8 *dst_icon); 24 | void VMU_displayLCDicon(uint8 *lcd_icon); 25 | void VMU_saveExtraIcon(); 26 | void VMU_saveExtraBg(); 27 | 28 | #endif /* VMU_MISC_H */ 29 | -------------------------------------------------------------------------------- /quake/linux/net_none.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | #include "quakedef.h" 21 | 22 | #include "net_loop.h" 23 | 24 | net_driver_t net_drivers[MAX_NET_DRIVERS] = 25 | { 26 | { 27 | "Loopback", 28 | false, 29 | Loop_Init, 30 | Loop_Listen, 31 | Loop_SearchForHosts, 32 | Loop_Connect, 33 | Loop_CheckNewConnections, 34 | Loop_GetMessage, 35 | Loop_SendMessage, 36 | Loop_SendUnreliableMessage, 37 | Loop_CanSendMessage, 38 | Loop_CanSendUnreliableMessage, 39 | Loop_Close, 40 | Loop_Shutdown 41 | } 42 | }; 43 | int net_numdrivers = 1; 44 | 45 | net_landriver_t net_landrivers[MAX_NET_DRIVERS]; 46 | int net_numlandrivers = 0; 47 | -------------------------------------------------------------------------------- /quake/null/cd_null.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | #include "quakedef.h" 21 | 22 | qboolean cdPlaying = false; 23 | 24 | void CDAudio_Play(byte track, qboolean looping) { 25 | (void)track; 26 | (void)looping; 27 | } 28 | 29 | void CDAudio_Stop(void) { 30 | } 31 | 32 | void CDAudio_Pause(void) { 33 | } 34 | 35 | void CDAudio_Resume(void) { 36 | } 37 | 38 | void CDAudio_Update(void) { 39 | } 40 | 41 | int CDAudio_Init(void) { 42 | return 0; 43 | } 44 | 45 | void CDAudio_Shutdown(void) { 46 | } 47 | 48 | #if defined(_WIN32) 49 | LONG CDAudio_MessageHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { 50 | (void)hWnd; 51 | (void)uMsg; 52 | (void)wParam; 53 | (void)lParam; 54 | return 0; 55 | } 56 | #endif 57 | -------------------------------------------------------------------------------- /quake/null/in_null.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | // in_null.c -- for systems without a mouse 21 | 22 | #include "quakedef.h" 23 | 24 | void IN_Init (void) 25 | { 26 | } 27 | 28 | void IN_Shutdown (void) 29 | { 30 | } 31 | 32 | void IN_Commands (void) 33 | { 34 | } 35 | 36 | void IN_Move (usercmd_t *cmd) 37 | { 38 | } 39 | 40 | -------------------------------------------------------------------------------- /quake/null/net_none.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | #include "quakedef.h" 21 | 22 | #include "net_loop.h" 23 | 24 | net_driver_t net_drivers[MAX_NET_DRIVERS] = 25 | { 26 | { 27 | "Loopback", 28 | false, 29 | Loop_Init, 30 | Loop_Listen, 31 | Loop_SearchForHosts, 32 | Loop_Connect, 33 | Loop_CheckNewConnections, 34 | Loop_GetMessage, 35 | Loop_SendMessage, 36 | Loop_SendUnreliableMessage, 37 | Loop_CanSendMessage, 38 | Loop_CanSendUnreliableMessage, 39 | Loop_Close, 40 | Loop_Shutdown 41 | } 42 | }; 43 | int net_numdrivers = 1; 44 | 45 | net_landriver_t net_landrivers[MAX_NET_DRIVERS]; 46 | int net_numlandrivers = 0; 47 | -------------------------------------------------------------------------------- /quake/renderer/bait.txt: -------------------------------------------------------------------------------- 1 | void R_EndBatchingFastSurfaces(void) { 2 | #if DIRECT_NORMAL_SURF 3 | glEnableClientState(GL_COLOR_ARRAY); 4 | glEnableClientState(GL_TEXTURE_COORD_ARRAY); 5 | glVertexPointer(3, GL_FLOAT, sizeof(glvert_fast_t), &r_batchedfastvertexes[0].vert); 6 | glTexCoordPointer(2, GL_FLOAT, sizeof(glvert_fast_t), &r_batchedfastvertexes[0].texture); 7 | glColorPointer(GL_BGRA, GL_UNSIGNED_BYTE, sizeof(glvert_fast_t), &r_batchedfastvertexes[0].color); 8 | glDrawArrays(GL_TRIANGLES, 0, r_numsurfvertexes); 9 | #ifdef PARANOID 10 | if (r_numsurfvertexes > 1560) 11 | printf("%s:%d drew: %d\n", __FILE__, __LINE__, r_numsurfvertexes); 12 | #endif 13 | 14 | r_numsurfvertexes = 0; 15 | #endif 16 | } -------------------------------------------------------------------------------- /quake/renderer/gl_batcher.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: gl_batcher.h 3 | * Project: renderer 4 | * File Created: Saturday, 23rd March 2019 5:42:06 pm 5 | * Author: Hayden Kowalchuk (hayden@hkowsoftware.com) 6 | * ----- 7 | * Copyright (c) 2019 Hayden Kowalchuk 8 | */ 9 | 10 | #ifndef __GL_BATCHER__ 11 | #define __GL_BATCHER__ 12 | 13 | #include 14 | #include "glquake.h" 15 | 16 | // these could go in a vertexbuffer/indexbuffer pair 17 | #define MAX_BATCHED_TEMPVERTEXES (2048) 18 | #define MAX_BATCHED_SURFVERTEXES (2048) 19 | #define MAX_BATCHED_TEXTVERTEXES (4096) 20 | 21 | #define VERTEX_EOL 0xf0000000 22 | #define VERTEX 0xe0000000 23 | 24 | extern glvert_fast_t r_batchedtempverts[MAX_BATCHED_TEMPVERTEXES]; 25 | extern glvert_fast_t r_batchedfastvertexes[MAX_BATCHED_SURFVERTEXES]; 26 | extern glvert_fast_t r_batchedfastvertexes_text[MAX_BATCHED_TEXTVERTEXES]; 27 | 28 | extern int text_size; 29 | 30 | void R_BeginBatchingFastSurfaces(); 31 | void R_BeginBatchingSurfacesQuad(); 32 | 33 | void R_EndBatchingSurfacesQuads(void); 34 | void R_EndBatchingFastSurfaces(void); 35 | 36 | void R_BatchSurface(glpoly_t *p); 37 | void R_BatchSurfaceLightmap(glpoly_t *p); 38 | void R_BatchSurfaceQuadText(int x, int y, float frow, float fcol, float size); 39 | 40 | extern glvert_fast_t *_tempBufferAddress; 41 | 42 | static inline glvert_fast_t *R_GetDirectBufferAddress() { 43 | return _tempBufferAddress; 44 | } 45 | 46 | static inline void R_SetDirectBufferAddress(glvert_fast_t *address) { 47 | _tempBufferAddress = address; 48 | } 49 | 50 | #endif /* __GL_BATCHER__ */ -------------------------------------------------------------------------------- /quake/renderer/gl_local.h: -------------------------------------------------------------------------------- 1 | void EmitWaterPolys (msurface_t *fa); 2 | void EmitWaterPolys_Temp (msurface_t *fa); 3 | 4 | void R_DrawSkyChain (msurface_t *s); 5 | qboolean R_CullBox (const vec3_t mins, const vec3_t maxs); 6 | void R_MarkLights (dlight_t *light, int bit, mnode_t *node); 7 | int R_LightPoint (vec3_t p); 8 | 9 | void R_RotateForEntity (entity_t *e); 10 | void R_AnimateLight (void); 11 | void R_DrawWorld (void); 12 | void R_DrawBrushModel (entity_t *ent); 13 | void R_RenderDlights (void); 14 | void R_DrawWaterSurfaces (void); 15 | int R_LightPoint (vec3_t p); 16 | void R_MarkLights (dlight_t *light, int bit, mnode_t *node); 17 | 18 | void V_CalcBlend (void); -------------------------------------------------------------------------------- /quake/vm/progdefs.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | #ifdef QUAKE2 21 | #include "progdefs.q2" 22 | #else 23 | #include "progdefs.q1" 24 | #endif 25 | -------------------------------------------------------------------------------- /quake/win32/conproc.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | // conproc.h 21 | #include 22 | 23 | #define CCOM_WRITE_TEXT 0x2 24 | // Param1 : Text 25 | 26 | #define CCOM_GET_TEXT 0x3 27 | // Param1 : Begin line 28 | // Param2 : End line 29 | 30 | #define CCOM_GET_SCR_LINES 0x4 31 | // No params 32 | 33 | #define CCOM_SET_SCR_LINES 0x5 34 | // Param1 : Number of lines 35 | 36 | void InitConProc (HANDLE hFile, HANDLE heventParent, HANDLE heventChild); 37 | void DeinitConProc (void); 38 | 39 | -------------------------------------------------------------------------------- /quake/win32/net_none.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | #include "quakedef.h" 21 | 22 | #include "net_loop.h" 23 | 24 | net_driver_t net_drivers[MAX_NET_DRIVERS] = 25 | { 26 | { 27 | "Loopback", 28 | false, 29 | Loop_Init, 30 | Loop_Listen, 31 | Loop_SearchForHosts, 32 | Loop_Connect, 33 | Loop_CheckNewConnections, 34 | Loop_GetMessage, 35 | Loop_SendMessage, 36 | Loop_SendUnreliableMessage, 37 | Loop_CanSendMessage, 38 | Loop_CanSendUnreliableMessage, 39 | Loop_Close, 40 | Loop_Shutdown 41 | } 42 | }; 43 | int net_numdrivers = 1; 44 | 45 | net_landriver_t net_landrivers[MAX_NET_DRIVERS]; 46 | int net_numlandrivers = 0; 47 | -------------------------------------------------------------------------------- /quake/win32/qe3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dreameatergames/nuquake_enhanced/0cae6ebdf55556517b19d101d32fd8e9ca465ebc/quake/win32/qe3.ico -------------------------------------------------------------------------------- /quake/win32/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by winrc.rc 4 | // 5 | #define IDS_STRING1 1 6 | #define IDI_ICON2 1 7 | #define WinQuake 1 8 | #define IDD_DIALOG1 108 9 | #define IDD_PROGRESS 109 10 | #define IDC_PROGRESS 1000 11 | 12 | // Next default values for new objects 13 | // 14 | #ifdef APSTUDIO_INVOKED 15 | #ifndef APSTUDIO_READONLY_SYMBOLS 16 | #define _APS_NO_MFC 1 17 | #define _APS_NEXT_RESOURCE_VALUE 112 18 | #define _APS_NEXT_COMMAND_VALUE 40001 19 | #define _APS_NEXT_CONTROL_VALUE 1004 20 | #define _APS_NEXT_SYMED_VALUE 101 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /scripts/scramble.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #cd "${MESON_SOURCE_ROOT}" 4 | cd "${MESON_BUILD_ROOT}" 5 | 6 | BUILD_DIR=$1 7 | BINARY=$2 8 | 9 | /opt/toolchains/dc/sh-elf/bin/sh-elf-objcopy -R .stack -O binary $BINARY `basename $BINARY`.RAW 10 | /opt/toolchains/dc/kos/utils/scramble/scramble `basename $BINARY`.RAW ../$BUILD_DIR/data_hb/1ST_READ.BIN 11 | --------------------------------------------------------------------------------