• Home
  • Raw
  • Download

Lines Matching refs:sw

57 		context = new sw::Context();  in Direct3DDevice8()
58 renderer = new sw::Renderer(context, sw::Direct3D, false); in Direct3DDevice8()
368 sw::Rect clearRect(rects[i].x1, rects[i].y1, rects[i].x2, rects[i].y2); in Clear()
385 renderer->clear(rgba, sw::FORMAT_A32B32G32R32F, renderTarget, clearRect, 0xF); in Clear()
391 z = sw::clamp01(z); in Clear()
575 …8B8, D3DUSAGE_DEPTHSTENCIL, D3DRTYPE_SURFACE, format) != D3D_OK || height > sw::OUTLINE_RESOLUTION) in CreateDepthStencilSurface()
691 …8B8, D3DUSAGE_RENDERTARGET, D3DRTYPE_SURFACE, format) != D3D_OK || height > sw::OUTLINE_RESOLUTION) in CreateRenderTarget()
905 sw::DrawType drawType; in DrawIndexedPrimitive()
911 case D3DPT_POINTLIST: drawType = sw::DRAW_INDEXEDPOINTLIST32; break; in DrawIndexedPrimitive()
912 case D3DPT_LINELIST: drawType = sw::DRAW_INDEXEDLINELIST32; break; in DrawIndexedPrimitive()
913 case D3DPT_LINESTRIP: drawType = sw::DRAW_INDEXEDLINESTRIP32; break; in DrawIndexedPrimitive()
914 case D3DPT_TRIANGLELIST: drawType = sw::DRAW_INDEXEDTRIANGLELIST32; break; in DrawIndexedPrimitive()
915 case D3DPT_TRIANGLESTRIP: drawType = sw::DRAW_INDEXEDTRIANGLESTRIP32; break; in DrawIndexedPrimitive()
916 case D3DPT_TRIANGLEFAN: drawType = sw::DRAW_INDEXEDTRIANGLEFAN32; break; in DrawIndexedPrimitive()
925 case D3DPT_POINTLIST: drawType = sw::DRAW_INDEXEDPOINTLIST16; break; in DrawIndexedPrimitive()
926 case D3DPT_LINELIST: drawType = sw::DRAW_INDEXEDLINELIST16; break; in DrawIndexedPrimitive()
927 case D3DPT_LINESTRIP: drawType = sw::DRAW_INDEXEDLINESTRIP16; break; in DrawIndexedPrimitive()
928 case D3DPT_TRIANGLELIST: drawType = sw::DRAW_INDEXEDTRIANGLELIST16; break; in DrawIndexedPrimitive()
929 case D3DPT_TRIANGLESTRIP: drawType = sw::DRAW_INDEXEDTRIANGLESTRIP16; break; in DrawIndexedPrimitive()
930 case D3DPT_TRIANGLEFAN: drawType = sw::DRAW_INDEXEDTRIANGLEFAN16; break; in DrawIndexedPrimitive()
1007 sw::DrawType drawType; in DrawIndexedPrimitiveUP()
1013 case D3DPT_POINTLIST: drawType = sw::DRAW_INDEXEDPOINTLIST32; break; in DrawIndexedPrimitiveUP()
1014 case D3DPT_LINELIST: drawType = sw::DRAW_INDEXEDLINELIST32; break; in DrawIndexedPrimitiveUP()
1015 case D3DPT_LINESTRIP: drawType = sw::DRAW_INDEXEDLINESTRIP32; break; in DrawIndexedPrimitiveUP()
1016 case D3DPT_TRIANGLELIST: drawType = sw::DRAW_INDEXEDTRIANGLELIST32; break; in DrawIndexedPrimitiveUP()
1017 case D3DPT_TRIANGLESTRIP: drawType = sw::DRAW_INDEXEDTRIANGLESTRIP32; break; in DrawIndexedPrimitiveUP()
1018 case D3DPT_TRIANGLEFAN: drawType = sw::DRAW_INDEXEDTRIANGLEFAN32; break; in DrawIndexedPrimitiveUP()
1027 case D3DPT_POINTLIST: drawType = sw::DRAW_INDEXEDPOINTLIST16; break; in DrawIndexedPrimitiveUP()
1028 case D3DPT_LINELIST: drawType = sw::DRAW_INDEXEDLINELIST16; break; in DrawIndexedPrimitiveUP()
1029 case D3DPT_LINESTRIP: drawType = sw::DRAW_INDEXEDLINESTRIP16; break; in DrawIndexedPrimitiveUP()
1030 case D3DPT_TRIANGLELIST: drawType = sw::DRAW_INDEXEDTRIANGLELIST16; break; in DrawIndexedPrimitiveUP()
1031 case D3DPT_TRIANGLESTRIP: drawType = sw::DRAW_INDEXEDTRIANGLESTRIP16; break; in DrawIndexedPrimitiveUP()
1032 case D3DPT_TRIANGLEFAN: drawType = sw::DRAW_INDEXEDTRIANGLEFAN16; break; in DrawIndexedPrimitiveUP()
1055 sw::DrawType drawType; in DrawPrimitive()
1059 case D3DPT_POINTLIST: drawType = sw::DRAW_POINTLIST; break; in DrawPrimitive()
1060 case D3DPT_LINELIST: drawType = sw::DRAW_LINELIST; break; in DrawPrimitive()
1061 case D3DPT_LINESTRIP: drawType = sw::DRAW_LINESTRIP; break; in DrawPrimitive()
1062 case D3DPT_TRIANGLELIST: drawType = sw::DRAW_TRIANGLELIST; break; in DrawPrimitive()
1063 case D3DPT_TRIANGLESTRIP: drawType = sw::DRAW_TRIANGLESTRIP; break; in DrawPrimitive()
1064 case D3DPT_TRIANGLEFAN: drawType = sw::DRAW_TRIANGLEFAN; break; in DrawPrimitive()
1116 sw::DrawType drawType; in DrawPrimitiveUP()
1120 case D3DPT_POINTLIST: drawType = sw::DRAW_POINTLIST; break; in DrawPrimitiveUP()
1121 case D3DPT_LINELIST: drawType = sw::DRAW_LINELIST; break; in DrawPrimitiveUP()
1122 case D3DPT_LINESTRIP: drawType = sw::DRAW_LINESTRIP; break; in DrawPrimitiveUP()
1123 case D3DPT_TRIANGLELIST: drawType = sw::DRAW_TRIANGLELIST; break; in DrawPrimitiveUP()
1124 case D3DPT_TRIANGLESTRIP: drawType = sw::DRAW_TRIANGLESTRIP; break; in DrawPrimitiveUP()
1125 case D3DPT_TRIANGLEFAN: drawType = sw::DRAW_TRIANGLEFAN; break; in DrawPrimitiveUP()
1360 swapChain[0]->getGammaRamp((sw::GammaRamp*)ramp); in GetGammaRamp()
1775 sw::Matrix C(current->_11, current->_21, current->_31, current->_41, in MultiplyTransform()
1780 sw::Matrix M(matrix->_11, matrix->_21, matrix->_31, matrix->_41, in MultiplyTransform()
2115 sw::Surface::setTexturePalette((unsigned int*)&palette[currentPalette]); in SetCurrentTexturePalette()
2133 sw::FrameBuffer::setCursorPosition(point.x, point.y); in SetCursorPosition()
2152 …cursor = sw::Surface::create(0, desc.Width, desc.Height, 1, 0, 1, sw::FORMAT_A8R8G8B8, false, fals… in SetCursorProperties()
2154 void *buffer = cursor->lockExternal(0, 0, 0, sw::LOCK_DISCARD, sw::PUBLIC); in SetCursorProperties()
2160 sw::FrameBuffer::setCursorOrigin(x0, y0); in SetCursorProperties()
2176 swapChain[0]->setGammaRamp((sw::GammaRamp*)ramp, flags & D3DSGR_CALIBRATE); in SetGammaRamp()
2217 …renderer->setMaterialAmbient(sw::Color<float>(material->Ambient.r, material->Ambient.g, material->… in SetMaterial()
2218 …renderer->setMaterialDiffuse(sw::Color<float>(material->Diffuse.r, material->Diffuse.g, material->… in SetMaterial()
2219 …renderer->setMaterialEmission(sw::Color<float>(material->Emissive.r, material->Emissive.g, materia… in SetMaterial()
2221 …renderer->setMaterialSpecular(sw::Color<float>(material->Specular.r, material->Specular.g, materia… in SetMaterial()
2247 sw::Surface::setTexturePalette((unsigned int*)&palette[currentPalette]); in SetPaletteEntries()
2350 renderer->setFillMode(sw::FILL_VERTEX); in SetRenderState()
2353 renderer->setFillMode(sw::FILL_WIREFRAME); in SetRenderState()
2356 renderer->setFillMode(sw::FILL_SOLID); in SetRenderState()
2366 renderer->setShadingMode(sw::SHADING_FLAT); in SetRenderState()
2369 renderer->setShadingMode(sw::SHADING_GOURAUD); in SetRenderState()
2394 renderer->setSourceBlendFactor(sw::BLEND_ZERO); in SetRenderState()
2397 renderer->setSourceBlendFactor(sw::BLEND_ONE); in SetRenderState()
2400 renderer->setSourceBlendFactor(sw::BLEND_SOURCE); in SetRenderState()
2403 renderer->setSourceBlendFactor(sw::BLEND_INVSOURCE); in SetRenderState()
2406 renderer->setSourceBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
2409 renderer->setSourceBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
2412 renderer->setSourceBlendFactor(sw::BLEND_DESTALPHA); in SetRenderState()
2415 renderer->setSourceBlendFactor(sw::BLEND_INVDESTALPHA); in SetRenderState()
2418 renderer->setSourceBlendFactor(sw::BLEND_DEST); in SetRenderState()
2421 renderer->setSourceBlendFactor(sw::BLEND_INVDEST); in SetRenderState()
2424 renderer->setSourceBlendFactor(sw::BLEND_SRCALPHASAT); in SetRenderState()
2427 renderer->setSourceBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
2428 renderer->setDestBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
2431 renderer->setSourceBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
2432 renderer->setDestBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
2442 renderer->setDestBlendFactor(sw::BLEND_ZERO); in SetRenderState()
2445 renderer->setDestBlendFactor(sw::BLEND_ONE); in SetRenderState()
2448 renderer->setDestBlendFactor(sw::BLEND_SOURCE); in SetRenderState()
2451 renderer->setDestBlendFactor(sw::BLEND_INVSOURCE); in SetRenderState()
2454 renderer->setDestBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
2457 renderer->setDestBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
2460 renderer->setDestBlendFactor(sw::BLEND_DESTALPHA); in SetRenderState()
2463 renderer->setDestBlendFactor(sw::BLEND_INVDESTALPHA); in SetRenderState()
2466 renderer->setDestBlendFactor(sw::BLEND_DEST); in SetRenderState()
2469 renderer->setDestBlendFactor(sw::BLEND_INVDEST); in SetRenderState()
2472 renderer->setDestBlendFactor(sw::BLEND_SRCALPHASAT); in SetRenderState()
2475 renderer->setSourceBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
2476 renderer->setDestBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
2479 renderer->setSourceBlendFactor(sw::BLEND_INVSOURCEALPHA); in SetRenderState()
2480 renderer->setDestBlendFactor(sw::BLEND_SOURCEALPHA); in SetRenderState()
2490 renderer->setCullMode(sw::CULL_NONE, true); in SetRenderState()
2493 renderer->setCullMode(sw::CULL_COUNTERCLOCKWISE, true); in SetRenderState()
2496 renderer->setCullMode(sw::CULL_CLOCKWISE, true); in SetRenderState()
2506 renderer->setDepthCompare(sw::DEPTH_NEVER); in SetRenderState()
2509 renderer->setDepthCompare(sw::DEPTH_LESS); in SetRenderState()
2512 renderer->setDepthCompare(sw::DEPTH_EQUAL); in SetRenderState()
2515 renderer->setDepthCompare(sw::DEPTH_LESSEQUAL); in SetRenderState()
2518 renderer->setDepthCompare(sw::DEPTH_GREATER); in SetRenderState()
2521 renderer->setDepthCompare(sw::DEPTH_NOTEQUAL); in SetRenderState()
2524 renderer->setDepthCompare(sw::DEPTH_GREATEREQUAL); in SetRenderState()
2527 renderer->setDepthCompare(sw::DEPTH_ALWAYS); in SetRenderState()
2540 renderer->setAlphaCompare(sw::ALPHA_NEVER); in SetRenderState()
2543 renderer->setAlphaCompare(sw::ALPHA_LESS); in SetRenderState()
2546 renderer->setAlphaCompare(sw::ALPHA_EQUAL); in SetRenderState()
2549 renderer->setAlphaCompare(sw::ALPHA_LESSEQUAL); in SetRenderState()
2552 renderer->setAlphaCompare(sw::ALPHA_GREATER); in SetRenderState()
2555 renderer->setAlphaCompare(sw::ALPHA_NOTEQUAL); in SetRenderState()
2558 renderer->setAlphaCompare(sw::ALPHA_GREATEREQUAL); in SetRenderState()
2561 renderer->setAlphaCompare(sw::ALPHA_ALWAYS); in SetRenderState()
2585 renderer->setPixelFogMode(sw::FOG_NONE); in SetRenderState()
2588 renderer->setPixelFogMode(sw::FOG_LINEAR); in SetRenderState()
2591 renderer->setPixelFogMode(sw::FOG_EXP); in SetRenderState()
2594 renderer->setPixelFogMode(sw::FOG_EXP2); in SetRenderState()
2629 renderer->setStencilFailOperation(sw::OPERATION_KEEP); in SetRenderState()
2632 renderer->setStencilFailOperation(sw::OPERATION_ZERO); in SetRenderState()
2635 renderer->setStencilFailOperation(sw::OPERATION_REPLACE); in SetRenderState()
2638 renderer->setStencilFailOperation(sw::OPERATION_INCRSAT); in SetRenderState()
2641 renderer->setStencilFailOperation(sw::OPERATION_DECRSAT); in SetRenderState()
2644 renderer->setStencilFailOperation(sw::OPERATION_INVERT); in SetRenderState()
2647 renderer->setStencilFailOperation(sw::OPERATION_INCR); in SetRenderState()
2650 renderer->setStencilFailOperation(sw::OPERATION_DECR); in SetRenderState()
2660 renderer->setStencilZFailOperation(sw::OPERATION_KEEP); in SetRenderState()
2663 renderer->setStencilZFailOperation(sw::OPERATION_ZERO); in SetRenderState()
2666 renderer->setStencilZFailOperation(sw::OPERATION_REPLACE); in SetRenderState()
2669 renderer->setStencilZFailOperation(sw::OPERATION_INCRSAT); in SetRenderState()
2672 renderer->setStencilZFailOperation(sw::OPERATION_DECRSAT); in SetRenderState()
2675 renderer->setStencilZFailOperation(sw::OPERATION_INVERT); in SetRenderState()
2678 renderer->setStencilZFailOperation(sw::OPERATION_INCR); in SetRenderState()
2681 renderer->setStencilZFailOperation(sw::OPERATION_DECR); in SetRenderState()
2691 renderer->setStencilPassOperation(sw::OPERATION_KEEP); in SetRenderState()
2694 renderer->setStencilPassOperation(sw::OPERATION_ZERO); in SetRenderState()
2697 renderer->setStencilPassOperation(sw::OPERATION_REPLACE); in SetRenderState()
2700 renderer->setStencilPassOperation(sw::OPERATION_INCRSAT); in SetRenderState()
2703 renderer->setStencilPassOperation(sw::OPERATION_DECRSAT); in SetRenderState()
2706 renderer->setStencilPassOperation(sw::OPERATION_INVERT); in SetRenderState()
2709 renderer->setStencilPassOperation(sw::OPERATION_INCR); in SetRenderState()
2712 renderer->setStencilPassOperation(sw::OPERATION_DECR); in SetRenderState()
2722 renderer->setStencilCompare(sw::STENCIL_NEVER); in SetRenderState()
2725 renderer->setStencilCompare(sw::STENCIL_LESS); in SetRenderState()
2728 renderer->setStencilCompare(sw::STENCIL_EQUAL); in SetRenderState()
2731 renderer->setStencilCompare(sw::STENCIL_LESSEQUAL); in SetRenderState()
2734 renderer->setStencilCompare(sw::STENCIL_GREATER); in SetRenderState()
2737 renderer->setStencilCompare(sw::STENCIL_NOTEQUAL); in SetRenderState()
2740 renderer->setStencilCompare(sw::STENCIL_GREATEREQUAL); in SetRenderState()
2743 renderer->setStencilCompare(sw::STENCIL_ALWAYS); in SetRenderState()
2801 renderer->setVertexFogMode(sw::FOG_NONE); in SetRenderState()
2804 renderer->setVertexFogMode(sw::FOG_LINEAR); in SetRenderState()
2807 renderer->setVertexFogMode(sw::FOG_EXP); in SetRenderState()
2810 renderer->setVertexFogMode(sw::FOG_EXP2); in SetRenderState()
2829 renderer->setDiffuseMaterialSource(sw::MATERIAL_MATERIAL); in SetRenderState()
2832 renderer->setDiffuseMaterialSource(sw::MATERIAL_COLOR1); in SetRenderState()
2835 renderer->setDiffuseMaterialSource(sw::MATERIAL_COLOR2); in SetRenderState()
2845 renderer->setSpecularMaterialSource(sw::MATERIAL_MATERIAL); in SetRenderState()
2848 renderer->setSpecularMaterialSource(sw::MATERIAL_COLOR1); in SetRenderState()
2851 renderer->setSpecularMaterialSource(sw::MATERIAL_COLOR2); in SetRenderState()
2861 renderer->setAmbientMaterialSource(sw::MATERIAL_MATERIAL); in SetRenderState()
2864 renderer->setAmbientMaterialSource(sw::MATERIAL_COLOR1); in SetRenderState()
2867 renderer->setAmbientMaterialSource(sw::MATERIAL_COLOR2); in SetRenderState()
2877 renderer->setEmissiveMaterialSource(sw::MATERIAL_MATERIAL); in SetRenderState()
2880 renderer->setEmissiveMaterialSource(sw::MATERIAL_COLOR1); in SetRenderState()
2883 renderer->setEmissiveMaterialSource(sw::MATERIAL_COLOR2); in SetRenderState()
2971 renderer->setBlendOperation(sw::BLENDOP_ADD); in SetRenderState()
2974 renderer->setBlendOperation(sw::BLENDOP_SUB); in SetRenderState()
2977 renderer->setBlendOperation(sw::BLENDOP_INVSUB); in SetRenderState()
2980 renderer->setBlendOperation(sw::BLENDOP_MIN); in SetRenderState()
2983 renderer->setBlendOperation(sw::BLENDOP_MAX); in SetRenderState()
3162 renderer->setStageOperation(stage, sw::TextureStage::STAGE_DISABLE); in SetTextureStageState()
3165 renderer->setStageOperation(stage, sw::TextureStage::STAGE_SELECTARG1); in SetTextureStageState()
3168 renderer->setStageOperation(stage, sw::TextureStage::STAGE_SELECTARG2); in SetTextureStageState()
3171 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATE); in SetTextureStageState()
3174 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATE2X); in SetTextureStageState()
3177 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATE4X); in SetTextureStageState()
3180 renderer->setStageOperation(stage, sw::TextureStage::STAGE_ADD); in SetTextureStageState()
3183 renderer->setStageOperation(stage, sw::TextureStage::STAGE_ADDSIGNED); in SetTextureStageState()
3186 renderer->setStageOperation(stage, sw::TextureStage::STAGE_ADDSIGNED2X); in SetTextureStageState()
3189 renderer->setStageOperation(stage, sw::TextureStage::STAGE_SUBTRACT); in SetTextureStageState()
3192 renderer->setStageOperation(stage, sw::TextureStage::STAGE_ADDSMOOTH); in SetTextureStageState()
3195 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDDIFFUSEALPHA); in SetTextureStageState()
3198 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDTEXTUREALPHA); in SetTextureStageState()
3201 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDFACTORALPHA); in SetTextureStageState()
3204 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDTEXTUREALPHAPM); in SetTextureStageState()
3207 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BLENDCURRENTALPHA); in SetTextureStageState()
3210 renderer->setStageOperation(stage, sw::TextureStage::STAGE_PREMODULATE); in SetTextureStageState()
3213 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATEALPHA_ADDCOLOR); in SetTextureStageState()
3216 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATECOLOR_ADDALPHA); in SetTextureStageState()
3219 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATEINVALPHA_ADDCOLOR); in SetTextureStageState()
3222 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MODULATEINVCOLOR_ADDALPHA); in SetTextureStageState()
3225 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BUMPENVMAP); in SetTextureStageState()
3228 renderer->setStageOperation(stage, sw::TextureStage::STAGE_BUMPENVMAPLUMINANCE); in SetTextureStageState()
3231 renderer->setStageOperation(stage, sw::TextureStage::STAGE_DOT3); in SetTextureStageState()
3234 renderer->setStageOperation(stage, sw::TextureStage::STAGE_MULTIPLYADD); in SetTextureStageState()
3237 renderer->setStageOperation(stage, sw::TextureStage::STAGE_LERP); in SetTextureStageState()
3247 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
3250 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
3253 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
3256 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
3259 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
3262 renderer->setFirstArgument(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
3271 renderer->setFirstModifier(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
3274 renderer->setFirstModifier(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
3277 renderer->setFirstModifier(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
3280 renderer->setFirstModifier(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
3290 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
3293 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
3296 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
3299 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
3302 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
3305 renderer->setSecondArgument(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
3314 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
3317 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
3320 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
3323 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
3333 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_DISABLE); in SetTextureStageState()
3336 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_SELECTARG1); in SetTextureStageState()
3339 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_SELECTARG2); in SetTextureStageState()
3342 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATE); in SetTextureStageState()
3345 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATE2X); in SetTextureStageState()
3348 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATE4X); in SetTextureStageState()
3351 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_ADD); in SetTextureStageState()
3354 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_ADDSIGNED); in SetTextureStageState()
3357 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_ADDSIGNED2X); in SetTextureStageState()
3360 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_SUBTRACT); in SetTextureStageState()
3363 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_ADDSMOOTH); in SetTextureStageState()
3366 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDDIFFUSEALPHA); in SetTextureStageState()
3369 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDTEXTUREALPHA); in SetTextureStageState()
3372 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDFACTORALPHA); in SetTextureStageState()
3375 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDTEXTUREALPHAPM); in SetTextureStageState()
3378 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BLENDCURRENTALPHA); in SetTextureStageState()
3381 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_PREMODULATE); in SetTextureStageState()
3384 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATEALPHA_ADDCOLOR); in SetTextureStageState()
3387 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATECOLOR_ADDALPHA); in SetTextureStageState()
3390 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATEINVALPHA_ADDCOLOR); in SetTextureStageState()
3393 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MODULATEINVCOLOR_ADDALPHA); in SetTextureStageState()
3396 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BUMPENVMAP); in SetTextureStageState()
3399 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_BUMPENVMAPLUMINANCE); in SetTextureStageState()
3402 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_DOT3); in SetTextureStageState()
3405 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_MULTIPLYADD); in SetTextureStageState()
3408 renderer->setStageOperationAlpha(stage, sw::TextureStage::STAGE_LERP); in SetTextureStageState()
3418 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
3421 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
3424 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
3427 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
3430 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
3433 renderer->setFirstArgumentAlpha(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
3442 renderer->setFirstModifierAlpha(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
3445 renderer->setFirstModifierAlpha(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
3448 renderer->setFirstModifierAlpha(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
3451 renderer->setSecondModifier(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
3461 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
3464 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
3467 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
3470 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
3473 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
3476 renderer->setSecondArgumentAlpha(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
3485 renderer->setSecondModifierAlpha(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
3488 renderer->setSecondModifierAlpha(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
3491 renderer->setSecondModifierAlpha(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
3494 renderer->setSecondModifierAlpha(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
3518 renderer->setTexGen(stage, sw::TEXGEN_PASSTHRU); in SetTextureStageState()
3522 renderer->setTexGen(stage, sw::TEXGEN_NORMAL); in SetTextureStageState()
3526 renderer->setTexGen(stage, sw::TEXGEN_POSITION); in SetTextureStageState()
3530 renderer->setTexGen(stage, sw::TEXGEN_REFLECTION); in SetTextureStageState()
3540 renderer->setAddressingModeU(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_WRAP); in SetTextureStageState()
3543 renderer->setAddressingModeU(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_MIRROR); in SetTextureStageState()
3546 renderer->setAddressingModeU(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_CLAMP); in SetTextureStageState()
3549 renderer->setAddressingModeU(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_BORDER); in SetTextureStageState()
3552 renderer->setAddressingModeU(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_MIRRORONCE); in SetTextureStageState()
3562 renderer->setAddressingModeV(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_WRAP); in SetTextureStageState()
3565 renderer->setAddressingModeV(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_MIRROR); in SetTextureStageState()
3568 renderer->setAddressingModeV(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_CLAMP); in SetTextureStageState()
3571 renderer->setAddressingModeV(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_BORDER); in SetTextureStageState()
3574 renderer->setAddressingModeV(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_MIRRORONCE); in SetTextureStageState()
3581 renderer->setBorderColor(sw::SAMPLER_PIXEL, stage, value); in SetTextureStageState()
3588 renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_POINT); in SetTextureStageState()
3591 renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_POINT); in SetTextureStageState()
3594 renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_LINEAR); in SetTextureStageState()
3597 renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_ANISOTROPIC); in SetTextureStageState()
3600 …renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_LINEAR); // NOTE: Unimplemented,… in SetTextureStageState()
3603 …renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_LINEAR); // NOTE: Unimplemented,… in SetTextureStageState()
3614 renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_POINT); in SetTextureStageState()
3617 renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_POINT); in SetTextureStageState()
3620 renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_LINEAR); in SetTextureStageState()
3623 renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_ANISOTROPIC); in SetTextureStageState()
3626 …renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_LINEAR); // NOTE: Unimplemented,… in SetTextureStageState()
3629 …renderer->setTextureFilter(sw::SAMPLER_PIXEL, stage, sw::FILTER_LINEAR); // NOTE: Unimplemented,… in SetTextureStageState()
3639 renderer->setMipmapFilter(sw::SAMPLER_PIXEL, stage, sw::MIPMAP_NONE); in SetTextureStageState()
3642 renderer->setMipmapFilter(sw::SAMPLER_PIXEL, stage, sw::MIPMAP_POINT); in SetTextureStageState()
3645 renderer->setMipmapFilter(sw::SAMPLER_PIXEL, stage, sw::MIPMAP_LINEAR); in SetTextureStageState()
3648 …renderer->setMipmapFilter(sw::SAMPLER_PIXEL, stage, sw::MIPMAP_LINEAR); // NOTE: Unimplemented, … in SetTextureStageState()
3651 …renderer->setMipmapFilter(sw::SAMPLER_PIXEL, stage, sw::MIPMAP_LINEAR); // NOTE: Unimplemented, … in SetTextureStageState()
3654 …renderer->setMipmapFilter(sw::SAMPLER_PIXEL, stage, sw::MIPMAP_LINEAR); // NOTE: Unimplemented, … in SetTextureStageState()
3662 …float LOD = (float&)value - sw::log2((float)context->renderTarget[0]->getSuperSampleCount()); //… in SetTextureStageState()
3663 renderer->setMipmapLOD(sw::SAMPLER_PIXEL, stage, LOD); in SetTextureStageState()
3669 …renderer->setMaxAnisotropy(sw::SAMPLER_PIXEL, stage, sw::clamp((unsigned int)value, (unsigned int)… in SetTextureStageState()
3703 renderer->setAddressingModeW(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_WRAP); in SetTextureStageState()
3706 renderer->setAddressingModeW(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_MIRROR); in SetTextureStageState()
3709 renderer->setAddressingModeW(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_CLAMP); in SetTextureStageState()
3712 renderer->setAddressingModeW(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_BORDER); in SetTextureStageState()
3715 renderer->setAddressingModeW(sw::SAMPLER_PIXEL, stage, sw::ADDRESSING_MIRRORONCE); in SetTextureStageState()
3725 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
3728 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
3731 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
3734 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
3737 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
3740 renderer->setThirdArgument(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
3749 renderer->setThirdModifier(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
3752 renderer->setThirdModifier(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
3755 renderer->setThirdModifier(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
3758 renderer->setThirdModifier(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
3768 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_DIFFUSE); in SetTextureStageState()
3771 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_CURRENT); in SetTextureStageState()
3774 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_TEXTURE); in SetTextureStageState()
3777 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_TFACTOR); in SetTextureStageState()
3780 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_SPECULAR); in SetTextureStageState()
3783 renderer->setThirdArgumentAlpha(stage, sw::TextureStage::SOURCE_TEMP); in SetTextureStageState()
3792 renderer->setThirdModifierAlpha(stage, sw::TextureStage::MODIFIER_COLOR); in SetTextureStageState()
3795 renderer->setThirdModifierAlpha(stage, sw::TextureStage::MODIFIER_INVCOLOR); in SetTextureStageState()
3798 renderer->setThirdModifierAlpha(stage, sw::TextureStage::MODIFIER_ALPHA); in SetTextureStageState()
3801 renderer->setThirdModifierAlpha(stage, sw::TextureStage::MODIFIER_INVALPHA); in SetTextureStageState()
3811 renderer->setDestinationArgument(stage, sw::TextureStage::DESTINATION_CURRENT); in SetTextureStageState()
3814 renderer->setDestinationArgument(stage, sw::TextureStage::DESTINATION_TEMP); in SetTextureStageState()
3845 sw::Matrix M(matrix->_11, matrix->_21, matrix->_31, matrix->_41, in SetTransform()
4364 sw::Resource *resource = stream->getResource(); in bindStreams()
4373 sw::Stream attribute(resource, buffer, stride); in bindStreams()
4378 renderer->setInputStream(sw::Position, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 3)); in bindStreams()
4382 renderer->setInputStream(sw::PositionT, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 4)); in bindStreams()
4386 renderer->setInputStream(sw::Position, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 3)); in bindStreams()
4389 …renderer->setInputStream(sw::BlendWeight, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 1)); //… in bindStreams()
4393 renderer->setInputStream(sw::Position, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 3)); in bindStreams()
4396 …renderer->setInputStream(sw::BlendWeight, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 1)); //… in bindStreams()
4400 renderer->setInputStream(sw::Position, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 3)); in bindStreams()
4403 …renderer->setInputStream(sw::BlendWeight, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 2)); //… in bindStreams()
4407 renderer->setInputStream(sw::Position, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 3)); in bindStreams()
4410 …renderer->setInputStream(sw::BlendWeight, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 3)); //… in bindStreams()
4414 renderer->setInputStream(sw::Position, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 3)); in bindStreams()
4417 …renderer->setInputStream(sw::BlendWeight, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 4)); //… in bindStreams()
4424 …renderer->setInputStream(sw::BlendIndices, attribute.define((char*&)buffer - 4, sw::STREAMTYPE_IND… in bindStreams()
4429 renderer->setInputStream(sw::Normal, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 3)); in bindStreams()
4435 renderer->setInputStream(sw::PointSize, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 1)); in bindStreams()
4441 renderer->setInputStream(sw::Color0, attribute.define(buffer, sw::STREAMTYPE_COLOR, 4)); in bindStreams()
4447 renderer->setInputStream(sw::Color1, attribute.define(buffer, sw::STREAMTYPE_COLOR, 4)); in bindStreams()
4455 …renderer->setInputStream(sw::TexCoord0 + i, attribute.define(buffer, sw::STREAMTYPE_FLOAT, 1 + (1 … in bindStreams()
4464 sw::Resource *resource; in bindStreams()
4522 sw::Stream attribute(resource, buffer, stride); in bindStreams()
4526 case D3DVSDT_FLOAT1: attribute.define(sw::STREAMTYPE_FLOAT, 1); break; in bindStreams()
4527 case D3DVSDT_FLOAT2: attribute.define(sw::STREAMTYPE_FLOAT, 2); break; in bindStreams()
4528 case D3DVSDT_FLOAT3: attribute.define(sw::STREAMTYPE_FLOAT, 3); break; in bindStreams()
4529 case D3DVSDT_FLOAT4: attribute.define(sw::STREAMTYPE_FLOAT, 4); break; in bindStreams()
4530 case D3DVSDT_D3DCOLOR: attribute.define(sw::STREAMTYPE_COLOR, 4); break; in bindStreams()
4531 case D3DVSDT_UBYTE4: attribute.define(sw::STREAMTYPE_BYTE, 4); break; in bindStreams()
4532 case D3DVSDT_SHORT2: attribute.define(sw::STREAMTYPE_SHORT, 2); break; in bindStreams()
4533 case D3DVSDT_SHORT4: attribute.define(sw::STREAMTYPE_SHORT, 4); break; in bindStreams()
4534 default: attribute.define(sw::STREAMTYPE_FLOAT, 0); ASSERT(false); in bindStreams()
4539 case D3DVSDE_POSITION: renderer->setInputStream(sw::Position, attribute); break; in bindStreams()
4540 case D3DVSDE_BLENDWEIGHT: renderer->setInputStream(sw::BlendWeight, attribute); break; in bindStreams()
4541 case D3DVSDE_BLENDINDICES: renderer->setInputStream(sw::BlendIndices, attribute); break; in bindStreams()
4542 case D3DVSDE_NORMAL: renderer->setInputStream(sw::Normal, attribute); break; in bindStreams()
4543 case D3DVSDE_PSIZE: renderer->setInputStream(sw::PointSize, attribute); break; in bindStreams()
4544 case D3DVSDE_DIFFUSE: renderer->setInputStream(sw::Color0, attribute); break; in bindStreams()
4545 case D3DVSDE_SPECULAR: renderer->setInputStream(sw::Color1, attribute); break; in bindStreams()
4546 case D3DVSDE_TEXCOORD0: renderer->setInputStream(sw::TexCoord0, attribute); break; in bindStreams()
4547 case D3DVSDE_TEXCOORD1: renderer->setInputStream(sw::TexCoord1, attribute); break; in bindStreams()
4548 case D3DVSDE_TEXCOORD2: renderer->setInputStream(sw::TexCoord2, attribute); break; in bindStreams()
4549 case D3DVSDE_TEXCOORD3: renderer->setInputStream(sw::TexCoord3, attribute); break; in bindStreams()
4550 case D3DVSDE_TEXCOORD4: renderer->setInputStream(sw::TexCoord4, attribute); break; in bindStreams()
4551 case D3DVSDE_TEXCOORD5: renderer->setInputStream(sw::TexCoord5, attribute); break; in bindStreams()
4552 case D3DVSDE_TEXCOORD6: renderer->setInputStream(sw::TexCoord6, attribute); break; in bindStreams()
4553 case D3DVSDE_TEXCOORD7: renderer->setInputStream(sw::TexCoord7, attribute); break; in bindStreams()
4590 sw::Resource *resource = 0; in bindIndexBuffer()
4622 sw::Point position(l.Position.x, l.Position.y, l.Position.z); in bindLights()
4623 sw::Color<float> diffuse(l.Diffuse.r, l.Diffuse.g, l.Diffuse.b, l.Diffuse.a); in bindLights()
4624 sw::Color<float> specular(l.Specular.r, l.Specular.g, l.Specular.b, l.Specular.a); in bindLights()
4625 sw::Color<float> ambient(l.Ambient.r, l.Ambient.g, l.Ambient.b, l.Ambient.a); in bindLights()
4626 sw::Vector direction(l.Direction.x, l.Direction.y, l.Direction.z); in bindLights()
4683 sw::Viewport view; in bindViewport()
4693 sw::Rect scissor; in bindViewport()
4709 sw::Resource *resource = 0; in bindTextures()
4749 for(int mipmapLevel = 0; mipmapLevel < sw::MIPMAP_LEVELS; mipmapLevel++) in bindTextures()
4768 renderer->setTextureLevel(stage, 0, mipmapLevel, surface, sw::TEXTURE_2D); in bindTextures()
4778 for(int mipmapLevel = 0; mipmapLevel < sw::MIPMAP_LEVELS; mipmapLevel++) in bindTextures()
4797 renderer->setTextureLevel(stage, face, mipmapLevel, surface, sw::TEXTURE_CUBE); in bindTextures()
4806 for(int mipmapLevel = 0; mipmapLevel < sw::MIPMAP_LEVELS; mipmapLevel++) in bindTextures()
4825 renderer->setTextureLevel(stage, 0, mipmapLevel, volume, sw::TEXTURE_3D); in bindTextures()
4835 renderer->setTextureLevel(stage, 0, 0, 0, sw::TEXTURE_NULL); in bindTextures()
4844 sw::FrameBuffer::setCursorImage(cursor); in bindCursor()
4855 sw::FrameBuffer::setCursorImage(0); in bindCursor()