Apply() публичный Метод

public Apply ( ) : void
Результат void
Пример #1
0
        void DrawShadowCaster(ShadowMapEffect effect, Model model)
        {
            // シャドウ マップ エフェクトの準備。
            effect.World = world;
            effect.Apply();

            foreach (var mesh in model.Meshes)
            {
                foreach (var meshPart in mesh.MeshParts)
                {
                    GraphicsDevice.SetVertexBuffer(meshPart.VertexBuffer);
                    GraphicsDevice.Indices = meshPart.IndexBuffer;
                    GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList,
                        meshPart.VertexOffset, 0, meshPart.NumVertices, meshPart.StartIndex, meshPart.PrimitiveCount);
                }
            }
        }