public void Initialize(GraphicsDevice graphicsDevice, SystemManagers managers) { SamplerState = SamplerState.LinearClamp; mCamera = new RenderingLibrary.Camera(managers); mLayersReadOnly = new ReadOnlyCollection <Layer>(mLayers); mLayers.Add(new Layer()); mLayers[0].Name = "Main Layer"; mGraphicsDevice = graphicsDevice; spriteRenderer.Initialize(graphicsDevice); mSinglePixelTexture = new Texture2D(mGraphicsDevice, 1, 1, false, SurfaceFormat.Color); Color[] pixels = new Color[1]; pixels[0] = Color.White; mSinglePixelTexture.Name = "Rendering Library Single Pixel Texture"; mSinglePixelTexture.SetData <Color>(pixels); mDottedLineTexture = new Texture2D(mGraphicsDevice, 2, 1, false, SurfaceFormat.Color); pixels = new Color[2]; pixels[0] = Color.White; pixels[1] = Color.Transparent; mDottedLineTexture.SetData <Color>(pixels); mCamera.UpdateClient(); }