b9fd6f18f0
Adds proper IBuffer usage instead of dynamic flag.
...
Comments By: phosit
Differential Revision: https://code.wildfiregames.com/D5281
This was SVN commit r28107.
2024-06-10 19:31:41 +00:00
ffc4a56b9f
Revert non-ASCII characters from source and configuration files introduced in 157c6af18e
.
...
Fixes #6846
Differential Revision: https://code.wildfiregames.com/D5185
This was SVN commit r27965.
2023-12-03 00:30:12 +00:00
f40942f6b3
Moves CVertexBufferManager from global scope to CRenderer.
...
Differential Revision: https://code.wildfiregames.com/D5171
This was SVN commit r27907.
2023-10-28 21:01:22 +00:00
157c6af18e
Make the space in 0 A.D. non-breaking throughout the codebase.
...
Avoid cases of filenames
Update years in terms and other legal(ish) documents
Don't update years in license headers, since change is not meaningful
Will add linter rule in seperate commit
Happy recompiling everyone!
Original Patch By: Nescio
Comment By: Gallaecio
Differential Revision: D2620
This was SVN commit r27786.
2023-07-27 20:54:46 +00:00
90f064ff03
Switches from per draw vertex attribute format to precompiled vertex input layout.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4852
This was SVN commit r27363.
2023-01-06 00:39:25 +00:00
2d0cde4e64
Disallows backend buffer uploading inside framebuffer pass.
...
Differential Revision: https://code.wildfiregames.com/D4815
This was SVN commit r27182.
2022-10-29 23:20:04 +00:00
908d9a0079
Moves vertex buffer offset to SetVertexBuffer.
...
This was SVN commit r27137.
2022-10-09 11:47:34 +00:00
12dfe2ce55
Use CVector2D instead of float arrays for TexturedLineRData
...
Reviewed by: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D4688
This was SVN commit r26924.
2022-06-06 21:46:37 +00:00
a6f60afdc5
Adds instancing support to backend and enables it for minimap.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4650
This was SVN commit r26901.
2022-05-24 07:11:23 +00:00
62e589ab76
Adds renderer backend interface and dummy backend.
...
Comments By: phosit, Stan
Tested By: Langbart, phosit
Differential Revision: https://code.wildfiregames.com/D4636
This was SVN commit r26858.
2022-05-08 22:02:46 +00:00
04bd96cee0
Moves uniform and texture binding to CDeviceCommandContext.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4631
This was SVN commit r26848.
2022-05-02 20:57:22 +00:00
ac60b12045
Replaces occurrences of "VBO" in comments by "backend buffer". Refs cff79b421a
...
This was SVN commit r26835.
2022-04-27 20:04:56 +00:00
aba7a170d9
Moves vertex attribute binding to CDeviceCommandContext.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4610
This was SVN commit r26815.
2022-04-23 20:11:14 +00:00
2c8f4c4837
Moves AssertPointersBound to draw commands to not forget to call it for new shaders.
...
In the future it allows to call AssertPointersBound in a more lazy way.
This was SVN commit r26784.
2022-04-12 18:02:08 +00:00
b4253d48cb
Moves CShaderProgram to backend and handling via CDeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4548
This was SVN commit r26652.
2022-03-14 22:16:14 +00:00
647fccd410
Replaces native GL types by backend format in vertex attributes in CShaderProgram.
...
This was SVN commit r26594.
2022-03-07 02:21:05 +00:00
3a4bbd11fd
Moves all GL draw commands to CDeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4518
This was SVN commit r26525.
2022-03-03 07:09:59 +00:00
1ff3b45a1e
Adds more checks for vertex and index buffer creations.
...
This was SVN commit r26502.
2022-02-27 20:21:07 +00:00
cff79b421a
Moves GL vertex and index buffer management to CDeviceCommandContext.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4493
This was SVN commit r26406.
2022-02-18 17:33:12 +00:00
4de89c3db1
Moves texture management to CDeviceCommandContext, adds quality options.
...
Comments By: nwtour, Stan
Tested By: nwtour, Stan
Differential Revision: https://code.wildfiregames.com/D4488
This was SVN commit r26365.
2022-02-13 19:30:28 +00:00
0cda752ec3
Uses CVertexBufferManager handle instead of raw VBChunk pointer management.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4430
This was SVN commit r26196.
2022-01-10 16:51:43 +00:00
92cf0c784c
Removes Handle from ShaderProgram to use more high-level objects.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4403
This was SVN commit r26138.
2021-12-29 07:07:08 +00:00
0c23e595fa
Include CStrInternStatic where necessary only.
...
This makes incremental recompilation faster when changing static
interned strings.
Differential Revision: https://code.wildfiregames.com/D3975
This was SVN commit r25457.
2021-05-18 11:09:54 +00:00
5ff4fa19c0
Removes unused and outdated includes, replaces some includes by forward declarations.
...
This was SVN commit r25444.
2021-05-15 17:27:01 +00:00
c56c856ed5
Moves Frustum from graphics to maths to more related geometric primitives like bounding ones.
...
This was SVN commit r25159.
2021-03-29 17:28:13 +00:00
9ae084519f
Fix most of the new vs2017 induced warnings.
...
Refs: https://code.wildfiregames.com/D3096
https://code.wildfiregames.com/D3103 #5862
Reviewed by: @wraitii
Comments by: @Angen
Differential Revision: https://code.wildfiregames.com/D3126
This was SVN commit r24268.
2020-11-26 22:28:50 +00:00
8c77c4b2b6
Refactors coordinates of SOverlayTexturedLine, replaces array of floats by array of CVector2D.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D3072
This was SVN commit r24144.
2020-11-08 14:47:25 +00:00
df329d1b81
Optimise out of frustum rendering of texture overlays.
...
Reviewed By: wraitii
Commented By: Stan
Differential Revision: https://code.wildfiregames.com/D1847
This was SVN commit r23229.
2019-12-10 23:13:37 +00:00
f1de8eb4ba
Removes usages of duplication of Clamp function in gui, ps and renderer. Refs D1763.
...
This was SVN commit r22926.
2019-09-18 14:44:31 +00:00
5c01b50ca4
Add FALLTHROUGH, which in the best case is just [[fallthrough]].
...
Note that this does not fix the warnings in AtlasObjectXML, someone
interested
in fixing those should check whether using ICU would be a nicer
solution.
Reviewed By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D740
This was SVN commit r20095.
2017-09-01 20:04:53 +00:00
be2b2faa77
Properly apply texture to the last quad of an overlay textured line. Reviewed by vladislavbelov.
...
Fix #4617 .
Differential Revision: https://code.wildfiregames.com/D663
This was SVN commit r19833.
2017-06-26 13:04:21 +00:00
9f50bf3f1e
Only dereference cmpWaterManager if it is non-null.
...
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D259
This was SVN commit r19340.
2017-03-24 21:32:49 +00:00
6149dd3841
Actually remove trailing whitespace for non-header files as well.
...
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
b1c081e36d
Set svn:eol-style=native, fix some inconsistent line endings
...
This was SVN commit r14299.
2013-12-06 00:42:50 +00:00
994ebd9836
Add a list of statically-constructed CStrIntern strings
...
Switch all the constant strings in graphics code to use the new
variables.
This avoids the cost of instantiating CStrInterns at runtime every
frame.
This was SVN commit r13906.
2013-09-29 13:19:52 +00:00
821cfe8862
Removed reverse dependency on SOverlayTexturedLine from CTexturedLineRData; fixes dangling pointer dereference. Fixes #1495 .
...
This was SVN commit r11979.
2012-06-17 03:40:35 +00:00
da719b883c
Split out code specific to textured overlay lines construction from OverlayRenderer into its own files.
...
This was SVN commit r11933.
2012-06-02 21:19:20 +00:00