Browse Source

display: document make_texture_buffer() behavior when size is 0

Fixes panda3d/panda3d-docs#100
rdb 4 years ago
parent
commit
57d7bc2f53
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/display/graphicsOutput.cxx

+ 3 - 0
panda/src/display/graphicsOutput.cxx

@@ -834,6 +834,9 @@ get_active_display_region(int n) const {
  * which will be a texture suitable for applying to geometry within the scene
  * which will be a texture suitable for applying to geometry within the scene
  * rendered into this window.
  * rendered into this window.
  *
  *
+ * If you pass zero as the buffer size, the buffer will have the same size as
+ * the host window, and will automatically be resized when the host window is.
+ *
  * If tex is not NULL, it is the texture that will be set up for rendering
  * If tex is not NULL, it is the texture that will be set up for rendering
  * into; otherwise, a new Texture object will be created.  In either case, the
  * into; otherwise, a new Texture object will be created.  In either case, the
  * target texture can be retrieved from the return value with
  * target texture can be retrieved from the return value with