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 )

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值