mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-05 00:11:05 +01:00
3cbc11a8f0
- Do not load skybox at all if there are no SURF_DRAWSKY, #706, #579 - Do not reload the same skybox, #706 Also refactor skybox loading a bit. Prepare for KTX2 skyboxes.
14 lines
316 B
C
14 lines
316 B
C
#pragma once
|
|
|
|
typedef struct {
|
|
const char *s;
|
|
int len;
|
|
} const_string_view_t;
|
|
|
|
const_string_view_t svFromNullTerminated( const char *s );
|
|
|
|
int svCmp(const_string_view_t sv, const char* s);
|
|
void svStrncpy(const_string_view_t sv, char *dest, int size);
|
|
|
|
const_string_view_t svStripExtension(const_string_view_t sv);
|