Commit Graph

125 Commits

Author SHA1 Message Date
Anders Jenbo
1689a0063f
Fix an optimiaze OpenGL rendere (#320)
Co-authored-by: Christian Semmler <mail@csemmler.com>
2025-06-16 19:49:17 +02:00
Anders Jenbo
79726d25a4
Split framebuffer from general surfaces (#319) 2025-06-16 18:11:56 +02:00
Anders Jenbo
2828452b35
Clean up rendering (#301) 2025-06-16 04:28:32 +02:00
Anders Jenbo
4c80c8d923
Add 32bit color support (#311) 2025-06-14 23:09:23 +00:00
Anders Jenbo
65aafd2f44
Implement some minor functions in miniwin (#310) 2025-06-14 22:00:44 +02:00
Anders Jenbo
975764dc17
Align OpenGL and SDL_GPU specular with software (#305) 2025-06-14 18:05:25 +02:00
Anders Jenbo
d06caa99cb
Dial software speculare color in to match the original as best possible (#302) 2025-06-14 16:52:08 +02:00
Anders Jenbo
81ba75ea65
SIMD optimize z-buffer clear (#283) 2025-06-13 01:21:34 +02:00
Christian Semmler
5080e372f9
Emscripten port (#229)
* Emscripten port

* Fix NCC

* Update CMakeLists.txt

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>

* Update CMakeLists.txt

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>

* Update CMakeLists.txt

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>

* Update CMakeLists.txt

* cmake: set iniparser cmake options in local scope

* ci: try adding emscripten to test matrix

* cmake: try to make CMake install package more usable

* cmake: fix typo

* Update CMakeLists.txt

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>

* Add support for .ini loading

* Different default full screen behavior for Emscripten

* Add comments

* Add web platform

---------

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
2025-06-13 00:26:43 +02:00
Anders Jenbo
bbb0de6e9a
Implement full screen (#290) 2025-06-12 22:51:52 +02:00
Christian Semmler
b95ca4b2a3
Fix m_callbacks resource issue (#289) 2025-06-12 21:37:51 +02:00
Anders Jenbo
4374453cb7
Align cache destruction callback in software renderer (#284) 2025-06-12 01:45:07 +02:00
Anders Jenbo
d06972cfb5
Some sanity checks on Direct3DRMObjectBaseImpl::Release() (#285) 2025-06-11 22:18:56 +00:00
Anders Jenbo
7732a3ccfd
Use edge walking for triangle rasterization (#280) 2025-06-11 21:56:12 +02:00
Anders Jenbo
b2354a85d0
Sort and render transparent objects last (#277) 2025-06-11 02:15:26 +02:00
Anders Jenbo
2c9d9ba920
Upload mesh data to GPU using VBOs when available (#275) 2025-06-10 23:33:14 +00:00
Anders Jenbo
4c5b255471
Use indexed triangles in SDL_GPU (#274) 2025-06-10 23:07:02 +02:00
Anders Jenbo
c8b8035de8
Upload models to GPU before rendering (#272) 2025-06-10 06:34:49 +02:00
Anders Jenbo
08c654bf60
Simplify access to groups internally (#270) 2025-06-09 21:42:24 +02:00
Anonymous Maarten
7e9acc8d04
Add IDirect3DRMMiniwinDevice interface (#267) 2025-06-09 16:34:37 +00:00
Anders Jenbo
42e732192c
Fix Pick() (#268) 2025-06-09 16:32:11 +02:00
Anders Jenbo
de82e8477a
Use dedicated path for flat shading (#248) 2025-06-09 05:06:19 +02:00
Anders Jenbo
cd4a24ec9e
Use indexed faces (#257) 2025-06-09 04:56:29 +02:00
Anders Jenbo
5be9b09b40
SDL3 GPU texture support (#254)
Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
2025-06-09 01:04:19 +02:00
Christian Semmler
1a91547011
Update legomodelpresenter.cpp (#264)
* Update legomodelpresenter.cpp

* Update renderer.cpp
2025-06-08 15:55:35 -07:00
Anders Jenbo
f3a4d8fcb5
Fix OpenGL rendering (#262) 2025-06-08 23:44:37 +02:00
Anders Jenbo
4cd0385c38
Some cleanups for the software rendere (#261) 2025-06-08 23:31:29 +02:00
Anders Jenbo
6bdcc16fd9
Turn things right side in on SDL_GPU (#260) 2025-06-08 23:20:43 +02:00
Anders Jenbo
ee372fbc8f
Replace GeometryVertex with D3DRMVERTEX (#259) 2025-06-08 23:06:38 +02:00
Anders Jenbo
d32c30492f
Add flat shading to Appearance (#258) 2025-06-08 22:40:14 +02:00
David Gow
43191c7530
miniwin: Use the GLEW::GLEW target to find glew. (#246)
On some systems, the old-style GLEW_TARGET_LIBRARIES variable is not set by
find_package(GLEW), and instead we must use the newer GLEW::GLEW target, as
we do for OpenGL.

This fixes a build error on openSUSE Tumbleweed, which has a glew CMake config
in /usr/lib64/cmake/glew/glew-config.cmake.
2025-06-06 17:42:50 +02:00
Anders Jenbo
4c44f8f081
Update size to match vector content (#245) 2025-06-06 17:36:18 +02:00
Anders Jenbo
06fb577d7f
Big performance boost (#242) 2025-06-06 03:08:38 +02:00
Anders Jenbo
9a1cf812dd
Enable backface culling (#241) 2025-06-06 01:49:47 +02:00
Anders Jenbo
874cc526be
Add texture support for OpenGL (#239) 2025-06-05 13:26:06 +02:00
Anders Jenbo
12d01ae311
Refactor renderers (#237) 2025-06-05 04:07:42 +02:00
Anders Jenbo
39408b3584
Viewport cleanup (#233) 2025-06-04 22:31:38 +02:00
Anders Jenbo
956e3f2765
Cull by Bounding Box (#231) 2025-06-04 16:10:27 +02:00
Anders Jenbo
72eb992af4
Make Lego Islan Fully playable (#230) 2025-06-04 05:42:42 +02:00
Anders Jenbo
0ac7fee23c
Renderer clean up (#228) 2025-06-04 02:21:06 +02:00
Anders Jenbo
e349842ea4
Make Pick() more picky (#227) 2025-06-03 22:11:50 +02:00
Anders Jenbo
f412d44f83
Config clean ups (#226) 2025-06-03 20:08:09 +02:00
Anders Jenbo
85e8c2e42a
Cache bounding box (#225) 2025-06-03 19:30:25 +02:00
Anders Jenbo
d5a6da31e3
Make OpenGL compatible with config (#224) 2025-06-03 19:13:03 +02:00
Joshua Peisach
e520a47e2f
Port CONFIG to Qt (#210)
Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2025-06-03 03:48:04 +02:00
Anders Jenbo
b169a4d637
Implement OpenGL 1.5 backend renderer (#223) 2025-06-03 03:28:53 +02:00
AllMeatball
1ab11ed091
miniwin: Compartmentalize EnumDevices (#222)
This compartmentalizes everything to a corresponding function
for each renderer backend.
2025-06-03 02:18:20 +02:00
Anders Jenbo
2affbdfcc7
Align hardware lighting with software (#221) 2025-06-03 02:16:33 +02:00
Anders Jenbo
f08aec7438
Add highlights to software rendering (#218) 2025-06-02 04:14:40 +02:00
Anders Jenbo
5375336b5a
Pass material shininess to the renderer (#217) 2025-06-02 02:09:17 +02:00