public static enum SoGLContext.SharedGroupPolicies extends java.lang.Enum<SoGLContext.SharedGroupPolicies> implements IntegerValuedEnum
Enum Constant and Description |
---|
AGGRESSIVE
Aggressive sharing (default)
Tries to share contexts, independent of their sharing constraint. |
CONSERVATIVE
Conservative sharing (not available on Unix)
Only add context to a share group containing contexts with the constraint (ex: same pixel format for SoGLContext objects). |
DISABLED
Disables context sharing (same behavior as v2.6 and older)
|
Modifier and Type | Method and Description |
---|---|
static SoGLContext.SharedGroupPolicies |
fromValue(int val)
Deprecated.
Use
valueOf(int) instead. |
int |
getValue()
Returns the integer value of the enum constant.
|
static SoGLContext.SharedGroupPolicies |
valueOf(int val)
Returns the enum constant of this type with the specified integer value
|
static SoGLContext.SharedGroupPolicies |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoGLContext.SharedGroupPolicies[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoGLContext.SharedGroupPolicies DISABLED
public static final SoGLContext.SharedGroupPolicies CONSERVATIVE
SoGLContext
objects).
This mode matchs the official behavior of the wglShareLists() function. (Please refer to Microsoft documentation for more details.)public static final SoGLContext.SharedGroupPolicies AGGRESSIVE
public static SoGLContext.SharedGroupPolicies[] values()
for (SoGLContext.SharedGroupPolicies c : SoGLContext.SharedGroupPolicies.values()) System.out.println(c);
public static SoGLContext.SharedGroupPolicies valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public static SoGLContext.SharedGroupPolicies fromValue(int val)
valueOf(int)
instead.public static SoGLContext.SharedGroupPolicies valueOf(int val)
public int getValue()
IntegerValuedEnum
getValue
in interface IntegerValuedEnum
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com