void R_SetSky (char *name, float rotate, vec3_t axis) { int i; strncpy (skyname, name, sizeof(skyname)); for (i=0 ; i<6 ; i++) r_skytexinfo[i].texture = NULL; R_LoadSkyBox(); }
int R_SetSkyBox(const char *sky) { if (strcmp(sky, skyname) == 0) // no change return true; if (strlen(sky) > 1000) { Con_Printf("sky name too long (%i, max is 1000)\n", (int)strlen(sky)); return false; } strlcpy(skyname, sky, sizeof(skyname)); return R_LoadSkyBox(); }
void R_Skyboxname_Callback(struct cvar_s *var, char *oldvalue) { strncpy (skyname, var->string, sizeof(skyname)); R_LoadSkyBox(); }
static void r_sky_start(void) { skytexturepool = R_AllocTexturePool(); R_LoadSkyBox(); }
void R_ResetSkyBox(void) { R_UnloadSkyBox(); skyname[0] = 0; R_LoadSkyBox(); }