예제 #1
0
 def __call__( self, arg, baseOperation, pyArgs ):
     """pyConverter for the pixels argument"""
     images.setupDefaultTransferMode()
     images.rankPacking( self.rank )
     type = pyArgs[ self.typeIndex ]
     arrayType = arrays.GL_CONSTANT_TO_ARRAY_TYPE[ images.TYPE_TO_ARRAYTYPE[ type ] ]
     return arrayType.asArray( arg )
예제 #2
0
	def __call__( self, arg, baseOperation, pyArgs ):
		"""pyConverter for the pixels argument"""
		images.setupDefaultTransferMode()
		images.rankPacking( self.rank )
		type = pyArgs[ self.typeIndex ]
		try:
			arrayType = arrays.GL_CONSTANT_TO_ARRAY_TYPE[ images.TYPE_TO_ARRAYTYPE[ type ] ]
		except TypeError, err:
			import pdb
			pdb.set_trace()
예제 #3
0
 def __call__(self, arg, baseOperation, pyArgs):
     """The pyConverter for the pixels"""
     images.setupDefaultTransferMode()
     images.rankPacking(self.rank)
     return self.arrayType.asArray(arg)
예제 #4
0
	def __call__( self, arg, baseOperation, pyArgs ):
		"""The pyConverter for the pixels"""
		images.setupDefaultTransferMode()
		images.rankPacking( self.rank )
		return self.arrayType.asArray( arg )