示例#1
0
 /// <summary>
 ///     Closes the GameWindow with a call to opentk.
 /// </summary>
 public void CloseGameWindow()
 {
     CanvasImplementor.CloseGameWindow();
 }
示例#2
0
        /*
         * /// <summary>
         * ///     Sets the data for a video wall.
         * /// </summary>
         * /// <param name="monitorsHor">Monitor count on horizontal axis.</param>
         * /// <param name="monitorsVert">Monitor count on vertical axis.</param>
         * /// <param name="activate">Activate or deactivate videoWall mode.</param>
         * /// <param name="borderHidden">Activate or deactivate videoWall mode.</param>
         * public void VideoWall(int monitorsHor, int monitorsVert, bool activate = true, bool borderHidden = true)
         * {
         *  CanvasImplementor.VideoWall(monitorsHor, monitorsVert, activate, borderHidden);
         * }
         */

        /// <summary>
        ///     Sets the size of the output window for desktop development.
        /// </summary>
        /// <param name="width">The width of the window.</param>
        /// <param name="height">The height of the window.</param>
        /// <param name="posx">The x position of the window.</param>
        /// <param name="posy">The y position of the window.</param>
        /// <param name="borderHidden">Show the window border or not.</param>
        public void SetWindowSize(int width, int height, int posx = -1, int posy = -1, bool borderHidden = false)
        {
            CanvasImplementor.SetWindowSize(width, height, posx, posy, borderHidden);
        }
示例#3
0
 /// <summary>
 ///     Presents the contents of the backbuffer on the visible part of this render canvas.
 /// </summary>
 /// <remarks>
 ///     Call this method from your rendering code implementation <see cref="RenderAFrame" /> after rendering geometry on
 ///     the rendering context.
 /// </remarks>
 public void Present()
 {
     CanvasImplementor.Present();
 }
示例#4
0
 /// <summary>
 ///     Runs this instance.
 /// </summary>
 /// <remarks>
 ///     Users should call this method of their RenderCanvas instance to start the application. The RenderCanvas will then
 ///     do all
 ///     necessary initialization, call the Init method and enter the application main loop.
 /// </remarks>
 public void Run()
 {
     InitCanvas();
     CanvasImplementor.Run();
 }
示例#5
0
 /// <summary>
 ///     Opens the given URL in the user's standard web browser. The link MUST start with "http://".
 /// </summary>
 /// <param name="link">The URL to open</param>
 public void OpenLink(string link)
 {
     CanvasImplementor.OpenLink(link);
 }
示例#6
0
 /// <summary>
 ///     Set the cursor (the mouse pointer image) to one of the pre-defined types
 /// </summary>
 /// <param name="cursorType">The type of the cursor to set.</param>
 public void SetCursor(CursorType cursorType)
 {
     CanvasImplementor.SetCursor(cursorType);
 }