Panda3D

Loading...
Searching...
No Matches
Functions
graphicsOutput.I File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

Go to the source code of this file.

## Functions
| PT (Texture) GraphicsOutput
| Captures the most-recently rendered image from the framebuffer and returns it as Texture, or NULL on failure.

## Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
  drose

Date
  2004-02-06

Definition in file graphicsOutput.I.

## Function Documentation

## ◆ PT()

PT | ( | Texture |  | ) |
| inline

Captures the most-recently rendered image from the framebuffer and returns it as Texture, or NULL on failure.

This method is called after each texture has been loaded from disk, via the TexturePool, for the first time.

Invokes post_load() on all registered filters.

Invokes pre_load() on all registered filters until one returns non-NULL; returns NULL if there are no registered filters or if all registered filters returned NULL.

By the time this method is called, the Texture has already been fully read from disk. This method should return the Texture pointer that the TexturePool should actually return (usually it is the same as the pointer supplied).

Definition at line 643 of file graphicsOutput.I.