Ejemplo n.º 1
0
 def read(self):
     values = self.stream.unpack('3f B 2f')
     position = Vector3._make(values[0:3])
     normal = values[3]
     texture_coord = Vector2._make(values[4:6])
     return VertexPositionNormalTextureInstance(position, normal,
                                                texture_coord)
Ejemplo n.º 2
0
 def read(self):
     values = self.stream.unpack('3f B 2f')
     position = Vector3._make(
         values[0:3])  # pylint: disable-msg=W0212,E1101
     normal = values[3]
     texture_coord = Vector2._make(
         values[4:6])  # pylint: disable-msg=W0212,E1101
     return VertexPositionNormalTextureInstance(position, normal,
                                                texture_coord)
Ejemplo n.º 3
0
 def read(self):
     values = self.stream.unpack('3f B 2f')
     position = Vector3._make(values[0:3])  # pylint: disable-msg=W0212,E1101
     normal = values[3]
     texture_coord = Vector2._make(values[4:6])  # pylint: disable-msg=W0212,E1101
     return VertexPositionNormalTextureInstance(position, normal, texture_coord)
Ejemplo n.º 4
0
 def read_vector2(self):
     return Vector2._make(self.unpack('2f'))  # pylint: disable-msg=W0212,E1101
Ejemplo n.º 5
0
 def read(self):
     return Vector2._make(self.stream.unpack('2f'))
Ejemplo n.º 6
0
 def read(self):
     return Vector2._make(self.stream.unpack('2f'))  # pylint: disable-msg=W0212,E1101
Ejemplo n.º 7
0
 def read_vector2(self):
     return Vector2._make(self.unpack('2f'))
Ejemplo n.º 8
0
 def read(self):
     return Vector2._make(self.stream.unpack('2f'))