ME3Explorer.Unreal.Classes.BrushComponent.Render C# (CSharp) Method

Render() public method

public Render ( Device device ) : void
device Device
return void
        public void Render(Device device)
        {
            device.VertexFormat = CustomVertex.PositionColored.Format;
            device.RenderState.Lighting = false;
            if(isSelected)
                device.RenderState.FillMode = FillMode.Solid;
            else
                device.RenderState.FillMode = FillMode.WireFrame;
            device.DrawUserPrimitives(PrimitiveType.TriangleList, 12, BrushMesh);
        }

Usage Example

Example #1
0
 public void Render(Device device)
 {
     device.Transform.World = MyMatrix;
     if (brush != null)
     {
         brush.Render(device);
     }
 }
All Usage Examples Of ME3Explorer.Unreal.Classes.BrushComponent::Render