org.lwjgl.opengl
Class PixelFormat

java.lang.Object
  extended by org.lwjgl.opengl.PixelFormat

public final class PixelFormat
extends java.lang.Object

This class describes pixel format properties for an OpenGL context. Instances of this class is used as arguments to Display.create(), Pbuffer.create() and AWTGLCanvas, to indicate minimum required properties. WARNING: Some pixel formats are known to cause troubles on certain buggy drivers. Example: Under Windows, specifying samples != 0 will enable the ARB pixel format selection path, which could trigger a crash.

Version:
$Revision: 2361 $
Author:
elias_naur@sourceforge.net

Constructor Summary
PixelFormat()
          Default pixel format is minimum 8 bits depth, and no alpha nor stencil requirements.
PixelFormat(int alpha, int depth, int stencil)
           
PixelFormat(int alpha, int depth, int stencil, int samples)
           
PixelFormat(int bpp, int alpha, int depth, int stencil, int samples)
           
PixelFormat(int bpp, int alpha, int depth, int stencil, int samples, int num_aux_buffers, int accum_bpp, int accum_alpha, boolean stereo)
           
PixelFormat(int bpp, int alpha, int depth, int stencil, int samples, int num_aux_buffers, int accum_bpp, int accum_alpha, boolean stereo, boolean floating_point)
           
 
Method Summary
 int getAccumulationAlpha()
           
 int getAccumulationBitsPerPixel()
           
 int getAlphaBits()
           
 int getAuxBuffers()
           
 int getBitsPerPixel()
           
 int getDepthBits()
           
 int getSamples()
           
 int getStencilBits()
           
 boolean isFloatingPoint()
           
 boolean isStereo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PixelFormat

public PixelFormat()
Default pixel format is minimum 8 bits depth, and no alpha nor stencil requirements.


PixelFormat

public PixelFormat(int alpha,
                   int depth,
                   int stencil)

PixelFormat

public PixelFormat(int alpha,
                   int depth,
                   int stencil,
                   int samples)

PixelFormat

public PixelFormat(int bpp,
                   int alpha,
                   int depth,
                   int stencil,
                   int samples)

PixelFormat

public PixelFormat(int bpp,
                   int alpha,
                   int depth,
                   int stencil,
                   int samples,
                   int num_aux_buffers,
                   int accum_bpp,
                   int accum_alpha,
                   boolean stereo)

PixelFormat

public PixelFormat(int bpp,
                   int alpha,
                   int depth,
                   int stencil,
                   int samples,
                   int num_aux_buffers,
                   int accum_bpp,
                   int accum_alpha,
                   boolean stereo,
                   boolean floating_point)
Method Detail

getBitsPerPixel

public int getBitsPerPixel()

getAlphaBits

public int getAlphaBits()

getDepthBits

public int getDepthBits()

getStencilBits

public int getStencilBits()

getSamples

public int getSamples()

getAuxBuffers

public int getAuxBuffers()

getAccumulationBitsPerPixel

public int getAccumulationBitsPerPixel()

getAccumulationAlpha

public int getAccumulationAlpha()

isStereo

public boolean isStereo()

isFloatingPoint

public boolean isFloatingPoint()


Copyright © 2002-2006 lwjgl.org. All Rights Reserved.