Author: ArcRiley
Date: 2008-01-09 20:48:52 +0000 (Wed, 09 Jan 2008)
New Revision: 760
Modified:
trunk/pysoy/src/textures/Texture.pxi
Log:
adding some debug lines
Modified: trunk/pysoy/src/textures/Texture.pxi
===================================================================
--- trunk/pysoy/src/textures/Texture.pxi 2008-01-09 20:36:58 UTC (rev
759)
+++ trunk/pysoy/src/textures/Texture.pxi 2008-01-09 20:48:52 UTC (rev
760)
@@ -97,6 +97,7 @@
cdef void _bind(self) :
+ stdio.printf('binding to %d %d %d %d\n', self._chans, self._width,
self._height, self._depth)
py.PyThread_acquire_lock(self._mutex,1)
if self._textureTarget == gl.GL_TEXTURE_1D :
gl.glEnable(gl.GL_TEXTURE_1D)
@@ -142,6 +143,7 @@
gl.glMatrixMode(gl.GL_TEXTURE)
gl.glScalef(self._scaleX, self._scaleY, self._scaleZ)
py.PyThread_release_lock(self._mutex)
+ stdio.printf('done binding\n')
#cdef int max_size
#gl.glGetIntegerv(gl.GL_MAX_TEXTURE_SIZE, &max_size)
@@ -164,6 +166,7 @@
cdef void _resize(self, int c, int x, int y, int z) :
cdef long int _size
_size = c*x*y*z
+ stdio.printf('resizing to %d %d %d %d\n', c, x, y, z)
if _size == 0 :
self._textureTarget = 0
if self._width != 0 :
@@ -185,6 +188,7 @@
self._width = x
self._height = y
self._depth = z
+ stdio.printf('resize complete\n)
cdef int _squareup(self, int _v) :
_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn