libgdx API

com.badlogic.gdx
Class Graphics.BufferFormat

java.lang.Object
  extended by com.badlogic.gdx.Graphics.BufferFormat
Enclosing interface:
Graphics

public static class Graphics.BufferFormat
extends java.lang.Object

Class describing the bits per pixel, depth buffer precision, stencil precision and number of MSAA samples.


Field Summary
 int a
          number of bits per color channel
 int b
          number of bits per color channel
 boolean coverageSampling
          whether coverage sampling anti-aliasing is used.
 int depth
          number of bits for depth and stencil buffer
 int g
          number of bits per color channel
 int r
          number of bits per color channel
 int samples
          number of samples for MSAA
 int stencil
          number of bits for depth and stencil buffer
 
Constructor Summary
Graphics.BufferFormat(int r, int g, int b, int a, int depth, int stencil, int samples, boolean coverageSampling)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

r

public final int r
number of bits per color channel


g

public final int g
number of bits per color channel


b

public final int b
number of bits per color channel


a

public final int a
number of bits per color channel


depth

public final int depth
number of bits for depth and stencil buffer


stencil

public final int stencil
number of bits for depth and stencil buffer


samples

public final int samples
number of samples for MSAA


coverageSampling

public final boolean coverageSampling
whether coverage sampling anti-aliasing is used. in that case you have to clear the coverage buffer as well!

Constructor Detail

Graphics.BufferFormat

public Graphics.BufferFormat(int r,
                             int g,
                             int b,
                             int a,
                             int depth,
                             int stencil,
                             int samples,
                             boolean coverageSampling)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)