Error using glCompressedTexImage2D
Nathen Hinson <[email protected]> Fri, 3 Feb 2017 18:02:52 -0600
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CAP0HyQnf_iSSRmC5oXXNvdpJgK7=ft_Tf9cTEtzNXwKJvf+E9A@mail.gmail.com> |
--===============7289457150186030469==
Content-Type: multipart/alternative; boundary=001a11405384a6376a0547a91ef4
--001a11405384a6376a0547a91ef4
Content-Type: text/plain; charset=UTF-8
Hello,
I am receiving the following error when attempting to load bytes
using glCompressedTexImage2D as the last argument, referenced as "data" in
the docs.
AttributeError: ("'module' object has no attribute 'ArrayType'", 'Failure
in cConverter <OpenGL.GL.images.CompressedImageConverter object at
0x10232d050>', (GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, 32, 32,
0, 1024), 6, <OpenGL.platform.baseplatform.glCompressedTexImage2D object at
0x10232b7e8>)
I have tried to load the data as bytes (using the built-in python bytes
function), bytearray (builtin function) and simply as read from the file.
The error is identical for all three approaches.
Any thoughts on how to remediate this?
With Thanks!
Nathen Hinson
--001a11405384a6376a0547a91ef4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hello,=C2=A0<div><br></div><div>I am receiving the followi=
ng error when attempting to load bytes using=C2=A0glCompressedTexImage2D as=
the last argument, referenced as "data" in the docs.</div><div>
<p class=3D"gmail-p1"><span class=3D"gmail-s1">AttributeError: ("'=
module' object has no attribute 'ArrayType'", 'Failure=
in cConverter <OpenGL.GL.images.CompressedImageConverter object at 0x10=
232d050>', (GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, 32, =
32, 0, 1024), 6, <OpenGL.platform.baseplatform.glCompressedTexImage2D ob=
ject at 0x10232b7e8>)</span></p><p class=3D"gmail-p1"><br></p><p class=
=3D"gmail-p1">I have tried to load the data as bytes (using the built-in py=
thon bytes function), bytearray (builtin function) and simply as read from =
the file. The error is identical for all three approaches.=C2=A0</p><p clas=
s=3D"gmail-p1"><br></p><p class=3D"gmail-p1">Any thoughts on how to remedia=
te this?=C2=A0</p><p class=3D"gmail-p1">With Thanks!=C2=A0</p><p class=3D"g=
mail-p1"><br></p><p class=3D"gmail-p1">Nathen Hinson</p></div></div>
--001a11405384a6376a0547a91ef4--
--===============7289457150186030469==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--===============7289457150186030469==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users
--===============7289457150186030469==--