Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 1135:68daed8f38af
prev1076:18c164e8aec4
next1137:4799d64b3478
author nkeynes
date Sun Oct 24 11:50:17 2010 +1000 (10 years ago)
permissions -rw-r--r--
last change Set gl texture parameters at texture load time rather than render time.
(This does mean that if the texture is used with variant parameters it will be
loaded multiple times). 3-4% faster this way
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Mon Aug 03 08:41:11 2009 +1000
1.2 +++ b/src/pvr2/pvr2.h Sun Oct 24 11:50:17 2010 +1000
1.3 @@ -344,7 +344,7 @@
1.4 * Set the global texture parameters for the scene (possibly invalidating
1.5 * some existing textures)
1.6 */
1.7 -void texcache_set_config( uint32_t palette_mode, uint32_t stride_width );
1.8 +void texcache_begin_scene( uint32_t palette_mode, uint32_t stride_width );
1.9
1.10 /**
1.11 * Return a texture ID for the texture specified at the supplied address
1.12 @@ -356,7 +356,7 @@
1.13 * If the texture has already been bound, return the ID to which it was
1.14 * bound. Otherwise obtain an unused texture ID and set it up appropriately.
1.15 */
1.16 -GLuint texcache_get_texture( uint32_t texture_word, int width, int height );
1.17 +GLuint texcache_get_texture( uint32_t poly2_word, uint32_t texture_word );
1.18
1.19 render_buffer_t texcache_get_render_buffer( uint32_t texture_addr, int mode, int width, int height );
1.20
.