00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 INLINE void GraphicsEngine::
00033 set_auto_flip(bool auto_flip) {
00034
00035
00036 _auto_flip = auto_flip;
00037 }
00038
00039
00040
00041
00042
00043
00044
00045 INLINE bool GraphicsEngine::
00046 get_auto_flip() const {
00047
00048
00049 return _auto_flip;
00050 }
00051
00052
00053
00054
00055
00056
00057
00058 INLINE void GraphicsEngine::
00059 set_portal_cull(bool value) {
00060
00061
00062 _portal_enabled = value;
00063 }
00064
00065
00066
00067
00068
00069
00070 INLINE bool GraphicsEngine::
00071 get_portal_cull() const {
00072
00073
00074 return _portal_enabled;
00075 }
00076
00077
00078
00079
00080
00081
00082
00083
00084 INLINE void GraphicsEngine::
00085 set_default_loader(Loader *loader) {
00086 _default_loader = loader;
00087 }
00088
00089
00090
00091
00092
00093
00094
00095
00096 INLINE Loader *GraphicsEngine::
00097 get_default_loader() const {
00098 return _default_loader;
00099 }
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 INLINE void GraphicsEngine::
00110 close_gsg(GraphicsPipe *pipe, GraphicsStateGuardian *gsg) {
00111 pipe->close_gsg(gsg);
00112 }
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126 INLINE GraphicsOutput *GraphicsEngine::
00127 make_buffer(GraphicsOutput *host, const string &name,
00128 int sort, int x_size, int y_size) {
00129 GraphicsOutput *result = make_output(host->get_pipe(), name, sort,
00130 FrameBufferProperties(),
00131 WindowProperties::size(x_size, y_size),
00132 GraphicsPipe::BF_refuse_window |
00133 GraphicsPipe::BF_fb_props_optional,
00134 host->get_gsg(), host);
00135 return result;
00136 }
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158 INLINE GraphicsOutput *GraphicsEngine::
00159 make_buffer(GraphicsStateGuardian *gsg, const string &name,
00160 int sort, int x_size, int y_size) {
00161 FrameBufferProperties fb_props = FrameBufferProperties::get_default();
00162 fb_props.set_back_buffers(0);
00163 fb_props.set_stereo(0);
00164 fb_props.set_accum_bits(0);
00165 fb_props.set_multisamples(0);
00166 fb_props.set_force_hardware(0);
00167 fb_props.set_force_software(0);
00168 GraphicsOutput *result = make_output(gsg->get_pipe(), name, sort,
00169 fb_props,
00170 WindowProperties::size(x_size, y_size),
00171 GraphicsPipe::BF_refuse_window |
00172 GraphicsPipe::BF_fb_props_optional,
00173 gsg, NULL);
00174 return result;
00175 }
00176
00177
00178
00179
00180
00181
00182 INLINE GraphicsOutput *GraphicsEngine::
00183 make_parasite(GraphicsOutput *host, const string &name,
00184 int sort, int x_size, int y_size) {
00185 GraphicsOutput *result = make_output(host->get_pipe(), name, sort,
00186 FrameBufferProperties(),
00187 WindowProperties::size(x_size, y_size),
00188 GraphicsPipe::BF_require_parasite |
00189 GraphicsPipe::BF_fb_props_optional,
00190 host->get_gsg(), host);
00191 return result;
00192 }