Beispiel #1
0
        private RenderBank <VertexPositionNormalTexture> GetBank(string imageName)
        {
            if (!_workingBanks.ContainsKey(imageName))
            {
                _workingBanks[imageName] = new RenderBank <VertexPositionNormalTexture>();
            }

            return(_workingBanks[imageName]);
        }
Beispiel #2
0
        public static void Initialize(GraphicsDevice device)
        {
            _device = device;

            _rectangles       = new RenderBank <VertexPositionColorTexture>();
            _rectanglesFilled = new RenderBank <VertexPositionColorTexture>();

            _rectangleEffect = new BasicEffect(_device);

            FontManager.Initialize(device);
        }