Codota Logo
GLCapabilitiesImmutable.getStencilBits
Code IndexAdd Codota to your IDE (free)

How to use
getStencilBits
method
in
javax.media.opengl.GLCapabilitiesImmutable

Best Java code snippets using javax.media.opengl.GLCapabilitiesImmutable.getStencilBits (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: geogebra/geogebra

final public static String[] getGLInfos(GLAutoDrawable drawable) {
  
  GL gl = drawable.getGL(); 
  GLCapabilitiesImmutable c = drawable.getChosenGLCapabilities();
  
  String[] ret = { c + "", c.getDoubleBuffered() + "", c.getStereo() + "",
      c.getStencilBits() + "", gl.getClass().getName(),
      gl.glGetString(GL.GL_VENDOR), gl.glGetString(GL.GL_RENDERER),
      gl.glGetString(GL.GL_VERSION) };
  return ret;
  
}

origin: ch.unibas.cs.gravis/scalismo-native-stub

if(caps.getStencilBits()>0) {
  attrs.put(idx++, EGL.EGL_STENCIL_SIZE);
  attrs.put(idx++, caps.getStencilBits());
origin: ch.unibas.cs.gravis/scalismo-native-stub

  res.put(idx++, caps.getAlphaBits());
if (caps.getStencilBits() > 0) {
 res.put(idx++, GLX.GLX_STENCIL_SIZE);
 res.put(idx++, caps.getStencilBits());
origin: ch.unibas.cs.gravis/scalismo-native-stub

  iattributes.put(niattribs++, caps.getAlphaBits());
if(caps.getStencilBits()>0) {
  iattributes.put(niattribs++, WGLExt.WGL_STENCIL_BITS_ARB);
  iattributes.put(niattribs++, caps.getStencilBits());
origin: ch.unibas.cs.gravis/scalismo-native-stub

attrs.put(i++, caps.getStencilBits());
attrs.put(i++, CGL.kCGLPFAAccumSize);
attrs.put(i++, ( caps.getAccumRedBits() +
origin: ch.unibas.cs.gravis/scalismo-native-stub

ivalues.put(idx, caps.getStencilBits());
break;
origin: ch.unibas.cs.gravis/scalismo-native-stub

if(stencilBits > caps.getStencilBits()) {
  return 1;
} else if(stencilBits < caps.getStencilBits()) {
  return -1;
origin: ch.unibas.cs.gravis/scalismo-native-stub

private final void swapFBOImplPost(final GLContext glc) {
  // Safely reset the previous front FBO - after completing propagating swap
  if(0 <= pendingFBOReset) {
    final GLCapabilitiesImmutable caps = (GLCapabilitiesImmutable) surface.getGraphicsConfiguration().getChosenCapabilities();
    reset(glc.getGL(), pendingFBOReset, getSurfaceWidth(), getSurfaceHeight(), samples,
       caps.getAlphaBits()>0, caps.getDepthBits(), caps.getStencilBits());
    pendingFBOReset = -1;
  }
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

 (getGLInteger(gl, GL2.GL_ACCUM_ALPHA_BITS) < reqOffscreenCaps.getAccumAlphaBits()) ||
 (getGLInteger(gl, GL.GL_STENCIL_BITS)     < reqOffscreenCaps.getStencilBits())) {
if (DEBUG) {
 System.err.println(getThreadName()+": GLJPanel: Falling back to pbuffer-based support because Java2D context insufficient");
 System.err.println("GL_ACCUM_ALPHA_BITS " + getGLInteger(gl, GL2.GL_ACCUM_ALPHA_BITS) + "              " + reqOffscreenCaps.getAccumAlphaBits());
 System.err.println("GL_DEPTH_BITS       " + getGLInteger(gl, GL.GL_DEPTH_BITS)       + "              " + reqOffscreenCaps.getDepthBits());
 System.err.println("GL_STENCIL_BITS     " + getGLInteger(gl, GL.GL_STENCIL_BITS)     + "              " + reqOffscreenCaps.getStencilBits());
origin: ch.unibas.cs.gravis/scalismo-native-stub

          (gldes.getAccumRedBits() + gldes.getAccumGreenBits() + gldes.getAccumBlueBits() + gldes.getAccumAlphaBits())));
score += STENCIL_MISMATCH_PENALTY_SCALE * sign(score) * (cur.getStencilBits() - gldes.getStencilBits());
 score += sign(score) * OPAQUE_MISMATCH_PENALTY;
if ((gldes.getStencilBits() > 0) && (cur.getStencilBits() == 0)) {
 score += sign(score) * STENCIL_MISMATCH_PENALTY;
origin: ch.unibas.cs.gravis/scalismo-native-stub

  final GLCapabilitiesImmutable caps = gl.getContext().getGLDrawable().getChosenGLCapabilities();
  reqDepth = caps.getDepthBits();
  reqStencil = caps.getStencilBits();
} else if( REQUESTED_BITS == reqBits ) {
  final GLCapabilitiesImmutable caps = gl.getContext().getGLDrawable().getRequestedGLCapabilities();
  reqDepth = caps.getDepthBits();
  reqStencil = caps.getStencilBits();
} else if( DEFAULT_BITS == reqBits ) {
  reqDepth = 24;
origin: ch.unibas.cs.gravis/scalismo-native-stub

for(int i=0; i<fbos.length; i++) {
  if( pendingFBOReset != i ) {
    reset(gl, i, nWidth, nHeight, samples, caps.getAlphaBits()>0, caps.getDepthBits(), caps.getStencilBits());
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public boolean equals(final Object obj) {
 if(this == obj)  { return true; }
 if(!(obj instanceof GLCapabilitiesImmutable)) {
   return false;
 }
 final GLCapabilitiesImmutable other = (GLCapabilitiesImmutable)obj;
 boolean res = super.equals(obj) &&
        other.getGLProfile()==glProfile &&
        other.isPBuffer()==isPBuffer &&
        other.isFBO()==isFBO &&
        other.getDoubleBuffered() == doubleBuffered &&
        other.getStereo()==stereo &&
        other.getHardwareAccelerated()==hardwareAccelerated &&
        other.getDepthBits()==depthBits &&
        other.getStencilBits()==stencilBits &&
        other.getAccumRedBits()==accumRedBits &&
        other.getAccumGreenBits()==accumGreenBits &&
        other.getAccumBlueBits()==accumBlueBits &&
        other.getAccumAlphaBits()==accumAlphaBits &&
        other.getSampleBuffers()==sampleBuffers;
 if(res && sampleBuffers) {
   res = other.getNumSamples()==getNumSamples() &&
      other.getSampleExtension().equals(sampleExtension) ;
 }
 return res;
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

/**
 * Copies all {@link GLCapabilitiesImmutable} values
 * from <code>source</code> into this instance.
 * @return this instance
 */
public GLCapabilities copyFrom(final GLCapabilitiesImmutable source) {
 super.copyFrom(source);
 glProfile = source.getGLProfile();
 isPBuffer = source.isPBuffer();
 isFBO = source.isFBO();
 doubleBuffered = source.getDoubleBuffered();
 stereo = source.getStereo();
 hardwareAccelerated = source.getHardwareAccelerated();
 depthBits = source.getDepthBits();
 stencilBits = source.getStencilBits();
 accumRedBits = source.getAccumRedBits();
 accumGreenBits = source.getAccumGreenBits();
 accumBlueBits = source.getAccumBlueBits();
 accumAlphaBits = source.getAccumAlphaBits();
 sampleBuffers = source.getSampleBuffers();
 numSamples = source.getNumSamples();
 sampleExtension = source.getSampleExtension();
 return this;
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

pfd.setCAccumAlphaBits((byte) caps.getAccumAlphaBits());
pfd.setCDepthBits((byte) caps.getDepthBits());
pfd.setCStencilBits((byte) caps.getStencilBits());
pfd.setILayerType((byte) GDI.PFD_MAIN_PLANE);
javax.media.openglGLCapabilitiesImmutablegetStencilBits

Javadoc

Returns the number of stencil buffer bits.

Default is 0.

Popular methods of GLCapabilitiesImmutable

  • getDoubleBuffered
    Returns whether double-buffering is requested, available or chosen. Default is true.
  • getStereo
    Returns whether stereo is requested, available or chosen. Default is false.
  • isFBO
    Returns whether FBO offscreen mode is requested, available or chosen. Default is false. For chosen
  • cloneMutable
  • getAccumAlphaBits
    Returns the number of bits for the accumulation buffer's alpha component. On some systems only the a
  • getAccumBlueBits
    Returns the number of bits for the accumulation buffer's blue component. On some systems only the ac
  • getAccumGreenBits
    Returns the number of bits for the accumulation buffer's green component. On some systems only the a
  • getAccumRedBits
    Returns the number of bits for the accumulation buffer's red component. On some systems only the acc
  • getAlphaBits
  • getBlueBits
  • getDepthBits
    Returns the number of depth buffer bits.
  • getGLProfile
    Returns the GL profile you desire or used by the drawable.
  • getDepthBits,
  • getGLProfile,
  • getGreenBits,
  • getHardwareAccelerated,
  • getNumSamples,
  • getRedBits,
  • getSampleBuffers,
  • getSampleExtension,
  • getTransparentBlueValue

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • putExtra (Intent)
  • setContentView (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now