20 INLINE
const ReMutex &GraphicsEngine::
21 get_render_lock()
const {
39 _auto_flip = auto_flip;
45 INLINE
bool GraphicsEngine::
46 get_auto_flip()
const {
58 _portal_enabled = value;
64 INLINE
bool GraphicsEngine::
65 get_portal_cull()
const {
67 return _portal_enabled;
76 _default_loader = loader;
83 INLINE
Loader *GraphicsEngine::
84 get_default_loader()
const {
85 return _default_loader;
93 INLINE
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,
static const FrameBufferProperties & get_default()
Returns a FrameBufferProperties structure with all of the default values filled in according to the u...
set_default_loader
Sets the Loader object that will be assigned to every GSG created with this GraphicsEngine.
get_pipe
Returns the graphics pipe on which this GSG was created.
GraphicsOutput * make_parasite(GraphicsOutput *host, const std::string &name, int sort, int x_size, int y_size)
Syntactic shorthand for make_buffer.
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.
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_auto_flip
Set this flag true to indicate the GraphicsEngine should automatically cause windows to sync and flip...
get_pipe
Returns the GraphicsPipe that this window is associated with.
An object to create GraphicsOutputs that share a particular 3-D API.
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...
GraphicsOutput * make_buffer(GraphicsOutput *host, const std::string &name, int sort, int x_size, int y_size)
Syntactic shorthand for make_output.
Encapsulates all the communication with a particular instance of a given rendering backend.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
get_gsg
Returns the GSG that is associated with this window.