peng3d/resource.py
def addCategory(self,name):
        """
        Adds a new texture category with the given name.
        
        If the category already exists, it will be overridden.
        """
        self.categories[name]={}
        self.categoriesTexCache[name]={}
        self.categoriesTexBin[name]=pyglet.image.atlas.TextureBin(self.texsize,self.texsize)
        self.peng.sendEvent("peng3d:rsrc.category.add",{"peng":self.peng,"category":name})
def addCategory(self,name):
        self.categories[name]={}
        self.categoriesTexCache[name]={}
        self.categoriesTexBin[name]=pyglet.image.atlas.TextureBin(self.texsize,self.texsize)
        self.peng.sendEvent("peng3d:rsrc.category.add",{"peng":self.peng,"category":name})
def addCategory ( self , name ) : self . categories [ name ] = { } self . categoriesTexCache [ name ] = { } self . categoriesTexBin [ name ] = pyglet . image . atlas . TextureBin ( self . texsize , self . texsize ) self . peng . sendEvent ( "peng3d:rsrc.category.add" , { "peng" : self . peng , "category" : name } )
Adds a new texture category with the given name.
        
        If the category already exists, it will be overridden.
Adds a new texture category with the given name . If the category already exists it will be overridden .