diff R/rdyncall/inst/dynports/glfw.R @ 0:0cfcc391201f

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:26:28 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/R/rdyncall/inst/dynports/glfw.R	Thu Mar 19 22:26:28 2015 +0100
@@ -0,0 +1,227 @@
+
+
+dynbind("glfw", "
+glfwBroadcastCond(*v)v;
+glfwCloseWindow()v;
+glfwCreateCond()*v;
+glfwCreateMutex()*v;
+glfwCreateThread(*p*v)i;
+glfwDestroyCond(*v)v;
+glfwDestroyMutex(*v)v;
+glfwDestroyThread(i)v;
+glfwDisable(i)v;
+glfwEnable(i)v;
+glfwExtensionSupported(*c)i;
+glfwFreeImage(*<GLFWimage>)v;
+glfwGetDesktopMode(*<GLFWvidmode>)v;
+glfwGetGLVersion(*i*i*i)v;
+glfwGetJoystickButtons(i*Ci)i;
+glfwGetJoystickParam(ii)i;
+glfwGetJoystickPos(i*fi)i;
+glfwGetKey(i)i;
+glfwGetMouseButton(i)i;
+glfwGetMousePos(*i*i)v;
+glfwGetMouseWheel()i;
+glfwGetNumberOfProcessors()i;
+glfwGetProcAddress(*c)*v;
+glfwGetThreadID()i;
+glfwGetTime()d;
+glfwGetVersion(*i*i*i)v;
+glfwGetVideoModes(*<GLFWvidmode>i)i;
+glfwGetWindowParam(i)i;
+glfwGetWindowSize(*i*i)v;
+glfwIconifyWindow()v;
+glfwInit()i;
+glfwLoadMemoryTexture2D(*vji)i;
+glfwLoadTexture2D(*ci)i;
+glfwLoadTextureImage2D(*<GLFWimage>i)i;
+glfwLockMutex(*v)v;
+glfwOpenWindow(iiiiiiiii)i;
+glfwOpenWindowHint(ii)v;
+glfwPollEvents()v;
+glfwReadImage(*c*<GLFWimage>i)i;
+glfwReadMemoryImage(*vj*<GLFWimage>i)i;
+glfwRestoreWindow()v;
+glfwSetCharCallback(*p)v;
+glfwSetKeyCallback(*p)v;
+glfwSetMouseButtonCallback(*p)v;
+glfwSetMousePos(ii)v;
+glfwSetMousePosCallback(*p)v;
+glfwSetMouseWheel(i)v;
+glfwSetMouseWheelCallback(*p)v;
+glfwSetTime(d)v;
+glfwSetWindowCloseCallback(*p)v;
+glfwSetWindowPos(ii)v;
+glfwSetWindowRefreshCallback(*p)v;
+glfwSetWindowSize(ii)v;
+glfwSetWindowSizeCallback(*p)v;
+glfwSetWindowTitle(*c)v;
+glfwSignalCond(*v)v;
+glfwSleep(d)v;
+glfwSwapBuffers()v;
+glfwSwapInterval(i)v;
+glfwTerminate()v;
+glfwUnlockMutex(*v)v;
+glfwWaitCond(*v*vd)v;
+glfwWaitEvents()v;
+glfwWaitThread(ii)i;
+")
+parseStructInfos("
+GLFWimage{iiii*C}Width Height Format BytesPerPixel Data ;
+GLFWvidmode{iiiii}Width Height RedBits BlueBits GreenBits ;
+")
+#GLFWAPI=
+#GLFWAPIENTRY=
+#GLFWCALL=
+GLFW_ACCELERATED=0x00020004
+GLFW_ACCUM_ALPHA_BITS=0x0002000F
+GLFW_ACCUM_BLUE_BITS=0x0002000E
+GLFW_ACCUM_GREEN_BITS=0x0002000D
+GLFW_ACCUM_RED_BITS=0x0002000C
+GLFW_ACTIVE=0x00020002
+GLFW_ALPHA_BITS=0x00020008
+GLFW_ALPHA_MAP_BIT=0x00000008
+GLFW_AUTO_POLL_EVENTS=0x00030006
+GLFW_AUX_BUFFERS=0x00020010
+GLFW_AXES=0x00050002
+GLFW_BLUE_BITS=0x00020007
+GLFW_BUILD_MIPMAPS_BIT=0x00000004
+GLFW_BUTTONS=0x00050003
+GLFW_DEPTH_BITS=0x00020009
+GLFW_FSAA_SAMPLES=0x00020013
+GLFW_FULLSCREEN=0x00010002
+GLFW_GREEN_BITS=0x00020006
+GLFW_ICONIFIED=0x00020003
+GLFW_INFINITY=100000.0
+GLFW_JOYSTICK_10=9
+GLFW_JOYSTICK_11=10
+GLFW_JOYSTICK_12=11
+GLFW_JOYSTICK_13=12
+GLFW_JOYSTIC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_MOUSE_BUTTON_RIGHT=GLFW_MOUSE_BUTTON_2
+GLFW_MOUSE_CURSOR=0x00030001
+GLFW_NOWAIT=0x00040002
+GLFW_NO_RESCALE_BIT=0x00000001
+GLFW_OPENED=0x00020001
+GLFW_OPENGL_COMPAT_PROFILE=0x00050002
+GLFW_OPENGL_CORE_PROFILE=0x00050001
+GLFW_OPENGL_DEBUG_CONTEXT=0x00020017
+GLFW_OPENGL_FORWARD_COMPAT=0x00020016
+GLFW_OPENGL_PROFILE=0x00020018
+GLFW_OPENGL_VERSION_MAJOR=0x00020014
+GLFW_OPENGL_VERSION_MINOR=0x00020015
+GLFW_ORIGIN_UL_BIT=0x00000002
+GLFW_PRESENT=0x00050001
+GLFW_PRESS=1
+GLFW_RED_BITS=0x00020005
+GLFW_REFRESH_RATE=0x0002000B
+GLFW_RELEASE=0
+GLFW_STENCIL_BITS=0x0002000A
+GLFW_STEREO=0x00020011
+GLFW_STICKY_KEYS=0x00030002
+GLFW_STICKY_MOUSE_BUTTONS=0x00030003
+GLFW_SYSTEM_KEYS=0x00030004
+GLFW_VERSION_MAJOR=2
+GLFW_VERSION_MINOR=7
+GLFW_VERSION_REVISION=3
+GLFW_WAIT=0x00040001
+GLFW_WINDOW=0x00010001
+GLFW_WINDOW_NO_RESIZE=0x00020012
+