39 _auto_flip = auto_flip;
58 _portal_enabled = value;
67 return _portal_enabled;
76 _default_loader = loader;
85 return _default_loader;
93INLINE
void GraphicsEngine::
108 int sort,
int x_size,
int y_size) {
112 GraphicsPipe::BF_refuse_window |
113 GraphicsPipe::BF_fb_props_optional,
134 int sort,
int x_size,
int y_size) {
136 fb_props.set_back_buffers(0);
137 fb_props.set_stereo(0);
138 fb_props.set_accum_bits(0);
139 fb_props.set_multisamples(0);
140 fb_props.set_force_hardware(0);
141 fb_props.set_force_software(0);
145 GraphicsPipe::BF_refuse_window |
146 GraphicsPipe::BF_fb_props_optional,
156 int sort,
int x_size,
int y_size) {
160 GraphicsPipe::BF_require_parasite |
161 GraphicsPipe::BF_fb_props_optional,
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
static const FrameBufferProperties & get_default()
Returns a FrameBufferProperties structure with all of the default values filled in according to the u...
get_portal_cull
Returns the current setting for the portal culling flag.
GraphicsOutput * make_parasite(GraphicsOutput *host, const std::string &name, int sort, int x_size, int y_size)
Syntactic shorthand for make_buffer.
set_default_loader
Sets the Loader object that will be assigned to every GSG created with this GraphicsEngine.
get_default_loader
Returns the Loader object that will be assigned to every GSG created with this GraphicsEngine.
get_render_lock
Returns a ReMutex object that is held by the GraphicsEngine during the entire call to render_frame().
GraphicsOutput * make_buffer(GraphicsOutput *host, const std::string &name, int sort, int x_size, int y_size)
Syntactic shorthand for make_output.
get_auto_flip
Returns the current setting for the auto-flip flag.
set_auto_flip
Set this flag true to indicate the GraphicsEngine should automatically cause windows to sync and flip...
GraphicsOutput * make_output(GraphicsPipe *pipe, const std::string &name, int sort, const FrameBufferProperties &fb_prop, const WindowProperties &win_prop, int flags, GraphicsStateGuardian *gsg=nullptr, GraphicsOutput *host=nullptr)
Creates a new window (or buffer) and returns it.
set_portal_cull
Set this flag true to indicate the GraphicsEngine should start portal culling.
This is a base class for the various different classes that represent the result of a frame of render...
get_pipe
Returns the GraphicsPipe that this window is associated with.
get_gsg
Returns the GSG that is associated with this window.
An object to create GraphicsOutputs that share a particular 3-D API.
Encapsulates all the communication with a particular instance of a given rendering backend.
get_pipe
Returns the graphics pipe on which this GSG was created.
A convenient class for loading models from disk, in bam or egg format (or any of a number of other fo...
static WindowProperties size(const LVecBase2i &size)
Returns a WindowProperties structure with only the size specified.