Example #1
0
        private void SetupEntity(Technique technique)
        {
            Technique effect            = technique;
            var       shaderInitializer = new ShaderInitializer(Services, technique);

            shaderInitializer.Initialize();

            if (!technique.Mapping.Validate())
            {
                throw new InvalidOperationException(string.Format("[{0}] was not properly initialized.", technique.Name));
            }

            effect.AssembleBuffers();
        }