Class 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

      Fields 
      Modifier and Type Field Description
      int a  
      int b  
      boolean coverageSampling
      whether coverage sampling anti-aliasing is used.
      int depth  
      int g  
      int r  
      int samples
      number of samples for multi-sample anti-aliasing (MSAA)
      int stencil  
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferFormat​(int r, int g, int b, int a, int depth, int stencil, int samples, boolean coverageSampling)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      • g

        public final int g
      • b

        public final int b
      • a

        public final int a
      • depth

        public final int depth
      • stencil

        public final int stencil
      • samples

        public final int samples
        number of samples for multi-sample anti-aliasing (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

      • BufferFormat

        public 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