def create_texture(self, cls, rectangle=False, force_rectangle=False):
        internalformat = self._get_internalformat(self.format)
        texture = cls.create(self.width, self.height, internalformat, 
                             rectangle, force_rectangle)
        if self.anchor_x or self.anchor_y:
            texture.anchor_x = self.anchor_x
            texture.anchor_y = self.anchor_y

        self.blit_to_texture(texture.target, texture.level, 
                             self.anchor_x, self.anchor_y, 0, None)
        
        return texture
Initialize kqueue object, file descriptor tracking dictionaries, and
dataset/ETHPy150Open ardekantur/pyglet/pyglet/image/__init__.py/ImageData.create_texture--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/internet/kqreactor.py/KQueueReactor.__init__