njSetConstantAttr | Japanese
    <-|INDEX|->
Sets model attributes.

### FORMAT

      #include  <Ninja.h>
      void      njSetConstantAttr( and_attr, or_attr )
      Uint32    and_attr
      Uint32    or_attr

### PARAMETERS

and_attr
  AND attribute pattern
or_attr
  OR attribute pattern

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Specifies the model attributes.
- These are specified as an AND pattern or OR pattern which is applied to the original data. The attributes are enabled when NJD_CONTROL_3D_CONSTANT_ATTR is specified with njControl3D.

### EXAMPLE

  This changes a polygon with texture to a monocolor polygon and displays it flat.

      njInitSystem( NJD_RESOLUTION_640x480, 1 );
      njInitMatrix( matrix, 128 );
      njInit3D( vbuf, 4096, abuf, zbuf, 32 );
      njInitView( &view );
      njCreateLight( &light, NJD_DIR_LIGHT );
      njSetView( &view );

      njControl3D( NJD_CONTROL_3D_CONSTANT_ATTR );
      njSetConstantAttr( NJD_FLAG_USE_TEXTURE, NJD_FLAG_USE_FLAT );

      while(1) {
        njClearMatrix();
        njTranslate( NULL, 0.f, 0.f, -10.f );
        njRotateXYZ( NULL, xx,yy,zz );
        njDrawObject( object );
        xx += 257;
        yy += 179;
        zz += 193;
        njWaitVSync();
      }

### NOTES

### RELATED TOPICS

  njDrawModel()
  njDrawObject()
  njControl3D()

njSetConstantAttr |
    <-|INDEX|->