Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
cd73d323
Commit
cd73d323
authored
Jul 28, 1995
by
Ken Martin
Browse files
delete methods
parent
32bf6e41
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/GlrRenW.cc
View file @
cd73d323
...
...
@@ -110,6 +110,27 @@ vtkGlrRenderWindow::vtkGlrRenderWindow()
strcpy
(
this
->
Name
,
"Visualization Toolkit - GL"
);
}
// Description:
// Resize the window.
vtkGlrRenderWindow
::~
vtkGlrRenderWindow
()
{
short
cur_light
;
/* first delete all the old lights */
for
(
cur_light
=
LIGHT0
;
cur_light
<
LIGHT0
+
MAX_LIGHTS
;
cur_light
++
)
{
lmbind
(
cur_light
,
0
);
}
// then close the old window
if
(
this
->
OwnWindow
)
{
XDestroyWindow
(
this
->
DisplayId
,
this
->
WindowId
);
}
GLXunlink
(
this
->
DisplayId
,
this
->
WindowId
);
XSync
(
this
->
DisplayId
,
0
);
}
// Description:
// Create a gl specific light.
vtkLightDevice
*
vtkGlrRenderWindow
::
MakeLight
()
...
...
src/OglrRenW.cc
View file @
cd73d323
...
...
@@ -174,6 +174,27 @@ vtkOglrRenderWindow::vtkOglrRenderWindow()
strcpy
(
this
->
Name
,
"Visualization Toolkit - OpenGL"
);
}
// Description:
// free up memory & close the window
vtkOglrRenderWindow
::~
vtkOglrRenderWindow
()
{
short
cur_light
;
/* first delete all the old lights */
for
(
cur_light
=
GL_LIGHT0
;
cur_light
<
GL_LIGHT0
+
MAX_LIGHTS
;
cur_light
++
)
{
glDisable
(
cur_light
);
}
glXDestroyContext
(
this
->
DisplayId
,
this
->
ContextId
);
// then close the old window
if
(
this
->
OwnWindow
)
{
XDestroyWindow
(
this
->
DisplayId
,
this
->
WindowId
);
}
XSync
(
this
->
DisplayId
,
0
);
}
// Description:
// Create a OpenGL specific light.
vtkLightDevice
*
vtkOglrRenderWindow
::
MakeLight
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment