• Home
  • Raw
  • Download

Lines Matching refs:renderer

64 		renderer = new sw::Renderer(context, sw::Direct3D, false);  in Direct3DDevice9()
187 delete renderer; in ~Direct3DDevice9()
188 renderer = 0; in ~Direct3DDevice9()
430 renderer->clear(rgba, sw::FORMAT_A32B32G32R32F, renderTarget[index], clearRect, 0xF); in Clear()
1052 renderer->draw(drawType, indexOffset, primitiveCount, instance == 0); in DrawIndexedPrimitive()
1058 renderer->draw(drawType, indexOffset, primitiveCount); in DrawIndexedPrimitive()
1147 renderer->draw(drawType, 0, primitiveCount); in DrawIndexedPrimitiveUP()
1181 renderer->draw(drawType, 0, primitiveCount); in DrawPrimitive()
1245 renderer->draw(drawType, 0, primitiveCount); in DrawPrimitiveUP()
2242 renderer->setModelMatrix(C * M); in MultiplyTransform()
2245 renderer->setViewMatrix(C * M); in MultiplyTransform()
2248 renderer->setProjectionMatrix(C * M); in MultiplyTransform()
2251 renderer->setTextureMatrix(0, C * M); in MultiplyTransform()
2254 renderer->setTextureMatrix(1, C * M); in MultiplyTransform()
2257 renderer->setTextureMatrix(2, C * M); in MultiplyTransform()
2260 renderer->setTextureMatrix(3, C * M); in MultiplyTransform()
2263 renderer->setTextureMatrix(4, C * M); in MultiplyTransform()
2266 renderer->setTextureMatrix(5, C * M); in MultiplyTransform()
2269 renderer->setTextureMatrix(6, C * M); in MultiplyTransform()
2272 renderer->setTextureMatrix(7, C * M); in MultiplyTransform()
2277 renderer->setModelMatrix(C * M, state - 256); in MultiplyTransform()
2579 renderer->setClipPlane(index, plane); in SetClipPlane()
2710 renderer->setDepthBuffer(depthStencil); in SetDepthStencilSurface()
2711 renderer->setStencilBuffer(depthStencil); in SetDepthStencilSurface()
2845renderer->setMaterialAmbient(sw::Color<float>(material->Ambient.r, material->Ambient.g, material->… in SetMaterial()
2846renderer->setMaterialDiffuse(sw::Color<float>(material->Diffuse.r, material->Diffuse.g, material->… in SetMaterial()
2847renderer->setMaterialEmission(sw::Color<float>(material->Emissive.r, material->Emissive.g, materia… in SetMaterial()
2848 renderer->setMaterialShininess(material->Power); in SetMaterial()
2849renderer->setMaterialSpecular(sw::Color<float>(material->Specular.r, material->Specular.g, materia… in SetMaterial()
3049 renderer->setDepthBufferEnable(true); in SetRenderState()
3052 renderer->setDepthBufferEnable(false); in SetRenderState()
3062 renderer->setFillMode(sw::FILL_VERTEX); in SetRenderState()
3065 renderer->setFillMode(sw::FILL_WIREFRAME); in SetRenderState()
3068 renderer->setFillMode(sw::FILL_SOLID); in SetRenderState()
3078 renderer->setShadingMode(sw::SHADING_FLAT); in SetRenderState()
3081 renderer->setShadingMode(sw::SHADING_GOURAUD); in SetRenderState()
3090 renderer->setDepthWriteEnable(value != FALSE); in SetRenderState()
3093 renderer->setAlphaTestEnable(value != FALSE); in SetRenderState()
3102 renderer->setSourceBlendFactor(sw::BLEND_ZERO); in SetRenderState()
3105 renderer->setSourceBlendFactor(sw::BLEND_ONE); in SetRenderState()
3108 renderer->setSourceBlendFactor(sw::BLEND_SOURCE); in SetRenderState()
3111 renderer->setSourceBlendFactor(sw::BLEND_INVSOURCE); in SetRenderState()
3114 renderer->setSourceBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
3117 renderer->setSourceBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3120 renderer->setSourceBlendFactor(sw::BLEND_DESTALPHA); in SetRenderState()
3123 renderer->setSourceBlendFactor(sw::BLEND_INVDESTALPHA); in SetRenderState()
3126 renderer->setSourceBlendFactor(sw::BLEND_DEST); in SetRenderState()
3129 renderer->setSourceBlendFactor(sw::BLEND_INVDEST); in SetRenderState()
3132 renderer->setSourceBlendFactor(sw::BLEND_SRCALPHASAT); in SetRenderState()
3135 renderer->setSourceBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
3136 renderer->setDestBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3139 renderer->setSourceBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3140 renderer->setDestBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
3143 renderer->setSourceBlendFactor(sw::BLEND_CONSTANT); in SetRenderState()
3146 renderer->setSourceBlendFactor(sw::BLEND_INVCONSTANT); in SetRenderState()
3156 renderer->setDestBlendFactor(sw::BLEND_ZERO); in SetRenderState()
3159 renderer->setDestBlendFactor(sw::BLEND_ONE); in SetRenderState()
3162 renderer->setDestBlendFactor(sw::BLEND_SOURCE); in SetRenderState()
3165 renderer->setDestBlendFactor(sw::BLEND_INVSOURCE); in SetRenderState()
3168 renderer->setDestBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
3171 renderer->setDestBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3174 renderer->setDestBlendFactor(sw::BLEND_DESTALPHA); in SetRenderState()
3177 renderer->setDestBlendFactor(sw::BLEND_INVDESTALPHA); in SetRenderState()
3180 renderer->setDestBlendFactor(sw::BLEND_DEST); in SetRenderState()
3183 renderer->setDestBlendFactor(sw::BLEND_INVDEST); in SetRenderState()
3186 renderer->setDestBlendFactor(sw::BLEND_SRCALPHASAT); in SetRenderState()
3189 renderer->setSourceBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
3190 renderer->setDestBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3193 renderer->setSourceBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3194 renderer->setDestBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
3197 renderer->setDestBlendFactor(sw::BLEND_CONSTANT); in SetRenderState()
3200 renderer->setDestBlendFactor(sw::BLEND_INVCONSTANT); in SetRenderState()
3210 renderer->setCullMode(sw::CULL_NONE); in SetRenderState()
3213 renderer->setCullMode(sw::CULL_COUNTERCLOCKWISE); in SetRenderState()
3216 renderer->setCullMode(sw::CULL_CLOCKWISE); in SetRenderState()
3226 renderer->setDepthCompare(sw::DEPTH_NEVER); in SetRenderState()
3229 renderer->setDepthCompare(sw::DEPTH_LESS); in SetRenderState()
3232 renderer->setDepthCompare(sw::DEPTH_EQUAL); in SetRenderState()
3235 renderer->setDepthCompare(sw::DEPTH_LESSEQUAL); in SetRenderState()
3238 renderer->setDepthCompare(sw::DEPTH_GREATER); in SetRenderState()
3241 renderer->setDepthCompare(sw::DEPTH_NOTEQUAL); in SetRenderState()
3244 renderer->setDepthCompare(sw::DEPTH_GREATEREQUAL); in SetRenderState()
3247 renderer->setDepthCompare(sw::DEPTH_ALWAYS); in SetRenderState()
3254 renderer->setAlphaReference(value & 0x000000FF); in SetRenderState()
3260 renderer->setAlphaCompare(sw::ALPHA_NEVER); in SetRenderState()
3263 renderer->setAlphaCompare(sw::ALPHA_LESS); in SetRenderState()
3266 renderer->setAlphaCompare(sw::ALPHA_EQUAL); in SetRenderState()
3269 renderer->setAlphaCompare(sw::ALPHA_LESSEQUAL); in SetRenderState()
3272 renderer->setAlphaCompare(sw::ALPHA_GREATER); in SetRenderState()
3275 renderer->setAlphaCompare(sw::ALPHA_NOTEQUAL); in SetRenderState()
3278 renderer->setAlphaCompare(sw::ALPHA_GREATEREQUAL); in SetRenderState()
3281 renderer->setAlphaCompare(sw::ALPHA_ALWAYS); in SetRenderState()
3291 renderer->setAlphaBlendEnable(value != FALSE); in SetRenderState()
3294 renderer->setFogEnable(value != FALSE); in SetRenderState()
3297 renderer->setFogColor(value); in SetRenderState()
3303 renderer->setPixelFogMode(sw::FOG_NONE); in SetRenderState()
3306 renderer->setPixelFogMode(sw::FOG_LINEAR); in SetRenderState()
3309 renderer->setPixelFogMode(sw::FOG_EXP); in SetRenderState()
3312 renderer->setPixelFogMode(sw::FOG_EXP2); in SetRenderState()
3319 renderer->setFogStart((float&)value); in SetRenderState()
3322 renderer->setFogEnd((float&)value); in SetRenderState()
3325 renderer->setFogDensity((float&)value); in SetRenderState()
3328 renderer->setRangeFogEnable(value != FALSE); in SetRenderState()
3331 renderer->setSpecularEnable(value != FALSE); in SetRenderState()
3334 renderer->setStencilEnable(value != FALSE); in SetRenderState()
3340 renderer->setStencilFailOperation(sw::OPERATION_KEEP); in SetRenderState()
3343 renderer->setStencilFailOperation(sw::OPERATION_ZERO); in SetRenderState()
3346 renderer->setStencilFailOperation(sw::OPERATION_REPLACE); in SetRenderState()
3349 renderer->setStencilFailOperation(sw::OPERATION_INCRSAT); in SetRenderState()
3352 renderer->setStencilFailOperation(sw::OPERATION_DECRSAT); in SetRenderState()
3355 renderer->setStencilFailOperation(sw::OPERATION_INVERT); in SetRenderState()
3358 renderer->setStencilFailOperation(sw::OPERATION_INCR); in SetRenderState()
3361 renderer->setStencilFailOperation(sw::OPERATION_DECR); in SetRenderState()
3371 renderer->setStencilZFailOperation(sw::OPERATION_KEEP); in SetRenderState()
3374 renderer->setStencilZFailOperation(sw::OPERATION_ZERO); in SetRenderState()
3377 renderer->setStencilZFailOperation(sw::OPERATION_REPLACE); in SetRenderState()
3380 renderer->setStencilZFailOperation(sw::OPERATION_INCRSAT); in SetRenderState()
3383 renderer->setStencilZFailOperation(sw::OPERATION_DECRSAT); in SetRenderState()
3386 renderer->setStencilZFailOperation(sw::OPERATION_INVERT); in SetRenderState()
3389 renderer->setStencilZFailOperation(sw::OPERATION_INCR); in SetRenderState()
3392 renderer->setStencilZFailOperation(sw::OPERATION_DECR); in SetRenderState()
3402 renderer->setStencilPassOperation(sw::OPERATION_KEEP); in SetRenderState()
3405 renderer->setStencilPassOperation(sw::OPERATION_ZERO); in SetRenderState()
3408 renderer->setStencilPassOperation(sw::OPERATION_REPLACE); in SetRenderState()
3411 renderer->setStencilPassOperation(sw::OPERATION_INCRSAT); in SetRenderState()
3414 renderer->setStencilPassOperation(sw::OPERATION_DECRSAT); in SetRenderState()
3417 renderer->setStencilPassOperation(sw::OPERATION_INVERT); in SetRenderState()
3420 renderer->setStencilPassOperation(sw::OPERATION_INCR); in SetRenderState()
3423 renderer->setStencilPassOperation(sw::OPERATION_DECR); in SetRenderState()
3433 renderer->setStencilCompare(sw::STENCIL_NEVER); in SetRenderState()
3436 renderer->setStencilCompare(sw::STENCIL_LESS); in SetRenderState()
3439 renderer->setStencilCompare(sw::STENCIL_EQUAL); in SetRenderState()
3442 renderer->setStencilCompare(sw::STENCIL_LESSEQUAL); in SetRenderState()
3445 renderer->setStencilCompare(sw::STENCIL_GREATER); in SetRenderState()
3448 renderer->setStencilCompare(sw::STENCIL_NOTEQUAL); in SetRenderState()
3451 renderer->setStencilCompare(sw::STENCIL_GREATEREQUAL); in SetRenderState()
3454 renderer->setStencilCompare(sw::STENCIL_ALWAYS); in SetRenderState()
3461 renderer->setStencilReference(value); in SetRenderState()
3462 renderer->setStencilReferenceCCW(value); in SetRenderState()
3465 renderer->setStencilMask(value); in SetRenderState()
3466 renderer->setStencilMaskCCW(value); in SetRenderState()
3469 renderer->setStencilWriteMask(value); in SetRenderState()
3470 renderer->setStencilWriteMaskCCW(value); in SetRenderState()
3473 renderer->setTextureFactor(value); in SetRenderState()
3476 renderer->setTextureWrap(0, value); in SetRenderState()
3479 renderer->setTextureWrap(1, value); in SetRenderState()
3482 renderer->setTextureWrap(2, value); in SetRenderState()
3485 renderer->setTextureWrap(3, value); in SetRenderState()
3488 renderer->setTextureWrap(4, value); in SetRenderState()
3491 renderer->setTextureWrap(5, value); in SetRenderState()
3494 renderer->setTextureWrap(6, value); in SetRenderState()
3497 renderer->setTextureWrap(7, value); in SetRenderState()
3503 renderer->setLightingEnable(value != FALSE); in SetRenderState()
3506 renderer->setGlobalAmbient(value); in SetRenderState()
3512 renderer->setVertexFogMode(sw::FOG_NONE); in SetRenderState()
3515 renderer->setVertexFogMode(sw::FOG_LINEAR); in SetRenderState()
3518 renderer->setVertexFogMode(sw::FOG_EXP); in SetRenderState()
3521 renderer->setVertexFogMode(sw::FOG_EXP2); in SetRenderState()
3528 renderer->setColorVertexEnable(value != FALSE); in SetRenderState()
3531 renderer->setLocalViewer(value != FALSE); in SetRenderState()
3534 renderer->setNormalizeNormals(value != FALSE); in SetRenderState()
3540 renderer->setDiffuseMaterialSource(sw::MATERIAL_MATERIAL); in SetRenderState()
3543 renderer->setDiffuseMaterialSource(sw::MATERIAL_COLOR1); in SetRenderState()
3546 renderer->setDiffuseMaterialSource(sw::MATERIAL_COLOR2); in SetRenderState()
3556 renderer->setSpecularMaterialSource(sw::MATERIAL_MATERIAL); in SetRenderState()
3559 renderer->setSpecularMaterialSource(sw::MATERIAL_COLOR1); in SetRenderState()
3562 renderer->setSpecularMaterialSource(sw::MATERIAL_COLOR2); in SetRenderState()
3572 renderer->setAmbientMaterialSource(sw::MATERIAL_MATERIAL); in SetRenderState()
3575 renderer->setAmbientMaterialSource(sw::MATERIAL_COLOR1); in SetRenderState()
3578 renderer->setAmbientMaterialSource(sw::MATERIAL_COLOR2); in SetRenderState()
3588 renderer->setEmissiveMaterialSource(sw::MATERIAL_MATERIAL); in SetRenderState()
3591 renderer->setEmissiveMaterialSource(sw::MATERIAL_COLOR1); in SetRenderState()
3594 renderer->setEmissiveMaterialSource(sw::MATERIAL_COLOR2); in SetRenderState()
3604 renderer->setVertexBlendMatrixCount(0); in SetRenderState()
3607 renderer->setVertexBlendMatrixCount(2); in SetRenderState()
3610 renderer->setVertexBlendMatrixCount(3); in SetRenderState()
3613 renderer->setVertexBlendMatrixCount(4); in SetRenderState()
3619 renderer->setVertexBlendMatrixCount(1); in SetRenderState()
3626 renderer->setClipFlags(value); in SetRenderState()
3635 renderer->setTransparencyAntialiasing(sw::TRANSPARENCY_ALPHA_TO_COVERAGE); in SetRenderState()
3636 renderer->setAlphaTestEnable(true); in SetRenderState()
3640 renderer->setTransparencyAntialiasing(sw::TRANSPARENCY_NONE); in SetRenderState()
3641 renderer->setAlphaTestEnable(false); in SetRenderState()
3645 renderer->setPointSize((float&)value); in SetRenderState()
3649 renderer->setPointSizeMin((float&)value); in SetRenderState()
3652 renderer->setPointSpriteEnable(value != FALSE); in SetRenderState()
3655 renderer->setPointScaleEnable(value != FALSE); in SetRenderState()
3658 renderer->setPointScaleA((float&)value); in SetRenderState()
3661 renderer->setPointScaleB((float&)value); in SetRenderState()
3664 renderer->setPointScaleC((float&)value); in SetRenderState()
3679 renderer->setPointSizeMax((float&)value); in SetRenderState()
3682 renderer->setIndexedVertexBlendEnable(value != FALSE); in SetRenderState()
3685 renderer->setColorWriteMask(0, value & 0x0000000F); in SetRenderState()
3694 renderer->setBlendOperation(sw::BLENDOP_ADD); in SetRenderState()
3697 renderer->setBlendOperation(sw::BLENDOP_SUB); in SetRenderState()
3700 renderer->setBlendOperation(sw::BLENDOP_INVSUB); in SetRenderState()
3703 renderer->setBlendOperation(sw::BLENDOP_MIN); in SetRenderState()
3706 renderer->setBlendOperation(sw::BLENDOP_MAX); in SetRenderState()
3722 renderer->setSlopeDepthBias((float&)value); in SetRenderState()
3739 renderer->setTransparencyAntialiasing(sw::TRANSPARENCY_ALPHA_TO_COVERAGE); in SetRenderState()
3743 renderer->setTransparencyAntialiasing(sw::TRANSPARENCY_NONE); in SetRenderState()
3760 renderer->setTwoSidedStencil(value != FALSE); in SetRenderState()
3766 renderer->setStencilFailOperationCCW(sw::OPERATION_KEEP); in SetRenderState()
3769 renderer->setStencilFailOperationCCW(sw::OPERATION_ZERO); in SetRenderState()
3772 renderer->setStencilFailOperationCCW(sw::OPERATION_REPLACE); in SetRenderState()
3775 renderer->setStencilFailOperationCCW(sw::OPERATION_INCRSAT); in SetRenderState()
3778 renderer->setStencilFailOperationCCW(sw::OPERATION_DECRSAT); in SetRenderState()
3781 renderer->setStencilFailOperationCCW(sw::OPERATION_INVERT); in SetRenderState()
3784 renderer->setStencilFailOperationCCW(sw::OPERATION_INCR); in SetRenderState()
3787 renderer->setStencilFailOperationCCW(sw::OPERATION_DECR); in SetRenderState()
3797 renderer->setStencilZFailOperationCCW(sw::OPERATION_KEEP); in SetRenderState()
3800 renderer->setStencilZFailOperationCCW(sw::OPERATION_ZERO); in SetRenderState()
3803 renderer->setStencilZFailOperationCCW(sw::OPERATION_REPLACE); in SetRenderState()
3806 renderer->setStencilZFailOperationCCW(sw::OPERATION_INCRSAT); in SetRenderState()
3809 renderer->setStencilZFailOperationCCW(sw::OPERATION_DECRSAT); in SetRenderState()
3812 renderer->setStencilZFailOperationCCW(sw::OPERATION_INVERT); in SetRenderState()
3815 renderer->setStencilZFailOperationCCW(sw::OPERATION_INCR); in SetRenderState()
3818 renderer->setStencilZFailOperationCCW(sw::OPERATION_DECR); in SetRenderState()
3828 renderer->setStencilPassOperationCCW(sw::OPERATION_KEEP); in SetRenderState()
3831 renderer->setStencilPassOperationCCW(sw::OPERATION_ZERO); in SetRenderState()
3834 renderer->setStencilPassOperationCCW(sw::OPERATION_REPLACE); in SetRenderState()
3837 renderer->setStencilPassOperationCCW(sw::OPERATION_INCRSAT); in SetRenderState()
3840 renderer->setStencilPassOperationCCW(sw::OPERATION_DECRSAT); in SetRenderState()
3843 renderer->setStencilPassOperationCCW(sw::OPERATION_INVERT); in SetRenderState()
3846 renderer->setStencilPassOperationCCW(sw::OPERATION_INCR); in SetRenderState()
3849 renderer->setStencilPassOperationCCW(sw::OPERATION_DECR); in SetRenderState()
3859 renderer->setStencilCompareCCW(sw::STENCIL_NEVER); in SetRenderState()
3862 renderer->setStencilCompareCCW(sw::STENCIL_LESS); in SetRenderState()
3865 renderer->setStencilCompareCCW(sw::STENCIL_EQUAL); in SetRenderState()
3868 renderer->setStencilCompareCCW(sw::STENCIL_LESSEQUAL); in SetRenderState()
3871 renderer->setStencilCompareCCW(sw::STENCIL_GREATER); in SetRenderState()
3874 renderer->setStencilCompareCCW(sw::STENCIL_NOTEQUAL); in SetRenderState()
3877 renderer->setStencilCompareCCW(sw::STENCIL_GREATEREQUAL); in SetRenderState()
3880 renderer->setStencilCompareCCW(sw::STENCIL_ALWAYS); in SetRenderState()
3887 renderer->setColorWriteMask(1, value); in SetRenderState()
3890 renderer->setColorWriteMask(2, value); in SetRenderState()
3893 renderer->setColorWriteMask(3, value); in SetRenderState()
3896 renderer->setBlendConstant(sw::Color<float>(value)); in SetRenderState()
3899 renderer->setWriteSRGB(value != FALSE); in SetRenderState()
3902 renderer->setDepthBias((float&)value); in SetRenderState()
3905 renderer->setTextureWrap(8, value); in SetRenderState()
3908 renderer->setTextureWrap(9, value); in SetRenderState()
3911 renderer->setTextureWrap(10, value); in SetRenderState()
3914 renderer->setTextureWrap(11, value); in SetRenderState()
3917 renderer->setTextureWrap(12, value); in SetRenderState()
3920 renderer->setTextureWrap(13, value); in SetRenderState()
3923 renderer->setTextureWrap(14, value); in SetRenderState()
3926 renderer->setTextureWrap(15, value); in SetRenderState()
3929 renderer->setSeparateAlphaBlendEnable(value != FALSE); in SetRenderState()
3935 renderer->setSourceBlendFactorAlpha(sw::BLEND_ZERO); in SetRenderState()
3938 renderer->setSourceBlendFactorAlpha(sw::BLEND_ONE); in SetRenderState()
3941 renderer->setSourceBlendFactorAlpha(sw::BLEND_SOURCE); in SetRenderState()
3944 renderer->setSourceBlendFactorAlpha(sw::BLEND_INVSOURCE); in SetRenderState()
3947 renderer->setSourceBlendFactorAlpha(sw::BLEND_SOURCEALPHA); in SetRenderState()
3950 renderer->setSourceBlendFactorAlpha(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3953 renderer->setSourceBlendFactorAlpha(sw::BLEND_DESTALPHA); in SetRenderState()
3956 renderer->setSourceBlendFactorAlpha(sw::BLEND_INVDESTALPHA); in SetRenderState()
3959 renderer->setSourceBlendFactorAlpha(sw::BLEND_DEST); in SetRenderState()
3962 renderer->setSourceBlendFactorAlpha(sw::BLEND_INVDEST); in SetRenderState()
3965 renderer->setSourceBlendFactorAlpha(sw::BLEND_SRCALPHASAT); in SetRenderState()
3968 renderer->setSourceBlendFactorAlpha(sw::BLEND_SOURCEALPHA); in SetRenderState()
3969 renderer->setDestBlendFactorAlpha(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3972 renderer->setSourceBlendFactorAlpha(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
3973 renderer->setDestBlendFactorAlpha(sw::BLEND_SOURCEALPHA); in SetRenderState()
3976 renderer->setSourceBlendFactorAlpha(sw::BLEND_CONSTANT); in SetRenderState()
3979 renderer->setSourceBlendFactorAlpha(sw::BLEND_INVCONSTANT); in SetRenderState()
3989 renderer->setDestBlendFactorAlpha(sw::BLEND_ZERO); in SetRenderState()
3992 renderer->setDestBlendFactorAlpha(sw::BLEND_ONE); in SetRenderState()
3995 renderer->setDestBlendFactorAlpha(sw::BLEND_SOURCE); in SetRenderState()
3998 renderer->setDestBlendFactorAlpha(sw::BLEND_INVSOURCE); in SetRenderState()
4001 renderer->setDestBlendFactorAlpha(sw::BLEND_SOURCEALPHA); in SetRenderState()
4004 renderer->setDestBlendFactorAlpha(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
4007 renderer->setDestBlendFactorAlpha(sw::BLEND_DESTALPHA); in SetRenderState()
4010 renderer->setDestBlendFactorAlpha(sw::BLEND_INVDESTALPHA); in SetRenderState()
4013 renderer->setDestBlendFactorAlpha(sw::BLEND_DEST); in SetRenderState()
4016 renderer->setDestBlendFactorAlpha(sw::BLEND_INVDEST); in SetRenderState()
4019 renderer->setDestBlendFactorAlpha(sw::BLEND_SRCALPHASAT); in SetRenderState()
4022 renderer->setSourceBlendFactorAlpha(sw::BLEND_SOURCEALPHA); in SetRenderState()
4023 renderer->setDestBlendFactorAlpha(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
4026 renderer->setSourceBlendFactorAlpha(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
4027 renderer->setDestBlendFactorAlpha(sw::BLEND_SOURCEALPHA); in SetRenderState()
4030 renderer->setDestBlendFactorAlpha(sw::BLEND_CONSTANT); in SetRenderState()
4033 renderer->setDestBlendFactorAlpha(sw::BLEND_INVCONSTANT); in SetRenderState()
4043 renderer->setBlendOperationAlpha(sw::BLENDOP_ADD); in SetRenderState()
4046 renderer->setBlendOperationAlpha(sw::BLENDOP_SUB); in SetRenderState()
4049 renderer->setBlendOperationAlpha(sw::BLENDOP_INVSUB); in SetRenderState()
4052 renderer->setBlendOperationAlpha(sw::BLENDOP_MIN); in SetRenderState()
4055 renderer->setBlendOperationAlpha(sw::BLENDOP_MAX); in SetRenderState()
4123 renderer->setMultiSampleMask(renderState[D3DRS_MULTISAMPLEMASK]); in SetRenderTarget()
4127 renderer->setMultiSampleMask(0xFFFFFFFF); in SetRenderTarget()
4131 renderer->setRenderTarget(index, renderTarget); in SetRenderTarget()
4175 renderer->setAddressingModeU(type, index, sw::ADDRESSING_WRAP); in SetSamplerState()
4178 renderer->setAddressingModeU(type, index, sw::ADDRESSING_MIRROR); in SetSamplerState()
4181 renderer->setAddressingModeU(type, index, sw::ADDRESSING_CLAMP); in SetSamplerState()
4184 renderer->setAddressingModeU(type, index, sw::ADDRESSING_BORDER); in SetSamplerState()
4187 renderer->setAddressingModeU(type, index, sw::ADDRESSING_MIRRORONCE); in SetSamplerState()
4197 renderer->setAddressingModeV(type, index, sw::ADDRESSING_WRAP); in SetSamplerState()
4200 renderer->setAddressingModeV(type, index, sw::ADDRESSING_MIRROR); in SetSamplerState()
4203 renderer->setAddressingModeV(type, index, sw::ADDRESSING_CLAMP); in SetSamplerState()
4206 renderer->setAddressingModeV(type, index, sw::ADDRESSING_BORDER); in SetSamplerState()
4209 renderer->setAddressingModeV(type, index, sw::ADDRESSING_MIRRORONCE); in SetSamplerState()
4219 renderer->setAddressingModeW(type, index, sw::ADDRESSING_WRAP); in SetSamplerState()
4222 renderer->setAddressingModeW(type, index, sw::ADDRESSING_MIRROR); in SetSamplerState()
4225 renderer->setAddressingModeW(type, index, sw::ADDRESSING_CLAMP); in SetSamplerState()
4228 renderer->setAddressingModeW(type, index, sw::ADDRESSING_BORDER); in SetSamplerState()
4231 renderer->setAddressingModeW(type, index, sw::ADDRESSING_MIRRORONCE); in SetSamplerState()
4238 renderer->setBorderColor(type, index, value); in SetSamplerState()
4245 renderer->setTextureFilter(type, index, sw::FILTER_POINT); // FIXME: Only for mipmap filter in SetSamplerState()
4248 renderer->setTextureFilter(type, index, sw::FILTER_POINT); in SetSamplerState()
4251 renderer->setTextureFilter(type, index, sw::FILTER_LINEAR); in SetSamplerState()
4254 renderer->setTextureFilter(type, index, sw::FILTER_ANISOTROPIC); in SetSamplerState()
4257renderer->setTextureFilter(type, index, sw::FILTER_LINEAR); // FIXME: Unimplemented, fail silent… in SetSamplerState()
4260renderer->setTextureFilter(type, index, sw::FILTER_LINEAR); // FIXME: Unimplemented, fail silent… in SetSamplerState()
4271 renderer->setTextureFilter(type, index, sw::FILTER_POINT); // FIXME: Only for mipmap filter in SetSamplerState()
4274 renderer->setTextureFilter(type, index, sw::FILTER_POINT); in SetSamplerState()
4277 renderer->setTextureFilter(type, index, sw::FILTER_LINEAR); in SetSamplerState()
4280 renderer->setTextureFilter(type, index, sw::FILTER_ANISOTROPIC); in SetSamplerState()
4283renderer->setTextureFilter(type, index, sw::FILTER_LINEAR); // FIXME: Unimplemented, fail silent… in SetSamplerState()
4286renderer->setTextureFilter(type, index, sw::FILTER_LINEAR); // FIXME: Unimplemented, fail silent… in SetSamplerState()
4296 renderer->setMipmapFilter(type, index, sw::MIPMAP_NONE); in SetSamplerState()
4299 renderer->setMipmapFilter(type, index, sw::MIPMAP_POINT); in SetSamplerState()
4302 renderer->setMipmapFilter(type, index, sw::MIPMAP_LINEAR); in SetSamplerState()
4305 renderer->setMipmapFilter(type, index, sw::MIPMAP_LINEAR); // FIXME: Only for texture filter in SetSamplerState()
4308 renderer->setMipmapFilter(type, index, sw::MIPMAP_LINEAR); // FIXME: Only for texture filter in SetSamplerState()
4311 renderer->setMipmapFilter(type, index, sw::MIPMAP_LINEAR); // FIXME: Only for texture filter in SetSamplerState()
4320 renderer->setGatherEnable(type, index, true); in SetSamplerState()
4324 renderer->setGatherEnable(type, index, false); in SetSamplerState()
4329 renderer->setMipmapLOD(type, index, LOD); in SetSamplerState()
4335renderer->setMaxAnisotropy(type, index, sw::clamp((unsigned int)value, (unsigned int)1, maxAnisotr… in SetSamplerState()
4338 renderer->setReadSRGB(type, index, value != FALSE); in SetSamplerState()
4533 renderer->setStageOperation(stage, sw::TextureStage::STAGE_DISABLE); in SetTextureStageState()
4536 renderer->setStageOperation(stage, sw::TextureStage::STAGE_SELECTARG1); in SetTextureStageState()
4539 renderer->setStageOperation(stage, sw::TextureStage::STAGE_SELECTARG2); in SetTextureStageState()
4542 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATE); in SetTextureStageState()
4545 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATE2X); in SetTextureStageState()
4548 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATE4X); in SetTextureStageState()
4551 renderer->setStageOperation(stage, sw::TextureStage::STAGE_ADD); in SetTextureStageState()
4554 renderer->setStageOperation(stage, sw::TextureStage::STAGE_ADDSIGNED); in SetTextureStageState()
4557 renderer->setStageOperation(stage, sw::TextureStage::STAGE_ADDSIGNED2X); in SetTextureStageState()
4560 renderer->setStageOperation(stage, sw::TextureStage::STAGE_SUBTRACT); in SetTextureStageState()
4563 renderer->setStageOperation(stage, sw::TextureStage::STAGE_ADDSMOOTH); in SetTextureStageState()
4566 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDDIFFUSEALPHA); in SetTextureStageState()
4569 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDTEXTUREALPHA); in SetTextureStageState()
4572 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDFACTORALPHA); in SetTextureStageState()
4575 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDTEXTUREALPHAPM); in SetTextureStageState()
4578 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDCURRENTALPHA); in SetTextureStageState()
4581 renderer->setStageOperation(stage, sw::TextureStage::STAGE_PREMODULATE); in SetTextureStageState()
4584 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATEALPHA_ADDCOLOR); in SetTextureStageState()
4587 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATECOLOR_ADDALPHA); in SetTextureStageState()
4590 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATEINVALPHA_ADDCOLOR); in SetTextureStageState()
4593 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATEINVCOLOR_ADDALPHA); in SetTextureStageState()
4596 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BUMPENVMAP); in SetTextureStageState()
4599 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BUMPENVMAPLUMINANCE); in SetTextureStageState()
4602 renderer->setStageOperation(stage, sw::TextureStage::STAGE_DOT3); in SetTextureStageState()
4605 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MULTIPLYADD); in SetTextureStageState()
4608 renderer->setStageOperation(stage, sw::TextureStage::STAGE_LERP); in SetTextureStageState()
4618 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
4621 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
4624 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
4627 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
4630 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
4633 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
4636 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_CONSTANT); in SetTextureStageState()
4645 renderer->setFirstModifier(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
4648 renderer->setFirstModifier(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
4651 renderer->setFirstModifier(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
4654 renderer->setFirstModifier(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
4664 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
4667 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
4670 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
4673 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
4676 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
4679 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
4682 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_CONSTANT); in SetTextureStageState()
4691 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
4694 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
4697 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
4700 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
4710 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_DISABLE); in SetTextureStageState()
4713 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_SELECTARG1); in SetTextureStageState()
4716 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_SELECTARG2); in SetTextureStageState()
4719 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATE); in SetTextureStageState()
4722 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATE2X); in SetTextureStageState()
4725 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATE4X); in SetTextureStageState()
4728 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_ADD); in SetTextureStageState()
4731 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_ADDSIGNED); in SetTextureStageState()
4734 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_ADDSIGNED2X); in SetTextureStageState()
4737 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_SUBTRACT); in SetTextureStageState()
4740 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_ADDSMOOTH); in SetTextureStageState()
4743 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDDIFFUSEALPHA); in SetTextureStageState()
4746 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDTEXTUREALPHA); in SetTextureStageState()
4749 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDFACTORALPHA); in SetTextureStageState()
4752 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDTEXTUREALPHAPM); in SetTextureStageState()
4755 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDCURRENTALPHA); in SetTextureStageState()
4758 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_PREMODULATE); in SetTextureStageState()
4761 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATEALPHA_ADDCOLOR); in SetTextureStageState()
4764 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATECOLOR_ADDALPHA); in SetTextureStageState()
4767 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATEINVALPHA_ADDCOLOR); in SetTextureStageState()
4770 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATEINVCOLOR_ADDALPHA); in SetTextureStageState()
4773 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BUMPENVMAP); in SetTextureStageState()
4776 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BUMPENVMAPLUMINANCE); in SetTextureStageState()
4779 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_DOT3); in SetTextureStageState()
4782 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MULTIPLYADD); in SetTextureStageState()
4785 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_LERP); in SetTextureStageState()
4795 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
4798 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
4801 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
4804 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
4807 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
4810 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
4813 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_CONSTANT); in SetTextureStageState()
4822 renderer->setFirstModifierAlpha(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
4825 renderer->setFirstModifierAlpha(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
4828 renderer->setFirstModifierAlpha(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
4831 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
4841 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
4844 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
4847 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
4850 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
4853 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
4856 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
4859 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_CONSTANT); in SetTextureStageState()
4868 renderer->setSecondModifierAlpha(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
4871 renderer->setSecondModifierAlpha(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
4874 renderer->setSecondModifierAlpha(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
4877 renderer->setSecondModifierAlpha(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
4884 renderer->setBumpmapMatrix(stage, 0, (float&)value); in SetTextureStageState()
4887 renderer->setBumpmapMatrix(stage, 1, (float&)value); in SetTextureStageState()
4890 renderer->setBumpmapMatrix(stage, 2, (float&)value); in SetTextureStageState()
4893 renderer->setBumpmapMatrix(stage, 3, (float&)value); in SetTextureStageState()
4896 renderer->setTexCoordIndex(stage, value & 0x0000FFFF); in SetTextureStageState()
4901 renderer->setTexGen(stage, sw::TEXGEN_PASSTHRU); in SetTextureStageState()
4904 renderer->setTexCoordIndex(stage, stage); in SetTextureStageState()
4905 renderer->setTexGen(stage, sw::TEXGEN_NORMAL); in SetTextureStageState()
4908 renderer->setTexCoordIndex(stage, stage); in SetTextureStageState()
4909 renderer->setTexGen(stage, sw::TEXGEN_POSITION); in SetTextureStageState()
4912 renderer->setTexCoordIndex(stage, stage); in SetTextureStageState()
4913 renderer->setTexGen(stage, sw::TEXGEN_REFLECTION); in SetTextureStageState()
4916 renderer->setTexCoordIndex(stage, stage); in SetTextureStageState()
4917 renderer->setTexGen(stage, sw::TEXGEN_SPHEREMAP); in SetTextureStageState()
4924 renderer->setLuminanceScale(stage, (float&)value); in SetTextureStageState()
4927 renderer->setLuminanceOffset(stage, (float&)value); in SetTextureStageState()
4933 renderer->setTextureTransform(stage, 0, (value & D3DTTFF_PROJECTED) == D3DTTFF_PROJECTED); in SetTextureStageState()
4936 renderer->setTextureTransform(stage, 1, (value & D3DTTFF_PROJECTED) == D3DTTFF_PROJECTED); in SetTextureStageState()
4939 renderer->setTextureTransform(stage, 2, (value & D3DTTFF_PROJECTED) == D3DTTFF_PROJECTED); in SetTextureStageState()
4942 renderer->setTextureTransform(stage, 3, (value & D3DTTFF_PROJECTED) == D3DTTFF_PROJECTED); in SetTextureStageState()
4945 renderer->setTextureTransform(stage, 4, (value & D3DTTFF_PROJECTED) == D3DTTFF_PROJECTED); in SetTextureStageState()
4955 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
4958 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
4961 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
4964 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
4967 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
4970 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
4979 renderer->setThirdModifier(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
4982 renderer->setThirdModifier(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
4985 renderer->setThirdModifier(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
4988 renderer->setThirdModifier(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
4998 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
5001 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
5004 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
5007 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
5010 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
5013 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
5016 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_CONSTANT); in SetTextureStageState()
5025 renderer->setThirdModifierAlpha(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
5028 renderer->setThirdModifierAlpha(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
5031 renderer->setThirdModifierAlpha(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
5034 renderer->setThirdModifierAlpha(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
5044 renderer->setDestinationArgument(stage, sw::TextureStage::DESTINATION_CURRENT); in SetTextureStageState()
5047 renderer->setDestinationArgument(stage, sw::TextureStage::DESTINATION_TEMP); in SetTextureStageState()
5054 renderer->setConstantColor(stage, value); in SetTextureStageState()
5091 renderer->setModelMatrix(M); in SetTransform()
5094 renderer->setViewMatrix(M); in SetTransform()
5097 renderer->setProjectionMatrix(M); in SetTransform()
5100 renderer->setTextureMatrix(0, M); in SetTransform()
5103 renderer->setTextureMatrix(1, M); in SetTransform()
5106 renderer->setTextureMatrix(2, M); in SetTransform()
5109 renderer->setTextureMatrix(3, M); in SetTransform()
5112 renderer->setTextureMatrix(4, M); in SetTransform()
5115 renderer->setTextureMatrix(5, M); in SetTransform()
5118 renderer->setTextureMatrix(6, M); in SetTransform()
5121 renderer->setTextureMatrix(7, M); in SetTransform()
5126 renderer->setModelMatrix(M, state - 256); in SetTransform()
5718 renderer->resetInputStreams(vertexDeclaration->isPreTransformed()); in bindVertexStreams()
5796 renderer->setInputStream(i, attribute); in bindVertexStreams()
5810 renderer->setInputStream(i, attribute); in bindVertexStreams()
5821 …case D3DDECLUSAGE_POSITION: renderer->setInputStream(sw::Position, attribute); … in bindVertexStreams()
5822 …case D3DDECLUSAGE_BLENDWEIGHT: renderer->setInputStream(sw::BlendWeight, attribute); … in bindVertexStreams()
5823 …case D3DDECLUSAGE_BLENDINDICES: renderer->setInputStream(sw::BlendIndices, attribute.define(sw::ST… in bindVertexStreams()
5824 …case D3DDECLUSAGE_NORMAL: renderer->setInputStream(sw::Normal, attribute.define(sw::STREAMTY… in bindVertexStreams()
5825 …case D3DDECLUSAGE_PSIZE: renderer->setInputStream(sw::PointSize, attribute.define(sw::STREA… in bindVertexStreams()
5826 …case D3DDECLUSAGE_TEXCOORD: renderer->setInputStream(sw::TexCoord0 + index, attribute); … in bindVertexStreams()
5830 …case D3DDECLUSAGE_POSITIONT: renderer->setInputStream(sw::PositionT, attribute.define(sw::STREA… in bindVertexStreams()
5831 …case D3DDECLUSAGE_COLOR: renderer->setInputStream(sw::Color0 + index, attribute.define(sw::… in bindVertexStreams()
5851 renderer->setIndexBuffer(resource); in bindIndexBuffer()
5862 renderer->setPixelShaderConstantB(0, pixelShaderConstantB, pixelShaderConstantsBDirty); in bindShaderConstants()
5867 renderer->setPixelShaderConstantF(0, pixelShaderConstantF[0], pixelShaderConstantsFDirty); in bindShaderConstants()
5872 renderer->setPixelShaderConstantI(0, pixelShaderConstantI[0], pixelShaderConstantsIDirty); in bindShaderConstants()
5875renderer->setPixelShader(pixelShader->getPixelShader()); // Loads shader constants set with DEF in bindShaderConstants()
5882 renderer->setPixelShader(0); in bindShaderConstants()
5894 renderer->setVertexShaderConstantB(0, vertexShaderConstantB, vertexShaderConstantsBDirty); in bindShaderConstants()
5899 renderer->setVertexShaderConstantF(0, vertexShaderConstantF[0], vertexShaderConstantsFDirty); in bindShaderConstants()
5904 renderer->setVertexShaderConstantI(0, vertexShaderConstantI[0], vertexShaderConstantsIDirty); in bindShaderConstants()
5907renderer->setVertexShader(vertexShader->getVertexShader()); // Loads shader constants set with D… in bindShaderConstants()
5914 renderer->setVertexShader(0); in bindShaderConstants()
5949 renderer->setLightDiffuse(active, diffuse); in bindLights()
5950 renderer->setLightSpecular(active, specular); in bindLights()
5951 renderer->setLightAmbient(active, ambient); in bindLights()
5956 renderer->setLightPosition(active, -1e10f * direction); in bindLights()
5957 renderer->setLightRange(active, l.Range); in bindLights()
5958 renderer->setLightAttenuation(active, 1, 0, 0); in bindLights()
5963 renderer->setLightPosition(active, position); in bindLights()
5964 renderer->setLightRange(active, l.Range); in bindLights()
5965 renderer->setLightAttenuation(active, l.Attenuation0, l.Attenuation1, l.Attenuation2); in bindLights()
5969 renderer->setLightPosition(active, position); in bindLights()
5970 renderer->setLightRange(active, l.Range); in bindLights()
5971 renderer->setLightAttenuation(active, l.Attenuation0, l.Attenuation1, l.Attenuation2); in bindLights()
5974 renderer->setLightEnable(active, true); in bindLights()
5983 renderer->setLightEnable(active, false); in bindLights()
6011 renderer->setScissor(scissor); in bindViewport()
6021 renderer->setScissor(scissor); in bindViewport()
6032 renderer->setViewport(view); in bindViewport()
6068 renderer->setTextureResource(sampler, resource); in bindTextures()
6114 renderer->setTextureLevel(sampler, 0, mipmapLevel, surface, sw::TEXTURE_2D); in bindTextures()
6143 renderer->setTextureLevel(sampler, face, mipmapLevel, surface, sw::TEXTURE_CUBE); in bindTextures()
6171 renderer->setTextureLevel(sampler, 0, mipmapLevel, volume, sw::TEXTURE_3D); in bindTextures()
6181 renderer->setTextureLevel(sampler, 0, 0, 0, sw::TEXTURE_NULL); in bindTextures()
6193 renderer->setOcclusionEnabled(enable); in setOcclusionEnabled()
6198 renderer->removeQuery(query); in removeQuery()
6203 renderer->addQuery(query); in addQuery()
6327 renderer->blit(source, sRectF, dest, dRect, filter >= D3DTEXF_LINEAR); in stretchRect()