com.jogamp.opengl.impl.glu.mipmap
Class Mipmap

java.lang.Object
  extended by com.jogamp.opengl.impl.glu.mipmap.Mipmap

public class Mipmap
extends Object

Author:
Administrator

Constructor Summary
Mipmap()
          Creates a new instance of Mipmap
 
Method Summary
static int bytes_per_element(int type)
           
static int checkMipmapArgs(int internalFormat, int format, int type)
           
static void closestFit(GL gl, int target, int width, int height, int internalFormat, int format, int type, int[] newWidth, int[] newHeight)
           
static void closestFit3D(GL gl, int target, int width, int height, int depth, int internalFormat, int format, int type, int[] newWidth, int[] newHeight, int[] newDepth)
           
static int computeLog(int value)
           
static int elements_per_group(int format, int type)
           
static short GLU_SWAP_2_BYTES(short s)
           
static float GLU_SWAP_4_BYTES(float f)
           
static int GLU_SWAP_4_BYTES(int i)
           
static int gluBuild1DMipmapLevels(GL gl, int target, int internalFormat, int width, int format, int type, int userLevel, int baseLevel, int maxLevel, ByteBuffer data)
           
static int gluBuild1DMipmaps(GL gl, int target, int internalFormat, int width, int format, int type, ByteBuffer data)
           
static int gluBuild2DMipmapLevels(GL gl, int target, int internalFormat, int width, int height, int format, int type, int userLevel, int baseLevel, int maxLevel, Object data)
           
static int gluBuild2DMipmaps(GL gl, int target, int internalFormat, int width, int height, int format, int type, Object data)
           
static int gluBuild3DMipmapLevels(GL gl, int target, int internalFormat, int width, int height, int depth, int format, int type, int userLevel, int baseLevel, int maxLevel, ByteBuffer data)
           
static int gluBuild3DMipmaps(GL gl, int target, int internalFormat, int width, int height, int depth, int format, int type, ByteBuffer data)
           
static int gluScaleImage(GL gl, int format, int widthin, int heightin, int typein, ByteBuffer datain, int widthout, int heightout, int typeout, ByteBuffer dataout)
           
static int image_size(int width, int height, int format, int type)
           
static int imageSize3D(int width, int height, int depth, int format, int type)
           
static boolean is_index(int format)
           
static boolean isLegalFormatForPackedPixelType(int format, int type)
           
static boolean isLegalLevels(int userLevel, int baseLevel, int maxLevel, int totalLevels)
           
static boolean isTypePackedPixel(int type)
           
static boolean legalFormat(int format)
           
static boolean legalType(int type)
           
static int nearestPower(int value)
           
static void retrieveStoreModes(GL gl, PixelStorageModes psm)
           
static void retrieveStoreModes3D(GL gl, PixelStorageModes psm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mipmap

public Mipmap()
Creates a new instance of Mipmap

Method Detail

computeLog

public static int computeLog(int value)

nearestPower

public static int nearestPower(int value)

GLU_SWAP_2_BYTES

public static short GLU_SWAP_2_BYTES(short s)

GLU_SWAP_4_BYTES

public static int GLU_SWAP_4_BYTES(int i)

GLU_SWAP_4_BYTES

public static float GLU_SWAP_4_BYTES(float f)

checkMipmapArgs

public static int checkMipmapArgs(int internalFormat,
                                  int format,
                                  int type)

legalFormat

public static boolean legalFormat(int format)

legalType

public static boolean legalType(int type)

isTypePackedPixel

public static boolean isTypePackedPixel(int type)

isLegalFormatForPackedPixelType

public static boolean isLegalFormatForPackedPixelType(int format,
                                                      int type)

isLegalLevels

public static boolean isLegalLevels(int userLevel,
                                    int baseLevel,
                                    int maxLevel,
                                    int totalLevels)

closestFit

public static void closestFit(GL gl,
                              int target,
                              int width,
                              int height,
                              int internalFormat,
                              int format,
                              int type,
                              int[] newWidth,
                              int[] newHeight)

closestFit3D

public static void closestFit3D(GL gl,
                                int target,
                                int width,
                                int height,
                                int depth,
                                int internalFormat,
                                int format,
                                int type,
                                int[] newWidth,
                                int[] newHeight,
                                int[] newDepth)

elements_per_group

public static int elements_per_group(int format,
                                     int type)

bytes_per_element

public static int bytes_per_element(int type)

is_index

public static boolean is_index(int format)

image_size

public static int image_size(int width,
                             int height,
                             int format,
                             int type)

imageSize3D

public static int imageSize3D(int width,
                              int height,
                              int depth,
                              int format,
                              int type)

retrieveStoreModes

public static void retrieveStoreModes(GL gl,
                                      PixelStorageModes psm)

retrieveStoreModes3D

public static void retrieveStoreModes3D(GL gl,
                                        PixelStorageModes psm)

gluScaleImage

public static int gluScaleImage(GL gl,
                                int format,
                                int widthin,
                                int heightin,
                                int typein,
                                ByteBuffer datain,
                                int widthout,
                                int heightout,
                                int typeout,
                                ByteBuffer dataout)

gluBuild1DMipmapLevels

public static int gluBuild1DMipmapLevels(GL gl,
                                         int target,
                                         int internalFormat,
                                         int width,
                                         int format,
                                         int type,
                                         int userLevel,
                                         int baseLevel,
                                         int maxLevel,
                                         ByteBuffer data)

gluBuild1DMipmaps

public static int gluBuild1DMipmaps(GL gl,
                                    int target,
                                    int internalFormat,
                                    int width,
                                    int format,
                                    int type,
                                    ByteBuffer data)

gluBuild2DMipmapLevels

public static int gluBuild2DMipmapLevels(GL gl,
                                         int target,
                                         int internalFormat,
                                         int width,
                                         int height,
                                         int format,
                                         int type,
                                         int userLevel,
                                         int baseLevel,
                                         int maxLevel,
                                         Object data)

gluBuild2DMipmaps

public static int gluBuild2DMipmaps(GL gl,
                                    int target,
                                    int internalFormat,
                                    int width,
                                    int height,
                                    int format,
                                    int type,
                                    Object data)

gluBuild3DMipmaps

public static int gluBuild3DMipmaps(GL gl,
                                    int target,
                                    int internalFormat,
                                    int width,
                                    int height,
                                    int depth,
                                    int format,
                                    int type,
                                    ByteBuffer data)

gluBuild3DMipmapLevels

public static int gluBuild3DMipmapLevels(GL gl,
                                         int target,
                                         int internalFormat,
                                         int width,
                                         int height,
                                         int depth,
                                         int format,
                                         int type,
                                         int userLevel,
                                         int baseLevel,
                                         int maxLevel,
                                         ByteBuffer data)


Copyright 2010 JogAmp Community.