Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Headers/SR_ClipUtilities.h
/****************************************************************************** |
** ** |
** Module: SR_ClipUtilities.h ** |
** ** |
** ** |
** Purpose: ** |
** ** |
** ** |
** ** |
** Copyright (C) 1995 Apple Computer, Inc. All rights reserved. ** |
** ** |
** ** |
*****************************************************************************/ |
#ifndef SR_ClipUtilities_h |
#define SR_ClipUtilities_h |
#include "SR.h" |
#ifdef __cplusplus |
extern "C" { |
#endif /* __cplusplus */ |
/****************************************************************************** |
** ** |
** Clip Utilities ** |
** ** |
*****************************************************************************/ |
void SR_ClipPlanesInDC( |
TQ3Matrix4x4 *frustumToDC, |
float *clipPlanesInDC); |
/****************************************************************************** |
** ** |
** Other Routines ** |
** ** |
*****************************************************************************/ |
void SRPointList_WDivide( |
TQ3RationalPoint4D *in, |
unsigned long numVertices, |
unsigned long sizeOfIn); |
void SRPointList_ClipTestVertices( |
TQ3RationalPoint4D *deviceVertices, |
unsigned long *clipFlags, |
long numVertices, |
float *clipPlanesInDC, |
long *clipFound, |
long *allOut, |
unsigned long sizeOfIn); |
void SRPointList_ClipVertices( |
TQ3RationalPoint4D *vertices, |
long sizeOfVertex, |
TQ3RationalPoint4D *clipVertices, |
long sizeOfClippedVertex, |
unsigned long *clipFlags, |
long *clippedVerticesFlags, |
long numVertices, |
long *numClippedVertices, |
float *clipPlanes, |
long mode); |
#ifdef __cplusplus |
} |
#endif /* __cplusplus */ |
#endif /* SR_ClipUtilities_h */ |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14