This section lists the differences between GPHIGS version 2.x and GPHIGS 6.0 C binding.
GPHIGS 6.0 is compliant with the ANSI C standard.
We recommend to use function prototyping and full warning compilations in order to improve parameter checking and so to remove type mismatch.
Only the PHIGS PLUS extensions have been modified since version 2.1. The following table lists the modified functions. A x in the name column means the name of the function has changed. A x in the arguments column means the arguments of the function have changed.
| class | function name | name | arguments |
| Primitives | polyline set 3 with data | x | x |
| fill area set 3 with data | x | ||
| cell array 3 plus | x | ||
| set of fill area set 3 with data | x | x | |
| triangle set 3 with data | x | ||
| triangle strip 3 with data | x | ||
| quadrilateral mesh 3 with data | x | ||
| non uniform b-spline curve | x | x | |
| non uniform b-spline surface | x | x | |
| Attributes | set facet distinguishing mode | x | |
| set facet culling mode | x | ||
| set data mapping method | x | ||
| set reflectance properties | x | ||
| set back data mapping method | x | ||
| set back reflectance properties | x | ||
| set light source state | x | ||
| set curve approximation criteria | x | ||
| set surface approximation criteria | x | ||
| set parametric surface characteristics | x | ||
| Representations | set polyline representation plus | x | |
| set data mapping representation | x | ||
| set reflectance representation | x | ||
| set parametric surface representation | x | ||
| set pattern representation plus | x | ||
| set color mapping representation | x | ||
| Inquire WS SL | polyline representation plus | x | |
| data mapping representation | x | ||
| reflectance representation | x | ||
| list of parametric surface indices | x | ||
| parametric surface representation | x | ||
| pattern representation plus | x | ||
| list of light source inds | x | ||
| light source representation | x | ||
| list of depth cue inds | x | ||
| depth cue representation | x | ||
| color mapping state | x | ||
| list of color mapping indices | x | ||
| color mapping representation | x | ||
| Inquire WS DT | dynamics of workstation attributes plus | x | |
| polyline facilities plus | x | ||
| predefined polyline representation plus | x | ||
| interior facilities plus | x | ||
| data mapping facilities | x | ||
| predefined data mapping representation | x | ||
| reflectance facilities | x | ||
| predefined reflectance representation | x | ||
| b-spline surface facilities | x | ||
| predefined parametric surface representation | x | ||
| predefined pattern representation plus | x | ||
| predefined light source representation | x | ||
| depth cue facilities | x | ||
| predefined depth cue representation | x | ||
| color mapping facilities | x | ||
| color mapping method facilities | x | ||
| PHIGS | element search | x | |
| inquire [current] element type and size | x | ||
| inquire [current] element content | x | ||
| compute fill area set geometric normal | x |
The effect of the NRS function CLOSE PIPE is different in V6.0 than in V2.1: when an application runs in double buffer mode, CLOSE PIPE no more swaps buffers. To swap buffers call the SWAP TARGET function after CLOSE PIPE.
GPHIGS V6.0 includes a compatibility module which allows to run GPHIGS V2.x applications with GPHIGS V 6.0.
This module transforms, during compilation, the V2 calls and structures to V6. To use this module just add the preprocessor command before including phigs.h:
#define GPHIGS_V2
#include <phigs.h>
NOTE: This mode introduce an interface for some of the PHIGS functions. This can degrade performances.
We strongly recommend to port applications from V2 to V6 instead of using this interface. This interface is given for portability and will not be supported in future releases.