Commit Graph

137 Commits

Author SHA1 Message Date
Iliyas Jorio 77fda7913d Load AIFF-C files as sound resources 2021-07-25 17:38:05 +02:00
Iliyas Jorio 9c223defc2 Remove superfluous SDL dependencies 2021-07-22 12:27:24 +02:00
Iliyas Jorio 46599c1780 Icon resource extractors 2021-07-19 07:42:39 +02:00
Iliyas Jorio ebea9d03cd Separate sound playback from sound utils 2021-07-19 07:42:39 +02:00
Iliyas Jorio 664c738817 Remove resource dumping functionality - will be moved to a separate tool 2021-07-18 13:24:13 +02:00
Iliyas Jorio 644ade79c3 Implement Count1Types, Get1IndType, Get1IndResource, GetResInfo, DetachResource 2021-07-18 13:16:43 +02:00
Iliyas Jorio 630e8e9b24 Move {Init,Hide,Show}Cursor to SDLInput.cpp 2021-07-18 13:12:30 +02:00
Iliyas Jorio 91f6390055 SndDoImmediate: Fix NaN in volumeCmd pan 2021-07-18 13:02:00 +02:00
Iliyas Jorio 9031c6b869 Allow compiling without support for sound, graphics, input 2021-06-27 20:19:14 +02:00
Iliyas Jorio dfa2fdb0b9 3DMF: Support 'shdr' chunks 2021-06-24 18:52:37 +02:00
Iliyas Jorio f1c5bbae35 QD3D: Remove glTextureName from TQ3Pixmap 2021-06-23 22:01:51 +02:00
Iliyas Jorio 3675306be7 QD3D: remove bogus typedefs 2021-06-23 20:55:00 +02:00
Iliyas Jorio 6d31883a4d QD3D: Add/Subtract Q3Point2D/3D 2021-06-19 01:00:45 +02:00
Iliyas Jorio 1495c647fd Dump 'snd ' resources to AIFF-C 2021-06-06 18:49:50 +02:00
Iliyas Jorio b4516298a3 BigEndianOStream 2021-06-06 18:49:45 +02:00
Iliyas Jorio 935674437f 3DMF: support vertex attribute kQ3AttributeTypeSurfaceUV
Required for thorn submeshes in Bugdom's
game over throne room (WinLose.3dmf)
2021-06-06 18:49:45 +02:00
Iliyas Jorio 375d14e266 QD3D: Normals & UVs are now optional in TQ3TriMeshData constructor 2021-06-06 18:49:45 +02:00
Iliyas Jorio fd0b31c915 QD3D: Set hasVertexColors flag in TQ3TriMeshData 2021-06-06 18:49:45 +02:00
Iliyas Jorio cf21b9a7a8 Fix GCC/clang unused parameter warnings on memory no-ops 2021-04-23 07:57:12 +02:00
Iliyas Jorio 717092660c Filesystem: GCC 8 compat 2021-04-22 22:03:25 +02:00
Iliyas Jorio 867c6af8f9 HostVolume: C++17 compat 2021-04-17 20:00:17 +02:00
Iliyas Jorio 1b5625e28e Rewrite FourCCString 2021-04-17 12:35:29 +02:00
Iliyas Jorio de0725ae16 Sound: implement reInitCmd (initNoInterp only for now) 2021-03-21 11:54:09 +01:00
Iliyas Jorio 498b27e895 Fix NewHandleSysClear implementation 2021-03-15 23:46:23 +01:00
Iliyas Jorio 6f4a04975d Support "type 2" HyperCard sound resources 2021-03-02 08:32:06 +01:00
Iliyas Jorio 5f088fab3c Sound: honor initNoInterp 2021-02-28 23:43:33 +01:00
Iliyas Jorio d8f5f4b324 Sound: apply channel params in ProcessSoundCommand 2021-02-28 23:43:33 +01:00
Iliyas Jorio 6399e16cc6 Fix ByteswapX utility functions, add signed versions 2021-02-28 23:43:33 +01:00
Iliyas Jorio 79ee6c1163 Implement SetFPos 2021-02-28 23:43:33 +01:00
Iliyas Jorio 9260f05025 Implement TickCount 2021-02-28 23:43:33 +01:00
Iliyas Jorio 2f57b5245e New file routines: GetVol, FSOpen, OpenResFile, ChangedResource 2021-02-28 23:43:33 +01:00
Iliyas Jorio 3228cf2818 Palette management stubs 2021-02-22 20:19:57 +01:00
Iliyas Jorio 2a4ec3b76c Implement PtrToHand 2021-02-22 01:25:12 +01:00
Iliyas Jorio 31f906a66b Implement NewHandleSys, NewHandleSysClear 2021-02-22 01:16:40 +01:00
Iliyas Jorio 3691220f7a Add color palette structs 2021-02-22 01:10:53 +01:00
Iliyas Jorio 8fb5ed8e1b Fix SetFPos signature 2021-02-22 01:10:53 +01:00
Iliyas Jorio 766d4ddc1b Implement ShowCursor 2021-02-22 01:10:53 +01:00
Iliyas Jorio 61bd404ae2 Include stddef.h for NULL 2021-02-22 01:10:53 +01:00
Iliyas Jorio cccf458a5f Implement StripAddress; inline other no-op mem calls 2021-02-22 01:10:53 +01:00
Iliyas Jorio 00f4b36f5d 3DMF: Parse txpm chunks 2021-02-21 18:00:09 +01:00
Iliyas Jorio 19ece0fc17 QD3D: Q3TriMeshData constructor can now alloc vertex colors 2021-02-21 18:00:09 +01:00
Iliyas Jorio ee34771758 3DMF: parse per-vertex diffuse colors 2021-02-21 18:00:09 +01:00
Iliyas Jorio 98a72ecdbd QD3D: TQ3TexturingMode: opaque, alphatest, alphablend 2021-02-21 18:00:09 +01:00
Iliyas Jorio 4b6df39318 QD3D: New math features 2021-02-21 18:00:03 +01:00
Iliyas Jorio 00b4a7e72b Import QD3D/3DMF code from Nanosaur's new renderer 2021-02-19 18:55:12 +01:00
Iliyas Jorio ad669a3fd4 Add GetPictureFromFile (extension) 2021-02-18 21:15:18 +01:00
Iliyas Jorio f3a070072b SetWindowIconFromIcl8Resource: add missing DisposeHandle on failure 2021-02-18 21:15:18 +01:00
David Schlachter 6725e28f14
Use alternate filesystem implementation on FreeBSD 2021-02-08 15:11:26 -05:00
Iliyas Jorio 1f664c6441 Implement rateMultiplierCmd 2021-01-11 22:07:53 +01:00
Iliyas Jorio 87a27333c3 Implement PixMap.rowBytes 2021-01-10 10:16:30 +01:00
Iliyas Jorio 774b9fe1b4 Implement GetIndStringC 2021-01-10 10:14:57 +01:00
Iliyas Jorio 0640b1356d Application is now responsible for creating its own SDL window 2021-01-06 20:29:33 +01:00
Iliyas Jorio b8ca96a5c4 Add languages 0-9 to Script Manager enums 2021-01-03 19:48:51 +01:00
Iliyas Jorio aa853a747f NumToStringC returns string byte length 2021-01-03 17:26:26 +01:00
Iliyas Jorio 19b84a4107 Add new string typedefs 2021-01-03 17:25:18 +01:00
Iliyas Jorio cf0bc3d98d Fix GCC 9 support for char8_t 2020-12-29 22:39:11 +01:00
Iliyas Jorio 813523dc49 Fix HostVolume::OpenFork return code 2020-12-29 22:26:00 +01:00
Iliyas Jorio a3d0a3f16a Use fs::path (rather than std::filesystem) to detect config folder on Unix 2020-12-29 21:23:20 +01:00
Iliyas Jorio e68cb857c1 Simplify resource fork detection 2020-12-29 21:22:31 +01:00
Iliyas Jorio c8978d2bfc macOS: don't use built-in filesystem implementation on Xcode 12 so we can support older macOS versions 2020-12-28 13:42:52 +01:00
Iliyas Jorio ca2d925c63 Non-fatal todo messages only shown with _DEBUG 2020-12-29 17:29:44 +01:00
Iliyas Jorio 95fdba76bf Dump resources to files for debugging 2020-12-26 17:02:46 +01:00
Iliyas Jorio d25687f9f0 MSVC/Win32 preprocessor fixes 2020-12-25 10:00:26 +01:00
Iliyas Jorio e7a7ca9663 Graphics: optional MSAA 2020-12-23 21:15:31 +01:00
Iliyas Jorio b7ee239eb2 Implement NewPtrClear 2020-12-20 12:03:04 +01:00
Iliyas Jorio a84c5ff001 Remove extraneous completion callback when playing back sound file synchronously 2020-12-15 23:28:59 +01:00
Iliyas Jorio 9830a8ea48 Make Source::Clear thread-safe 2020-12-15 23:28:10 +01:00
Iliyas Jorio e8939dbc8a Implement GetFPos; SetFPos placeholder 2020-12-15 23:27:12 +01:00
Iliyas Jorio 3ee40824cc Fork handle remembers the FSSpec it originated from 2020-12-05 17:50:37 +01:00
Iliyas Jorio ffc5a80b9c DumpTGA: fix TGA header to account for alpha channel 2020-12-01 17:30:14 +01:00
Iliyas Jorio 61d2c01102 Rename Pomme_PauseLoopingChannels to Pomme_PauseAllChannels 2020-11-25 08:16:58 +01:00
Iliyas Jorio 1c1e404d0f Read non-compressed AIFF files (raw big-endian PCM) 2020-11-22 11:58:05 +01:00
Iliyas Jorio c34626864e Implement GetMouse 2020-11-22 11:20:09 +01:00
Iliyas Jorio 16b087f329 Implement srcCopy|transparent transfer mode in CopyBits 2020-11-21 21:27:16 +01:00
Iliyas Jorio b579625619 Add QD2D transfer mode enum 2020-11-21 20:56:59 +01:00
Iliyas Jorio 12253ce6c5 Implement GetPortBitMapForCopyBits 2020-11-21 20:56:41 +01:00
Iliyas Jorio 6544aca918 Add missing DamageRegion in CopyBits 2020-11-21 20:56:26 +01:00
Iliyas Jorio 9a1cc38acd Add typedef KeyMapByteArray 2020-11-21 14:25:07 +01:00
Iliyas Jorio 534c44dfe2 Add sound volume enums 2020-11-21 14:24:44 +01:00
Iliyas Jorio e182b79fd0 Implement bufferCmd 2020-11-21 14:23:28 +01:00
Iliyas Jorio ca161f6e31 Implement volumeCmd 2020-11-21 14:23:21 +01:00
Iliyas Jorio 8fdc27efb0 icl8: get mask from matching ICN# resource 2020-11-19 09:02:36 +01:00
Iliyas Jorio 85d521b196 New placeholders: OffsetRect, PenNormal, PenSize, FrameArc, GetMouse, SndDoCommand 2020-11-16 07:08:13 +01:00
Iliyas Jorio f7b14f7dfe Implement GetPortBounds 2020-11-14 19:01:41 +01:00
Iliyas Jorio cf2ca92506 Implement GetWindowPort 2020-11-14 17:07:17 +01:00
Iliyas Jorio 68d094c179 Fix parsing type-3 or 4 PICTs with rowbytes<250 2020-11-14 17:04:34 +01:00
Iliyas Jorio 5fc6598b47 Import source from Nanosaur port 2020-11-13 22:45:44 +01:00