blockdxt3.java

来自「world wind java sdk 源码」· Java 代码 · 共 80 行

JAVA
80
字号
/* Copyright (C) 2001, 2008 United States Government as represented bythe Administrator of the National Aeronautics and Space Administration.All Rights Reserved.*/package gov.nasa.worldwind.formats.dds;/** * <code>BlockDXT3</code> is a data structure representing the compressed alpha and color values in a single DXT2/DXT3 * block. The DXT3 block contains a 64 bit alpha block, and a 64 bit color block, stored here as the properties * <code>alphaBlock</code> and </code>colorBlock</code>. The 64 bit alpha block contains 4x4 alpha values quantized * into 4 bits. The 64 bit color block is formatted exactly like the DXT1 color block, except that the color block * always represents four colors, regardless of the color ordering in the DXT1 block. * * @see AlphaBlockDXT3 * @see BlockDXT1 *  * @author dcollins * @version $Id: BlockDXT3.java 8856 2009-02-14 00:51:20Z dcollins $ */public class BlockDXT3{    /**     * The DXT2/DXT3 alpha block.     */    public AlphaBlockDXT3 alphaBlock;    /**     * The DXT1 color block.     */    public BlockDXT1 colorBlock;    /**     * Creates a new DXT2/DXT3 alpha block with all alpha and color values set to 0.     */    public BlockDXT3()    {        this.alphaBlock = new AlphaBlockDXT3();        this.colorBlock = new BlockDXT1();    }    /**     * Returns the DXT2/DXT3 alpha block.     *     * @return DXT2/DXT3 alpha block.     */    public AlphaBlockDXT3 getAlphaBlock()    {        return this.alphaBlock;    }    /**     * Sets the DXT2/DXT3 alpha block.     *     * @param alphaBlock DXT2/DXT3 alpha block.     */    public void setAlphaBlock(AlphaBlockDXT3 alphaBlock)    {        this.alphaBlock = alphaBlock;    }    /**     * Returns the DXT1 color block.     *     * @return DXT1 color block.     */    public BlockDXT1 getColorBlock()    {        return this.colorBlock;    }    /**     * Sets the DXT1 color block.     *     * @param colorBlock DXT1 color block.     */    public void setColorBlock(BlockDXT1 colorBlock)    {        this.colorBlock = colorBlock;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?