FuncWorks.XNA.XTiled.Map.InitObjectDrawing C# (CSharp) Method

InitObjectDrawing() public static method

Enables rendering of map objects
public static InitObjectDrawing ( GraphicsDevice graphicsDevice ) : void
graphicsDevice GraphicsDevice The graphics device to us in creating textures to support object rendering
return void
        public static void InitObjectDrawing(GraphicsDevice graphicsDevice)
        {
            Map._whiteTexture = new Texture2D(graphicsDevice, 1, 1, false, SurfaceFormat.Color);
            Map._whiteTexture.SetData(new[] { Color.White });
            Map._enableRendering = true;
        }