You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ugui/text_rendering/cache.h

14 lines
292 B

2 years ago
#ifndef _CACHE_H
#define _CACHE_H
2 years ago
#define CACHE_SIZE 512
2 years ago
void cache_init(void);
void cache_destroy(void);
2 years ago
const struct font_glyph * cache_search(unsigned int code);
unsigned int cache_get(void);
2 years ago
const struct font_glyph * cache_insert(const struct font_glyph *g, unsigned int idx);
2 years ago
#endif