Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions programming/rendering-process/changing-windows.rst
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions programming/rendering-process/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down