summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libgl.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-13 06:58:54 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-13 06:58:54 (GMT)
commit1947991c2f85db781fb3fcdc9e3bcfe2905e58e2 (patch)
tree260789493c7151408f009eaa84a7815ce4d28246 /Doc/lib/libgl.tex
parentdc8af0acc1fbeec89e43f1ea43bf1a4d016f4fc6 (diff)
downloadcpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.zip
cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.tar.gz
cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.tar.bz2
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty. Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}" everywhere. Some other minor nits that I happened to come across.
Diffstat (limited to 'Doc/lib/libgl.tex')
-rw-r--r--Doc/lib/libgl.tex22
1 files changed, 11 insertions, 11 deletions
diff --git a/Doc/lib/libgl.tex b/Doc/lib/libgl.tex
index b168681..b694d86 100644
--- a/Doc/lib/libgl.tex
+++ b/Doc/lib/libgl.tex
@@ -41,15 +41,15 @@ All (short, long, unsigned) integer arguments or return values that are
only used to specify the length of an array argument are omitted.
For example, the C call
-\bcode\begin{verbatim}
+\begin{verbatim}
lmdef(deftype, index, np, props)
-\end{verbatim}\ecode
+\end{verbatim}
%
is translated to Python as
-\bcode\begin{verbatim}
+\begin{verbatim}
lmdef(deftype, index, props)
-\end{verbatim}\ecode
+\end{verbatim}
%
\item
Output arguments are omitted from the argument list; they are
@@ -60,22 +60,22 @@ because of the previous rule) and an output argument, the return value
comes first in the tuple.
Examples: the C call
-\bcode\begin{verbatim}
+\begin{verbatim}
getmcolor(i, &red, &green, &blue)
-\end{verbatim}\ecode
+\end{verbatim}
%
is translated to Python as
-\bcode\begin{verbatim}
+\begin{verbatim}
red, green, blue = getmcolor(i)
-\end{verbatim}\ecode
+\end{verbatim}
%
\end{itemize}
The following functions are non-standard or have special argument
conventions:
-\renewcommand{\indexsubitem}{(in module gl)}
+\setindexsubitem{(in module gl)}
\begin{funcdesc}{varray}{argument}
%JHXXX the argument-argument added
Equivalent to but faster than a number of
@@ -160,7 +160,7 @@ No method is provided to detect buffer overrun.
Here is a tiny but complete example GL program in Python:
-\bcode\begin{verbatim}
+\begin{verbatim}
import gl, GL, time
def main():
@@ -182,7 +182,7 @@ def main():
time.sleep(5)
main()
-\end{verbatim}\ecode
+\end{verbatim}
%
\section{Standard Modules \sectcode{GL} and \sectcode{DEVICE}}
\nodename{GL and DEVICE}