Package com.ardor3d.util

Examples of com.ardor3d.util.LittleEndianDataInput


        try {
            bis = new BufferedInputStream(stream);
            final DataInputStream dis = new DataInputStream(bis);
            DataInput di = dis;
            if (isLittleEndian) {
                di = new LittleEndianDataInput(dis);
            }

            // read the raw file
            for (int y = 0; y < size; y++) {
                for (int x = 0; x < size; x++) {
View Full Code Here


*/
public class DdsLoader implements ImageLoader {
    private static final Logger logger = Logger.getLogger(DdsLoader.class.getName());

    public Image load(final InputStream is, final boolean flipVertically) throws IOException {
        final LittleEndianDataInput in = new LittleEndianDataInput(is);

        // Read and check magic word...
        final int dwMagic = in.readInt();
        if (dwMagic != getInt("DDS ")) {
            throw new Error("Not a dds file.");
        }
        logger.finest("Reading DDS file.");

View Full Code Here

TOP

Related Classes of com.ardor3d.util.LittleEndianDataInput

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.