public class SoGLDisplayList extends SoBaseContextObject
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.Deprecated since Open Inventor 9610
No longer supported, will be removed in next major release
Modifier and Type | Class and Description |
---|---|
static class |
SoGLDisplayList.Types
Deprecated.
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoGLDisplayList(SoState state,
SoGLDisplayList.Types type)
Deprecated.
Calls SoGLDisplayList(state, type, (int)1).
|
SoGLDisplayList(SoState state,
SoGLDisplayList.Types type,
int numToAllocate)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDependency(SoState state)
Deprecated.
Adds a dependency on this object if there is another display list open in the state.
|
void |
call(SoState state)
Deprecated.
Calls call(state, (int)0).
|
void |
call(SoState state,
int index)
Deprecated.
For DISPLAY_LIST objects, invokes the display list (calls glCallList).
|
boolean |
close(SoState state)
Deprecated.
For DISPLAY_LIST objects, closes the display list (calls glEndList).
|
boolean |
getCompileAndExecute()
Deprecated.
Returns true if current display list mode is GL_COMPILE_AND_EXECUTE.
|
int |
getFirstIndex()
Deprecated.
Returns id of first OpenGL object owned by this instance.
|
int |
getNumAllocated()
Deprecated.
Returns number of OpenGL objects owned by this instance.
|
SoGLRenderCache |
getParentRenderCache()
Deprecated.
Returns the parent render cache (initially NULL).
|
SoGLDisplayList.Types |
getType()
Deprecated.
Returns the object type (display list, texture, etc)
|
void |
open(SoState state)
Deprecated.
Calls open(state, (int)0).
|
void |
open(SoState state,
int index)
Deprecated.
For DISPLAY_LIST objects, creates a new OpenGL display list (calls glNewList).
|
void |
setCompileAndExecute(boolean flag)
Deprecated.
Sets whether to use GL_COMPILE or GL_COMPILE_AND_EXECUTE mode for display lists.
|
void |
setParentRenderCache(SoGLRenderCache parent)
Deprecated.
Sets the parent render cache.
|
getContextSharedGroup, release
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int DISPLAY_LIST
SoGLDisplayList.Types.DISPLAY_LIST
instead.@Deprecated public static final int TEXTURE1D_OBJECT
SoGLDisplayList.Types.TEXTURE1D_OBJECT
instead.@Deprecated public static final int TEXTURE2D_OBJECT
SoGLDisplayList.Types.TEXTURE2D_OBJECT
instead.@Deprecated public static final int TEXTURE2D_ARRAY_OBJECT
SoGLDisplayList.Types.TEXTURE2D_ARRAY_OBJECT
instead.@Deprecated public static final int TEXTURE3D_OBJECT
SoGLDisplayList.Types.TEXTURE3D_OBJECT
instead.@Deprecated public static final int TEXTURE_CUBE_MAP_OBJECT
SoGLDisplayList.Types.TEXTURE_CUBE_MAP_OBJECT
instead.@Deprecated public static final int FRAGMENT_PROGRAM_OBJECT
SoGLDisplayList.Types.FRAGMENT_PROGRAM_OBJECT
instead.@Deprecated public static final int VERTEX_PROGRAM_OBJECT
SoGLDisplayList.Types.VERTEX_PROGRAM_OBJECT
instead.@Deprecated public static final int TEXTURE_RECTANGLE_OBJECT
SoGLDisplayList.Types.TEXTURE_RECTANGLE_OBJECT
instead.@Deprecated public static final int GLSL_FRAGMENT_SHADER_OBJECT
SoGLDisplayList.Types.GLSL_FRAGMENT_SHADER_OBJECT
instead.@Deprecated public static final int GLSL_VERTEX_SHADER_OBJECT
SoGLDisplayList.Types.GLSL_VERTEX_SHADER_OBJECT
instead.@Deprecated public static final int GLSL_GEOMETRY_SHADER_OBJECT
SoGLDisplayList.Types.GLSL_GEOMETRY_SHADER_OBJECT
instead.@Deprecated public static final int GLSL_PROGRAM_OBJECT
SoGLDisplayList.Types.GLSL_PROGRAM_OBJECT
instead.@Deprecated public static final int BUFFER_OBJECT
SoGLDisplayList.Types.BUFFER_OBJECT
instead.@Deprecated public static final int FRAMEBUFFER_OBJECT
SoGLDisplayList.Types.FRAMEBUFFER_OBJECT
instead.@Deprecated public static final int ARRAY_BUFFER_OBJECT
SoGLDisplayList.Types.ARRAY_BUFFER_OBJECT
instead.@Deprecated public static final int ELEMENT_ARRAY_BUFFER_OBJECT
SoGLDisplayList.Types.ELEMENT_ARRAY_BUFFER_OBJECT
instead.@Deprecated public static final int RENDERBUFFER_OBJECT
SoGLDisplayList.Types.RENDERBUFFER_OBJECT
instead.@Deprecated public static final int QUERY
SoGLDisplayList.Types.QUERY
instead.@Deprecated public static final int GLSL_TESSELLATION_CONTROL_SHADER_OBJECT
SoGLDisplayList.Types.GLSL_TESSELLATION_CONTROL_SHADER_OBJECT
instead.@Deprecated public static final int GLSL_TESSELLATION_EVALUATION_SHADER_OBJECT
SoGLDisplayList.Types.GLSL_TESSELLATION_EVALUATION_SHADER_OBJECT
instead.@Deprecated public static final int TRANSFORM_FEEDBACK
SoGLDisplayList.Types.TRANSFORM_FEEDBACK
instead.public SoGLDisplayList(SoState state, SoGLDisplayList.Types type)
public SoGLDisplayList(SoState state, SoGLDisplayList.Types type, int numToAllocate)
numToAllocate > 1 is currently only meaningful for display lists.
Calls the appropriate glGen or glCreate function to create empty objects/display lists. If a texture object is requested and texture objects are not supported, the type will revert to DISPLAY_LIST.
public void call(SoState state)
public void open(SoState state)
public int getFirstIndex()
public void open(SoState state, int index)
public boolean close(SoState state)
call()
method to invoke it. COMPILE_AND_EXECUTE is the default, see the setCompileAndExecute()
method.
For other object types, does nothing.
public SoGLDisplayList.Types getType()
public void setParentRenderCache(SoGLRenderCache parent)
public int getNumAllocated()
public SoGLRenderCache getParentRenderCache()
public void call(SoState state, int index)
This automatically adds a dependency (calls addDependency()
) if there is another display list open in the state. You can also use the get() methods below and make the OpenGL calls yourself, in which case you should call the addDependency()
method directly to do the correct reference counting.
public boolean getCompileAndExecute()
public void addDependency(SoState state)
public void setCompileAndExecute(boolean flag)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com