triangle-es2-demo/README.md

47 lines
941 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用gpu opengles在drm上画图。
## 文件列表
| Syntax | Description |
| ----------- | ----------- |
| color_test.c | 直接刷写fb的像素值 |
| simple-es2.c | 使用GBM + pbuffer离屏渲染并写入文件 |
| triangle-es2.c | 使用GBM + surface渲染opengles到屏幕 |
| triangle-es2-x11.c | 使用X11 + xwin渲染opengles到屏幕 |
## 快捷指令
编译所有程序
```
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
```
## 依赖
libgbm-dev, libopengles-dev