ReactOS  0.4.13-dev-79-gcd489d8
sampleComp.h
Go to the documentation of this file.
1 /*
2  * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3  * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice including the dates of first publication and
13  * either this permission notice or a reference to
14  * http://oss.sgi.com/projects/FreeB/
15  * shall be included in all copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20  * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22  * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23  * SOFTWARE.
24  *
25  * Except as contained in this notice, the name of Silicon Graphics, Inc.
26  * shall not be used in advertising or otherwise to promote the sale, use or
27  * other dealings in this Software without prior written authorization from
28  * Silicon Graphics, Inc.
29  */
30 /*
31 */
32 
33 #ifndef _SAMPLECOMP_H
34 #define _SAMPLECOMP_H
35 
36 #include "sampleMonoPoly.h"
37 //#include "rectBlock.h"
38 
39 void sampleConnectedComp(Real* topVertex, Real* botVertex,
40  vertexArray* leftChain,
41  Int leftStartIndex, Int botLeftIndex,
42  vertexArray* rightChain,
43  Int rightStartIndex, Int botRightIndex,
44  gridBoundaryChain* leftGridChain,
45  gridBoundaryChain* rightGridChain,
46  Int gridIndex1, Int gridIndex2,
47  Int up_leftCornerWhere,
48  Int up_leftCornerIndex,
49  Int up_rightCornerWhere,
50  Int up_rightCornerIndex,
51  Int down_leftCornerWhere,
52  Int down_leftCornerIndex,
53  Int down_rightCornerWhere,
54  Int down_rightCornerIndex,
55  primStream* pStream,
56  rectBlockArray* rbArray
57  );
58 
59 void sampleCompLeft(Real* topVertex, Real* botVertex,
60  vertexArray* leftChain,
61  Int leftStartIndex, Int leftEndIndex,
62  vertexArray* rightChain,
63  Int rightStartIndex, Int rightEndIndex,
64  gridBoundaryChain* leftGridChain,
65  Int gridIndex1, Int gridIndex2,
66  Int up_leftCornerWhere,
67  Int up_leftCornerIndex,
68  Int down_leftCornerWhere,
69  Int down_leftCornerIndex,
70  primStream* pStream);
71 
72 void sampleLeftSingleTrimEdgeRegionGen(Real topVert[2], Real botVert[2],
73  vertexArray* leftChain,
74  Int leftStart,
75  Int leftEnd,
76  gridBoundaryChain* gridChain,
77  Int gridBegindex,
78  Int gridEndIndex,
79  vertexArray* rightChain,
80  Int rightUpBegin,
81  Int rightUpEnd,
82  Int rightDownBegin,
83  Int rightDownEnd,
84  primStream* pStream);
85 
86 #endif
void sampleLeftSingleTrimEdgeRegionGen(Real topVert[2], Real botVert[2], vertexArray *leftChain, Int leftStart, Int leftEnd, gridBoundaryChain *gridChain, Int gridBegindex, Int gridEndIndex, vertexArray *rightChain, Int rightUpBegin, Int rightUpEnd, Int rightDownBegin, Int rightDownEnd, primStream *pStream)
Definition: sampleComp.cc:293
void sampleCompLeft(Real *topVertex, Real *botVertex, vertexArray *leftChain, Int leftStartIndex, Int leftEndIndex, vertexArray *rightChain, Int rightStartIndex, Int rightEndIndex, gridBoundaryChain *leftGridChain, Int gridIndex1, Int gridIndex2, Int up_leftCornerWhere, Int up_leftCornerIndex, Int down_leftCornerWhere, Int down_leftCornerIndex, primStream *pStream)
Definition: sampleComp.cc:142
void sampleConnectedComp(Real *topVertex, Real *botVertex, vertexArray *leftChain, Int leftStartIndex, Int botLeftIndex, vertexArray *rightChain, Int rightStartIndex, Int botRightIndex, gridBoundaryChain *leftGridChain, gridBoundaryChain *rightGridChain, Int gridIndex1, Int gridIndex2, Int up_leftCornerWhere, Int up_leftCornerIndex, Int up_rightCornerWhere, Int up_rightCornerIndex, Int down_leftCornerWhere, Int down_leftCornerIndex, Int down_rightCornerWhere, Int down_rightCornerIndex, primStream *pStream, rectBlockArray *rbArray)
Definition: sampleComp.cc:51
float Real
Definition: definitions.h:36
int Int
Definition: definitions.h:37