public void Draw( World2 transform, IGraphicsContext graphicsContext = null ) { if ( graphicsContext == null ) graphicsContext = Core.GraphicsDevice.ImmediateContext; Matrix4x4 matrix; Effect.Use ( graphicsContext ); //Effect.SetTextures ( textureArgument ); graphicsContext.SetSampler ( 0, textureArgument ); projectionMatrix.OffCenterSize = graphicsContext.CurrentRenderBuffer.Size (); projectionMatrix.GetMatrix ( out matrix ); Effect.SetUniform<Matrix4x4> ( "projectionMatrix", ref matrix ); transform.GetMatrix ( out matrix ); Effect.SetUniform<Matrix4x4> ( "worldMatrix", ref matrix ); graphicsContext.InputAssembler = new InputAssembler ( vertexBuffer, vertexDeclaration, PrimitiveType.TriangleStrip ); graphicsContext.Draw ( 0, 2 ); }