All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.gov.nasa.worldwind.formats.dds.DDSPixelFormat Maven / Gradle / Ivy

Go to download

World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.

There is a newer version: 2.0.0-986
Show newest version
/*
 * Copyright (C) 2012 United States Government as represented by the Administrator of the
 * National Aeronautics and Space Administration.
 * All Rights Reserved.
 */
package gov.nasa.worldwind.formats.dds;

/**
 * Documentation on the DDS pixel format is available at http://msdn.microsoft.com/en-us/library/bb943982(VS.85).aspx
 *
 * @author dcollins
 * @version $Id: DDSPixelFormat.java 1171 2013-02-11 21:45:02Z dcollins $
 */
public class DDSPixelFormat
{
    protected final int size = DDSConstants.DDS_PIXEL_FORMAT_SIZE;
    protected int flags;
    protected int fourCC;
    protected int rgbBitCount;
    protected int rBitMask;
    protected int gBitMask;
    protected int bBitMask;
    protected int aBitMask;

    public DDSPixelFormat()
    {
    }

    /**
     * Returns the pixel format structure size in bytes. Will always return 32.
     *
     * @return pixel format structure size in bytes.
     */
    public final int getSize()
    {
        return this.size;
    }

    public int getFlags()
    {
        return this.flags;
    }

    public void setFlags(int flags)
    {
        this.flags = flags;
    }

    public int getFourCC()
    {
        return this.fourCC;
    }

    public void setFourCC(int fourCC)
    {
        this.fourCC = fourCC;
    }

    public int getRGBBitCount()
    {
        return this.rgbBitCount;
    }

    public void setRGBBitCount(int bitCount)
    {
        this.rgbBitCount = bitCount;
    }

    public int getRBitMask()
    {
        return this.rBitMask;
    }

    public void setRBitMask(int rBitMask)
    {
        this.rBitMask = rBitMask;
    }

    public int getGBitMask()
    {
        return this.gBitMask;
    }

    public void setGBitMask(int gBitMask)
    {
        this.gBitMask = gBitMask;
    }

    public int getBBitMask()
    {
        return this.bBitMask;
    }

    public void setBBitMask(int bBitMask)
    {
        this.bBitMask = bBitMask;
    }

    public int getABitMask()
    {
        return this.aBitMask;
    }

    public void setABitMask(int aBitMask)
    {
        this.aBitMask = aBitMask;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy