Text archives Help
- From: Li-Ta Lo <ollie@lanl.gov>
- To: James Bigler <bigler@sci.utah.edu>
- Cc: manta@sci.utah.edu
- Subject: Re: [Manta] Wavefront .obj reader?
- Date: Fri, 08 Feb 2008 12:14:31 -0700
- Organization: Los Alamos National Lab
On Fri, 2008-02-08 at 12:09 -0700, James Bigler wrote:
>
>
Flat() can take both a Texture* and a Color (which will allocate a new
>
Texture). There's no way for the class to know in the destructor if the
>
texture was provided or allocated.
>
As a general rule any pointer passed in doesn't belong to the class. I
>
guess we could add flags everywhere that say if it was allocated or not,
>
but this hasn't been a priority.
>
It could change in the future, though, as we start to pay more attention to
>
this.
>
Is there any reason not using a copy constructor for Texture and free
it in destructor?
Ollie
Archive powered by MHonArc 2.6.16.