Hi Alex,

The images manages by the Texture objects aren't managed with variable
size arrays, the size is fixed for each type of Texture object, for
instance Texture1D, 2D, 3D and TextureRectangle all have support for
just one image, and this is hardwired into the implementations, which
TextureCubeMap has 6 images hardwired into it.  Texture2DArray is the
exception in that is can a variable number of images.

On Thu, Aug 28, 2008 at 11:51 PM, Pecoraro, Alexander N
<[EMAIL PROTECTED]> wrote:
> It seems a little misleading or a bug that Texture2D::getNumImages()
> always returns 1 even if the _image member variable is NULL. Shouldn't
> it return 0 if the _image member is NULL?

I'm not sure if this would be appriate given the role that
getNumImages has traditional used from in the Texture classes -
definition of how many images it handles.   The NULL pointer is
managed internally by the Texture objects and the file IO, so a NULL
pointer is never dereferenced.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to