Sha256: 82daa0c6f83a1524bca541df51e06fd43e241776917ec2bea509c772ea00d0a9
Contents?: true
Size: 646 Bytes
Versions: 3
Compression:
Stored size: 646 Bytes
Contents
require 'rbconfig' module GL extend FFI::Library case Config::CONFIG['target_os'] when /linux/ ffi_lib 'libGL.so.1' when /darwin/ ffi_lib '/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib' end end module GLU extend FFI::Library case Config::CONFIG['target_os'] when /linux/ ffi_lib 'libGLU.so.1' when /darwin/ ffi_lib '/System/Library/Frameworks/OpenGL.framework/Libraries/libGLU.dylib' end end module GLUT extend FFI::Library case Config::CONFIG['target_os'] when /linux/ ffi_lib 'libglut.so.3' when /darwin/ ffi_lib '/System/Library/Frameworks/GLUT.framework/GLUT' end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
remogatto-ffi-opengl-0.2.0 | lib/ffi-opengl/platform.rb |
remogatto-ffi-opengl-0.2.1 | lib/ffi-opengl/platform.rb |
ffi-opengl-0.2.1 | lib/ffi-opengl/platform.rb |