Horde3D http://horde3d.org/forums/ |
|
mapping texture.image resource http://horde3d.org/forums/viewtopic.php?f=2&t=1573 |
Page 1 of 1 |
Author: | shd [ 01.09.2011, 14:38 ] |
Post subject: | mapping texture.image resource |
Hey, this time i'll need horde3d related support. How to recognize size of buffer (texture resource) returned by h3dMapResStream? Am i forced to remember type of texture i loaded, and then compute it on my own? |
Author: | shd [ 08.09.2011, 11:47 ] |
Post subject: | Re: mapping texture.image resource |
I don't really want to be too annoying, but could someone help? How big buffer, mapped texture buffer is? AFAIK it's not plain RGB/RGBA so i can't simply compute with by width*height*sizeof(rgba). |
Author: | AlexL [ 08.09.2011, 14:53 ] |
Post subject: | Re: mapping texture.image resource |
As you have the texture resource, you get the texture's width, height, depth and texformat. Then you have to replicate RenderDevice::calcTextureSize in your own code (as there is no way of getting the size directly from the API) and feed it with the texture's dimensions and type. Yes, some kind of API for that would be nice. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |