*** empty log message ***

This commit is contained in:
gregw 2001-06-08 22:27:45 +00:00
parent 6be3c950da
commit 6bf7d97db0
2 changed files with 10 additions and 0 deletions

View File

@ -86,6 +86,12 @@ EggTextureCards() : EggWriter(true, true) {
"or \"rgb5\" or \"alpha\". The default is to leave this unspecified.", "or \"rgb5\" or \"alpha\". The default is to leave this unspecified.",
&EggTextureCards::dispatch_format, NULL, &_format); &EggTextureCards::dispatch_format, NULL, &_format);
add_option
("b", "", 0,
"Make the textured polygons backfaced",
&EggTextureCards::dispatch_none, &_apply_bface);
_polygon_geometry.set(-0.5, 0.5, -0.5, 0.5); _polygon_geometry.set(-0.5, 0.5, -0.5, 0.5);
_polygon_color.set(1.0, 1.0, 1.0, 1.0); _polygon_color.set(1.0, 1.0, 1.0, 1.0);
_wrap_mode = EggTexture::WM_unspecified; _wrap_mode = EggTexture::WM_unspecified;
@ -291,6 +297,9 @@ run() {
sub_group->add_child(poly); sub_group->add_child(poly);
poly->set_texture(tref); poly->set_texture(tref);
poly->set_color(_polygon_color); poly->set_color(_polygon_color);
if (_apply_bface){
poly->set_bface_flag(1);
}
poly->add_vertex(v1); poly->add_vertex(v1);
poly->add_vertex(v2); poly->add_vertex(v2);

View File

@ -59,6 +59,7 @@ public:
vector_string _texture_names; vector_string _texture_names;
EggTexture::WrapMode _wrap_mode; EggTexture::WrapMode _wrap_mode;
EggTexture::Format _format; EggTexture::Format _format;
bool _apply_bface;
}; };
#endif #endif