Alibek Omarov
661e60720d
ref: gl: fix -Wmissing-prototypes
11 months ago
Alibek Omarov
8298053e6a
ref: gl: don't depend on lightgamma in recursive light point
12 months ago
Alibek Omarov
9304a0041d
ref: gl: support kRenderFxLightMultiplier
...
* add undocumented kRenderFxLightMultiplier to const.h
12 months ago
Alibek Omarov
64f92003fa
ref: gl: adapt studio lightning to new gamma
...
* more accurate SHADE_LAMBERT value (extracted from v_lambert1 global variable)
12 months ago
Alibek Omarov
9d3949a948
ref: gl: replace skin texture num bound by a proper check, fixes wrong skin on flags in Adrenaline Gamer
12 months ago
Alibek Omarov
dc1d65f621
ref: gl: only draw MOVETYPE_FOLLOW studio model if it's parent is visible
12 months ago
Alibek Omarov
82a2d272ad
ref: gl: use direct host.features instead of PARM_FEATURES
1 year ago
Alibek Omarov
8084687e50
ref: gl: remove GetPredictedOrigin call
1 year ago
Alibek Omarov
6c16de55c0
ref: gl: remove GetMoveVars() call
1 year ago
Alibek Omarov
4dfc3f34cb
ref: gl: remove usage of PARM_MAX_CLIENTS
1 year ago
Alibek Omarov
afb0540aa3
ref: gl: convert to usage of ref_host_t to get real engine time
1 year ago
Alibek Omarov
4d802d8901
ref: gl: convert to usage of ref_client_t to get client time
1 year ago
Alibek Omarov
26d229c8ca
engine, ref: RefAPI 5. Simplify remap calls
1 year ago
Alibek Omarov
9c66e86be1
engine, ref: RefAPI 5. Remove unused calls
1 year ago
Alibek Omarov
7e9f87de2d
engine, ref: eliminate calls to global arrays, instead store array pointers at renderer side
1 year ago
Alibek Omarov
ea55e78855
ref: _inline -> static
1 year ago
mittorn
c765261db6
ref_gl: fix late studio cvars registration, enable DrawRangeElements in GLES contexts
1 year ago
Alibek Omarov
de19d78571
ref: fix late registration of studio cvars (thanks, @mittorn )
1 year ago
Alibek Omarov
8eef212726
ref: gl: fix compile
1 year ago
Velaron
1589defda1
ref: gl: don't create cl_righthand cvar
1 year ago
Velaron
df921d8664
some cleaner code
1 year ago
Velaron
f3949474b9
ref: gl: fix cl_righthand behaviour
1 year ago
Alibek Omarov
3a57f26351
ref: gl: move ref_gl cvars to static allocation
2 years ago
Alibek Omarov
277bead9b7
ref: remove SetCullState function from StudioAPI. It does nothing on GoldSrc.
2 years ago
Alibek Omarov
8b96e7ca87
ref: add size argument to COM_FileBase calls
2 years ago
Alibek Omarov
f55ef63e26
ref: optimize R_LightLambert function
...
* Quick exit if no local lights
* Try to minimize Q_min() checks by apply it on temp variables
* Cap final light values only once, after all local lights are calculated
2 years ago
Alibek Omarov
79624fa400
ref: gl: cleanup unused functions
2 years ago
Alibek Omarov
55bf0e8a53
ref: gl: adapt to RefAPI 4 changes
2 years ago
fgsfds
aa4e2f0ae4
ref: gl: psvita: use Cvar_FullSet to disable r_studio_drawelements
2 years ago
fgsfds
82cfd3ecc3
ref: gl: psvita: revert arrayverts change, it doesn't matter that much
2 years ago
fgsfds
5a3e3b3977
ref: gl: add immediate mode shim for psvita
2 years ago
Alibek Omarov
f4069de7f2
engine: move SlerpBones, CalcBonePosition/Quaternion from engine to libpublic
2 years ago
Alibek Omarov
ced6e8869a
ref: fix chrome texture being misaligned
2 years ago
Alibek Omarov
74ce7e9b10
ref: don't apply rendercolor to studio models where it's not needed
2 years ago
Alibek Omarov
327eb330ed
ref: gl: minimize dependency on internal engine headers
2 years ago
Alibek Omarov
61c142e2db
ref: move renderers into ref subdirectory
2 years ago
Alibek Omarov
5e4fc64430
filesystem: introduce new module, based on engine filesystem.
...
The goal is to share filesystem code between engine and
utilities and provide C++ VFileSystem interface in the future
2 years ago
Alibek Omarov
5fb4edeb36
ref: simplify gldebug switchcase in output function, kinda fix const qualifiers
3 years ago
Alibek Omarov
ac213c22ed
ref: change some FCVAR_ARCHIVE to FCVAR_GLCONFIG to save in separate config
3 years ago
Alibek Omarov
a777e7c80d
engine, ref: add sprite and studio cvars to shared cvars list
3 years ago
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
3 years ago
Velaron
4f31d7504a
ref_api: fix remap info allocation ( fixes #200 )
4 years ago
Alibek Omarov
58edfbc485
engine: move cvars that expected to exist by client.dll from render dll to engine
...
Fixes #316
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
Alibek Omarov
4c6fd79f07
tgmath: remove including tgmath.h in everything that uses xash3d_mathlib, as it's included already
5 years ago
Andrey Akhmichin
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
5 years ago
mittorn
2e2a716710
ref_api: fix remap code
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
15924aebaa
xash3d-fwgs: check if HAVE_TGMATH_H is set to positive value rather it's just defined
5 years ago
Alibek Omarov
78baf568ae
engine: more double promotion fixes
5 years ago