Commit Graph
156 Commits
Author SHA1 Message Date
Alibek Omarov 4f89288ccf common: cleanup port.h 2021-12-23 19:17:11 +03:00
Alibek Omarov f0feb1dfbf ref: remove predictable random tiling textures 2021-12-23 18:35:01 +03:00
Alibek Omarov ac213c22ed ref: change some FCVAR_ARCHIVE to FCVAR_GLCONFIG to save in separate config 2021-12-08 17:58:16 +03:00
Alibek Omarov e0efe0aa23 engine: remove emboss filter. There seems no real use for it. 2021-12-07 09:09:45 +03:00
Alibek Omarov a777e7c80d engine, ref: add sprite and studio cvars to shared cvars list 2021-12-06 05:17:25 +03:00
Alibek Omarov d7db48ce4b engine, ref: create shared cvars list, register them at engine side, make a generic macro to declare, define and get all pointers at ref side 2021-12-06 04:57:32 +03:00
Alibek Omarov 293482fbd5 engine: FCVAR_GLCONFIG are not readonly anymore. To make truly readonly cvar for renderer, one must apply FCVAR_READ_ONLY flag 2021-12-06 03:56:18 +03:00
Alibek Omarov ecddae8ee6 ref_gl, ref_soft: increase MAX_TEXTURES limit by 8192 2021-11-29 16:22:52 +03:00
Alibek Omarov 76ea3c39a0 ref_gl: disable multisample texture for gl4es too 2021-11-27 05:13:31 +03:00
Alibek Omarov e67bd4811a ref_gl: fix gles1 and gles2 build 2021-11-25 19:02:09 +03:00
Alibek Omarov 7a215766c6 ref_gl: add missing define for glTexImage2DMultisample 2021-11-25 18:47:23 +03:00
SNMetamorphanda1batross 6c9321e50c ref_gl: added multisample textures support 2021-11-23 05:17:19 +03:00
SNMetamorphanda1batross c366e25a10 ref_gl: cvar gl_wgl_msaa_samples renamed to gl_msaa_samples 2021-11-23 05:17:19 +03:00
Alibek Omarov a5a66f6c3e ref_gl: update gl4es 2021-11-10 01:08:12 +03:00
Alibek Omarov d1e6063650 ref_gl: add close_gl4es, fix #258 2021-10-31 20:59:20 +06:00
Alibek Omarov 42db1faa51 ref: update ref_gl and ref_soft interface according to previous commit 2021-10-30 21:49:52 +06:00
Alibek Omarov 8ce448cc77 ref_gl: fix ParseFile calls 2021-10-08 17:31:32 +03:00
Alibek Omarov 9e5d5e0ea3 public: moved COM_ParseFileSafe to libpublic, added optional argument for length and overflow checking 2021-10-08 17:31:32 +03:00
Alibek Omarov 7bcfce5a7a ref_gl: use GCC provided offsetof implementation 2021-10-03 04:26:40 +03:00
SNMetamorphandAlibek Omarov #SupportRMS 2db6ad2c8a ref_gl: fixed GL_CheckForErrors doesn't print error message 2021-08-01 22:28:24 +03:00
VladimirandGitHub 9ffc02b6e9 ref_gl: gl_triapi: fixed culling enum in TriCullFace (#522) 2021-07-09 14:55:31 +03:00
Alibek Omarov 86be161677 ref_gl: add missing HACKS_RELATED_HLMODS define, lost after renderer split 2021-06-07 02:40:40 +03:00
Alibek Omarov 9313f7e80e engine: replace pool pointer by pool handle 2021-06-07 02:33:15 +03:00
Alibek Omarov 947a615707 ref_gl: gl4es: update 2021-06-03 21:44:55 +03:00
VelaronandAlibek Omarov #SupportRMS 4f31d7504a ref_api: fix remap info allocation (fixes #200) 2021-05-02 20:02:04 +03:00
Alibek Omarov 45334064b6 ref_gl: remove detail textures list generation leftovers 2021-03-01 21:53:43 +03:00
Alibek Omarov 58edfbc485 engine: move cvars that expected to exist by client.dll from render dll to engine
Fixes #316
2021-03-01 20:03:32 +03:00
Gleb MazovetskiyandAlibek Omarov d9ed654f04 bump gl4es
Build fix: https://github.com/ptitSeb/gl4es/commit/d79ac6a6d78e9e35d6246dda5122d07259692868

A few rendering fixes:

* https://github.com/ptitSeb/gl4es/commit/1f52c84f5aea4272ffc7d9b43ff6e61e63968df9
* https://github.com/ptitSeb/gl4es/commit/d8a2dc35ee49deea429aca316733f139e4bc597e
2021-02-03 16:16:51 +03:00
Alibek Omarov 652a946e09 ref_gl: update gl4es submodule 2021-01-29 03:33:36 +03:00
Andrey AkhmichinandAlibek Omarov c158771f59 ref_gl: gl_rsurf.c: don't use asserts to prevent engine from stopping when vbo is disabled. 2021-01-17 23:11:59 +03:00
AlexeyandAlibek Omarov 221a9bab54 Fix screenshots on gles1
> format must be either GL_RGBA or the value of GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES.
2021-01-09 18:36:46 +03:00
Gleb MazovetskiyandAlibek Omarov 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:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
Gleb MazovetskiyandAlibek Omarov 7f98998765 ref_gl/gl4es: bump
To get this bugfix: https://github.com/ptitSeb/gl4es/commit/221fa1e67a80e89fa431fa1a92aa6a25f6085aab
2020-12-29 03:25:57 +03:00
Gleb MazovetskiyandAlibek Omarov 69e15e9c7b gl4es: Fix so name and add to renderer collector
1. `libref_gles2_gl4es.so` -> `libref_gl4es.so` because this is what's
    passed to `R_LoadRenderer`.

2. Add `gl4es` to `DEFAULT_RENDERERS` so that `R_CollectRendererNames`
   finds it.
2020-12-29 00:44:42 +03:00
Gleb MazovetskiyandAlibek Omarov a92b310e0e Add gl4es submodule
Fixes #248
2020-12-28 16:11:04 +03:00
Gleb MazovetskiyandAlibek Omarov 36b32cad0f Fix 2 instances of void* pointer arithmetic
Partially reverts https://github.com/FWGS/xash3d-fwgs/commit/341e440c0749db1817061f955e6710a154ee22df

Let's see if this fixes the windows build on travis
2020-12-28 13:08:18 +03:00
Andrey AkhmichinandAlibek Omarov 5f54582692 ref_gl: simplified strings operations. 2020-11-29 13:46:48 +03:00
mittorn bb387cfe4b ref_gl/gl4es: fix android build 2020-11-18 12:19:52 +03:00
mittorn 341e440c07 public,sprites: fix -Wcast-align, disable -Werror for it 2020-11-18 12:15:54 +03:00
mittorn c80da05e94 ref_gl: make renderer fallback possible 2020-07-08 08:46:07 +07:00
Alibek Omarov 0db1a7743d engine: try to fix -Wmaybe-uninitialized that may be enabled with -Wuninitialized. Diagnostic is prone to false-positives, as compiler don't have enough data for this 2020-05-12 02:00:34 +03:00
FOTMarutandAlibek Omarov 53768c84d6 ref_gl: de-duplicate GL function definitions
- Used APIENTRY_LINKAGE in ref_gl to remove duplicate definitions of GL
  functions among translation units
- Fixes building ref_gl with -fno-common (GCC 10)
2020-05-02 18:57:37 +03:00
FOTMarutandAlibek Omarov 3c2840f7d1 ref_gl: Added APIENTRY_LINKAGE macro
- Added APIENTRY_LINKAGE macro to specify linkage of GL functions inside
  ref_gl/gl_export.h
  Currently defaults to empty (-> auto)
2020-05-02 18:57:37 +03:00
Alibek Omarov 544fc63b6b ref_gl: nanogl: update 2020-03-30 00:48:31 +03:00
Alibek Omarov 4c6fd79f07 tgmath: remove including tgmath.h in everything that uses xash3d_mathlib, as it's included already 2020-03-30 00:42:10 +03:00
Alibek Omarov 3c8ce640c4 Merge neko/mathlib into master 2020-03-04 05:38:30 +03:00
mittorn 4994a7ef6f ref_gl: fix build 2020-02-25 19:08:17 +07:00
mittorn 0c69f7649c ref_gl: add gl4es support 2020-02-25 12:59:04 +07:00
mittorn 8f8c8e6614 ref: add export that returns GL_GetProcAddress for renderapi 2020-02-25 12:59:04 +07:00
Andrey Akhmichin e3b547c8a9 public: rename mathlib to xash3d_mathlib. 2020-02-12 14:32:26 +05:00