Alibek Omarov
1fdf6180e6
engine: platform: sdl: merge required SDL2 platform changes for new Android port from @Velaron's tree
1 year ago
Alibek Omarov
a23e17c6d7
engine: platform: sdl: set QtWayland hints
1 year ago
Alibek Omarov
5d7d5319fd
engine: move ref cvars to static allocation
1 year ago
Alibek Omarov
d4470402ee
engine: move vid cvars to static allocation
1 year ago
Alibek Omarov
05560c7607
engine: always read and set vid_fullscreen value directly with it's object
1 year ago
Velaron
e27ac6b092
platform: win32: properly change icon
2 years ago
Alibek Omarov
ec2951cf45
engine: add size argument to COM_Default/ReplaceExtension calls
2 years ago
Alibek Omarov
a8de11643c
engine: platform: sdl: make GL_CreateContext and GL_DeleteContext functions static
2 years ago
Alibek Omarov
098c4c009b
engine: platform: sdl: fix incorrect HICON cast in SetClassLongPtr call
2 years ago
Andrey Akhmichin
573781b45d
engine: platform: sdl: replace va function calls.
2 years ago
fgsfds
6304b51f32
psvita: fno-short-enums, make ref_gl function somewhat
2 years ago
Alibek Omarov
21b9f07323
engine: platform: sdl: remove legacy XASH_NANOGL macro from vid code, it's only relevant for ref_gl
2 years ago
Alibek Omarov
b946ed4625
engine: platform: sdl: don't flood about closest display mode in case of no changes
2 years ago
Alibek Omarov
dd1d86c289
engine: platform: sdl: check usable display rect before creating window
2 years ago
Alibek Omarov
7157c3b441
engine: platform: sdl: don't enable high dpi code for Apple
...
It seems enables HighDPI awareness but doesn't create HighDPI OpenGL context
It needs some plist magic to be enabled back again
2 years ago
Alibek Omarov
79dc090aae
engine: platform: sdl: use SetClassLongPtr function to be compatible with 64-bit Windows API
2 years ago
Alibek Omarov
5285f51a26
engine: platform: sdl: fix loading ICO when it's in RoDir
2 years ago
Alibek Omarov
3e23634369
engine: platform: sdl: enable ICO support on Win64
2 years ago
Alibek Omarov
4e295622be
Revert "engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons"
...
This reverts commit 2182ba9630
.
2 years ago
Alibek Omarov
2182ba9630
engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons
2 years ago
Alibek Omarov
d0a39ef492
engine: client: rework mouse input again, do what GoldSrc does, minimize SDL mouse calls
3 years ago
SNMetamorph
c366e25a10
ref_gl: cvar gl_wgl_msaa_samples renamed to gl_msaa_samples
3 years ago
a1batross
3b192ca490
engine: sdl: don't free NULL vidmodes
4 years ago
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
4 years ago
mittorn
84a3f6883d
sdl: add EGL hint
5 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
Alibek Omarov
1f308a43c8
engine: fix build after lowmemory rebase
5 years ago
Alibek Omarov
9d826016b0
engine: finish sdl1.2 port
5 years ago
Alibek Omarov
4d5e7c0557
platform: minify changes, use SDL_VERSION_ATLEAST macro(left unfinished)
5 years ago
Alibek Omarov
8dafbaeda2
engine: platform: sdl: dirty wip sdl1.2 port
5 years ago
mittorn
7f6395fa7d
ref: display transformation API
5 years ago
Alibek Omarov
dc207a449c
engine: fix -Werror=strict-prototypes
5 years ago
Alibek Omarov
7be094b563
sdl: vid: prevent infinite recursion if SDL failed create window with selected GL attributes
5 years ago
Alibek Omarov
4beba75159
engine: fix various compiler warnings
5 years ago
Alibek Omarov
f2d588574c
sdl: vid: fix engine window being restored immediately after being maximized
5 years ago
Alibek Omarov
413882a8d5
sdl: fix typos
5 years ago
Alibek Omarov
c92f8f71a7
sdl: vid: allow to build with earlier versions of SDL2
5 years ago
Alibek Omarov
eb22ff53c4
sdl: vid: fix washed out screen on Windows and probably other platforms( #50 )
5 years ago
Alibek Omarov
90ff7f24b3
sdl: vid: fix building with older SDL2
6 years ago
Alibek Omarov
2e953bd1a9
ref_api: remove GL_OnContextCreated, remove return value of GL_RenderFrame
6 years ago
Alibek Omarov
57f9e7dda6
sdl: vid: fix forgotten return, slightly refactor SW_UnlockBuffer
6 years ago
Alibek Omarov
29a48cb34c
sdl: vid: fix disabling vsync when loading a level
6 years ago
Alibek Omarov
99478ba9bd
sdl: vid: fix unitialized variables, better warning report
6 years ago
Alibek Omarov
211d3c5213
sdl: vid: refactor context creation, fix crash on exit on REF_SOFTWARE
6 years ago
mittorn
d5b6ccb3e2
ref: REF_SOFTWARE support with SDL_Surface/SDL_Renderer
6 years ago
Alibek Omarov
a9cf3357c7
ref: move GLES driver hint to SetAttribute as we don't choose GLES renderer in compile-time anymore
6 years ago
Alibek Omarov
92b89936b3
ref: make API thinner by moving simple calls into EngineGetParm(RenderGetParm with ref extensions), fix some UBs
6 years ago
mittorn
57320c0c25
ref: get rid of vidState, add GL_SwapBuffers to engine exports
6 years ago
Alibek Omarov
e5000742f1
ref: context creating prototype, not working yet
6 years ago
Alibek Omarov
e193ac2c04
ref: more @mittorn's changes on RefAPI
6 years ago