Christoph Oelckers
fd3681dae2
- use an indexed vertex buffer to render the flats.
...
Right now this has no advantage but it allows optimizing the data, e.g. rendering an entire sector in one go instead of per subsector.
2018-05-19 13:33:28 +02:00
alexey.lysiuk
9257c9cc0c
- fixed compilation warnings reported by GCC/Clang
...
src/r_data/models/models.cpp:418:33: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
src/r_data/models/models.cpp:427:38: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
src/r_data/models/models_ue1.cpp:49:37: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
2018-05-19 13:28:53 +03:00
alexey.lysiuk
ace5ee3c41
- fixed crash after saving a screenshot
...
https://forum.zdoom.org/viewtopic.php?t=60616
2018-05-19 13:19:24 +03:00
Christoph Oelckers
5ec47d8b4f
- removed some leftover data in sector_t.
2018-05-19 08:25:26 +02:00
Christoph Oelckers
ab3bacdaf5
- added missing files to project.
2018-05-18 23:00:10 +02:00
Christoph Oelckers
ebbe52082a
- fixed vr_enable_quadbuffered for real
...
I did not consider that this is an init-only option. So changing the CVAR may not affect game behavior at all. Instead its value must be moved to some globally accessible variable on startup that never gets changed again.
2018-05-18 08:44:32 +02:00
Rachael Alexanderson
f2e6ca4ced
- add 'vid_showcurrentscaling' ccmd, expanded output for 'vid_scaletowidth' and 'vid_scaletoheight' commands
...
- made the vid_scaleto____ commands less hacky - after finding out I could route the calls through screen->, found the correct screen-> commands, and do scaling based on the real screen dimensions
2018-05-17 19:25:32 -04:00
Christoph Oelckers
1656bbf9ec
- route the BlurScene call in the menu through DFrameBuffer.
...
Game code should never ever call the renderer directly. This must be done through the video interface so that it can also work with other framebuffers later.
2018-05-18 00:22:57 +02:00
Christoph Oelckers
2962fe9f08
- silence some warnings.
2018-05-18 00:12:58 +02:00
Christoph Oelckers
b197bfc964
- avoid checking for vr_enable_quadbuffered directly.
...
This option only exists on Windows, so on the other platforms it should not be in the menu and not affect the setup of the VR mode.
2018-05-18 00:12:45 +02:00
Christoph Oelckers
3f56e02352
Revert "- fix compile on non-Windows targets"
...
This reverts commit 781cc62f89
.
This gets in the way of a real fix.
2018-05-18 00:03:58 +02:00
Rachael Alexanderson
781cc62f89
- fix compile on non-Windows targets
2018-05-17 17:47:42 -04:00
Rachael Alexanderson
872cd529c7
- define zdoom.rc as a proper Windows text file, stop Git from mismanaging it
2018-05-17 17:39:18 -04:00
Christoph Oelckers
46a57fdfa1
- moved the postprocessing CVARs to hwrenderer.
2018-05-17 20:51:42 +02:00
Christoph Oelckers
ea98fe3c4d
- moved the hardware independent part of custom postprocessing shaders from gl to hwrenderer.
2018-05-17 20:23:01 +02:00
Christoph Oelckers
da1cdf65c3
Merge branch 'master' of https://github.com/coelckers/gzdoom
2018-05-17 20:12:44 +02:00
Rachael Alexanderson
bcadd2bf04
- also remove unused forward declarations
2018-05-17 06:30:36 -04:00
Rachael Alexanderson
0f36b9d63f
- cleaned up vid_scaleto____ code a bit, also set a sane lower limit for vid_scalefactor, removed some code redundancy
2018-05-17 06:24:21 -04:00
alexey.lysiuk
42668c6a5a
- fixed seeking end of file in memory reader
...
https://forum.zdoom.org/viewtopic.php?t=60611
2018-05-17 10:19:29 +03:00
Christoph Oelckers
c0837f42bd
- gl_system.h as well, in particular this has no place in hw_* files.
2018-05-16 23:34:52 +02:00
Christoph Oelckers
401c9ab8ca
- moved gl_interface.cpp/h to gl_load folder.
...
These files are not part of the actual renderer but part of the system code.
This means, for separated modern and legacy GL renderers, there still will only be one set of this, unlike everything else.
2018-05-16 23:21:21 +02:00
Christoph Oelckers
6e20ece3f4
- moved vr_enable_quadbuffered definition to win32gliface.cpp because this is where it gets used.
2018-05-16 23:14:30 +02:00
Christoph Oelckers
fb876852bb
- fix warnings.
2018-05-16 22:56:02 +02:00
Marisa Kirisame
1bb00ed4f0
Fix for Unreal meshes that don't have sequential texture numbers
2018-05-16 22:11:24 +02:00
Christoph Oelckers
44dd48c7fa
- moved the palette stuff and some remaining scaling code from OpenGLFrameBuffer to DFrameBuffer and fixed GetFlashedPalette
2018-05-16 22:10:24 +02:00
alexey.lysiuk
fc91827900
- trigger WorldThingDamaged event before WorldThingDied
...
https://forum.zdoom.org/viewtopic.php?t=60597
2018-05-16 20:48:59 +02:00
Jonathan Russell
e9050a38b3
- added LevelLocals vec2/3Offset(Z) functions for portal-aware offsetting without needing actors
2018-05-16 20:47:43 +02:00
Marisa Kirisame
98f279b651
Remove unnecessary checks.
2018-05-16 20:47:11 +02:00
Marisa Kirisame
ffc12eec29
Discarded "UMSH" packed format, now loads _d.3d + _a.3d pairs
2018-05-16 20:47:11 +02:00
Marisa Kirisame
f285e550d6
Add support for packed Unreal Engine 1 vertex mesh format.
...
(concatenated "UMSH" signature + datafile + anivfile)
This is pretty much 100% functional by now.
Hasn't been tested on platforms other than Linux yet, though.
Code definitely deserves some cleaning.
2018-05-16 20:47:11 +02:00
Rachael Alexanderson
0fae13bab4
- added vid_scaletowidth and vid_scaletoheight to calculate vid_scalefactor to reach a certain value on screen dynamics
2018-05-16 11:54:35 -04:00
alexey.lysiuk
e1e441091d
- fixed potential crash on startup, Windows only
...
At least one version of Windows SDK (10.0.17134.0) has broken _pgmptr/_get_pgmptr()
It points to an empty string for multi-byte character set applications
GetModuleFileName() is now used instead regardless of compiler/toolchain
Added extra guard against unexpected program paths to avoid crashes
https://forum.zdoom.org/viewtopic.php?t=60598
2018-05-16 11:44:49 +03:00
alexey.lysiuk
751e318c4e
- fixed wrong line number in error message
...
Parser of MAPINFO editor number definitions didn't assign line numbers, so 'Unknown actor class' fatal error displayed some garbage
2018-05-14 14:42:31 +03:00
alexey.lysiuk
fa5f936371
- fixed missing saved game picture in software modes
...
https://forum.zdoom.org/viewtopic.php?t=60574
2018-05-13 16:11:05 +03:00
Christoph Oelckers
8f96729e06
- fixed portal benchmarking and added separate output for 2D and finishing the main scene.
2018-05-13 09:48:19 +02:00
alexey.lysiuk
8a6ae503be
- use map axes in bad sound position/velocity warning
...
https://forum.zdoom.org/viewtopic.php?t=60578
2018-05-13 10:13:59 +03:00
Christoph Oelckers
142368d958
- fixed alpha of weapon sprite.
2018-05-12 18:45:12 +02:00
Christoph Oelckers
c2a7a4bf30
- moved viewport code to DFrameBuffer.
2018-05-12 17:23:56 +02:00
alexey.lysiuk
f17f8c9359
- added end line to various messages
...
so they don't screw up further output anymore
2018-05-11 18:03:57 +03:00
Magnus Norddahl
643828f5fa
- move 3d floor code into functions
2018-05-11 17:00:12 +02:00
Magnus Norddahl
e4d740e586
- more pointless complexity removal
2018-05-11 14:27:09 +02:00
Magnus Norddahl
acf9f55849
- remove pointless code
2018-05-11 13:29:24 +02:00
Magnus Norddahl
b0cc472e85
- fixed sloped drawer crash
2018-05-11 12:28:10 +02:00
alexey.lysiuk
2c2b19bb7f
- fixed crash during autoloading of material textures
...
https://forum.zdoom.org/viewtopic.php?t=60546
2018-05-10 18:01:29 +03:00
alexey.lysiuk
a7e7db1fe9
- fixed calculation of glow color
...
Width and pitch were mixed up for RGB format texture, pixel data were read outside of designated buffer
https://forum.zdoom.org/viewtopic.php?t=60538
2018-05-10 15:45:29 +03:00
Magnus Norddahl
46e2e0b57c
- reduce the number of direct OpenGL calls done by the post processing steps
2018-05-10 14:43:34 +02:00
landfillbaby
ba9a340c1f
fix highlighting in snd_listmididevices
2018-05-10 11:51:23 +03:00
alexey.lysiuk
ef536e7b00
- fixed crash in DECORATE parsing
...
The case with forward declared class used as a parent must be handled explicitly
actor MyWeapon : Weapon { Weapon.AmmoType "MyBaseAmmo" }
actor MyAmmo : MyBaseAmmo { }
actor MyBaseAmmo : Ammo { }
2018-05-10 11:47:16 +03:00
alexey.lysiuk
821cc2a140
- added end line to recursive sound warning
2018-05-10 11:43:27 +03:00
Christoph Oelckers
e1ad4b618d
- fixed: The targeter drawer did not check the return value of its setup function.
...
This caused invalid items to be passed to the renderer.
2018-05-10 09:09:24 +02:00
Christoph Oelckers
50cdcc79c8
- fixed OpenGL2.0 may not call the modern light setup code.
2018-05-10 09:05:26 +02:00
alexey.lysiuk
fd5df6e8d1
- Cocoa: ability to use drag and drop with custom IWADs
2018-05-09 12:47:11 +03:00
alexey.lysiuk
23dcc27542
- Cocoa: proper defaults in .plist
2018-05-09 12:33:19 +03:00
Magnus Norddahl
459f748c4e
- added r_debug_draw that shows how the software renderer composes its scene
2018-05-08 22:22:15 +02:00
David Carlier
1b68b69ed8
Needed headers for time and WIF*
2018-05-08 22:04:20 +03:00
Magnus Norddahl
b27655db70
- 3d floor clipping support for models
2018-05-08 01:36:18 +02:00
Magnus Norddahl
49c9de350f
- GetTimeFloat is not renderer specific
2018-05-07 00:40:12 +02:00
Magnus Norddahl
bfe6bffd33
- fix hud model clipping
2018-05-07 00:33:16 +02:00
alexey.lysiuk
78c06554af
- proper handle pixel format creation errors in Cocoa backend
2018-05-06 17:53:53 +03:00
alexey.lysiuk
7fcefa2ed1
- SDL: clear button state when switching from/to GUI input
...
https://forum.zdoom.org/viewtopic.php?t=60451
2018-05-06 14:37:04 +03:00
alexey.lysiuk
ce18ff1df3
- use libc++ for all targets on macOS
...
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
2018-05-06 09:44:13 +03:00
Magnus Norddahl
4642861501
- fixed missing depth for models
2018-05-06 03:23:07 +02:00
Magnus Norddahl
1d929dd79b
- fix translucent walls when r_models is enabled
2018-05-06 02:54:03 +02:00
Magnus Norddahl
d667a0192a
- fix null pointer crash
2018-05-06 02:31:58 +02:00
Christoph Oelckers
099057b142
- moved the vertex and light data generation back to the render pass for modern OpenGL with persistently mapped buffers.
...
Having this extra CPU time in there allows for better parallelization with the graphics driver and GPU.
2018-05-05 23:32:55 +02:00
alexey.lysiuk
437b44bafb
- serialize 'spawned' object flag, WorldThingDestroyed event relies on it
...
https://forum.zdoom.org/viewtopic.php?t=60435
2018-05-05 17:55:44 +03:00
Christoph Oelckers
74b624002c
- moved the software renderer's drawer to the swrenderer directory.
2018-05-05 11:44:42 +02:00
Christoph Oelckers
de15b589c0
- moved the screen blending code out of the renderer.
...
This is better be made part of the 2D interface.
That would have been done long ago if it hadn't been for the totally incompatible way this was handled by the purely paletted software renderer.
Now with that out of the way there is no point keeping this code this deeply embedded in the renderer.
2018-05-05 11:20:37 +02:00
Christoph Oelckers
52d73eabbf
- weapon drawing code refactor complete.
...
Setup and drawing are now done separately, this also no longer needs the Quad drawer.
2018-05-04 23:11:37 +02:00
alexey.lysiuk
2be84dc636
- skip rendering when application is not active
...
Use vid_activeinbackground CVAR to override this behavior
2018-05-04 11:24:37 +03:00
Christoph Oelckers
e0833d5005
- prepared the weapon sprite drawer for full separation.
2018-05-03 23:49:16 +02:00
Christoph Oelckers
e309fd1f3d
- moved a bit more of the wall setup to the API independent side.
2018-05-03 22:14:25 +02:00
Christoph Oelckers
6285a309ce
- added UploadLights to the DrawInfo interface.
...
- removed GLPASS_PLAIN because it was the same as GLPASS_ALL.
2018-05-03 21:47:58 +02:00
Christoph Oelckers
96ac1fa363
- changed GLDecal to work without a pointer to the generating GLWall.
...
Although this is currently safe there is no guarantee that future refactorings will keep the current draw lists, so it's better if GLDecal used its own copy of the data.
2018-05-03 21:42:34 +02:00
Christoph Oelckers
43b491ea33
- moved the global 'no dynamic lights' variable to FLevelLocals so that it is outside renderer specific data.
2018-05-03 21:27:45 +02:00
Hisymak
583da7f6cf
OPL Synth fix: Double-voice instruments randomly don't play second voice
2018-05-03 21:10:17 +02:00
alexey.lysiuk
e87cdd3658
- fixed missing geometry with render precision set to quality
...
https://forum.zdoom.org/viewtopic.php?t=60423
2018-05-03 21:10:05 +02:00
Christoph Oelckers
14410ae526
- fixed: FDrawInfo must be kept around until DrawEndScene2D finishes.
...
Otherwise some code crashes on invalid data.
2018-05-01 19:01:01 +02:00
Christoph Oelckers
9bdb0f2e49
- renamed the flag bits for sector_t::MoreFlags, so that they are easier to distinguish from sector_t::Flags.
...
- precalculate if a sector's floor and ceiling plane overlap. This avoids rechecking this for each single call of hw_FakeFlat.
- vertices must be marked dirty every time they change after map setup. That means that ChangePlaneTexZ must do this as well, because it cannot rely on interpolation taking care of it.
- Having a 'dirty' argument for SetPlaneTexZ's ZScript version makes no sense. If the value changes from the script side the vertices must always be marked to be recalculated.
2018-05-01 11:29:29 +02:00
Christoph Oelckers
f49c6cbde2
- use sector_t::GetHeightSec consistently and optimize it.
...
This was all over the place, with half of it using the function and half doing incomplete checks on the underlying variables.
Also did some optimization on the IGNOREHEIGHTSEC flag: Putting it on the destination sector instead of the model sector makes the check even simpler and allows to precalculate the effect of 3D floors on the heightsec, which previously had to be run on every call and made the function too complex for inlining.
2018-05-01 09:47:09 +02:00
Christoph Oelckers
3c49804c6c
- some Transfer_Heights related optimizations.
...
* only call hw_CheckViewArea if the result is not known yet.
* check the map up front if it even contains heightsecs. This allows to shortcut the above check entirely for maps without sector transfers and will allow further optimizations.
2018-05-01 09:02:24 +02:00
Christoph Oelckers
b35213741f
- don't force the renderer to remain active in windowed mode when in the background.
...
It's ok to have this as an option, but not as an unconditional forced feature.
2018-05-01 07:48:59 +02:00
Christoph Oelckers
af76e9a9c4
- allow animated title pics.
...
This also applies to all other images shown in the title loop as well.
2018-04-30 23:48:59 +02:00
Christoph Oelckers
7aea010892
- added a sector index to the subsector struct.
...
This will be used to process dynamic lights for flats in the processing pass, allowing to remove the lights-only pass entirely.
2018-04-30 23:48:16 +02:00
Christoph Oelckers
ecb1578a7a
- changed model lighting setup to be done in the processing pass.
...
This eliminates the different code paths for GL3 and GL4.5.
2018-04-30 23:06:48 +02:00
Christoph Oelckers
fbbf2f8346
- fixed a few things in the weapon drawer.
2018-04-30 21:42:36 +02:00
Christoph Oelckers
2b5019ea6e
- fix for rendering a brightmapped 2D texture with ColorIsFixed render style.
...
This must disable the brightmap.
2018-04-30 21:28:06 +02:00
Hisymak
07586af6d1
Fix OPL Synth note cutoffs and issues after removal of MusLib
...
This should fix bug reported in https://forum.zdoom.org/viewtopic.php ?
f=104&t=56682.
There were two problems:
1. Algorithm to select a free voice was not appropriate. Changed to a
simple "least-recently-freed voice" algorithm.
2. Sustained voices were treated as used voices and never got replaced.
Now sustained voices are preferentially replaced when there are no free
voices.
2018-04-30 18:21:30 +02:00
alexey.lysiuk
76ed80fe56
Fixed randomly colored weapons
2018-04-30 10:35:18 +03:00
Christoph Oelckers
ebc1c5741b
- some more weapon code extracted.
2018-04-30 00:09:42 +02:00
Christoph Oelckers
c2ac985357
- split off the utility functions from gl_weapon.cpp.
...
Meaning there's only half as much code left to clean up.
2018-04-29 23:38:26 +02:00
Christoph Oelckers
d904fba05b
- trying to clean up the weapon renderer.
...
Some of the data generation has been offloaded to subfunctions to get the main function down to something manageable for refactoring.
2018-04-29 22:30:52 +02:00
Christoph Oelckers
67cb6e63b5
- cleanup of the 2D interface.
...
Lots of this was still laid out for DirectDraw. This removes most of Begin2D so that it can be done more cleanlz.
Note that this commit renders weapon sprites and screen blends incorrectly. Those will be fixed in an upcoming commit.
2018-04-29 20:15:19 +02:00
Christoph Oelckers
1345c8e7b4
- fixed: NewDecal should not be called unless it is guaranteed that the decal will be rendered.
...
This left partially initialized items in the render list.
2018-04-29 19:28:13 +02:00
Christoph Oelckers
4d72214fd5
- fixed a memory leak in the FileReader.
2018-04-29 19:09:51 +02:00
Christoph Oelckers
852c42bbd4
- fixed dynamic lights in legacy mode.
...
Since they mess around with the texture coordinates, these need to be backed up and restored afterward.
There was also an issue with the ValidNormal check that was suffering from imprecisions that cause walls to be skipped, so the check was removed because it was mostly pointless.
2018-04-29 19:00:17 +02:00
Christoph Oelckers
6cd8b1b3eb
- With dynamic light data creation being done in the preparation pass, the light buffer must be mapped while this is running for it to work on older hardware.
2018-04-29 17:36:51 +02:00
Christoph Oelckers
f91511bd84
- removed the leftover code for running walls through GLPASS_LIGHTSONLY.
...
Unless in legacy mode, all dynamic light setup is now being done in the preparation pass, for both LM_DEFERRED and LM_DIRECT.
2018-04-29 17:27:28 +02:00
alexey.lysiuk
e9d84b8820
Fixed compilation of non-Windows targets
...
src/hwrenderer/dynlights/hw_aabbtree.h:45:2: error: no template named 'TArray'
src/hwrenderer/dynlights/hw_aabbtree.h:48:2: error: no template named 'TArray'
2018-04-29 16:12:33 +03:00
Christoph Oelckers
06d20e13b8
- cleaned up the gamma correction code.
...
This had accumulated quite a bit of cruft by now and parts of it should be in non OpenGL code.
2018-04-29 13:45:53 +02:00
Christoph Oelckers
9e6f3787c6
- moved PTM_BestColor to v_palette.cpp and removed its dependencies on CVARs.
2018-04-29 13:10:30 +02:00
Christoph Oelckers
9350eee0c0
- GLDrawList moved to hwrenderer/.
2018-04-29 12:56:06 +02:00
Christoph Oelckers
77b301612a
- some refactoring of GLDrawList to remove implementation-specific parts from this class.
2018-04-29 12:32:21 +02:00
Christoph Oelckers
ec13b77717
- removed empty gl_wall.h.
2018-04-29 11:40:47 +02:00
Christoph Oelckers
634b3cf413
- moved gl_spritelight out of gl/. This required a few more changes:
...
* split gl_shadowmap.cpp into a GL dependent and an API independent part.
* gl_drawinfo must be kept around for the HUD sprite because it connects the renderer with the hardware indpendent part of the engine.
2018-04-29 11:00:34 +02:00
Christoph Oelckers
819ea8f937
- reduced gl_spritelight.cpp to pure data setup so that it can be moved out of gl/.
...
- added thread_local to some static arrays being used for setting up dynamic lights.
Right now it's of little consequence but these will have to be maintained per thread if the render data setup is done by worker tasks.
2018-04-29 09:33:36 +02:00
Christoph Oelckers
64b108ff44
- hw_sprites extracted
...
- moved the variables for OpenGL's special textures to the texture manager because it is far better suited as a container than the GLRenderer.
2018-04-29 00:09:44 +02:00
Christoph Oelckers
d1720ad790
- GLSprite rework.
2018-04-28 20:02:17 +02:00
alexey.lysiuk
6d308ca67e
Fixed walkthrough blocker in Sin City 2 via compatibility entry
...
It was impossible to complete Sin City 2 The Satan Complex without cheating since ZDoom 2.6.0
Change in applying of DeHackEd patches from 77a4b9a29b
broke triggering of important linedef that pushes friendly marine to exit switch
https://www.doomworld.com/idgames/levels/doom2/Ports/s-u/satanx
2018-04-28 17:45:15 +02:00
Christoph Oelckers
243e12bd8f
- split gl_flats.cpp
2018-04-28 13:24:45 +02:00
Magnus Norddahl
5cdea39b35
- add the missing header files in the vs solution explorer
2018-04-28 13:11:55 +02:00
Christoph Oelckers
c5641a0e72
- GLFlat split into API-dependent and -independent data.
...
No resorting of the files yet.
2018-04-28 12:34:09 +02:00
Christoph Oelckers
d694e19f01
- split off the data generation parts of gl_skydome.cpp
2018-04-28 00:50:42 +02:00
Christoph Oelckers
785a6c2ce5
- moved gl_sky.cpp
2018-04-28 00:22:25 +02:00
Christoph Oelckers
cc926dec1e
- removed gl dependencies from gl_sky.cpp by moving some data into other places.
2018-04-28 00:18:49 +02:00
Christoph Oelckers
59477362d9
Merge branch 'wallwork'
2018-04-27 20:37:54 +02:00
Christoph Oelckers
c2333db725
Merge branch 'master' of https://github.com/coelckers/gzdoom
2018-04-27 20:37:44 +02:00
Christoph Oelckers
fe2bfc6f11
- moved the API-independent parts of the decal code to hwrenderer/.
2018-04-27 20:34:20 +02:00
Christoph Oelckers
678ac40b72
- cleaned up includes for gl_decal.cpp
2018-04-27 20:28:59 +02:00
Christoph Oelckers
383ff0d8b8
- moved code around.
2018-04-27 20:21:22 +02:00
Christoph Oelckers
0d7c2527f2
- finished decal render refactoring.
...
Decals will now be processed into a list in the processing pass, allowing to use the vertex buffer even on GL3 hardware and to offload this part of the work to a multithreaded worker task.
2018-04-27 20:18:52 +02:00
Christoph Oelckers
1ae2f06161
Merge branch 'wallwork' of https://github.com/coelckers/gzdoom into wallwork
2018-04-27 18:53:08 +02:00
Christoph Oelckers
58c0431396
- copied gl_SetupLights to hw_walls.cpp.
2018-04-27 18:53:01 +02:00
alexey.lysiuk
2ae8b0c093
Added startup song definition for custom IWADs
...
https://forum.zdoom.org/viewtopic.php?t=60314
2018-04-27 13:32:38 +03:00
Christoph Oelckers
200848a487
Decal work. Not finished yet.
2018-04-27 11:40:23 +02:00
alexey.lysiuk
8dfd1e6490
Removed unsupported versions of macOS from detection list
2018-04-27 11:04:19 +03:00
Christoph Oelckers
bbea6e7e3c
Begin2D doesn't need a return type anymore
...
This was to tell the caller that software 2D was in use, but that doesn't exist anymore
2018-04-27 09:58:19 +02:00
Christoph Oelckers
90a1614ac8
The intermission drawer doesn't need to check the return of Begin2D anymore
2018-04-27 09:34:43 +02:00
Christoph Oelckers
fbcf2033c6
Corrected render style definition
2018-04-27 09:34:02 +02:00
Christoph Oelckers
0dc82fe755
- header cleanup for gl_swscene.
2018-04-27 00:53:58 +02:00
Christoph Oelckers
9d13e6b7ec
- gl_colormap.h is no longer needed.
2018-04-27 00:31:00 +02:00
Christoph Oelckers
fc0d673935
- moved the files
2018-04-27 00:28:30 +02:00
Christoph Oelckers
dd524b046e
- GLWall is mostly clean, except some smaller things in gl_sky.cpp
2018-04-27 00:22:00 +02:00
Christoph Oelckers
937a2cf69f
- abstracted the vertex allocator.
2018-04-26 20:07:56 +02:00
Christoph Oelckers
9a1603b246
- made GLWall ready for multithreaded processing.
...
* to do this efficiently the amount of required vertices needs to be calculated up-front
* always create the vertices in the data generation pass, not the render pass.
* added synchronisation code to the vertex buffer allocator.
Without multithreading this causes a slight slowdown, due to added processing cost. (Frozen Time bridge scene drops from 47 fps to 44 fps on my test machine.
2018-04-26 19:25:11 +02:00
alexey.lysiuk
3111ec97bb
Fixed crash during line tracing when enter sector is null
...
https://forum.zdoom.org/viewtopic.php?t=60371
2018-04-26 17:33:05 +02:00
alexey.lysiuk
86232df5ee
Fixed rendering of walls and flats
...
With high resolution textures enabled (gl_texture_usehires CVAR set to true) and without hires textures loaded walls and flats were black
2018-04-26 10:37:27 +03:00
Christoph Oelckers
6e58f72329
- continued reorganization of GLWall.
2018-04-26 07:07:46 +02:00
Christoph Oelckers
1ae6ad2a82
- moved the legacy member functions of GLWall to FDrawInfo.
2018-04-25 22:58:56 +02:00
Christoph Oelckers
41d5bd76d4
- moved decal rendering from GLWall to FDrawInfo.
...
First step of turning GLWall into a pure data container.
2018-04-25 22:09:12 +02:00
Christoph Oelckers
306b630de2
- merged the remains of gl_texture.cpp into hw_cvars.cpp.
...
- eliminated hqresize.cpp's dependency on GL headers.
- cleaned up the logic for CreateTexBuffer so that hqresize.cpp does not need to check for software warped textures anymore.
2018-04-25 21:02:50 +02:00
Christoph Oelckers
ceeb479261
- moved the CVAR definitions from gl/ to hwrenderer/.
...
- disabled gl_texture_format because in its existing form it is mostly a useless feature.
2018-04-25 20:33:55 +02:00
ZZYZX
3129840a04
Only call additional LineCheck if there are 3D floors
2018-04-25 19:38:29 +02:00
ZZYZX
3eef3d7845
Implemented workaround for ZScript LineTrace with 3D floors
2018-04-25 19:38:29 +02:00
Christoph Oelckers
85300993af
- replaced gl_PatchMenu with an MMX 'ifoption' check.
2018-04-25 19:36:48 +02:00
Christoph Oelckers
cf8ee3130b
- gl_clock moved to hwrenderer.
2018-04-25 18:39:54 +02:00
Christoph Oelckers
982776d48d
- removed dependencies on GL-API related classes from gl_walls.cpp and gl_sky.cpp
...
Not complete yet, but at least the GLWall memberes no longer reference GLSceneDrawer and the implementation dependent parts of FDrawInfo.
2018-04-25 14:58:13 +02:00
Christoph Oelckers
bf81799701
- typo
2018-04-25 13:59:27 +02:00
Christoph Oelckers
81341ac6c5
- Moved all static variables in hw_renderhacks into HWDrawInfo
...
- removed the profiling code from hw_renderhacks because it was broken in its current state and if still needed needs to be redone differently.
2018-04-25 13:59:14 +02:00
Christoph Oelckers
1648fc6a07
Fixed initialization issues with dynamic lights.
...
Actors get initialized from their defaults so anything done in the constructor or some explicit member initialization will be overwritten.
They must use their properties for setting up configurable fields and do the rest in BeginPlay.
2018-04-25 09:14:01 +02:00