2024-09-29 17:19:42 +08:00
|
|
|
|
|
2024-11-05 19:33:01 +08:00
|
|
|
|
# 使用gpu opengles在drm上画图。
|
2024-09-29 17:19:42 +08:00
|
|
|
|
|
2024-11-05 19:33:01 +08:00
|
|
|
|
## 文件列表
|
2024-09-29 17:19:42 +08:00
|
|
|
|
|
|
|
|
|
| Syntax | Description |
|
|
|
|
|
| ----------- | ----------- |
|
|
|
|
|
| color_test.c | 直接刷写fb的像素值 |
|
|
|
|
|
| simple-es2.c | 使用GBM + pbuffer离屏渲染,并写入文件 |
|
|
|
|
|
| triangle-es2.c | 使用GBM + surface渲染opengles到屏幕 |
|
2024-11-05 19:33:01 +08:00
|
|
|
|
| triangle-es2-x11.c | 使用X11 + xwin渲染opengles到屏幕 |
|
2024-09-29 17:19:42 +08:00
|
|
|
|
|
2024-11-05 19:33:01 +08:00
|
|
|
|
## 快捷指令
|
|
|
|
|
|
|
|
|
|
编译所有程序
|
|
|
|
|
```
|
|
|
|
|
make
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
编译并执行x11测试
|
|
|
|
|
```
|
|
|
|
|
make x11
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
编译并执行gbm测试
|
|
|
|
|
```
|
|
|
|
|
make gbm
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
编译并执行gbm测试,使用1号输出
|
|
|
|
|
```
|
|
|
|
|
make gbm-1
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
程序支持的参数:
|
|
|
|
|
```
|
|
|
|
|
Usage: ./build/bin/TriangleEsDemo --conn=[num] -w=[num] -h=[num] --help
|
|
|
|
|
Parameters:
|
|
|
|
|
--conn=[num] : choose connector index [num]
|
|
|
|
|
-w=[num] : choose a valid screen can set pixel width [num]
|
|
|
|
|
-w=[num] : choose a valid screen can set pixel height [num]
|
|
|
|
|
--help : show this message
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 依赖
|
2024-09-29 17:19:42 +08:00
|
|
|
|
|
|
|
|
|
libgbm-dev, libopengles-dev
|