void Start()
 {
     display = new FrameDisplay();
     InitTexture();
     GameObject.Find("firstFrame").GetComponent <RawImage>().texture  = display.getTextures().Item1;
     GameObject.Find("secondFrame").GetComponent <RawImage>().texture = display.getTextures().Item2;
     _ready = true;
 }
 void Start()
 {
     display = new FrameDisplay();
     errorMessagePanel.GetComponentInChildren <TextMeshProUGUI>().SetText("Trwa wstępne sprawdzanie poprawności zdjęć");
     errorMessagePanel.gameObject.SetActive(true);
     errorMessagePanel.GetComponentInChildren <Button>().gameObject.SetActive(false);
     startFrameCheckThread();
 }
Esempio n. 3
0
 /// <summary>
 /// New debug frame
 /// </summary>
 /// <param name="game">Game to hold this frame</param>
 /// <param name="position">Frame Position</param>
 /// <param name="display">What you to be displayed</param>
 /// <param name="fontColor">Text color</param>
 public DebugFrame(Game game, Vector2 position, FrameDisplay display, Color fontColor)
     : base(game)
 {
     _FPS = new FrameRateCounter(game);
     _FPS.Position = position;
     _FPS.Font.TextColor = fontColor;
     _Display = display;
     DrawOrder = int.MaxValue;
     game.Components.Add(this);
 }
Esempio n. 4
0
    protected void initializeScene()
    {
        OpenCVInterop.setExpectedNumberOfMarkerPairs(expectedNumberOfMarkerPairs);
        display = new FrameDisplay();
        InitTexture();
        var textures = display.getTextures();

        firstFrame.texture  = textures.Item1;
        secondFrame.texture = textures.Item2;
        _balls = new CvCoordinates[expectedNumberOfMarkerPairs]; //tworzymy bufor o podanej wielkoœci
    }
Esempio n. 5
0
        void ReleaseDesignerOutlets()
        {
            if (FrameDisplay != null)
            {
                FrameDisplay.Dispose();
                FrameDisplay = null;
            }

            if (StartButton != null)
            {
                StartButton.Dispose();
                StartButton = null;
            }
        }