Examples of UncheckedImageFormat


Examples of fcagnin.jglsdk.glimg.ImageFormat.UncheckedImageFormat

    imageDimensions.numDimensions = 2;
    imageDimensions.depth = 0;
    imageDimensions.width = width;
    imageDimensions.height = height;

    UncheckedImageFormat uncheckedImageFormat = new UncheckedImageFormat();
    uncheckedImageFormat.type = PixelDataType.NORM_UNSIGNED_INTEGER;
   
    switch (numComponents) {
    case 1:
      uncheckedImageFormat.format = PixelComponents.COLOR_RED;
View Full Code Here

Examples of fcagnin.jglsdk.glimg.ImageFormat.UncheckedImageFormat

       
    // Collect info from the DDS file.
    DdsHeader ddsHeader = new DdsHeader(ddsFile);
    Dds10Header dds10Header = getDds10Header(ddsFile, ddsHeader);
    Dimensions ddsDimensions = getDimensions(ddsHeader);
    UncheckedImageFormat ddsFormat = getFormat(ddsHeader, dds10Header);

    // Get image counts.
    int numArrays   = (dds10Header.arraySize > 1) ? dds10Header.arraySize : 1;
    int numFaces  = (dds10Header.miscFlag & Dds10MiscFlags.RESOURCE_MISC_TEXTURECUBE) != 0 ? 6 : 1;
    int numMipmaps   = (ddsHeader.flags & DdsFlags.MIPMAPCOUNT) != 0 ? ddsHeader.mipmapCount : 1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.