ReactOS 0.4.15-dev-5667-ged97270
Renderhints Class Reference

#include <renderhints.h>

Collaboration diagram for Renderhints:

Public Member Functions

 Renderhints (void)
 
void init (void)
 
int isProperty (long)
 
REAL getProperty (long)
 
void setProperty (long, REAL)
 

Public Attributes

REAL display_method
 
REAL errorchecking
 
REAL subdivisions
 
REAL tmp1
 
int displaydomain
 
int maxsubdivisions
 
int wiretris
 
int wirequads
 

Detailed Description

Definition at line 41 of file renderhints.h.

Constructor & Destructor Documentation

◆ Renderhints()

Renderhints::Renderhints ( void  )

Definition at line 50 of file renderhints.cc.

51{
54 subdivisions = 6.0;
55 tmp1 = 0.0;
56 displaydomain = 0;
58 wiretris = 0;
59 wirequads = 0;
60}
REAL subdivisions
Definition: renderhints.h:51
int maxsubdivisions
Definition: renderhints.h:55
REAL display_method
Definition: renderhints.h:49
int displaydomain
Definition: renderhints.h:54
REAL errorchecking
Definition: renderhints.h:50
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
#define N_MSG
Definition: nurbsconsts.h:85
#define N_FILL
Definition: nurbsconsts.h:71

Member Function Documentation

◆ getProperty()

REAL Renderhints::getProperty ( long  property)

Definition at line 99 of file renderhints.cc.

100{
101 switch ( property ) {
102 case N_DISPLAY:
103 return display_method;
104 case N_ERRORCHECKING:
105 return errorchecking;
106 case N_SUBDIVISIONS:
107 return subdivisions;
108 case N_TMP1:
109 return tmp1;
110 default:
111 abort();
112 return -1; //not necessary, needed to shut up compiler
113 }
114}
#define abort()
Definition: i386-dis.c:35
#define N_DISPLAY
Definition: nurbsconsts.h:70
#define N_SUBDIVISIONS
Definition: nurbsconsts.h:91
#define N_ERRORCHECKING
Definition: nurbsconsts.h:83
#define N_TMP1
Definition: nurbsconsts.h:93

Referenced by NurbsTessellator::getnurbsproperty().

◆ init()

void Renderhints::init ( void  )

Definition at line 63 of file renderhints.cc.

64{
66 if( maxsubdivisions < 0 ) maxsubdivisions = 0;
67
68
69 if( display_method == N_FILL ) {
70 wiretris = 0;
71 wirequads = 0;
72 } else if( display_method == N_OUTLINE_TRI ) {
73 wiretris = 1;
74 wirequads = 0;
75 } else if( display_method == N_OUTLINE_QUAD ) {
76 wiretris = 0;
77 wirequads = 1;
78 } else {
79 wiretris = 1;
80 wirequads = 1;
81 }
82}
#define N_OUTLINE_TRI
Definition: nurbsconsts.h:73
#define N_OUTLINE_QUAD
Definition: nurbsconsts.h:74

Referenced by Subdivider::drawCurves(), and Subdivider::drawSurfaces().

◆ isProperty()

int Renderhints::isProperty ( long  property)

Definition at line 85 of file renderhints.cc.

86{
87 switch ( property ) {
88 case N_DISPLAY:
89 case N_ERRORCHECKING:
90 case N_SUBDIVISIONS:
91 case N_TMP1:
92 return 1;
93 default:
94 return 0;
95 }
96}

Referenced by NurbsTessellator::getnurbsproperty(), and NurbsTessellator::setnurbsproperty().

◆ setProperty()

void Renderhints::setProperty ( long  property,
REAL  value 
)

Definition at line 117 of file renderhints.cc.

118{
119 switch ( property ) {
120 case N_DISPLAY:
122 break;
123 case N_ERRORCHECKING:
125 break;
126 case N_SUBDIVISIONS:
128 break;
129 case N_TMP1: /* unused */
130 tmp1 = value;
131 break;
132 default:
133 abort();
134 break;
135 }
136}
Definition: pdh_main.c:94

Referenced by NurbsTessellator::do_setnurbsproperty().

Member Data Documentation

◆ display_method

◆ displaydomain

int Renderhints::displaydomain

Definition at line 54 of file renderhints.h.

Referenced by Renderhints().

◆ errorchecking

REAL Renderhints::errorchecking

◆ maxsubdivisions

int Renderhints::maxsubdivisions

Definition at line 55 of file renderhints.h.

Referenced by Subdivider::drawCurves(), init(), Renderhints(), and Subdivider::splitInT().

◆ subdivisions

REAL Renderhints::subdivisions

Definition at line 51 of file renderhints.h.

Referenced by getProperty(), init(), Renderhints(), and setProperty().

◆ tmp1

REAL Renderhints::tmp1

Definition at line 52 of file renderhints.h.

Referenced by getProperty(), Renderhints(), and setProperty().

◆ wirequads

int Renderhints::wirequads

Definition at line 57 of file renderhints.h.

Referenced by Subdivider::drawSurfaces(), init(), and Renderhints().

◆ wiretris

int Renderhints::wiretris

Definition at line 56 of file renderhints.h.

Referenced by Subdivider::drawSurfaces(), init(), and Renderhints().


The documentation for this class was generated from the following files: