40 #include "glimports.h"
42 #include "renderhints.h"
44 #include "nurbsconsts.h"
51 Renderhints::Renderhints()
53 display_method = N_FILL;
54 errorchecking = N_MSG;
60 Renderhints::init(
void )
62 maxsubdivisions = (int) subdivisions;
63 if( maxsubdivisions < 0 ) maxsubdivisions = 0;
66 if( display_method == N_FILL ) {
69 }
else if( display_method == N_OUTLINE_TRI ) {
72 }
else if( display_method == N_OUTLINE_QUAD ) {
82 Renderhints::isProperty(
long property )
96 Renderhints::getProperty(
long property )
100 return display_method;
101 case N_ERRORCHECKING:
102 return errorchecking;
114 Renderhints::setProperty(
long property, REAL value )
116 switch ( property ) {
118 display_method = value;
120 case N_ERRORCHECKING:
121 errorchecking = value;
124 subdivisions = value;