Author: gdgd Date: Sep 18, 2008 08:35
"Anton Roth" wrote in message
news:u6fjHARGJHA.3720@TK2MSFTNGP02.phx.gbl...
> "gd" gawab.com> schrieb im Newsbeitrag
> news:DD0779E6-3F5F-4F07-A873-D25273A85CBD@microsoft.com...
>> i'm new in developing dx10.
>>
>> in tutorial7 are about using texture to draw on the cube.
>> i tried to make my own code like the tutorial does. i create 2 cubes that
>> the first cube using texture, the second is not.
>> but the texture shown on the second one. whats the problem perhaps?
>>
>> sorry my bad in english but thanks in advance :) .
>
> How did you render that second cube? Cause if you use the same code
>
> g_pTechnique->GetDesc( &techDesc );
> for( UINT p = 0; p < techDesc.Passes; ++p )
> {
> g_pTechnique->GetPassByIndex( p )->Apply( 0 );
> g_pd3dDevice->DrawIndexed( 36, 0, 0 ); ...
|