Ejemplo n.º 1
0
 public TextureDecompressor()
 {
     InitializeComponent();
     m_hExtensionTextBox.Text = "txt";
     m_hFolderTextBox.Text    = "OutputDecomp";
     WindowRenderer.Init();
 }
Ejemplo n.º 2
0
 public static void Play(string url = "")
 {
     if (url != "")
     {
         bool initialized = false;
         do
         {
             try {
                 InitUrl(url);
                 WindowRenderer.newIndex();
                 current.bufferedStream = new bufferedStream(current);
                 Stream piss = current.bufferedStream.getStream();
                 streamRead = new StreamMediaFoundationReader(piss, new MediaFoundationReader.MediaFoundationReaderSettings()
                 {
                     SingleReaderObject = true
                 });
                 WaveOut.Init(streamRead);
                 initialized = true;
             }
             catch (Exception e) {
                 Console.WriteLine($"An error occured during initialization of player: {e.Message}");
             }
         }while (!initialized);
     }
     WaveOut.Play();
 }
Ejemplo n.º 3
0
        public Window(int width, int height)
            : base(width, height)
        {
            _border        = Shapes.Box.GetDefaultBox();
            _border.Width  = width;
            _border.Height = height;
            isVisible      = false;

            Renderer = new WindowRenderer();

            IsDirty = true;
            Redraw();
        }
Ejemplo n.º 4
0
 // validate window renderer
 protected override bool ValidateWindowRenderer(WindowRenderer renderer)
 {
     return((renderer as ItemListBaseWindowRenderer) != null);
 }
 /// <summary>
 /// Destroys a window renderer object previously created by us.
 /// </summary>
 /// <param name="wr"></param>
 public abstract void Destroy(WindowRenderer wr);
Ejemplo n.º 6
0
 /// <summary>
 /// validate window renderer
 /// </summary>
 /// <param name="renderer"></param>
 /// <returns></returns>
 protected override bool ValidateWindowRenderer(WindowRenderer renderer)
 {
     return((renderer as TooltipWindowRenderer) != null);
 }
Ejemplo n.º 7
0
 protected override bool ValidateWindowRenderer(WindowRenderer renderer)
 {
     return((renderer as TabControlWindowRenderer) != null);
 }
Ejemplo n.º 8
0
 protected override bool ValidateWindowRenderer(WindowRenderer renderer)
 {
     return((renderer as ScrollablePaneWindowRenderer) != null);
 }