![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Graphics
文章平均质量分 62
CaspianSea
这个作者很懒,什么都没留下…
展开
-
2D Transformations
1. 平移(translation)点 (x,y)平移到 (x',y'),经过的距离为 (tx, ty). 则x' = x + txy' = y + ty或者P' = P + T其中,2. 旋转(以坐标原点为中心喜转动角度 , 逆时针 大于0,顺时针 小于0假设点(x,y)绕原点逆时针转动 到(x',y'). 那么三角函数展开,最后可以得出:3. 绕任一点()旋转:3.1 平移点()到原点 T()3.2 旋转R(...翻译 2022-01-13 08:32:40 · 467 阅读 · 0 评论 -
使用 meson编译 EFL库
最近EFL(https://www.enlightenment.org/download) 代码使用meson来编译了。编译方法如下:CFLAGS="-O -g -ffast-math -march=native -ggdb3" meson --prefix=$HOME/install -Dopengl=full . buildninja -C buildsudo ninja -...原创 2020-04-16 23:56:15 · 1287 阅读 · 0 评论 -
libGL error: unable to load driver: nouveau_dri.so
在测试一个glut小程序的时候,报错:libGL error: unable to load driver: nouveau_dri.solibGL error: driver pointer missinglibGL error: failed to load driver: nouveau重新配置mes代码,编译,之后好了。配置的方法:./configure --with原创 2016-10-02 09:10:22 · 9480 阅读 · 0 评论 -
The Hello Wayland Tutorial
I’ve written a hello world for wayland. It’s available at:https://github.com/hdante/hello_waylandIntroductionFrom the end user perspective it’s very easy to understand what wayland is: it’s a转载 2016-06-14 23:51:10 · 8215 阅读 · 0 评论 -
保存 framebuffer内容到BMP文件
代码是下面的:#include #include #include #include #include #include typedef unsigned short WORD;typedef unsigned int DWORD;typedef unsigned long LONG;typedef struct tagBITMAPFILEHEADER{ WORD原创 2016-05-07 10:38:47 · 1913 阅读 · 0 评论 -
Diving into Mesa
In my last post I gave a quick introduction to the Linux graphics stack. There I explained how what we call a graphics driver in Linux is actually a combination of three different drivers:the us转载 2016-03-24 08:22:22 · 727 阅读 · 0 评论 -
The Linux Graphics Stack
This is an introductory overview post for the Linux Graphics Stack, and how it currently all fits together. I initially wrote it for myself after having conversations with people like Owen Taylor, Ray转载 2016-03-24 08:20:36 · 1484 阅读 · 0 评论 -
解决DRM找不到的问题。
在编译 mesa的时候,因为系统提供的drm版本较低,就编了一个新版本的 drm, 安装到了一个非系统目录下。结果, mesa在 configure的时候,找不到这个 drm.报错:configure: error: Direct rendering requires libdrm >= 2.4.38解决方法是:export LIBDRM_ROOT=NEW_LIBDRM_D原创 2016-03-23 07:13:02 · 3225 阅读 · 0 评论 -
X Window Programming Manual: Chapter 2: X Concepts
Chapter 2. X ConceptsThis chapter introduces the concepts that underlie X programming.You should read this chapter even if you are the type of person wholikes to jump right into the code. (If you转载 2015-09-16 08:05:41 · 1439 阅读 · 0 评论 -
X Window Programming Manual: Chapter 3 Basic Window Program
Chapter 3. Basic Window ProgramEvery Xlib program has a similar structure. This chapter shows asimple program that puts up a window and handles events in thatwindow. You can use this simple appl转载 2015-09-16 08:07:47 · 1520 阅读 · 0 评论 -
X Window Proramming Manual: Chapter 1 Introduction
Chapter 1. IntroductionThis chapter gives the big picture: what X is all about and somefundamentals of how it works. Everyone should look at this chapter,though readers who are already familiar wi转载 2015-09-16 08:03:11 · 811 阅读 · 0 评论 -
A Brief intro to X11 Programming
A Brief intro to X11 ProgrammingThis is meant to be a simple overview of X11 programming. It will contain the basics necessary to create a single window X program. All of the information of this w转载 2015-05-20 07:22:53 · 1200 阅读 · 0 评论 -
An Introduction to OpenCL Programming
Benedict R. Gaster (AMD Architect) has published on AMD developers website, an introduction to OpenCL programming.I repoduced the complete source code here without the comment (you have to jump to转载 2015-05-20 07:17:04 · 898 阅读 · 0 评论 -
A brief introduction to the Linux graphics stack
This post attempts to be a brief and simple introduction to the Linux graphics stack, and as such, it has an introductory nature. I will focus on giving enough context to understand the role that Mesa转载 2014-12-28 20:36:43 · 1258 阅读 · 0 评论 -
Introduction to Linux Graphics drivers: DRM
Linux support for graphics cards are very important for desktop and mobile users: they want to run games, composite their applications and have a nice and modern user experience.So it’s usual that转载 2015-01-10 09:06:07 · 7890 阅读 · 0 评论