Author: ArcRiley
Date: 2007-07-07 07:09:53 -0400 (Sat, 07 Jul 2007)
New Revision: 401
Modified:
trunk/pysoy/src/textures/Video.pxi
Log:
added a quick .offset property to watch time pass
Modified: trunk/pysoy/src/textures/Video.pxi
===================================================================
--- trunk/pysoy/src/textures/Video.pxi 2007-07-07 10:33:20 UTC (rev 400)
+++ trunk/pysoy/src/textures/Video.pxi 2007-07-07 11:09:53 UTC (rev 401)
@@ -119,6 +119,7 @@
_page = <ogg.ogg_page *> data
return 1
+
cdef int _ready(self) :
cdef timeval _tv
cdef double _now
@@ -129,3 +130,8 @@
if self._frameTime == 0.0 or self._startTime + self._frameTime < _now :
return 1
return 0
+
+
+ property offset :
+ def __get__(self) :
+ return self._frameTime
_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn