d3dx9_36: Implement D3DXCreateBox

Dmitry Timoshkov dmitry at codeweavers.com
Sun Mar 27 23:34:15 CDT 2011


Joshua Beck <jxb091000 at utdallas.edu> wrote:

> >> Or even better:
> >> +    for(i = 0; i<   144; i+=4)
> >> +    {
> >> +        vertices[i  ] *= width;
> >> +        vertices[++i] *= height;
> >> +        vertices[++i] *= depth;
> >> +    }
> >>      
> > There shouild be i + 1 and i + 2 instead of two ++i otherwise
> > the loop index gets corrupted.
> >    
> You mean like this?
> 
> +    for(i = 0; i<   144; i+=6)
> +    {
> +        vertices[i    ] *= width;
> +        vertices[i + 1] *= height;
> +        vertices[i + 2] *= depth;
> +    }

Looks like I misread the original loop condition. Both your variants
are fine.

-- 
Dmitry.



More information about the wine-devel mailing list