mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
Add default-antialias-enable configuration variable
This commit is contained in:
parent
e461c21c56
commit
a003a73c3f
@ -35,7 +35,7 @@ int AntialiasAttrib::_attrib_slot;
|
|||||||
// M_faster to specify a performance/quality tradeoff
|
// M_faster to specify a performance/quality tradeoff
|
||||||
// hint.
|
// hint.
|
||||||
//
|
//
|
||||||
// If M_none is specified, no antialiasing is performed.
|
// If M_none is specified, no antialiasing is performed.
|
||||||
//
|
//
|
||||||
// If M_multisample is specified, it means to use the
|
// If M_multisample is specified, it means to use the
|
||||||
// special framebuffer multisample bits for
|
// special framebuffer multisample bits for
|
||||||
@ -74,18 +74,22 @@ make(unsigned short mode) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
CPT(RenderAttrib) AntialiasAttrib::
|
CPT(RenderAttrib) AntialiasAttrib::
|
||||||
make_default() {
|
make_default() {
|
||||||
return return_new(new AntialiasAttrib(M_none));
|
if (default_antialias_enable) {
|
||||||
|
return return_new(new AntialiasAttrib(M_auto));
|
||||||
|
} else {
|
||||||
|
return return_new(new AntialiasAttrib(M_none));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: AntialiasAttrib::output
|
// Function: AntialiasAttrib::output
|
||||||
// Access: Public, Virtual
|
// Access: Public, Virtual
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void AntialiasAttrib::
|
void AntialiasAttrib::
|
||||||
output(ostream &out) const {
|
output(ostream &out) const {
|
||||||
out << get_type() << ":";
|
out << get_type() << ":";
|
||||||
|
|
||||||
int type = get_mode_type();
|
int type = get_mode_type();
|
||||||
char sep = ' ';
|
char sep = ' ';
|
||||||
|
|
||||||
|
@ -305,6 +305,11 @@ ConfigVariableInt max_lenses
|
|||||||
"this can be used as a simple sanity check. Set it larger or "
|
"this can be used as a simple sanity check. Set it larger or "
|
||||||
"smaller to suit your needs."));
|
"smaller to suit your needs."));
|
||||||
|
|
||||||
|
ConfigVariableBool default_antialias_enable
|
||||||
|
("default-antialias-enable", false,
|
||||||
|
PRC_DESC("Set this true to enable the M_auto antialiasing mode for all "
|
||||||
|
"nodes by default."));
|
||||||
|
|
||||||
ConfigVariableBool polylight_info
|
ConfigVariableBool polylight_info
|
||||||
("polylight-info", false,
|
("polylight-info", false,
|
||||||
PRC_DESC("Set this true to view some info statements regarding the polylight. "
|
PRC_DESC("Set this true to view some info statements regarding the polylight. "
|
||||||
|
@ -58,6 +58,7 @@ extern EXPCL_PANDA_PGRAPH ConfigVariableBool premunge_data;
|
|||||||
extern ConfigVariableBool preserve_geom_nodes;
|
extern ConfigVariableBool preserve_geom_nodes;
|
||||||
extern ConfigVariableBool flatten_geoms;
|
extern ConfigVariableBool flatten_geoms;
|
||||||
extern EXPCL_PANDA_PGRAPH ConfigVariableInt max_lenses;
|
extern EXPCL_PANDA_PGRAPH ConfigVariableInt max_lenses;
|
||||||
|
extern ConfigVariableBool default_antialias_enable;
|
||||||
|
|
||||||
extern ConfigVariableBool polylight_info;
|
extern ConfigVariableBool polylight_info;
|
||||||
extern ConfigVariableDouble lod_fade_time;
|
extern ConfigVariableDouble lod_fade_time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user