|
From: James W. W. <ja...@wr...> - 2004-06-03 17:38:09
|
"Joseph J. Strout" <jo...@st...> wrote: >That suggests that maybe the renderer code is the right place to >look -- perhaps IRTexture.c? Perhaps modify >ir_texture_convert_pixmap so that it generates an OpenGL mipmap set, >as ir_texture_convert_mipmap does? If we do it here, is all that >scaling and conversion going to happen on every frame, or just once >for each time the texture is edited? It won't be every frame, but I think there are various things besides editing the texture that can cause textures to be reloaded. For instance resizing the view or moving the window to a different monitor. > And if there are multiple >objects sharing the same texture, will it happen just once for the >whole lot? Yes, I think so. IRRenderer_Texture_Set only calls ir_texture_cache_add for textures that are not already known to OpenGL. -- James W. Walker, ScriptPerfection Enterprises, Inc. <http://www.write-brain.com/> |