#include "apple_glx_context.h"
#include "apple_xgl_api.h"
-extern struct apple_xgl_api __gl_api;
+extern struct apple_xgl_api __ogl_framework_api;
struct apple_xgl_saved_state
{
SetRead(&saved);
- __gl_api.ReadPixels(x, y, width, height, format, type, pixels);
+ __ogl_framework_api.ReadPixels(x, y, width, height, format, type, pixels);
UnsetRead(&saved);
}
SetRead(&saved);
- __gl_api.CopyPixels(x, y, width, height, type);
+ __ogl_framework_api.CopyPixels(x, y, width, height, type);
UnsetRead(&saved);
}
SetRead(&saved);
- __gl_api.CopyColorTable(target, internalformat, x, y, width);
+ __ogl_framework_api.CopyColorTable(target, internalformat, x, y, width);
UnsetRead(&saved);
}
#include "apple_glx_context.h"
#include "apple_xgl_api.h"
-extern struct apple_xgl_api __gl_api;
+extern struct apple_xgl_api __ogl_framework_api;
/*
* These are special functions for stereoscopic support
* differences in MacOS X.
break;
}
- __gl_api.DrawBuffers(n, buf);
+ __ogl_framework_api.DrawBuffers(n, buf);
}
else {
- __gl_api.DrawBuffer(mode);
+ __ogl_framework_api.DrawBuffer(mode);
}
}
newbuf[outi++] = GL_FRONT_RIGHT;
}
- __gl_api.DrawBuffers(outi, newbuf);
+ __ogl_framework_api.DrawBuffers(outi, newbuf);
}
else {
- __gl_api.DrawBuffers(n, bufs);
+ __ogl_framework_api.DrawBuffers(n, bufs);
}
}
#include "apple_glx_context.h"
#include "apple_xgl_api.h"
-extern struct apple_xgl_api __gl_api;
+extern struct apple_xgl_api __ogl_framework_api;
void
glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
if (gc && gc->driContext)
apple_glx_context_update(dpy, gc->driContext);
- __gl_api.Viewport(x, y, width, height);
+ __ogl_framework_api.Viewport(x, y, width, height);
}
#include "apple_glx_context.h"
}
- puts $fd "struct apple_xgl_api __gl_api;"
+ puts $fd "struct apple_xgl_api __ogl_framework_api;"
set sorted [lsort -dictionary [array names api]]
set alias [dict get $attr alias_for]
set body "[set return] gl[set alias]([set callvars]);"
} else {
- set body "[set return]__gl_api.[set f]([set callvars]);"
+ set body "[set return]__ogl_framework_api.[set f]([set callvars]);"
}
puts $fd "GLAPI [dict get $attr return] APIENTRY gl[set f]([set pstr]) \{\n\t$body\n\}"
continue
}
- puts $fd "\t__gl_api.$f = glsym(handle, \"gl$f\");"
+ puts $fd "\t__ogl_framework_api.$f = glsym(handle, \"gl$f\");"
}
puts $fd "\}\n"