peng3d/resource.py
def getMissingTexture(self):
        """
        Returns a texture to be used as a placeholder for missing textures.
        
        A default missing texture file is provided in the assets folder of the source distribution.
        It consists of a simple checkerboard pattern of purple and black, this image may be copied to any project using peng3d for similar behavior.
        
        If this texture cannot be found, a pattern is created in-memory, simply a solid square of purple.
        
        This texture will also be cached separately from other textures.
        """
        if self.missingTexture is None:
            if self.resourceExists(self.missingtexturename,".png"):
                self.missingTexture = pyglet.image.load(self.resourceNameToPath(self.missingtexturename,".png"))
                return self.missingTexture
            else: # Falls back to create pattern in-memory
                self.missingTexture = pyglet.image.create(1,1,pyglet.image.SolidColorImagePattern([255,0,255,255]))
                return self.missingTexture
        else:
            return self.missingTexture
def getMissingTexture(self):
        """
        Returns a texture to be used as a placeholder for missing textures.
        
        A default missing texture file is provided in the assets folder of the source distribution.
        It consists of a simple checkerboard pattern of purple and black, this image may be copied to any project using peng3d for similar behavior.
        
        If this texture cannot be found, a pattern is created in-memory, simply a solid square of purple.
        
        This texture will also be cached separately from other textures.
        """
        if self.missingTexture is None:
            if self.resourceExists(self.missingtexturename,".png"):
                self.missingTexture = pyglet.image.load(self.resourceNameToPath(self.missingtexturename,".png"))
                return self.missingTexture
            else: # Falls back to create pattern in-memory
                self.missingTexture = pyglet.image.create(1,1,pyglet.image.SolidColorImagePattern([255,0,255,255]))
                return self.missingTexture
        else:
            return self.missingTexture
Returns a texture to be used as a placeholder for missing textures.
        
        A default missing texture file is provided in the assets folder of the source distribution.
        It consists of a simple checkerboard pattern of purple and black, this image may be copied to any project using peng3d for similar behavior.
        
        If this texture cannot be found, a pattern is created in-memory, simply a solid square of purple.
        
        This texture will also be cached separately from other textures.