void Draw(List <VertexPositionColorTexture> rawVertices, List <int> rawIndices, Texture2D texture, Size formSize, Vector3 cameraPosition, PrimitiveTopology primitiveType) { var worldViewProj = CameraMatrix(formSize, cameraPosition); worldViewProj.Transpose(); SharpDXHelper.UpdateVertexBuffer(RenderInfo, rawVertices); SharpDXHelper.UpdateIndexBuffer(RenderInfo, rawIndices); SharpDXHelper.UpdateCameraBuffer(RenderInfo, worldViewProj); if (texture != null) { SharpDXHelper.SwitchTexture(RenderInfo, texture); } SharpDXHelper.Draw(RenderInfo, primitiveType); }