<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>glutVisibilityFunc</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.09 Man Pages"/><link rel="up" href="reference-GLUT.xml" title="GLUT"/><link rel="previous" href="glutVideoResizeGet.3GLUT.xml" title="glutVideoResizeGet"/><link rel="next" href="glutWarpPointer.3GLUT.xml" title="glutWarpPointer"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">glutVisibilityFunc</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glutVideoResizeGet.3GLUT.xml">Prev</a> </td><th width="60%" align="center">GLUT</th><td width="20%" align="right"> <a accesskey="n" href="glutWarpPointer.3GLUT.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glutVisibilityFunc.3GLUT"/><div class="titlepage"/><div class="refnamediv"><a name="glutVisibilityFunc.3GLUT-name"/><h2>Name</h2><p>glutVisibilityFunc &#8212; sets the visibility callback for the current window.</p></div><div class="refsect1" lang="en"><a name="glutVisibilityFunc.3GLUT-c_spec"/><h2>C Specification</h2><p>
			void glutVisibilityFunc(void (*func)(int state));
		</p></div><div class="refsect1" lang="en"><a name="glutVisibilityFunc.3GLUT-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>func</tt></i></span></dt><dd>
						The new visibility callback function.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glutVisibilityFunc.3GLUT-description"/><h2>Description</h2><p>
			<tt>glutVisibilityFunc</tt> sets the visibility callback for the current window. The visibility callback
			for a window is called when the visibility of a window changes. The <i><tt>state</tt></i> callback parameter is
			either <tt>GLUT_NOT_VISIBLE</tt> or <tt>GLUT_VISIBLE</tt> depending on the current visibility
			of the window. <tt>GLUT_VISIBLE</tt> does not distinguish a window being totally versus partially visible.
			<tt>GLUT_NOT_VISIBLE</tt> means no part of the window is visible, i.e., until the window's visibility
			changes, all further rendering to the window is discarded.
		</p><p>
			GLUT considers a window visible if any pixel of the window is visible or any pixel of any descendant window is visible
			on the screen.
		</p><p>
			Passing <tt>NULL</tt> to <tt>glutVisibilityFunc</tt> disables the generation of the visibility
			callback.
		</p><p>
			If the visibility callback for a window is disabled and later re-enabled, the visibility status of the window is
			undefined; any change in window visibility will be reported, that is if you disable a visibility callback and re-enable
			the callback, you are guaranteed the next visibility change will be reported.
		</p><p>
			Setting the visibility callback for a window disables the window status callback set for the window (and vice versa).
			The window status callback is set with <a href="glutWindowStatusFunc.3GLUT.xml"><tt>glutWindowStatusFunc</tt></a>.
			<tt>glutVisibilityFunc</tt> is deprecated in favor of the more informative <a href="glutWindowStatusFunc.3GLUT.xml"><tt>glutWindowStatusFunc</tt></a>.
		</p></div><div class="refsect1" lang="en"><a name="glutVisibilityFunc.3GLUT-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glutCreateWindow.3GLUT.xml">glutCreateWindow</a>, <a href="glutPopWindow.3GLUT.xml">glutPopWindow</a>, <a href="glutWindowStatusFunc.3GLUT.xml">glutWindowStatusFunc</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glutVideoResizeGet.3GLUT.xml">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-GLUT.xml">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="glutWarpPointer.3GLUT.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glutVideoResizeGet </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> glutWarpPointer</td></tr></table></div></body></html>