Christian Semmler
ddba1bc5c1
Fix DirectDrawPalette_SDL3GPUImpl::SetEntries ( #189 )
2025-05-28 18:22:24 -07:00
Anonymous Maarten
8f8bf3142e
Fix color space of SDL3_gpu texture ( #188 )
2025-05-28 03:40:46 +00: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
Anders Jenbo
6bbddf5508
Implement Viewport::Pick() ( #183 )
2025-05-26 22:07:57 -07:00
Anders Jenbo
4e3cf45aba
Implement Direct3DRMPickedArray constructor ( #181 )
2025-05-26 07:39:43 -07:00
Anonymous Maarten
e1cddc5c0e
Move DirectDraw entry functions to backends ( #178 )
2025-05-26 01:33:39 +00:00
Anders Jenbo
3df6be1122
Correct FOV calculation ( #176 )
...
* Correct FOV calculation
* Update miniwin/sdl3gpu/src/miniwin_d3drmviewport.cpp
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
---------
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2025-05-26 01:09:41 +00:00
AllMeatball
b1a04f43ff
Make FOV perspective work better ( #174 )
...
* Add camera position to the rendering
* Rebase with anders' camera code
* Add perspective matrix
* Add (at least) a better fov
* Fix formatting
* Zero out matrix in perspective function
* Fix formatting again
* Make functions static in D3DRM viewport code
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
* Implement GetGroupMaterial() (#175 )
* Fix naming conflict
* Fix conflict in HMM_Perspective_LH_NO
* Fix formating
---------
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2025-05-25 15:57:51 -07:00
Anders Jenbo
343bbbd563
Add camera position to the rendering ( #173 )
2025-05-25 22:36:04 +00:00
Anders Jenbo
cea10248aa
Implement GetGroupMaterial() ( #175 )
2025-05-25 14:35:02 -07:00
Anonymous Maarten
48958c304e
Verbose logging and static multiply ( #172 )
...
* Log SDL3GPU device creation errors
* Give D3DRMMatrixMultiply static visibility
2025-05-25 20:16:48 +00:00
Anders Jenbo
0fe44b28b8
Set viewport frustrum again ( #171 )
2025-05-25 20:03:13 +00:00
Anonymous Maarten
b24271a51b
Move miniwin to sdl3gpu subdirectory + add suffix to classes ( #170 )
2025-05-25 17:38:02 +00:00
Anders Jenbo
f2a4ce9353
Apply 3D transformations ( #168 )
2025-05-25 07:26:22 -07:00
Anders Jenbo
c6e5e10921
Implement IDirect3DRM2::CreateMaterial() ( #167 )
2025-05-25 06:53:58 -07:00
Anders Jenbo
ea73d76b7d
Fix bad assert and fail fast on bad input ( #166 )
2025-05-25 10:59:08 +00: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
Anders Jenbo
4006c35090
Remove unused Add/DeleteVisual() ( #163 )
2025-05-25 00:52:57 +00:00
Anders Jenbo
440581bb78
Implement CreateFrame() ( #160 )
2025-05-25 00:40:50 +00:00
Anders Jenbo
e3cbbee000
Implement CreateLightRGB() ( #159 )
2025-05-25 00:40:37 +00:00
Anders Jenbo
8782fdb62e
Implement 3D geometry rendering ( #162 )
2025-05-25 02:24:32 +02:00
Anders Jenbo
695b697c4b
Implement Get/SetWindowLong(), GetMenu(), AdjustWindowRectEx() ( #155 )
2025-05-25 01:28:40 +02:00
Anders Jenbo
755b126666
Add missing MINIWIN_NOT_IMPLEMENTED() ( #158 )
2025-05-25 00:39:54 +02:00
Anders Jenbo
df3c66ae39
Implement SetFront, SetBack, and SetField in Direct3DRMViewportImpl ( #157 )
2025-05-25 00:13:22 +02:00
Anders Jenbo
36243c165b
Correct type of IDirect3DRMDevice::SetDither() argument ( #156 )
2025-05-24 22:34:54 +02:00
Anders Jenbo
99cdeb6596
Mark IDirectDrawClipper::SetHWnd() as implemented ( #154 )
...
SDL does not allow rendering outside it's window and so there is no need to limit it to the window in the first place.
2025-05-24 21:06:10 +02:00
Anders Jenbo
2fec243378
miniwin: Mark ClientToScreen() as implemented ( #153 )
...
SDL rendering works relative to the window surface and do not need translation in to screen coordinates.
2025-05-24 21:06:01 +02:00
Anders Jenbo
0a61be282e
miniwin: Implement IDirect3DRMMesh ( #144 )
...
* miniwin: Implement IDirect3DRMMesh
* Update miniwin/miniwin/src/include/miniwin_d3drmmesh_p.h
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
* Update miniwin/miniwin/src/include/miniwin_d3drmmesh_p.h
Co-authored-by: Christian Semmler <mail@csemmler.com>
---------
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Christian Semmler <mail@csemmler.com>
2025-05-21 19:59:17 -07:00
Anders Jenbo
0441296d37
Sky color controls ( #149 )
...
* d3drm: Clear background color
* Update miniwin/miniwin/src/include/miniwin_d3drmviewport_p.h
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
* Update miniwin/miniwin/src/include/miniwin_d3drmframe_p.h
---------
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2025-05-21 19:19:53 -07:00
Anders Jenbo
92ee03ec4d
d3drm: Minor cleanup and improvments ( #145 )
2025-05-22 00:46:42 +02: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
63ae856370
miniwin: Remove unused code ( #136 )
2025-05-20 11:00:32 -07:00
Anders Jenbo
4e2df63d9c
Get the game working on 64bit systems ( #113 )
...
* Use int instead of long
* Move static_asserts to the bottom
---------
Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
2025-05-19 17:56:12 +02:00
Anders Jenbo
fdde353b1f
minwin: Fix bitmap colors ( #125 )
2025-05-19 07:16:05 -07:00
Anders Jenbo
7972918472
miniwin: 16bit color key support ( #124 )
2025-05-19 07:15:12 -07:00
Anders Jenbo
a19827e10f
Minor palette corrections ( #122 )
2025-05-18 20:31:37 -07:00
Christian Semmler
855e965b71
Pack BITMAPFILEHEADER
2025-05-18 14:28:30 -07:00
Anders Jenbo
77cb46f91d
Add support for 8bit color key ( #110 )
2025-05-18 19:45:09 +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
Anders Jenbo
95eed31087
Fix free in minimfc ( #107 )
2025-05-17 20:45:37 -07:00
Anders Jenbo
9b8bbc3e76
Fix game startup bits ( #102 )
2025-05-17 16:39:35 -07:00
Anders Jenbo
44122f2f8a
Implement DirectDrawPalette methods ( #106 )
...
* Implement palettes
* Update miniwin/miniwin/src/miniwin_ddsurface.cpp
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
* Update miniwin/miniwin/src/miniwin_ddpalette.cpp
* Update miniwin/miniwin/src/miniwin_ddraw.cpp
---------
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2025-05-17 16:17:07 -07:00
Anders Jenbo
00a68c44c6
Fix initilization and overlapping memcpu ( #101 )
2025-05-16 19:07:05 -07:00
Anders Jenbo
543edf292a
Implement all D3DRM interfaces ( #99 )
...
* Implement (most) IDirect3DRMObject methods
* Implement all interfaces
---------
Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
2025-05-17 02:51:43 +02:00
Anders Jenbo
d58ce5e9a9
Implement SetWindowPos ( #98 )
2025-05-16 22:28:02 +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
115fa35d5a
Implement more D3DRM skeleton ( #94 )
2025-05-16 06:32:39 -07:00
Anders Jenbo
9ae96cbff6
Implement a functional DirectDraw ( #81 )
2025-05-15 20:45:53 -07:00
Anders Jenbo
ab83cd51c1
Implement DirectDrawImpl::EnumDevices() ( #92 )
2025-05-15 20:00:47 -07:00
Anders Jenbo
96c962f857
Additional strict type checking in DirectX implementation ( #91 )
2025-05-15 23:18:21 +02:00
Anders Jenbo
db7781473a
miniwin: Clean up headers and make bitflags and enums strict ( #90 )
2025-05-14 19:51:41 -07:00
Anders Jenbo
b304232bde
Proper EnumDisplayModes implementation ( #88 )
2025-05-14 17:52:52 -07:00
Anders Jenbo
c6107bdb5b
Fix config app ( #89 )
2025-05-14 17:52:37 -07:00
Anders Jenbo
d68142a8f2
Move MFC supporting functions to minimfc ( #77 )
2025-05-14 02:27:34 +02:00
Anders Jenbo
0e2ea5edc4
miinwin: Get to the CD check ( #76 )
2025-05-13 16:52:27 -07: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