mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-27 05:03:37 +00:00
e56303798c
Initial SickGear for Python 3.
15 lines
394 B
Python
15 lines
394 B
Python
from hachoir.field import StaticFieldSet, Float32
|
|
|
|
|
|
class Vertex(StaticFieldSet):
|
|
format = ((Float32, "x"), (Float32, "y"), (Float32, "z"))
|
|
|
|
def createValue(self):
|
|
return (self["x"].value, self["y"].value, self["z"].value)
|
|
|
|
|
|
class MapUV(StaticFieldSet):
|
|
format = ((Float32, "u"), (Float32, "v"))
|
|
|
|
def createValue(self):
|
|
return (self["u"].value, self["v"].value)
|