Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

declare overloadable initGLFunctions with define

  • Loading branch information...
commit 3e55da7e7b7bd5214bed6c7c179c0b7b97fc2af3 1 parent 02de32f
@alfredr alfredr authored
View
3  lib-clay/opengl/nolookup/nolookup.clay
@@ -4,8 +4,9 @@ import opengl.platform.*;
import opengl.nolookup as self;
import data.sequences.*;
-initGLFunctions(x) { }
+define initGLFunctions;
overload initGLFunctions() { }
+overload initGLFunctions(x) { }
external (GLAPI) glAccum(_op: GLenum, _value: GLfloat);
external (GLAPI) glActiveTexture(_texture: GLenum);
View
3  lib-clay/opengl/opengl.clay
@@ -772,7 +772,8 @@ overload destroy(gl: GLFunctions) { }
private var globalGL = GLFunctions();
-initGLFunctions(gl: GLFunctions) {
+define initGLFunctions;
+overload initGLFunctions(gl: GLFunctions) {
gl.Accum = findGLFunction([GLenum, GLfloat], [], "glAccum");
gl.ActiveTexture = findGLFunction((GLenum), [], "glActiveTexture", "glActiveTextureARB");
gl.AlphaFunc = findGLFunction([GLenum, GLclampf], [], "glAlphaFunc");
Please sign in to comment.
Something went wrong with that request. Please try again.