cache.h 385 B

1234567891011121314
  1. #pragma once
  2. struct Stack;
  3. void cacheInit(struct Stack* persistent);
  4. struct Material;
  5. struct Texture;
  6. const struct Material *cacheGetMaterial(const char *name);
  7. void cachePutMaterial(const char *name, const struct Material *mat /* copied */);
  8. const struct Texture *cacheGetTexture(const char *name);
  9. void cachePutTexture(const char *name, const struct Texture *tex /* copied */);