RE: [Plib-devel] PLIB developers needed.
Brought to you by:
sjbaker
From: Dave M. <dp...@ef...> - 2000-08-12 17:18:59
|
Christian wrote: > But anyway, do SG and SSG brake with that compiler? If the answer is no, > that is compiler supporting costs. SG *is* const correct and at least > half of SSG (IIRC). > I went to fix the 'const' methods in ul.h that are *not* portable on IRIX when I noticed there were similar 'const' methods already in sg.h like Christian says. The 'const' methods in sg.h have been there for a long time and must work on IRIX. Perhaps we just need to change 'double getRawTime () const ;' to 'double getRawTime (void) const ;' and it would work on IRIX. Seems to be something strange like that. Do you want to investigate Steve? These 'const' methods have been there for a long time... sg/sg.cxx: int sgBox::intersects ( const sgVec4 plane ) const sg/sg.cxx: int sgSphere::intersects ( const sgBox *b ) const sg/sg.cxx: int sgFrustum::getOutcode ( const sgVec3 pt ) const sg/sg.cxx: int sgFrustum::contains ( const sgVec3 pt ) const sg/sg.cxx: int sgFrustum::contains ( const sgSphere *s ) const sg/sgd.cxx: int sgdBox::intersects ( const sgdVec4 plane ) const sg/sgd.cxx: int sgdSphere::intersects ( const sgdBox *b ) const sg/sgd.cxx: int sgdFrustum::getOutcode ( const sgdVec3 pt ) const sg/sgd.cxx: int sgdFrustum::contains ( const sgdVec3 pt ) const sg/sgd.cxx: int sgdFrustum::contains ( const sgdSphere *s ) const sg/sg.h: const SGfloat *getCenter (void) const { return center ; } sg/sg.h: SGfloat getRadius (void) const { return radius ; } sg/sg.h: int isEmpty (void) const { return radius < SG_ZERO ; } sg/sg.h: int intersects ( const sgSphere *s ) const sg/sg.h: int intersects ( const sgVec4 plane ) const sg/sg.h: int intersects ( const sgBox *b ) const ; sg/sg.h: const SGfloat *getMin (void) const { return min ; } sg/sg.h: const SGfloat *getMax (void) const { return max ; } sg/sg.h: int isEmpty(void) const sg/sg.h: int intersects ( const sgSphere *s ) const sg/sg.h: int intersects ( const sgBox *b ) const sg/sg.h: int intersects ( const sgVec4 plane ) const ; sg/sg.h: int getOutcode ( const sgVec4 src ) const ; sg/sg.h: SGfloat getHFOV (void) const { return hfov ; } sg/sg.h: SGfloat getVFOV (void) const { return vfov ; } sg/sg.h: SGfloat getNear (void) const { return nnear ; } sg/sg.h: SGfloat getFar (void) const { return ffar ; } sg/sg.h: SGfloat getLeft (void) const { return left ; } sg/sg.h: SGfloat getRight(void) const { return right ; } sg/sg.h: SGfloat getTop (void) const { return top ; } sg/sg.h: SGfloat getBot (void) const { return bot ; } sg/sg.h: void getFOV ( SGfloat *h, SGfloat *v ) const sg/sg.h: void getNearFar ( SGfloat *n, SGfloat *f ) const sg/sg.h: int contains ( const sgVec3 p ) const ; sg/sg.h: int contains ( const sgSphere *s ) const ; sg/sg.h: const SGDfloat *getCenter (void) const { return center ; } sg/sg.h: SGDfloat getRadius (void) const { return radius ; } sg/sg.h: int isEmpty (void) const { return radius < SGD_ZERO ; } sg/sg.h: int intersects ( const sgdSphere *s ) const sg/sg.h: int intersects ( const sgdVec4 plane ) const sg/sg.h: int intersects ( const sgdBox *b ) const ; sg/sg.h: const SGDfloat *getMin (void) const { return min ; } sg/sg.h: const SGDfloat *getMax (void) const { return max ; } sg/sg.h: int isEmpty(void) const sg/sg.h: int intersects ( const sgdSphere *s ) const sg/sg.h: int intersects ( const sgdBox *b ) const sg/sg.h: int intersects ( const sgdVec4 plane ) const ; sg/sg.h: int getOutcode ( const sgdVec4 src ) const ; sg/sg.h: SGDfloat getHFOV (void) const { return hfov ; } sg/sg.h: SGDfloat getVFOV (void) const { return vfov ; } sg/sg.h: SGDfloat getNear (void) const { return nnear ; } sg/sg.h: SGDfloat getFar (void) const { return ffar ; } sg/sg.h: SGDfloat getLeft (void) const { return left ; } sg/sg.h: SGDfloat getRight(void) const { return right ; } sg/sg.h: SGDfloat getTop (void) const { return top ; } sg/sg.h: SGDfloat getBot (void) const { return bot ; } sg/sg.h: void getFOV ( SGDfloat *h, SGDfloat *v ) const sg/sg.h: void getNearFar ( SGDfloat *n, SGDfloat *f ) const sg/sg.h: int contains ( const sgdVec3 p ) const ; sg/sg.h: int contains ( const sgdSphere *s ) const ; These are the 'const' methods I recently touched... util/ulClock.cxx: double ulClock::getRawTime () const fnt/fnt.h: virtual int isFixedPitch () const = 0 ; fnt/fnt.h: virtual float getWidth () const = 0 ; fnt/fnt.h: virtual float getGap () const = 0 ; fnt/fnt.h: int isFixedPitch () const { return fixed_pitch ; } fnt/fnt.h: float getWidth () const { return width ; } fnt/fnt.h: float getGap () const { return gap ; } fnt/fnt.h: void getCursor ( float *x, float *y, float *z ) const fnt/fnt.h: fntFont *getFont () const { return font ; } fnt/fnt.h: float getSlant () const { return italic ; } fnt/fnt.h: float getPointSize () const { return pointsize ; } pui/pu.h: const char *getLegend ( void ) const { return legend ; } pui/pu.h: const char *getLabel ( void ) const { return label ; } pui/pu.h: int getNumItems() const { return num ; } pui/pu.h: int getTopItem() const { return top ; } ssg/ssg.h: int getMaxKids (void) const { return max_kids ; } util/ul.h: double getRawTime () const ; util/ul.h: double getMaxDelta () const { return max_delta ; } util/ul.h: double getAbsTime () const { return now ; } util/ul.h: double getDeltaTime () const { return delta ; } util/ul.h: double getFrameRate () const { return 1.0 / delta ; } --Dave |