|
From: | Cyril 'Hulud' Corvazier |
Subject: | Re: [Nel] UTexture |
Date: | Tue, 2 Mar 2004 17:38:22 +0100 |
Yes, your're right, there is no accessor for the texture size. Anyway, NeL
could tell you the size of the texture only after the texture has been
used.
Si you need to know a bitmap size from a file (tga or dds), use
NLMISC::CBitmap::loadSize().
To get the bitmap file name, you will have to get a NL3D::UTextureFile
interface from your UTexture object with a "dynamic_cast".
Otherwise, the way you can do this is :
- Expand the NeL 3d interface to give access to the CTexture::generate()
method that forces a texture to be generated.
Andi 'Debug' Allen
- Expand the NeL 3d interface to give a read access to the texture size. Be
sure to call CTexture::generate() before.
Hld.
-----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--- s-: a-- C++++ US++ P++ L+ E--- W+++ N o-- K++ w++++ O---- M-- V-- PS+++ PE Y+ PGP t+ 5++ X++ R-- tv+++ b++++ DI++ D++ G++ e* h++ r+++ y++++ ------END GEEK CODE BLOCK------
|
[Prev in Thread] | Current Thread | [Next in Thread] |