FrameBufferProperties
from panda3d.core import FrameBufferProperties
- class FrameBufferProperties
Bases:
DTOOL_SUPER_BASE
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before we create a GSG.
Inheritance diagram
- __init__(*args, **kwargs)
- accum_bits
- addProperties()
C++ Interface: add_properties(const FrameBufferProperties self, const FrameBufferProperties other)
- /**
Sets any properties that are explicitly specified in other on this object.
Leaves other properties unchanged.
*/
- add_properties()
C++ Interface: add_properties(const FrameBufferProperties self, const FrameBufferProperties other)
- /**
Sets any properties that are explicitly specified in other on this object.
Leaves other properties unchanged.
*/
- alpha_bits
- aux_float
- aux_hrgba
- aux_rgba
- back_buffers
- blue_bits
- clear()
C++ Interface: clear(const FrameBufferProperties self)
- /**
Unsets all properties that have been specified so far, and resets the
FrameBufferProperties structure to its initial empty state.
*/
- color_bits
- coverage_samples
- depth_bits
Individual queries.
- float_color
- float_depth
- force_hardware
- force_software
- getAuxMask()
C++ Interface: get_aux_mask(FrameBufferProperties self)
- /**
Converts the aux bitplanes of the framebuffer into a RenderBuffer::Type.
*/
- getBufferMask()
C++ Interface: get_buffer_mask(FrameBufferProperties self)
- /**
Converts the non-aux bitplanes of the framebuffer into a
RenderBuffer::Type.
*/
- getCoverageSamples()
C++ Interface: get_coverage_samples(FrameBufferProperties self)
- /**
If coverage samples are specified, and there is hardware support, we use
coverage multisampling.
*/
- getDefault()
C++ Interface: get_default()
- /**
Returns a FrameBufferProperties structure with all of the default values
filled in according to the user’s config file.
*/
- getDepthBits()
C++ Interface: get_depth_bits(FrameBufferProperties self)
// Individual queries.
// Individual queries.
- /**
*/
- getQuality()
C++ Interface: get_quality(FrameBufferProperties self, const FrameBufferProperties reqs)
- /**
Assumes that these properties are a description of a window.
Measures how well this window satisfies a specified set of requirements. A
higher quality number means that more requirements were satisfied. A
quality of zero means that the window is unsuitable.
The routine deducts a lot if the window fails to provide a requested
feature. It deducts less if the window provides a feature, but at a
degraded level of functionality (ie, the user asks for rgba8, color, but
the window only provides rgba4). The routine also deducts a small amount
for unnecessary features. For example, if the window has an accumulation
buffer when one is not requested will reduce quality slightly. Maximum
quality is obtained when the window exactly matches the request.
If you want to know whether the window satisfies all of the requirements,
use the “subsumes” function.
*/
- get_aux_mask()
C++ Interface: get_aux_mask(FrameBufferProperties self)
- /**
Converts the aux bitplanes of the framebuffer into a RenderBuffer::Type.
*/
- get_buffer_mask()
C++ Interface: get_buffer_mask(FrameBufferProperties self)
- /**
Converts the non-aux bitplanes of the framebuffer into a
RenderBuffer::Type.
*/
- get_coverage_samples()
C++ Interface: get_coverage_samples(FrameBufferProperties self)
- /**
If coverage samples are specified, and there is hardware support, we use
coverage multisampling.
*/
- get_default()
C++ Interface: get_default()
- /**
Returns a FrameBufferProperties structure with all of the default values
filled in according to the user’s config file.
*/
- get_depth_bits()
C++ Interface: get_depth_bits(FrameBufferProperties self)
// Individual queries.
// Individual queries.
- /**
*/
- get_quality()
C++ Interface: get_quality(FrameBufferProperties self, const FrameBufferProperties reqs)
- /**
Assumes that these properties are a description of a window.
Measures how well this window satisfies a specified set of requirements. A
higher quality number means that more requirements were satisfied. A
quality of zero means that the window is unsuitable.
The routine deducts a lot if the window fails to provide a requested
feature. It deducts less if the window provides a feature, but at a
degraded level of functionality (ie, the user asks for rgba8, color, but
the window only provides rgba4). The routine also deducts a small amount
for unnecessary features. For example, if the window has an accumulation
buffer when one is not requested will reduce quality slightly. Maximum
quality is obtained when the window exactly matches the request.
If you want to know whether the window satisfies all of the requirements,
use the “subsumes” function.
*/
- green_bits
- indexed_color
- isAnySpecified()
C++ Interface: is_any_specified(FrameBufferProperties self)
- /**
Returns true if any properties have been specified, false otherwise.
*/
- isBasic()
C++ Interface: is_basic(FrameBufferProperties self)
- /**
Returns true if the properties are extremely basic. The following count as
basic: rgb or rgba, depth. If anything else is specified, the properties
are non-basic.
*/
- is_any_specified()
C++ Interface: is_any_specified(FrameBufferProperties self)
- /**
Returns true if any properties have been specified, false otherwise.
*/
- is_basic()
C++ Interface: is_basic(FrameBufferProperties self)
- /**
Returns true if the properties are extremely basic. The following count as
basic: rgb or rgba, depth. If anything else is specified, the properties
are non-basic.
*/
- multisamples
- output()
C++ Interface: output(FrameBufferProperties self, ostream out)
- /**
Generates a string representation.
*/
- red_bits
- rgb_color
- setAllSpecified()
C++ Interface: set_all_specified(const FrameBufferProperties self)
- /**
Marks all bits as having been specified.
*/
- setColorBits()
C++ Interface: set_color_bits(const FrameBufferProperties self, int n)
- /**
Sets the number of requested color bits as a single number that represents
the sum of the individual numbers of red, green and blue bits. Panda won’t
care how the individual bits are divided up.
See also set_rgba_bits, which allows you to specify requirements for the
individual components.
*/
- setCoverageSamples()
C++ Interface: set_coverage_samples(const FrameBufferProperties self, int n)
- /**
If coverage samples are specified, and there is hardware support, we use
coverage multisampling
*/
- setDepthBits()
C++ Interface: set_depth_bits(const FrameBufferProperties self, int n)
// Individual assigners.
// Individual assigners.
- /**
*/
- setForceHardware()
C++ Interface: set_force_hardware(const FrameBufferProperties self, bool n)
- /**
*/
- setForceSoftware()
C++ Interface: set_force_software(const FrameBufferProperties self, bool n)
- /**
*/
- setIndexedColor()
C++ Interface: set_indexed_color(const FrameBufferProperties self, bool n)
- /**
*/
- setOneBitPerChannel()
C++ Interface: set_one_bit_per_channel(const FrameBufferProperties self)
- /**
If any of the depth, color, alpha, accum, or stencil properties is set to
more than one, then they are reduced to one.
*/
- setRgbaBits()
C++ Interface: set_rgba_bits(const FrameBufferProperties self, int r, int g, int b, int a)
- /**
Convenience method for setting the red, green, blue and alpha bits in one
go.
*/
- set_all_specified()
C++ Interface: set_all_specified(const FrameBufferProperties self)
- /**
Marks all bits as having been specified.
*/
- set_color_bits()
C++ Interface: set_color_bits(const FrameBufferProperties self, int n)
- /**
Sets the number of requested color bits as a single number that represents
the sum of the individual numbers of red, green and blue bits. Panda won’t
care how the individual bits are divided up.
See also set_rgba_bits, which allows you to specify requirements for the
individual components.
*/
- set_coverage_samples()
C++ Interface: set_coverage_samples(const FrameBufferProperties self, int n)
- /**
If coverage samples are specified, and there is hardware support, we use
coverage multisampling
*/
- set_depth_bits()
C++ Interface: set_depth_bits(const FrameBufferProperties self, int n)
// Individual assigners.
// Individual assigners.
- /**
*/
- set_force_hardware()
C++ Interface: set_force_hardware(const FrameBufferProperties self, bool n)
- /**
*/
- set_force_software()
C++ Interface: set_force_software(const FrameBufferProperties self, bool n)
- /**
*/
- set_indexed_color()
C++ Interface: set_indexed_color(const FrameBufferProperties self, bool n)
- /**
*/
- set_one_bit_per_channel()
C++ Interface: set_one_bit_per_channel(const FrameBufferProperties self)
- /**
If any of the depth, color, alpha, accum, or stencil properties is set to
more than one, then they are reduced to one.
*/
- set_rgba_bits()
C++ Interface: set_rgba_bits(const FrameBufferProperties self, int r, int g, int b, int a)
- /**
Convenience method for setting the red, green, blue and alpha bits in one
go.
*/
- setupColorTexture()
C++ Interface: setup_color_texture(FrameBufferProperties self, Texture tex)
- /**
Sets the texture up for render-to-texture matching these framebuffer
properties.
Returns true if there was a format that had enough bits, false otherwise.
Of course, this is no guarantee that a particular graphics back-end
supports rendering to textures of that format.
*/
- setupDepthTexture()
C++ Interface: setup_depth_texture(FrameBufferProperties self, Texture tex)
- /**
Sets the texture up for render-to-texture matching these framebuffer
properties.
Returns true if there was a format that had enough bits, false otherwise.
Of course, this is no guarantee that a particular graphics back-end
supports rendering to textures of that format.
*/
- setup_color_texture()
C++ Interface: setup_color_texture(FrameBufferProperties self, Texture tex)
- /**
Sets the texture up for render-to-texture matching these framebuffer
properties.
Returns true if there was a format that had enough bits, false otherwise.
Of course, this is no guarantee that a particular graphics back-end
supports rendering to textures of that format.
*/
- setup_depth_texture()
C++ Interface: setup_depth_texture(FrameBufferProperties self, Texture tex)
- /**
Sets the texture up for render-to-texture matching these framebuffer
properties.
Returns true if there was a format that had enough bits, false otherwise.
Of course, this is no guarantee that a particular graphics back-end
supports rendering to textures of that format.
*/
- srgb_color
- stencil_bits
- stereo
- subsumes()
C++ Interface: subsumes(FrameBufferProperties self, const FrameBufferProperties other)
- /**
Returns true if this set of properties makes strictly greater or equal
demands of the framebuffer than the other set of framebuffer properties.
*/