Debian Codegraph @

doc/man/man3/ivm/actions/SoGLRenderAction.ivm

raw
1 NAME SoGLRenderAction SoGLRenderAct "SO_GL_RENDER_ACT_" {
2 renders a scene graph using OpenGL
3 }
4
5 INCLUDE actions/SoGLRenderAction.h
6
7 DESC {
8 This class traverses a scene graph and renders it using the OpenGL
9 graphics library. It assumes that a valid window has been created
10 and initialized for proper OpenGL rendering. The \cSoXtRenderArea\.
11 class or any of its subclasses may be used to create such a window.
12 }
13
14 TYPEDEF AbortCode SoGLRenderAbortCB "(void *userData)"
15 TYPEDEF void SoGLRenderPassCB "(void *userData)"
16
17 ENUM TransparencyType {
18 SCREEN_DOOR "Uses stipple patterns for screen-door transparency",
19 ADD "Uses additive alpha blending",
20 DELAYED_ADD "Uses additive blending, rendering all transparent
21 objects after opaque ones",
22 SORTED_OBJECT_ADD "Same as DELAYED_ADD, but sorts transparent objects
23 by distances of bounding boxes from camera",
24 BLEND "Uses multiplicative alpha blending",
25 DELAYED_BLEND "Uses multiplicative alpha blending, rendering all
26 transparent objects after opaque ones",
27 SORTED_OBJECT_BLEND "Same as DELAYED_BLEND, but sorts transparent objects
28 by distances of bounding boxes from camera"
29 }
30
31 ENUM AbortCode {
32 CONTINUE "Continue traversal as usual",
33 ABORT "Stop traversing the rest of the graph",
34 PRUNE "Do not traverse this node or its children, but continue",
35 DELAY "Delay rendering of this node until the second pass"
36 }
37
38 METHOD "" SoGLRenderAction(const SbViewportRegion &viewportRegion) {
39 Constructor. The parameter defines the viewport region into
40 which rendering will take place.
41 }
42
43 METHOD setVPReg void setViewportRegion(const SbViewportRegion &newRegion) {}
44 METHOD getVPReg const SbViewportRegion &getViewportRegion() const {
45 Changes/returns viewport region to use for rendering.
46 }
47
48 METHOD "" void setUpdateArea(const SbVec2f &origin, const SbVec2f &size) {}
49 METHOD "" void getUpdateArea(SbVec2f &origin, SbVec2f &size) const {
50 Sets/returns the current update area, which is the rectangular area of
51 the viewport region that will actually be rendered into. This can be
52 used for partial updates in applications that can manage them. The
53 update area is specified in normalized viewport coordinates, where
54 (0,0) is the lower left corner of the viewport and (1,1) is the upper
55 right corner. The area is specified or returned as an origin and a size.
56 }
57
58 METHOD setAbortCB void
59 setAbortCallback(SoGLRenderAbortCB *func, void *userData) {
60 Sets callback to call during rendering to test for an abort condition.
61 It will be called for each node that is traversed.
62 This allows applications to terminate rendering prematurely if some
63 condition occurs. The callback function should return one of the AbortCode
64 codes to indicate whether traversal should continue. Use of the various
65 codes in a callback can allow applications to modify Inventor's default
66 order of rendering objects in a scene graph.
67 }
68
69 METHOD setTranspType void setTransparencyType(TransparencyType type) {}
70 METHOD getTranspType TransparencyType getTransparencyType() const {
71 Sets/returns transparency quality level to use when rendering. The
72 default is SCREEN_DOOR. (Note that SCREEN_DOOR transparency does not work
73 in the case where transparency values are specified for each vertex
74 of a shape. If this is the case, use one of the other transparency types.)
75 }
76
77 METHOD "" void setSmoothing(SbBool smooth) {}
78 METHOD "" SbBool isSmoothing() const {
79 Sets/returns smoothing flag. When on, smoothing uses OpenGL's line-
80 and point-smoothing features to provide cheap antialiasing of lines
81 and points. The default is FALSE.
82 }
83
84 METHOD "" void setNumPasses(int num) {}
85 METHOD "" int getNumPasses() const {
86 Sets/returns number of rendering passes for multipass rendering.
87 Specifying more than one pass will result in antialiasing of the
88 rendered scene, using OpenGL's accumulation buffer. (Camera nodes
89 typically move their viewpoints a little bit for each pass to achieve
90 the antialiasing.) Each additional pass provides better
91 antialiasing, but requires more rendering time The default is 1 pass.
92 }
93
94 METHOD "" void setPassUpdate(SbBool flag) {}
95 METHOD "" SbBool isPassUpdate() const {
96 Sets/returns a flag indicating whether intermediate results are
97 displayed after each antialiasing pass for progressive improvement
98 (default is FALSE).
99 }
100
101 METHOD setPassCB void setPassCallback(SoGLRenderPassCB *func, void *userData) {
102 Sets a callback function to invoke between passes when antialiasing.
103 Passing NULL (which is the default state) will cause a clear of the color
104 and depth buffers to be performed.
105 }
106
107 METHOD "" void setCacheContext(uint32_t context) {}
108 METHOD "" uint32_t getCacheContext() const {
109 Sets/returns the OpenGL cache context. A cache context is just an
110 integer identifying when OpenGL display lists (which are used for
111 render caching) can be shared between render actions; for example, see
112 the documentation on GLX contexts for information on when OpenGL
113 display lists can be shared between GLX windows.
114 }
115
116 ALSO { SoSeparator, SoXtRenderArea }
117