Commit Graph

214 Commits

Author SHA1 Message Date
Anders Jenbo
ef7499bdb9 Restructure miniwin and add support for 3D backends 2025-05-29 04:07:53 +02:00
Anonymous Maarten
19f1bedd16
Add depth buffer (#185)
* Add depth buffer and calcuate normals

* Forgot do divide with the determinant

* Address review
2025-05-27 19:44:37 -07:00
Christian Semmler
70633de3f6 Merge remote-tracking branch 'isle/master' into mergeii 2025-05-26 09:49:34 -07:00
Anonymous Maarten
b24271a51b
Move miniwin to sdl3gpu subdirectory + add suffix to classes (#170) 2025-05-25 17:38:02 +00:00
Florian Kaiser
804632b13f
Refactor LegoUnknown100db7f4 to LegoOrientedEdge (#1515)
* Refactor `LegoUnknown100db7f4` to `LegoOrientedEdge`

* Update LEGO1/lego/sources/geom/legoorientededge.h

* Update legopathcontroller.h

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2025-05-24 23:09:24 -07:00
Anonymous Maarten
bdbd0e31d7
Add D3DRMFrame parent <-> child relation (#161)
* Add D3DRMFrame parent <-> child relation

* Apply suggestions from code review
2025-05-24 22:18:53 -07:00
Anonymous Maarten
61c2ca27c2
cmake: explicitly create generated directories (#164) 2025-05-24 22:18:18 -07:00
Anders Jenbo
046cd0c7e9
NOT IMPLEMENTED corrections (#146) 2025-05-22 00:46:04 +02:00
Anonymous Maarten
711a6a21bf
extract d3drm{frame,mesh} to source file, and reduce stderr spam (#143)
* extract d3drm{frame,light,mesh} to source file and reduce stderr spam

* cmake: don't add  to miniwin

Visual Studio tries to compile the shaders, which does not work well
2025-05-21 20:00:14 +00:00
Anders Jenbo
ecda6c57d6
Initialize GPU 3D rendere (#132)
* Initialize GPU 3D rendere

* Embed compiled shaders in miniwin

* miniwin: Refactor D3DRM

---------

Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
2025-05-21 07:25:46 -07:00
Anonymous Maarten
9d06cd9e53
Show imgui window when starting app with --debug (#138)
* Show imgui window when starting app with --debug

* g_closed test in SDL_AppIterate is still needed

* Allow disabling isleapp debugging by configuring with -DISLE_DEBUG=OFF

* clang-format
2025-05-20 23:36:51 +02:00
Anders Jenbo
bf22b8712c
Move to C++17 (#135)
* Move to C++17

* Move dtor

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2025-05-20 20:48:48 +02:00
Anonymous Maarten
cd32924c47
cmake: use precompiled headers (#133)
* cmake: use precompiled headers

* Apply suggestions from code review
2025-05-19 18:20:28 -07:00
Anonymous Maarten
0b778de731
Let LegoStorage know of memory size (#129) 2025-05-20 02:18:11 +02:00
Anders Jenbo
d1e3a69141
Use SDL_Surface instead of SDL_Texture (#103) 2025-05-18 09:36:03 -07:00
Anders Jenbo
5b3d99cb8f
miniwin: Remove some unused bits (#108) 2025-05-18 06:51:41 -07:00
Anonymous Maarten
0c0e494b38
ci: merge all workflows (#97)
* ci: merge all workflows

* Update .github/workflows/ci.yml

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

* ci: correct vcvars

---------

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2025-05-16 22:28:29 +02:00
Anonymous Maarten
c99f7c36c6
Split miniwin headers and implementation (#96)
* Split miniwin headers and implementation

* Update miniwin/miniwin/src/miniwin_ddsurface.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

* Update miniwin/miniwin/src/miniwin_ddraw.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

* Update miniwin/miniwin/src/miniwin_ddsurface.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

* Update miniwin/miniwin/src/miniwin_ddsurface.cpp

* Update miniwin/miniwin/src/miniwin_ddraw.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

* Update miniwin/miniwin/src/miniwin_ddraw.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

---------

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2025-05-16 21:37:16 +02:00
Anders Jenbo
4ccd2501d0
Build on Mac (#93) 2025-05-15 20:58:59 -07:00
Anders Jenbo
1f64e88d34
Add UBSan (#78) 2025-05-14 02:40:03 +02:00
Anonymous Maarten
537cde485a
Remove d3drm-wine (#75)
* remove d3drm-wine

* Update miniwin/miniwin/src/miniwin_ddraw.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

* Run clang-format

* Update miniwin/miniwin/src/miniwin.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

* Update miniwin/miniwin/src/miniwin_ddraw.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

---------

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2025-05-13 19:18:20 +00:00
Anders Jenbo
83f092d8df
minwin: Add implementations for some minor function (#74) 2025-05-13 10:21:31 +02:00
Anders Jenbo
dc8b044b50
miniwin: Init graphics API (#73) 2025-05-12 17:23:48 -07:00
Anders Jenbo
08b2dab108
Make things build on Linux (#69) 2025-05-12 23:10:53 +02:00
Leah Anderson
0c79481f35
fix: update libiniparser repository link (#64)
* fix: update libiniparser repository link

* fix: update iniparser link in cmake
2025-05-09 18:24:06 +02:00
Anonymous Maarten
466c345201
cmake: smartheap and libcmt are first in link order (#1420) 2025-03-18 08:29:15 -07:00
Christian Semmler
99903a88cc Remove unnecessary files 2025-03-14 14:01:23 -07:00
MS
3d9c7a8956
Improve performance of entropy build action (#1407)
* Use multiple threads for entropy builds

* Verify builds parameter

* Revert "Verify builds parameter"

This reverts commit 460d3d3b55ead59b1100452e460f6a7bae0e8457.

* Use options instead

* Seed fix

* 256 samples on push
2025-03-14 15:05:55 -04:00
Christian Semmler
ca1c8b2be6
Add build-with-entropy pipeline (#1384)
* Try entropy build

* Fix

* Updates

* Remove file

* Fix

* Add seed parameter to entropy.sh

* echo SEED used

* Try build pipeline changes

* Add python setup

* Fix pipeline

* Increase number of samples, add entropy to isle and config

* Try 32 samples

* Empty commit for another CI run

* Try 50 samples

* Empty commit for another CI run

* Empty commit for another CI run

* Empty commit for another CI run

* Empty commit for another CI run

* Empty commit for another CI run

* Empty commit for another CI run

* Empty commit for another CI run

* Empty commit for another CI run

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Trigger CI with 100 entropy samples

* Update

* Echo seed

* Update text

* Fix requirements.txt

* Cancel previous CI workflows

* Try only build,yml

* Empty commit - should stop earlier build

* Fix upload
2025-03-05 23:25:39 +01:00
Christian Semmler
67b25b0bcc
Adapt MxRegion.h (#1393)
* Adapt MxRegion.h

* Use specific GH action version

* Disable clang32 for now

* Fix regression

* Add space

* Add BETA annotations
2025-02-27 03:30:11 +01:00
Christian Semmler
5a6482c6cf Merge remote-tracking branch 'isle/master' into mergeisle 2025-02-02 08:38:16 -07:00
Christian Semmler
99befafff2
Remove LegoEventNotificationParam unit (#1372) 2025-01-23 01:25:53 +01:00
Christian Semmler
00dee618c0 Merge remote-tracking branch 'isle/master' into mergeisle 2025-01-22 16:34:28 -07:00
Christian Semmler
49cb120795
Order symbols until end of LegoOmni (#1371)
* Order

* Improve

* Move function

* Order until end of LegoOmni

* Remove header
2025-01-22 22:22:58 +01:00
Christian Semmler
5a7df7f95d
Order until LegoCarBuildAnimPresenter (#1365)
* Order until `Infocenter`

* Order until RaceSkel

* More order

* Order until `LegoCarBuildAnimPresenter`

* Add blank line

* Add BETA annotation
2025-01-21 01:31:28 +01:00
Christian Semmler
fc03e7a682
Improve order until legomain.cpp (#1350)
* Fix `LegoBackgroundColor` order

* Order

* Improve order in Act3Actors

* Improve order

* Add BETA annotation

* Order more

* More order

* More order

* Order

* Match/order

* Remove blank line

* Modern compiler fix

* vtable annotation
2025-01-17 18:33:27 -07:00
Christian Semmler
e1ce96c473
Order symbols until end of LegoGameState (#1340)
* Order `Ambulance`

* More ordering

* Order until `LegoGameState`

* Move
2025-01-17 03:42:38 +01:00
Christian Semmler
ac3a551bcc
Improve symbol order until LegoActor, match LegoPlantManager::ScheduleAnimation (#1327)
* Order `LegoCarBuild`, `LegoPlantManager`

* Order until `LegoActor`
2025-01-11 01:42:03 +01:00
Christian Semmler
4c32abd16d
Add BETA10 macro to enable conditional compilation for BETA10 targets (#1270)
* Add BETA10 macro to enable conditional compilation for BETA10 targets

* Adjustments to CMakeLists.txt
2025-01-07 00:06:07 +01:00
Christian Semmler
7c452e9453
Order functions in binary up to end of Act2Actor (#1312)
* Order more functions

* Order LegoRaceActor

* Further ordering

* Order `Act2Actor`

* Fix
2025-01-05 21:00:50 +01:00
Christian Semmler
b0a4d0e06b Merge remote-tracking branch 'isle/master' into isle-merge3 2024-12-29 09:21:06 -07:00
Ramen2X
fb2e9fb5ec
rename MxSmack to MxSmk (#1288)
* rename MxSmack to MxSmk

* format
2024-12-27 13:00:56 -05:00
Anonymous Maarten
65adfe7d64
More use of SDL (#47)
* Use SDL_GetPerformance(Counter|Frequency) in MxStopWatch

* Fix flic.h for gcc Linux compiler

* cmake: remove left-over message

* Replace some more stricmp with SDL_strcasecmp

* Pass SDL_Window* to LEGO1.DLL, and pass window events through SDL event handler

* clang-format

* Use SDL_Timer for unknown input dragging events

* Fix naming

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2024-12-27 18:44:14 +01:00
Christian Semmler
79d30885f0 Remove obsolete files 2024-12-25 08:56:47 -07:00
Anonymous Maarten
bb4db6caac
Use SDL3 functions in more locations (#44)
* Use strcasecmp, strncasecmp, strlwr, strupr and itoa from SDL

* Use SDL_GetTicks instead of timeGetTime

* Use MxDSFile::OPEN_READ instead of OF_READ

* Use SDL_IOStream to read bitmaps

* Use SDL_LogXXX instead of OutputDebugString

* Undo mxvideoparam.h change

* Revert "Undo mxvideoparam.h change"

This reverts commit 4a20cf6c46.

* Fix _MxTrace

* Reapply "Undo mxvideoparam.h change"

This reverts commit b3a09dc520.

* fix _MxTrace

* Use __declspec(dllexport) for exporting symbols from dll

Refactored CMake script such that all objects are passed to the lego1 library.

* clang-format

* fix msvc build

* MSVC fixed for real now?

* Forgot about d3drm_guid

* Fix naming issue

* Use Uint64 in LegoCarBuild::Tickle for dTime
2024-12-24 18:04:46 -07:00
Christian Semmler
7c41ff4569
Order compilation units according to retail, match and align Score class (#1271)
* Initial changes for ordering, Score

* Add mxdebug

* Match `Score::Paint`

* Refactor

* Add BETA asserts

* BETA match
2024-12-24 19:38:15 +01:00
Christian Semmler
69bac21488 Merge remote-tracking branch 'isle/master' into merge 2024-12-23 09:38:55 -07:00
Christian Semmler
1b99d75543
Refactor geom library into geom and shape (#1263)
* Refactor `geom` library into `geom` and `util`

* Rename to `shape`
2024-12-23 17:25:23 +01:00
Christian Semmler
5b19d7953a
Refactor MxStreamList based lists (#1260)
* Refactor stream lists

* Fix naming

* Fix header inclusion

* Fix annotations

* Move function definitions to header

* Remove mxstreamprovider.cpp

* Naming
2024-12-23 16:32:16 +01:00
Christian Semmler
fe2a65c8da
Implement/match LegoNavController::Notify (#1253)
* Implement/match `LegoNavController::Notify`

* Move function

* Add to total function count

* Add OPT:REF to lego1
2024-12-21 22:41:47 +01:00