mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-25 16:28:57 +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()
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user