Home | History | Annotate | Download | only in D3D8

Lines Matching refs:stage

38 		for(int stage = 0; stage < 8; stage++)
40 texture[stage] = 0;
131 for(int stage = 0; stage < 8; stage++)
135 if(textureStageStateCaptured[stage][state])
137 device->SetTextureStageState(stage, (D3DTEXTURESTAGESTATETYPE)state, textureStageState[stage][state]);
150 for(int stage = 0; stage < 8; stage++)
152 if(textureCaptured[stage])
154 device->SetTexture(stage, texture[stage]);
214 for(int stage = 0; stage < 8; stage++)
218 if(textureStageStateCaptured[stage][state])
220 device->GetTextureStageState(stage, (D3DTEXTURESTAGESTATETYPE)state, &textureStageState[stage][state]);
238 for(int stage = 0; stage < 8; stage++)
240 if(textureCaptured[stage])
242 if(texture[stage])
244 texture[stage]->Release();
247 device->GetTexture(stage, reinterpret_cast<IDirect3DBaseTexture8**>(&texture[stage]));
364 void Direct3DStateBlock8::setTexture(unsigned long stage, Direct3DBaseTexture8 *texture)
368 textureCaptured[stage] = true;
369 this->texture[stage] = texture;
372 void Direct3DStateBlock8::setTextureStageState(unsigned long stage, D3DTEXTURESTAGESTATETYPE type, unsigned long value)
374 textureStageStateCaptured[stage][type] = true;
375 textureStageState[stage][type] = value;
413 for(int stage = 0; stage < 8; stage++)
417 textureStageStateCaptured[stage][state] = false;
426 for(int stage = 0; stage < 8; stage++)
428 textureCaptured[stage] = false;
462 for(int stage = 0; stage < 8; stage++)
464 if(texture[stage])
466 texture[stage]->Release();
467 texture[stage] = 0;
478 void Direct3DStateBlock8::captureTextureStageState(unsigned long stage, D3DTEXTURESTAGESTATETYPE type)
480 device->GetTextureStageState(stage, type, &textureStageState[stage][type]);
481 textureStageStateCaptured[stage][type] = true;
532 for(int stage = 0; stage < 8; stage++)
534 captureTextureStageState(stage, D3DTSS_COLOROP);
535 captureTextureStageState(stage, D3DTSS_COLORARG1);
536 captureTextureStageState(stage, D3DTSS_COLORARG2);
537 captureTextureStageState(stage, D3DTSS_ALPHAOP);
538 captureTextureStageState(stage, D3DTSS_ALPHAARG1);
539 captureTextureStageState(stage, D3DTSS_ALPHAARG2);
540 captureTextureStageState(stage, D3DTSS_BUMPENVMAT00);
541 captureTextureStageState(stage, D3DTSS_BUMPENVMAT01);
542 captureTextureStageState(stage, D3DTSS_BUMPENVMAT10);
543 captureTextureStageState(stage, D3DTSS_BUMPENVMAT11);
544 captureTextureStageState(stage, D3DTSS_TEXCOORDINDEX);
545 captureTextureStageState(stage, D3DTSS_BUMPENVLSCALE);
546 captureTextureStageState(stage, D3DTSS_BUMPENVLOFFSET);
547 captureTextureStageState(stage, D3DTSS_TEXTURETRANSFORMFLAGS);
548 captureTextureStageState(stage, D3DTSS_COLORARG0);
549 captureTextureStageState(stage, D3DTSS_ALPHAARG0);
550 captureTextureStageState(stage, D3DTSS_RESULTARG);
552 captureTextureStageState(stage, D3DTSS_ADDRESSU);
553 captureTextureStageState(stage, D3DTSS_ADDRESSV);
554 captureTextureStageState(stage, D3DTSS_ADDRESSW);
555 captureTextureStageState(stage, D3DTSS_BORDERCOLOR);
556 captureTextureStageState(stage, D3DTSS_MAGFILTER);
557 captureTextureStageState(stage, D3DTSS_MINFILTER);
558 captureTextureStageState(stage, D3DTSS_MIPFILTER);
559 captureTextureStageState(stage, D3DTSS_MIPMAPLODBIAS);
560 captureTextureStageState(stage, D3DTSS_MAXMIPLEVEL);
561 captureTextureStageState(stage, D3DTSS_MAXANISOTROPY);
615 for(int stage = 0; stage < 8; stage++)
617 captureTextureStageState(stage, D3DTSS_TEXCOORDINDEX);
618 captureTextureStageState(stage, D3DTSS_TEXTURETRANSFORMFLAGS);