50 _auto_flip = auto_flip;
76 _portal_enabled = value;
88 return _portal_enabled;
100 _default_loader = loader;
112 return _default_loader;
123 INLINE
void GraphicsEngine::
125 pipe->close_gsg(gsg);
142 int sort,
int x_size,
int y_size) {
146 GraphicsPipe::BF_refuse_window |
147 GraphicsPipe::BF_fb_props_optional,
174 int sort,
int x_size,
int y_size) {
176 fb_props.set_back_buffers(0);
177 fb_props.set_stereo(0);
178 fb_props.set_accum_bits(0);
179 fb_props.set_multisamples(0);
180 fb_props.set_force_hardware(0);
181 fb_props.set_force_software(0);
185 GraphicsPipe::BF_refuse_window |
186 GraphicsPipe::BF_fb_props_optional,
198 int sort,
int x_size,
int y_size) {
202 GraphicsPipe::BF_require_parasite |
203 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...
static WindowProperties size(int x_size, int y_size)
Returns a WindowProperties structure with only the size specified.
A convenient class for loading models from disk, in bam or egg format (or any of a number of other fo...
GraphicsPipe * get_pipe() const
Returns the graphics pipe on which this GSG was created.
void set_portal_cull(bool value)
Set this flag true to indicate the GraphicsEngine should start portal culling.
const ReMutex & get_render_lock() const
Returns a ReMutex object that is held by the GraphicsEngine during the entire call to render_frame()...
GraphicsPipe * get_pipe() const
Returns the GraphicsPipe that this window is associated with.
void set_auto_flip(bool auto_flip)
Set this flag true to indicate the GraphicsEngine should automatically cause windows to sync and flip...
An object to create GraphicsOutputs that share a particular 3-D API.
Loader * get_default_loader() const
Returns the Loader object that will be assigned to every GSG created with this GraphicsEngine.
GraphicsStateGuardian * get_gsg() const
Returns the GSG that is associated with this window.
This is a base class for the various different classes that represent the result of a frame of render...
bool get_auto_flip() const
Returns the current setting for the auto-flip flag.
GraphicsOutput * make_output(GraphicsPipe *pipe, const string &name, int sort, const FrameBufferProperties &fb_prop, const WindowProperties &win_prop, int flags, GraphicsStateGuardian *gsg=NULL, GraphicsOutput *host=NULL)
Creates a new window (or buffer) and returns it.
GraphicsOutput * make_buffer(GraphicsOutput *host, const 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...
void set_default_loader(Loader *loader)
Sets the Loader object that will be assigned to every GSG created with this GraphicsEngine.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
GraphicsOutput * make_parasite(GraphicsOutput *host, const string &name, int sort, int x_size, int y_size)
Syntactic shorthand for make_buffer.
bool get_portal_cull() const
Returns the current setting for the portal culling flag.