17 INLINE EggRenderMode::
28 _depth_write_mode = mode;
37 return _depth_write_mode;
47 _depth_test_mode = mode;
56 return _depth_test_mode;
67 _visibility_mode = mode;
76 return _visibility_mode;
109 _depth_offset = order;
110 _has_depth_offset =
true;
120 return _depth_offset;
129 return _has_depth_offset;
138 _has_depth_offset =
false;
151 _has_draw_order =
true;
169 return _has_draw_order;
178 _has_draw_order =
false;
208 return !_bin.empty();
217 _bin = std::string();
223 INLINE
bool EggRenderMode::
225 return !(*
this == other);
AlphaMode get_alpha_mode() const
Returns the alpha mode that was set, or AM_unspecified if nothing was set.
VisibilityMode get_visibility_mode() const
Returns the visibility mode that was set, or VM_unspecified if nothing was set.
void set_depth_test_mode(DepthTestMode mode)
Specifies whether this geometry should be tested against the depth buffer when it is drawn (assuming ...
void clear_depth_offset()
Removes the depth-offset flag from this particular object.
bool has_bin() const
Returns true if a bin name has been set for this particular object.
std::string get_bin() const
Returns the bin name that has been set for this particular object, if any.
void set_depth_write_mode(DepthWriteMode mode)
Specifies whether writes should be made to the depth buffer (assuming the rendering backend provides ...
int get_draw_order() const
Returns the "draw-order" flag as set for this particular object.
void clear_draw_order()
Removes the draw-order flag from this particular object.
void set_depth_offset(int bias)
Sets the "depth-offset" flag associated with this object.
DepthWriteMode get_depth_write_mode() const
Returns the depth_write mode that was set, or DWM_unspecified if nothing was set.
void set_bin(const std::string &bin)
Sets the "bin" string for this particular object.
This class stores miscellaneous rendering properties that is associated with geometry,...
void clear_bin()
Removes the bin name that was set for this particular object.
void set_draw_order(int order)
Sets the "draw-order" flag associated with this object.
void set_alpha_mode(AlphaMode mode)
Specifies precisely how the transparency for this geometry should be achieved, or if it should be use...
void set_visibility_mode(VisibilityMode mode)
Specifies whether this geometry is to be considered normally visible, or hidden.
bool has_draw_order() const
Returns true if the draw-order flag has been set for this particular object.
bool has_depth_offset() const
Returns true if the depth-offset flag has been set for this particular object.
int get_depth_offset() const
Returns the "depth-offset" flag as set for this particular object.
DepthTestMode get_depth_test_mode() const
Returns the depth_test mode that was set, or DTM_unspecified if nothing was set.