reference_holder.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:UMOG 作者: hsab 项目源码 文件源码
def getRefForMatrix(self, matrix):
        matrix_name = np.array2string(matrix)
        if matrix_name in self.tdict:
            return self.tdict[matrix_name]
        oldidx = self.ntindex
        self.ntindex += 1
        # setup the empty texture array
        self.matrices[oldidx] = matrix
        self.tdict[matrix_name] = oldidx
        # now fill in the values
        return oldidx
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号