Horde3D

Next-Generation Graphics Engine
It is currently 27.04.2024, 05:37

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 01.09.2011, 14:38 
Offline

Joined: 15.09.2010, 18:31
Posts: 53
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?


Top
 Profile  
Reply with quote  
PostPosted: 08.09.2011, 11:47 
Offline

Joined: 15.09.2010, 18:31
Posts: 53
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).


Top
 Profile  
Reply with quote  
PostPosted: 08.09.2011, 14:53 
Offline

Joined: 24.03.2010, 10:17
Posts: 55
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group