示例#1
0
        private void PrepareApply(GraphicsDevice graphicsDevice)
        {
            if (graphicsDevice == null)
            {
                throw new ArgumentNullException("graphicsDevice");
            }

            program.Apply(graphicsDevice);
            graphicsDevice.CurrentEffect = this;
            graphicsDevice.ApplyPlatformSpecificParams(this);
        }