Search
lxdream.org :: lxdream/src/xlat/xltcache.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/xltcache.h
changeset 1214:49152b3d8b75
prev1195:072131b61d2a
next1263:b3de98d19faf
author nkeynes
date Wed Feb 15 17:54:51 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Use GL_TEXTURE_2D instead of GL_TEXTURE_RECTANGLE_ARB for frame buffers, for
systems that don't provide the latter (and there's not really much
difference anyway).
Add macro wrangling for GL_DEPTH24_STENCIL8 format
file annotate diff log raw
1.1 --- a/src/xlat/xltcache.h Mon Dec 12 21:15:44 2011 +1000
1.2 +++ b/src/xlat/xltcache.h Wed Feb 15 17:54:51 2012 +1000
1.3 @@ -49,6 +49,10 @@
1.4 unsigned char code[0];
1.5 } __attribute__((packed));
1.6
1.7 +typedef struct xlat_target_fns {
1.8 + void (*unlink_block)(void *use_list);
1.9 +} *xlat_target_fns_t;
1.10 +
1.11 typedef struct xlat_cache_block *xlat_cache_block_t;
1.12
1.13 #define XLAT_BLOCK_FOR_CODE(code) (((xlat_cache_block_t)code)-1)
1.14 @@ -63,6 +67,11 @@
1.15 void xlat_cache_init(void);
1.16
1.17 /**
1.18 + * Setup target support.
1.19 + */
1.20 +void xlat_set_target_fns( xlat_target_fns_t target_fns );
1.21 +
1.22 +/**
1.23 * Returns the next block in the new cache list that can be written to by the
1.24 * translator.
1.25 */
.