Beispiel #1
0
        public void CreateBuffer()
        {
            Body = new DigitalComponent(Shader)
            {
                PinsCount = 1,
                Delta     = Delta,
                Position  = new Vector2(X, Y)
            };
            Body.CreateBuffer();

            for (int i = 0; i < Word.Length; i++)
            {
                var letter = Word[i];
                var glyph  = new Glyph7x5(letter, new Vector2(X + Delta * (2 + i), Y + Delta * 0.4f), Shader);
                GlyphWord.Add(glyph);
            }
            MemoryGlyph = new Glyph7x5('0', new Vector2(X + Delta * 2.5f, Y + Delta * 2.0f), Shader);

            Visuals.Add(MemoryGlyph);
            Visuals.Add(Body);
            Visuals.AddRange(GlyphWord);
        }