Commit graph

34 commits

Author SHA1 Message Date
Gunnar Birke
3c1a6c75c8 WINTERMUTE: Properly setup projection and view matrix 2020-06-07 18:29:05 +02:00
Gunnar Birke
ff3b4177fb WINTERMUTE: Fix formatting, add license headers 2020-06-07 18:29:05 +02:00
Gunnar Birke
e64df162ef WINTERMUTE: Set camera matrix during 3d setup 2020-06-07 18:29:05 +02:00
Gunnar Birke
15896112bf WINTERMUTE: Set far plane distance to 1900 (like wme) 2020-06-07 18:29:05 +02:00
Gunnar Birke
10b26ff2d9 WINTERMUTE: Add function to reset model-view transform 2020-06-07 18:29:05 +02:00
Gunnar Birke
1d6a47c8b3 WINTERMUTE: Implement proper 3d setup function 2020-06-07 18:29:05 +02:00
Gunnar Birke
e4580f5a72 WINTERMUTE: Use relative to project base header paths 2020-06-03 01:17:25 +02:00
Gunnar Birke
a4ce6d6bf2 WINTERMUTE: Make sprite rendering code more readable 2020-06-03 01:17:25 +02:00
Gunnar Birke
dff5d099b4 WINTERMUTE: Warn about not yet implemented functions 2020-06-03 01:17:25 +02:00
Gunnar Birke
9311be32ca WINTERMUTE: Apply cosmetic changes 2020-06-03 01:17:25 +02:00
Gunnar Birke
cbc313020a WINTERMUTE: Fix formatting, add license headers 2020-06-03 01:17:25 +02:00
Gunnar Birke
2e77063c7c WINTERMUTE: Revert virtualization of pointFrom/ToScreen and use #ifndefs instead 2020-06-03 01:17:25 +02:00
Gunnar Birke
d7485741c9 WINTERMUTE: Fix curly braces, add some comments 2020-06-03 01:17:25 +02:00
Gunnar Birke
7c0835d1cf WINTERMUTE: Don't write to z buffer during 2d rendering 2020-06-03 01:17:25 +02:00
Gunnar Birke
50cb4e72d6 WINTERMUTE: Clean up rect list before rendering 2020-06-03 01:17:25 +02:00
Gunnar Birke
cfe9d74374 WINTERMUTE: Virtualize pointFromScreen/pointToScreen calls 2020-06-03 01:17:25 +02:00
Gunnar Birke
8a42dde295 WINTERMUTE: Correct y position which expects Direct3D viewport coords 2020-06-03 01:17:25 +02:00
Gunnar Birke
8f6de3fe15 WINTERMUTE: Implement fading 2020-06-03 01:17:25 +02:00
Gunnar Birke
7b9f277621 WINTERMUTE: Factor out 2D projection settings 2020-06-03 01:17:25 +02:00
Gunnar Birke
b138c7b0ee WINTERMUTE: Fix vertex data construction 2020-06-03 01:17:25 +02:00
Gunnar Birke
4ffc621049 WINTERMUTE: Clear array buffer before rendering anything 2020-06-03 01:17:25 +02:00
Gunnar Birke
3339147252 WINTERMUTE: Use an orthographic projection in 2d mode 2020-06-03 01:17:25 +02:00
Gunnar Birke
84bcd9cde1 WINTERMUTE: Put clear and fill operations into correct order 2020-06-03 01:17:25 +02:00
Gunnar Birke
a357114aaa WINTERMUTE: Use our own frustum construction for now 2020-06-03 01:17:25 +02:00
Gunnar Birke
962c127049 WINTERMUTE: Set viewport during init and save it's data 2020-06-03 01:17:25 +02:00
Gunnar Birke
19394875db WINTERMUTE: Implement displayTrans function 2020-06-03 01:17:25 +02:00
Gunnar Birke
09a28c8341 WINTERMUTE: Set opengl viewport 2020-06-03 01:17:25 +02:00
Gunnar Birke
47e3befd1b WINTERMUTE: Implement setup2d (almost) 2020-06-03 01:17:25 +02:00
Gunnar Birke
8407fe0647 WINTERMUTE: Set a projection matrix during renderer init 2020-06-03 01:17:25 +02:00
Gunnar Birke
ce44388c5a WINTERMUTE: Implement drawSpriteEx partially 2020-06-03 01:17:25 +02:00
Gunnar Birke
acae963322 WINTERMUTE: Implement loading of textures and transparent check 2020-06-03 01:17:25 +02:00
Gunnar Birke
f8bdb6590e WINTERMUTE: Add factory method for opengl 3d renderer 2020-06-03 01:17:25 +02:00
Gunnar Birke
79dd4c639b WINTERMUTE: Use ResidualVM blend mode type 2020-06-03 01:17:25 +02:00
Gunnar Birke
8cd6650f89 WINTERMUTE: Add skeleton of opengl 3d renderer 2020-06-03 01:17:25 +02:00