Worldwind public release 0.2.1
[worldwind-tracker.git] / gov / nasa / worldwind / formats / nitfs / DDSBlock4x4.java
blob587f27d73f59d01f42c0f8de81fecb2b129effc8
1 package gov.nasa.worldwind.formats.nitfs;
3 import java.nio.*;
4 /*
5 Copyright (C) 2001, 2007 United States Government
6 as represented by the Administrator of the
7 National Aeronautics and Space Administration.
8 All Rights Reserved.
9 */
11 /**
12 * @author lado
13 * @version $Id: DDSBlock4x4 Apr 21, 2007 10:33:06 AM
15 class DDSBlock4x4
17 public short color0, color1;
18 public int bitmask;
20 public DDSBlock4x4( short color0, short color1, int bitmask )
22 this.color0 = color0;
23 this.color1 = color1;
24 this.bitmask = bitmask;
27 public void writeTo(ByteBuffer buffer)
29 if(null != buffer)
31 buffer.putShort( this.color0 );
32 buffer.putShort( this.color1 );
33 buffer.putInt( this.bitmask );