Frans Bouma wrote:
> Ok, I see your point. 
> 
> It is indeed weird, I didn't notice that, my appologies.
> If you look at Volume.LockBox() for example you see this:
> 
> public GraphicsStream LockBox(Box box, LockFlags flags)
> {
>  return this.LockBoxInternal(ref box, flags, 0);
> }
> 
> Indeed weird why the box has to be passed by value and is 
> then passed on by ref. (LockBoxInternal accepts as 1st parameter
> _D3DBOX * )
> 
> One thing might be that manipulation of the passed in data is done on
> the *copy*, not on the original, which might confuse people who are
not
> used to pointer arithmetic. To pass by value, you assure yourself you
> have a copy, not the original. But that's just a wild guess.

That's the only reason I could think of too, but it doesn't make sense,
because these structures are never modified by the DirectX API (at least
that's my understanding from the documentation).

Regards,
Jeroen

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to