ReactOS 0.4.16-dev-338-g34e76ad
Uarray Class Reference

#include <uarray.h>

Public Member Functions

 Uarray ()
 
 ~Uarray ()
 
long init (REAL, Arc_ptr, Arc_ptr)
 

Public Attributes

REALuarray
 

Private Attributes

long size
 
long ulines
 

Detailed Description

Definition at line 44 of file uarray.h.

Constructor & Destructor Documentation

◆ Uarray()

Uarray::Uarray ( void  )

Definition at line 46 of file uarray.cc.

47{
48 uarray = 0;
49 size = 0;
50 ulines = 0;
51}
REAL * uarray
Definition: uarray.h:52
long ulines
Definition: uarray.h:47
GLsizeiptr size
Definition: glext.h:5919

◆ ~Uarray()

Uarray::~Uarray ( void  )

Definition at line 53 of file uarray.cc.

54{
55 if( uarray ) delete[] uarray;
56}

Member Function Documentation

◆ init()

long Uarray::init ( REAL  delta,
Arc_ptr  lo,
Arc_ptr  hi 
)

Definition at line 59 of file uarray.cc.

60{
61 ulines = (long) ((hi->tail()[0] - lo->tail()[0])/delta) + 3;
62 if( size < ulines ) {
63 size = ulines * 2;
64 if( uarray ) delete[] uarray;
65 uarray = new REAL[size];
66 assert( uarray != 0);
67 }
68 uarray[0] = lo->tail()[0] - delta/2.0;
69 for( long i = 1 ; i != ulines; i++ )
70 uarray[i] = uarray[0] + i*delta;
71 return ulines;
72}
long size
Definition: uarray.h:46
float REAL
Definition: types.h:41
#define assert(x)
Definition: debug.h:53
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define long
Definition: qsort.c:33

Referenced by Slicer::slice_old().

Member Data Documentation

◆ size

long Uarray::size
private

Definition at line 46 of file uarray.h.

Referenced by init().

◆ uarray

◆ ulines

long Uarray::ulines
private

Definition at line 47 of file uarray.h.

Referenced by init(), and Uarray().


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