ReactOS 0.4.15-dev-8096-ga0eec98
Patchspec Struct Reference

#include <patch.h>

Inheritance diagram for Patchspec:
Collaboration diagram for Patchspec:

Public Member Functions

void clamp (REAL)
 
void getstepsize (REAL)
 
void singleStep (void)
 

Public Attributes

int order
 
int stride
 
- Public Attributes inherited from Pspec
REAL range [3]
 
REAL sidestep [2]
 
REAL stepsize
 
REAL minstepsize
 
int needsSubdivision
 

Detailed Description

Definition at line 54 of file patch.h.

Member Function Documentation

◆ clamp()

void Patchspec::clamp ( REAL  clampfactor)

Definition at line 224 of file patch.cc.

225{
226 if( sidestep[0] < minstepsize )
227 sidestep[0] = clampfactor * minstepsize;
228 if( sidestep[1] < minstepsize )
229 sidestep[1] = clampfactor * minstepsize;
230 if( stepsize < minstepsize )
231 stepsize = clampfactor * minstepsize;
232}
REAL sidestep[2]
Definition: patch.h:48
REAL stepsize
Definition: patch.h:49
REAL minstepsize
Definition: patch.h:50

Referenced by Patch::clamp().

◆ getstepsize()

void Patchspec::getstepsize ( REAL  max)

Definition at line 469 of file patch.cc.

470{
471 stepsize = ( max >= 1.0 ) ? range[2] / max : range[2];
472 if (stepsize < 0.0) {
474 }
476}
GLenum GLint * range
Definition: glext.h:7539
#define max(a, b)
Definition: svc.c:63

Referenced by Patch::getstepsize().

◆ singleStep()

void Patchspec::singleStep ( void  )

Definition at line 463 of file patch.cc.

464{
465 stepsize = sidestep[0] = sidestep[1] = glu_abs(range[2]);
466}
REAL glu_abs(REAL x)
Definition: simplemath.h:50

Referenced by Patch::getstepsize().

Member Data Documentation

◆ order

int Patchspec::order

◆ stride

int Patchspec::stride

Definition at line 56 of file patch.h.

Referenced by Patch::checkBboxConstraint(), and Patch::Patch().


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