MCPcopy Create free account
hub / github.com/ZDoom/Raze / PrecacheTex

Function PrecacheTex

source/core/precache.cpp:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50#include "buildtiles.h"
51
52static void PrecacheTex(FGameTexture* tex, int palid)
53{
54 if (!tex || !tex->isValid()) return;
55 int scaleflags = 0;
56 if (shouldUpscale(tex, UF_Texture)) scaleflags |= CTF_Upscale;
57
58 auto mat = FMaterial::ValidateTexture(tex, scaleflags);
59 screen->PrecacheMaterial(mat, palid);
60}
61
62static void doprecache(FTextureID texid, int palette)
63{

Callers 2

doprecacheFunction · 0.85
precacheMarkedTilesFunction · 0.85

Calls 3

shouldUpscaleFunction · 0.85
isValidMethod · 0.45
PrecacheMaterialMethod · 0.45

Tested by

no test coverage detected