source: golgotha/src/max_plugin/sdk_inc/channels.h @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/**********************************************************************
2 *<
3        FILE: channel.h
4
5        DESCRIPTION:
6
7        CREATED BY: Dan Silva
8
9        HISTORY:
10
11 *>     Copyright (c) 1994, All Rights Reserved.
12 **********************************************************************/
13
14
15
16#ifndef __CHANNEL__H
17#define __CHANNEL__H
18
19
20// Channels within the object.
21#define NUM_OBJ_CHANS 7
22
23// Indices for object channels
24#define TOPO_CHAN_NUM 0
25#define GEOM_CHAN_NUM 1
26#define TEXMAP_CHAN_NUM 2
27#define MTL_CHAN_NUM 3
28#define SELECT_CHAN_NUM 4
29#define SUBSEL_TYPE_CHAN_NUM 5
30#define DISP_ATTRIB_CHAN_NUM 6
31
32// Bit flags for object channels
33#define TOPO_CHANNEL            (1<<0) // topology (faces, polygons etc)
34#define GEOM_CHANNEL            (1<<1) // vertices
35#define TEXMAP_CHANNEL          (1<<2) // texture vertices and mapping
36#define MTL_CHANNEL             (1<<3) // material on per face basis
37#define SELECT_CHANNEL          (1<<4) // selection bits
38#define SUBSEL_TYPE_CHANNEL (1<<5) // vertex/face/edge
39#define DISP_ATTRIB_CHANNEL (1<<6) // display attributes
40
41#define TM_CHANNEL              (1<<7)  // Object transform (may be modified by modifiers)
42#define GLOBMTL_CHANNEL (1<<8)  // material applied to object as whole
43
44#define OBJ_CHANNELS  (TOPO_CHANNEL|GEOM_CHANNEL|SELECT_CHANNEL|TEXMAP_CHANNEL|MTL_CHANNEL|SUBSEL_TYPE_CHANNEL|DISP_ATTRIB_CHANNEL)
45#define ALL_CHANNELS  (OBJ_CHANNELS|TM_CHANNEL|GLOBMTL_CHANNEL)
46
47
48#endif // __CHANNEL__H
Note: See TracBrowser for help on using the repository browser.