FuncWorks.XNA.XTiled.Map.InitObjectDrawing C# (CSharp) 메소드

InitObjectDrawing() 공개 정적인 메소드

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
리턴 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;
        }