glfw若干函数列表2

 关于扩展支持

一个扩展包含3个部分

1.名字

2.标记

3.函数

int glfwExtensionSupported( const char *extension )

Fetching Function Pointers

void * glfwGetProcAddress( const char *procname )

 

Function pointer type definitions

void GetCompressedTexImageARB(enum target, int lod, void *img);

void glGetCompressedTexImageARB(GLenum target, GLint lod, void *img);

 

 

glfw中的多线程

多线程的产生

GLFWthread glfwCreateThread( GLFWthreadfun fun, void *arg )

The argument fun is a pointer to a function that will be executed by the new thread, and arg is an
argument that is passed to the thread. glfwCreateThread returns a positive thread ID number if the
thread was created successfully, or a negative number if the thread could not be created.

 

int glfwWaitThread( GLFWthread ID, int waitmode )

A thread can wait for another thread to die with the command glfwWaitThread:

 

void glfwDestroyThread( GLFWthread ID )

终止一个线程

 

 

产生互斥锁

GLFWmutex glfwCreateMutex( void )

终止

void glfwDestroyMutex( GLFWmutex mutex )

上锁

void glfwLockMutex( GLFWmutex mutex )

解锁

void glfwUnlockMutex( GLFWmutex mutex )

 

 

这个是等待状态变量

void glfwWaitCond( GLFWcond cond, GLFWmutex mutex, double timeout )

void glfwSignalCond( GLFWcond cond )

void glfwBroadcastCond( GLFWcond cond )

 

你可能感兴趣的:(thread,多线程,function,command,extension,fun)