ReactOS  0.4.15-dev-1200-gc3b3fcd
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 }
int displaydomain
Definition: renderhints.h:54
REAL subdivisions
Definition: renderhints.h:51
#define N_FILL
Definition: nurbsconsts.h:71
REAL errorchecking
Definition: renderhints.h:50
REAL display_method
Definition: renderhints.h:49
int maxsubdivisions
Definition: renderhints.h:55
#define N_MSG
Definition: nurbsconsts.h:85
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

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 }
REAL subdivisions
Definition: renderhints.h:51
#define N_DISPLAY
Definition: nurbsconsts.h:70
REAL errorchecking
Definition: renderhints.h:50
REAL display_method
Definition: renderhints.h:49
#define N_ERRORCHECKING
Definition: nurbsconsts.h:83
#define abort()
Definition: i386-dis.c:35
#define N_TMP1
Definition: nurbsconsts.h:93
#define N_SUBDIVISIONS
Definition: nurbsconsts.h:91

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 }
REAL subdivisions
Definition: renderhints.h:51
#define N_FILL
Definition: nurbsconsts.h:71
REAL display_method
Definition: renderhints.h:49
int maxsubdivisions
Definition: renderhints.h:55
#define N_OUTLINE_QUAD
Definition: nurbsconsts.h:74
#define N_OUTLINE_TRI
Definition: nurbsconsts.h:73
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

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 }
#define N_DISPLAY
Definition: nurbsconsts.h:70
#define N_ERRORCHECKING
Definition: nurbsconsts.h:83
#define N_TMP1
Definition: nurbsconsts.h:93
#define N_SUBDIVISIONS
Definition: nurbsconsts.h:91

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 }
REAL subdivisions
Definition: renderhints.h:51
#define N_DISPLAY
Definition: nurbsconsts.h:70
REAL errorchecking
Definition: renderhints.h:50
REAL display_method
Definition: renderhints.h:49
#define N_ERRORCHECKING
Definition: nurbsconsts.h:83
GLsizei const GLfloat * value
Definition: glext.h:6069
#define abort()
Definition: i386-dis.c:35
#define N_TMP1
Definition: nurbsconsts.h:93
#define N_SUBDIVISIONS
Definition: nurbsconsts.h:91

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: