SickGear/lib/hachoir_parser/misc/common.py
2015-08-20 16:48:28 +01:00

13 lines
397 B
Python

from hachoir_core.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)