mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 22:05:40 +00:00
Removed old fixed function code from GFX.
This commit is contained in:
parent
58d2e30af7
commit
5a933c00d3
53 changed files with 98 additions and 1646 deletions
|
|
@ -68,14 +68,11 @@ bool GuiTerrPreviewCtrl::onAdd()
|
|||
desc.samplersDefined = true;
|
||||
desc.samplers[0].addressModeU = GFXAddressWrap;
|
||||
desc.samplers[0].addressModeV = GFXAddressWrap;
|
||||
desc.samplers[0].textureColorOp = GFXTOPSelectARG1;
|
||||
desc.samplers[0].colorArg1 = GFXTATexture;
|
||||
desc.setCullMode(GFXCullNone);
|
||||
desc.setZReadWrite(false);
|
||||
|
||||
mTerrainBitmapStateBlock = GFX->createStateBlock(desc);
|
||||
|
||||
desc.samplers[0].textureColorOp = GFXTOPDisable;
|
||||
|
||||
mControlsStateBlock = GFX->createStateBlock(desc);
|
||||
|
||||
|
|
|
|||
|
|
@ -1339,7 +1339,7 @@ void TerrainEditor::renderPoints( const Vector<GFXVertexPCT> &pointList )
|
|||
|
||||
while ( vertsLeft > 0 )
|
||||
{
|
||||
U32 vertsThisDrawCall = getMin( (U32)vertsLeft, (U32)MAX_DYNAMIC_VERTS );
|
||||
U32 vertsThisDrawCall = getMin( (U32)vertsLeft, (U32)GFX_MAX_DYNAMIC_VERTS );
|
||||
vertsLeft -= vertsThisDrawCall;
|
||||
|
||||
GFXVertexBufferHandle<GFXVertexPCT> vbuff( GFX, vertsThisDrawCall, GFXBufferTypeVolatile );
|
||||
|
|
|
|||
|
|
@ -1500,7 +1500,6 @@ void WorldEditor::renderSplinePath(SimPath::Path *path)
|
|||
desc.setCullMode( GFXCullNone );
|
||||
desc.setBlend( true, GFXBlendSrcAlpha, GFXBlendInvSrcAlpha);
|
||||
desc.samplersDefined = true;
|
||||
desc.samplers[0].textureColorOp = GFXTOPDisable;
|
||||
|
||||
mSplineSB = GFX->createStateBlock( desc );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue