Exemple #1
0
        private void initialize(TexturePool texturePool)
        {
            RasterizerState = RasterizerState.FromDescription(game.Device, new RasterizerStateDescription
            {
                CullMode = CullMode.Back,
                FillMode = FillMode.Solid,
            });

            renderDataFactory = new MeshRenderDataFactory(game, baseShader, texturePool);
        }
 public RendererResourcePool(MeshRenderDataFactory meshFactory, TexturePool texturePool, DX11Game game)
 {
     this.meshFactory = meshFactory;
     this.texturePool = texturePool;
     this.game        = game;
 }