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
Alibek Omarov
99bd7c81da
ref: render code moved out of engine, doesn't compile, first API prototype
6 years ago
mittorn
23d0f33ad1
Refactor extension detection, add VBO detection
6 years ago
Alibek Omarov
103a2fccaa
sdl: vid: rework safegl option
6 years ago
mittorn
aed53c4fda
Do not spam in console if vsync not availiable
6 years ago
a1batross
0964fb11e4
sdl: partially fix maximizing window on Windows
6 years ago
Alibek Omarov
25d8a94c1c
engine: fix implicit declaration, remove dead MsgDev now, fix const modifier loss in host.c
6 years ago
Night Owl
d4e5e609af
Do not break video subsystem initialization.
6 years ago
Alibek Omarov
7390d11505
platform_sdl: adapt SDL backend code to new platform backends system
6 years ago
Alibek Omarov
216b4f4147
vid_sdl: fix incorrect video modes list length
6 years ago
Alibek Omarov
844b3a39a7
vid_sdl: fix GL_UpdateContext, fix window created outside screen if positions were negative
6 years ago
lewa_j
43b746d2f8
Fix MinGW build
7 years ago
Alibek Omarov
becd0eba03
Possibility to use dedicated version with SDL(it's used only by internal timer)
7 years ago
Alibek Omarov
3f2a8f7704
Remove vid_mode. VID_GetModeString now returns only supported modes from SDL2
7 years ago
Alibek Omarov
fc7ed1ab75
Add SDL video backend
7 years ago