factor/library/opengl/load.factor

22 lines
493 B
Factor
Raw Normal View History

USING: alien io kernel parser sequences ;
{
{ [ os "macosx" = ] [ ] }
{ [ os "win32" = ] [
"gl" "opengl32.dll" "stdcall" add-library
"glu" "glu32.dll" "stdcall" add-library
] }
{ [ t ] [
2005-11-22 21:44:06 -05:00
"gl" "libGL.so.1" "cdecl" add-library
"glu" "libGLU.so.1" "cdecl" add-library
] }
} cond
2005-10-12 00:14:46 -04:00
[
"/library/opengl/gl.factor"
"/library/opengl/glu.factor"
2005-10-13 01:48:16 -04:00
"/library/opengl/opengl-utils.factor"
2005-10-12 00:14:46 -04:00
] [
dup print run-resource
] each