mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-25 00:09:36 +05:30
Updated example for current version of python interface
This commit is contained in:
parent
1cdccac787
commit
549105e536
@ -220,8 +220,7 @@ Example Logic: Extract Textures
|
||||
size = bd.gettexturesize()
|
||||
for texture in tx.gettextures():
|
||||
with open(filename + str(i) + ".dds", "wb") as fw:
|
||||
image = cast(texture.data, POINTER(c_ubyte * size))[0]
|
||||
fw.write(image)
|
||||
fw.write(texture)
|
||||
i += 1
|
||||
|
||||
Example Logic: Iterate through all MeshHeaders and Meshes:
|
||||
|
Loading…
Reference in New Issue
Block a user