Package com.ardor3d.image

Examples of com.ardor3d.image.TextureStoreFormat


            }

            final int destX = MathUtils.moduloPositive(tile.getX(), cacheSize);
            final int destY = MathUtils.moduloPositive(tile.getY(), cacheSize);

            final TextureStoreFormat format = textureConfiguration.getTextureDataType(source.getContributorId(
                    requestedLevel, tile));
            CacheFunctionUtil.applyFunction(useAlpha, function, sourceData, data, destX, destY, format, tileSize,
                    dataSize);
        }
View Full Code Here


            if (sourceData == null || isCancelled()) {
                return false;
            }

            final TextureStoreFormat format = textureConfiguration.getTextureDataType(source.getContributorId(
                    requestedLevel, sourceTile));
            CacheFunctionUtil.applyFunction(useAlpha, function, sourceData, data, destTile.getX(), destTile.getY(),
                    format, tileSize, dataSize);

            if (isCancelled()) {
View Full Code Here

            data.rewind();

            final ImageDataFormat fmt = useAlpha ? ImageDataFormat.RGBA : ImageDataFormat.RGB;
            final Image image = new Image(fmt, PixelDataType.UnsignedByte, atlasWidth, atlasHeight, data, null);

            final TextureStoreFormat format = atlasTextureParameter.compress ? TextureStoreFormat.GuessCompressedFormat
                    : TextureStoreFormat.GuessNoCompressedFormat;
            final Texture texture = TextureManager.loadFromImage(image, atlasTextureParameter.minificationFilter,
                    format);
            texture.setMagnificationFilter(atlasTextureParameter.magnificationFilter);
View Full Code Here

TOP

Related Classes of com.ardor3d.image.TextureStoreFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.