Error/Typo in glTexImage2D documentation
Brought to you by:
mcfletch
In the documentation for glTexImage2D located at
http://pyopengl.sourceforge.net/documentation/manual/glTexImage2D.3G.html,
the documenation specifies that the width and height of
the image must be
2 n + 2 (border),
where n is an integer. I attempted to call the function
with a bitmap matching that criterion and it raised an
exception with
"[Errno 1281] invalid value".
I found another OpenGL document somewhere on the web
which stated that the image dimensions must each be
2^n + 2 (border),
where n is an integer. That eliminated the problem.
I'm not sure if it's a typo or a formatting problem in
the html.
-thomas
Logged In: YES
user_id=34901
Hmm, not sure how to go about fixing this. Basically, the
Math-ML is set up to show as (the equivalent of)
2<super>n</super>, but your browser isn't rendering it as
such. I can't actually reproduce the problem on my machine
because both IE and Mozilla render it as 2 with n as a
superscript. Given that is auto-generated from the standard
OpenGL docs, it's not really something I feel like going
through to fix manually.
Suggestions welcome. (Would it be possible to include a
MathML stylesheet that takes over if MathML support isn't
available?)