Slim Dx Version 4.0 13.43 !free! <Chrome>

// Draw a sprite var sprite = new Vertex[4] { new Vertex(new Vector3(-0.5f, -0.5f, 0), new Vector2(0, 1)), new Vertex(new Vector3(0.5f, -0.5f, 0), new Vector2(1, 1)), new Vertex(new Vector3(0.5f, 0.5f, 0), new Vector2(1, 0)), new Vertex(new Vector3(-0.5f, 0.5f, 0), new Vector2(0, 0)), };

static void Main(string[] args) { // Create the device and swap chain var windowHandle = System.Windows.Forms.Application.OpenForms[0].Handle; var desc = new SwapChainDescription() { BufferCount = 1, IsWindowed = true, ModeDescription = new ModeDescription(800, 600, new Rational(60, 1), Format.R8G8B8A8_UNorm), OutputHandle = windowHandle, SampleDescription = new SampleDescription(1, 0), Usage = Usage.RenderTargetOutput }; slim dx version 4.0 13.43

Keep in mind that you need to have the Slim DX 4.0 libraries and the DirectX SDK installed to run this code. Also, error checking has been omitted for brevity. // Draw a sprite var sprite = new

Device.CreateWithSwapChain(GraphicsAdapter.Default, DeviceCreationFlags.None, desc, out _device, out _swapChain); new Vertex(new Vector3(0.5f

context.InputAssembler.InputLayout = InputLayout.FromDescription(_device, typeof(Vertex), new[] { new InputElement("POSITION", 0, Format.R32G32B32_Float, 0, 0), new InputElement("TEXCOORD", 0, Format.R32G32_Float, 12, 0) });

using SlimDX; using SlimDX.Direct3D11; using System;