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