#include "displaylists.h"
#include "selection.h"
#include "smartlock.h"
#include "sysinc.h"
#include <stdio.h> 
#include <stdlib.h>
#include <string.h>
#include <proto/timer.h>
#include <stdarg.h>

#include "minigl_vectors.c"

void *mgl_CreateContextTags(struct MiniGLIFace *IMiniGL, ...)
{
        va_list ap;
    void *res;
        struct TagItem *tags;

        va_startlinear(ap, IMiniGL);
        tags = va_getlinearva(ap, struct TagItem *);
        res = IMiniGL->CreateContext(tags);

        return res;
}

void cgl_UpdateContextTags(struct GLContextIFace *IGL, ...)
{
        va_list ap;
        struct TagItem *tags;

        va_startlinear(ap, IGL);
        tags = va_getlinearva(ap, struct TagItem *);
        IGL->MGLUpdateContext(tags);

}

