Package fcagnin.jglsdk.glimg.ImageFormat

Examples of fcagnin.jglsdk.glimg.ImageFormat.PixelDataType


    OpenGLPixelTransferParams upload = new OpenGLPixelTransferParams();
    upload.type = 0xFFFFFFFF;
    upload.format = 0xFFFFFFFF;
    upload.blockByteCount = 0;

    PixelDataType pixelDataType = getDataType(imageFormat, forceConvertBits);
    if (pixelDataType.ordinal() >= PixelDataType.NUM_UNCOMPRESSED_TYPES.ordinal()) {
      switch (pixelDataType) {
      case COMPRESSED_BC1:
      case COMPRESSED_UNSIGNED_BC4:
      case COMPRESSED_SIGNED_BC4:
        upload.blockByteCount = 8;
View Full Code Here


      GL_RGBA8UI,  GL_RGBA16UI,  GL_RGBA32UI,
  };
 
 
  private static int getStandardOpenGLFormat(ImageFormat imageFormat, int forceConvertBits) {
    PixelDataType pixelDataType = getDataType(imageFormat, forceConvertBits);

    switch (pixelDataType) {
    case NORM_UNSIGNED_INTEGER:
      // Only 16-bit for non Depth_x.
      if (imageFormat.getPixelComponents() == PixelComponents.DEPTH) {
View Full Code Here

TOP

Related Classes of fcagnin.jglsdk.glimg.ImageFormat.PixelDataType

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.