mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-22 13:53:02 +05:30
Added notice about questionably working Textures
This commit is contained in:
parent
b30359aabc
commit
626fc66d64
@ -89,7 +89,7 @@ class Devil1TEX_FN(ctypes.Structure):
|
|||||||
ctypes.c_uint,
|
ctypes.c_uint,
|
||||||
ctypes.c_char_p,
|
ctypes.c_char_p,
|
||||||
ctypes.c_uint)),
|
ctypes.c_uint)),
|
||||||
("gettexture", ctypes.CFUNCTYPE(
|
("gettextures", ctypes.CFUNCTYPE(
|
||||||
ctypes.c_bool,
|
ctypes.c_bool,
|
||||||
ctypes.POINTER(Texture),
|
ctypes.POINTER(Texture),
|
||||||
ctypes.c_uint,
|
ctypes.c_uint,
|
||||||
@ -299,9 +299,12 @@ class TEXtureBatchDescriptor:
|
|||||||
def gettexturesize(self):
|
def gettexturesize(self):
|
||||||
return self.cstruct.contents.textureSize
|
return self.cstruct.contents.textureSize
|
||||||
|
|
||||||
|
|
||||||
|
# Needs testing / correction - gettextures will 'return by parameter'
|
||||||
|
# a dynamic array of textures. Need to be able to access multiple Texture()
|
||||||
class TEXtures:
|
class TEXtures:
|
||||||
def __init__(self, i, batchdescriptor, filedata):
|
def __init__(self, i, count, filedata):
|
||||||
self.cstruct = Texture()[batchdescriptor.gettexno()]
|
self.cstruct = ctypes.byref(Texture())
|
||||||
if filedata:
|
if filedata:
|
||||||
devil1tex.gettextures(self.cstruct, i, filedata, len(filedata))
|
devil1tex.gettextures(self.cstruct, i, filedata, len(filedata))
|
||||||
return
|
return
|
||||||
@ -383,6 +386,7 @@ if __name__ == "__main__":
|
|||||||
tbd = TEXtureBatchDescriptor(1, data)
|
tbd = TEXtureBatchDescriptor(1, data)
|
||||||
tbd.show()
|
tbd.show()
|
||||||
print(tbd.gettexturesize())
|
print(tbd.gettexturesize())
|
||||||
|
tx = TEXtures(0, tbd.gettexno(), data)
|
||||||
|
|
||||||
#---------------------------------------+
|
#---------------------------------------+
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user