source: GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/public_types.h @ 774

Revision 774, 899 bytes checked in by gumbau, 18 years ago (diff)

GTGeometry and GeoTool? initial imports

Line 
1//
2// Copyright (C) 2004 Tanguy Fautré.
3// For conditions of distribution and use,
4// see copyright notice in tri_stripper.h
5//
6//////////////////////////////////////////////////////////////////////
7// SVN: $Id: public_types.h 86 2005-06-08 17:47:27Z gpsnoopy $
8//////////////////////////////////////////////////////////////////////
9
10#ifndef TRI_STRIPPER_HEADER_GUARD_PUBLIC_TYPES_H
11#define TRI_STRIPPER_HEADER_GUARD_PUBLIC_TYPES_H
12
13#include <vector>
14
15
16
17
18namespace triangle_stripper
19{
20
21        typedef size_t index;
22        typedef std::vector<index> indices;
23
24        enum primitive_type
25        {
26                TRIANGLES               = 0x0004,       // = GL_TRIANGLES
27                TRIANGLE_STRIP  = 0x0005        // = GL_TRIANGLE_STRIP
28        };
29
30        struct primitive_group
31        {
32                indices                 Indices;
33                primitive_type  Type;
34        };
35
36        typedef std::vector<primitive_group> primitive_vector;
37
38}
39
40
41
42
43#endif // TRI_STRIPPER_HEADER_GUARD_PUBLIC_TYPES_H
Note: See TracBrowser for help on using the repository browser.