摘要: 什么是FrameBuffer?(转载)FrameBufferFrameBuffer 是出现在 2.2.xx 内核当中的一种驱动程序接口。这种接口将显示设备抽象为帧缓冲区。用户可以将它看成是显示内存的一个映像,将其映射到进程地址空间之后,就可以直接进行读写操作,而写操作可以立即反应在屏幕上。该驱动程序的设备文件一般是 /dev/fb0、/dev/fb1 等等。比如,假设现在的显示模式是1024x768-8 位色,则可以通过如下的命令清空屏幕:$ dd if=/dev/zero of=/dev/fb0 bs=1024 count=768在应用程序中,一般通过将 FrameBuffer 设备映射到进 阅读全文
posted @ 2011-05-08 16:39 30斤大番薯 阅读(2208) 评论(0) 推荐(0) 编辑
摘要: Using Integer Textures in OpenGL for Calculation OpenGL could perfectly support integer textures through 'GL_EXT_gpu_shader4' and 'GL_EXT_texture_integer' extension. So we can do some GPGPU work with integer values in shaders. First of all, prepare the integer texture:view plaincopy 阅读全文
posted @ 2011-05-08 13:32 30斤大番薯 阅读(932) 评论(0) 推荐(0) 编辑