Updated example for current version of python interface

This commit is contained in:
_ 2018-05-18 01:48:10 -07:00
parent 1cdccac787
commit 549105e536

View File

@ -220,8 +220,7 @@ Example Logic: Extract Textures
size = bd.gettexturesize() size = bd.gettexturesize()
for texture in tx.gettextures(): for texture in tx.gettextures():
with open(filename + str(i) + ".dds", "wb") as fw: with open(filename + str(i) + ".dds", "wb") as fw:
image = cast(texture.data, POINTER(c_ubyte * size))[0] fw.write(texture)
fw.write(image)
i += 1 i += 1
Example Logic: Iterate through all MeshHeaders and Meshes: Example Logic: Iterate through all MeshHeaders and Meshes: