An object to create
GraphicsOutputsthat share a particular 3-D API. Normally, there will only be one GraphicsPipe in an application, although it is possible to have multiple of these at once if there are multiple different API’s available in the same machine.
Often, the GraphicsPipe corresponds to a physical output device, hence the term “pipe”, but this is not necessarily the case.
The GraphicsPipe is used by the
GraphicsEngineobject to create and destroy windows; it keeps ownership of the windows it creates.
M. Asad added new/interim functionality where GraphicsPipe now contains a device interface to directx/opengl which will be used to handle multiple windows from same device.
enumerator BF_refuse_parasite = 1¶
Flags that control what type of output is returned.
enumerator BF_require_parasite = 2¶
enumerator BF_refuse_window = 4¶
enumerator BF_require_window = 8¶
enumerator BF_require_callback_window = 16¶
enumerator BF_can_bind_color = 64¶
Need capability: bind the color bitplane to a tex.
enumerator BF_can_bind_every = 128¶
Need capability: bind all bitplanes to a tex.
enumerator BF_resizeable = 256¶
Buffer should allow set_size.
enumerator BF_size_track_host = 512¶
Buffer should track the host size.
enumerator BF_rtt_cumulative = 1024¶
Buffer supports cumulative render-to-texture.
enumerator BF_fb_props_optional = 2048¶
FrameBufferProperties can be ignored.
enumerator BF_size_square = 4096¶
x_size must equal y_size (e.g. for cube maps)
enumerator BF_size_power_2 = 8192¶
x_size and y_size must each be a power of two
enumerator BF_can_bind_layered = 16384¶
Need capability: support RTM_bind_layered.
- enumerator BF_refuse_parasite = 1¶
enumerator OT_window = 1¶
enumerator OT_fullscreen_window = 2¶
enumerator OT_buffer = 4¶
enumerator OT_texture_buffer = 8¶
- enumerator OT_window = 1¶
int get_display_height(void) const¶
Returns the height of the entire display, if it is known. This may return 0. See the caveats for
int get_display_width(void) const¶
Returns the width of the entire display, if it is known. This may return 0. This is not a guarantee that windows (particularly fullscreen windows) may not be created larger than this width, but it is intended to provide a hint to the application.
PN_stdfloat get_display_zoom(void) const¶
Returns the display zoom factor configured in the operating system. If the operating system automatically scales windows to match the DPI (such as when dpi-aware is set to false), this will be 1.0. Otherwise, this will be set to a value approximating the density of the monitor divided by the standard density of the operating system (usually 96), yielding a value like 1.5 or 2.0.
New in version 1.10.8.
virtual std::string get_interface_name(void) const = 0¶
int get_supported_types(void) const¶
Returns the mask of bits that represents the kinds of
GraphicsOutputobjects this pipe might be able to successfully create. The return value is the union of bits in
GraphicsPipe::OutputTypesthat represents the set of
A 1 bit in a particular position is not a guarantee of success, but a 0 bit is a guarantee of failure.
bool is_valid(void) const¶
Returns false if this pipe is known to be invalid, meaning that an attempt to create a
GraphicsWindowwith the pipe will certainly fail. Returns true if the pipe is probably valid (is this case, an attempt to create a
GraphicsWindowshould succeed, but might still fail).
virtual void lookup_cpu_data(void)¶
Looks up the detailed CPU information and stores it in _display_information, if supported by the OS. This may take a second or two.
bool supports_type(int flags) const¶
A convenience function to ask if a particular type or types of GraphicsObjects are supported. The parameter is a union of one or more bits defined in GrpahicsPipe::OutputTypes.
Returns true if all of the requested types are listed in the supported_types mask, false if any one of them is not. This is not a guarantee that the indicated output type will successfully be created when it is attempted.
- enum BufferCreationFlags¶