factor/library/opengl/load.factor

22 lines
493 B
Factor

USING: alien io kernel parser sequences ;
{
{ [ os "macosx" = ] [ ] }
{ [ os "win32" = ] [
"gl" "opengl32.dll" "stdcall" add-library
"glu" "glu32.dll" "stdcall" add-library
] }
{ [ t ] [
"gl" "libGL.so.1" "cdecl" add-library
"glu" "libGLU.so.1" "cdecl" add-library
] }
} cond
[
"/library/opengl/gl.factor"
"/library/opengl/glu.factor"
"/library/opengl/opengl-utils.factor"
] [
dup print run-resource
] each