Slim Dx Version 4.0 13.43 ((install)) -

using SlimDX; using SlimDX.Direct3D11; using System;

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

public Vertex(Vector3 position, Vector2 texCoord) { Position = position; TexCoord = texCoord; } } } This example creates a window, loads a texture, and renders a sprite using the texture. Make sure to replace "texture.png" with the path to your own texture file. using SlimDX; using SlimDX

context.PixelShader.SetShaderResource(0, _textureView); context.Draw(4, 0); IsWindowed = true

Slim DX version 4.0!

struct Vertex { public Vector3 Position; public Vector2 TexCoord;