Пример #1
0
    public void Initialize()
    {
        IsReady = true;

        _camera = new Camera(
            wcCenter: Vector2.Zero,
            wcWidth: 10,
            viewport: new Vector4(20, 20, _windowWidth - 40, _windowHeight - 40));

        _camera.BackgroundColor = new Color4(0.905f, 0.850f, 0.752f, 1f);

        _textSystemFont = new FontRenderable("Hello, World!");
        InitText(_textSystemFont, -3, 0, new Color4(0.282f, 0.443f, 0.498f, 1f), 1f);
    }
Пример #2
0
 private void InitText(FontRenderable font, float posX, float posY, Color4 color, float textHeight)
 {
     font.XForm.SetPosition(posX, posY);
     font.Color  = color;
     font.Height = textHeight;
 }