@Override
    public void draw(FrameBuffer buffer) {
        buffer.blit(texture, 0, 0, buffer.getOutputWidth() - x, y, width, height, widthDest, heightDest, 0, false);
        for(String str : namePrimitives)
                primitives.get(str).blit(buffer);
    }