diff --git a/programming/rendering-process/changing-windows.rst b/programming/rendering-process/changing-windows.rst new file mode 100644 index 00000000..7b10f1a5 --- /dev/null +++ b/programming/rendering-process/changing-windows.rst @@ -0,0 +1,19 @@ +.. _changing-windows: + +Changing Windows +============================ + +The ``WindowProperties`` class can be used to alter the behavior of existing windows. If "base" is your showbase instance, change properties of your window like this: + +.. only:: python + + .. code-block:: python + from panda3d.core import WindowProperties + # ... + wp = WindowProperties() + wp.setSize(1920),1080) + wp.setFullscreen(True) + wp.setTitle("My Awesome Game") + base.win.requestProperties(wp) + +The API for lists ``WindowProperties`` some other functions for common operations, so if you are doing this, it is worth browsing what is available. diff --git a/programming/rendering-process/index.rst b/programming/rendering-process/index.rst index 2feb696e..d3102866 100644 --- a/programming/rendering-process/index.rst +++ b/programming/rendering-process/index.rst @@ -26,6 +26,7 @@ everything is connected together. introducing-graphics-classes graphics-pipe creating-windows-and-buffers + changing-windows display-regions creating-mouse-watchers clearing-display-regions