Robert Müller
7474ca201f
Remove dead code
2022-05-31 19:32:07 +02:00
Robert Müller
91d2ba1865
Organize game-client includes
2022-05-29 21:24:43 +02:00
Chairn
21e64cbdcb
Added external linkage instead of static const
2022-04-03 01:12:27 +02:00
Dennis Felsing
843acf6a5a
Use std::size instead of sizeof(a) / sizeof(a[0])
2022-03-30 18:55:04 +02:00
Jupeyy
14ac5cf297
lazy load editor textures
...
improve entities texture flags
2022-03-20 18:03:33 +01:00
Jupeyy
e54da1b396
Cleanup backend a bit for vulkan
2022-03-20 18:03:25 +01:00
oy
9e17281573
invalidate texture when unloading a texture.
...
Closes https://github.com/teeworlds/teeworlds/issues/1450
(cherry picked from commit 23a1b80f60
)
2021-09-13 13:23:00 +02:00
ChillerDragon
3eb3dcd48b
Make use of IO_MAX_PATH_LENGTH
...
Inspired by
0a7d0fee7c
2021-09-13 12:14:50 +02:00
Magnus Auvinen
f8153a4f2a
removed the operator int() from IGraphics::CTextureHandle and ISound::CSampleHandle in order to catch more bugs
...
(cherry picked from commit 563f1d0c52
)
2021-08-14 21:54:18 +02:00
Jupeyy
8451775821
Make components member of CGameClient
2021-07-12 12:07:31 +02:00
fokkonaut
d4c4031f20
Add F-DDrace entities
2020-12-22 12:23:21 +01:00
Jupeyy
c0dbd4a6f5
Fix leak, initialize UI Element Rect
2020-11-25 13:11:34 +01:00
Jupeyy
90db24c356
clamp font size to atleast 2 ( fixes #3145 )
2020-10-19 14:18:23 +02:00
def
a4f13ed4a8
Fix clang-analyzer-optin.portability.UnixAPI
...
and mark some false positives
/media/ddnet/src/engine/client/backend_sdl.cpp:329:30: warning: Call to 'malloc' has an allocation size of 0 bytes [clang-analyzer-optin.portability.UnixAPI]
2020-10-14 15:45:43 +02:00
Jupeyy
0e71a47708
Add customization
2020-09-28 23:21:32 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
Jupeyy
0ddc7fddb4
Don't rely on snapshot for ddnet gametype
2020-09-22 17:42:19 +02:00
bors[bot]
9e23623fa1
Merge #2874
...
2874: Add unmasked entities for all mods r=def- a=Jupeyy
Fixes switch tile for unmasked ddnet
And ddnet mods send that they are a race and ddrace mod appearently?
Not very intuitive that ddnet is a superset of them, bcs tiles changed.
Waiting for a review from @fokkonaut
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2020-09-21 20:46:51 +00:00
Jupeyy
a1eb5dc114
Max images(for editor, clamp for client and warning for mapconvert) ( fixes #2148 )
2020-09-19 21:22:21 +02:00
Jupeyy
5208a588b8
Add unmasked entities for all mods
2020-09-19 14:44:24 +02:00
Jupeyy
8923116324
Fix entity text
2020-09-14 16:42:21 +02:00
heinrich5991
aa46ca6bf9
Fix some style issues via scripts/fix_style.py, size_t
2020-09-11 00:47:38 +02:00
Jupeyy
b83d8735fe
Create entity textures seperately
2020-09-11 00:34:42 +02:00
Jupeyy
cf80537eb8
Fix entities text size not recreating new texture ( fixes #2438 )
2020-09-01 09:13:47 +02:00
Jupeyy
b1e98b598b
Show warnings with non divisible by 16 textures(3D/2D array textures)
2020-08-29 17:04:30 +02:00
Jupeyy
410c4b3250
Entity text should use space more effectivly
2020-08-26 15:56:23 +02:00
Jupeyy
14d383ef15
Fix background map loading
2020-08-26 15:25:44 +02:00
Jupeyy
3117a936a9
Do not create 2D textures, if not required
2020-08-23 08:53:26 +02:00
Jupeyy
a07e9ac2cf
Add OpenGL 1.x, 2.x, 3.x support ( fixes #2619 ) ( fixes #2607 )
2020-08-22 10:22:51 +02:00
Jupeyy
7450e354de
Add OpenGL 4.x support & cleanup
2020-08-19 08:42:09 +02:00
def
d6ba9440ca
Get rid of the annoying font size warnings
...
Since we're not doing anything about them anyway, and I get them
spamming me on every client start.
2020-06-26 23:42:04 +02:00
MikiGamer
d5c5235c18
Changes
2020-05-19 17:13:34 +02:00
MikiGamer
95c419d684
BlockWorlds Entities
2020-05-19 16:49:28 +02:00
Magnus Auvinen
6a6a5f00c9
more typesafty in the graphics. introduced the IGraphics::CTextureHandle
...
Edited by @ChillerDragon to fit in ddnet
(cherry picked from commit cb95e8dfe8
)
2019-11-22 18:08:37 +01:00
Andrii Vynychenko
1671e6fbfc
numbers dynamically centered for OpenGL 3.3
2019-08-17 03:42:54 +03:00
Andrii Vynychenko
0fa23a2c47
Numbers centered for OpenGL 3.3
2019-08-15 23:57:23 +03:00
heinrich5991
f31e081bd4
Remove all checking for the gametype in the game
...
OK, maybe not actually remove because it is kept for fallback when the
new method isn't available.
The whole gametype parsing business had the same downsides as user agent
parsing on the web, hence I removed it while keeping behavior the same.
This allows servers to explicitly opt in or out of certain bug
workarounds and other client behavior. This increases the complexity of
different configurations that are available in the client (which is a
bad thing).
2019-06-14 00:28:59 +02:00
Andrii Vynychenko
0353eb94ef
fix zero fonsize
2019-05-11 18:59:47 +03:00
Andrew
0fffd7705f
Cl_text_entities_size ( #1632 )
...
* new command added
* fix code duplication after merge
* merge #1632 suggestions
* align the texture to the center vertically
* refactor
* fix RenderSwitchOverlay
* Update src/engine/client/text.cpp
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
* Apply suggestions from code review
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
2019-05-06 14:19:10 +02:00
Dennis Felsing
cde07b420b
Implement changes suggested by -Wuseless-cast
...
But don't enable it yet because I'm not sure what the best way is.
2019-04-11 19:54:43 +02:00
yangfl
81a39c229b
Fix typo
2018-07-10 17:29:02 +08:00
heinrich5991
f8277267a0
Remove mem_alloc
and mem_free
, use standard C functions instead
...
Replace `mem_free` by `free`, and `mem_alloc` by `malloc` or `calloc`
(the latter one being used to allocate a zeroed array of elements,
sometimes, this makes a call to `mem_zero` superfluous).
This results in having to remove `mem_stats` which previously recorded
the number of allocations and their size that the Teeworlds code did
directly.
Remove OOM handling in `src/game/client/components/binds.cpp`.
Remove needless copying in the CSV code in
`src/game/client/components/statboard.cpp`.
2018-04-09 11:56:39 +02:00
Jupeyy
62c3074c88
add new text renderer engine to support text buffering, cursors, text
...
marking and less character texture updates
2018-03-13 21:49:07 +01:00
Jupeyy
7aa547946b
more warning fixes
2017-09-27 15:01:38 +02:00
Jupeyy
9fd1290734
auto adjust font size for entity overlay
2017-09-27 12:19:39 +02:00
Jupeyy
31844d3353
set max width for custom text texture upload and fixing alignments for
...
texture updates
2017-09-15 03:01:26 +02:00
Jupeyy
5c7c09d380
fixing most wrong code pattern
2017-09-13 20:33:58 +02:00
Jupeyy
9d2a625363
create overlay textures for entity overlays, instead of rendering glyphs
2017-09-12 20:15:37 +02:00
necropotame
2c24fbce25
Fixed #636
2017-03-02 09:27:03 +01:00
def
41f34aa187
Add vanilla check for entities_clear
2016-05-05 20:21:34 +02:00