Ejemplo n.º 1
0
Archivo: drawer.py Proyecto: crempp/psg
    def __init__(self):
        """ create the drawer """
        vfs = VirtualFileSystem.getGlobalPtr()

        self.atlas = EggAtlas(gui.theme.ATLAS)

        self.image = loader.loadTexture(gui.theme.TEXTURE)
        self.image.setCompression(Texture.CMOff)
        self.image.setMinfilter(Texture.FTNearest)
        self.image.setMagfilter(Texture.FTLinear)
        self.image.reload()

        self.drawer = self.makeThemeDrawer(gui.node)

        self.w = float(self.image.getXSize())
        self.h = float(self.image.getYSize())

        self.color = Vec4(1, 1, 1, 1)