Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mention changing window properties in the manual #148

Open
wants to merge 1 commit into
base: 1.10
Choose a base branch
from
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