首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >iPhone OpenGL要划清界限吗?

iPhone OpenGL要划清界限吗?
EN

Stack Overflow用户
提问于 2010-04-15 23:07:20
回答 1查看 1.1K关注 0票数 0

我正在尝试修改来自苹果的GLPaint示例,以绘制一条实线,而不是透明的霓虹灯一样的线条。我正在尝试实现触摸绘画功能,使其看起来像喷漆效果。我试着禁用了glblend,但没有效果。此外,我还试图让OpenGL在背景图像上绘制,而不是默认的黑色。或者可以使Open GL在透明背景的UIImageView上绘图?

EN

回答 1

Stack Overflow用户

发布于 2010-09-04 22:22:03

在paintingView.h中,您将找到:

代码语言:javascript
运行
复制
#define kBrushOpacity   1.0 //the opacity of the line
#define kBrushPixelStep 1 // the density the dots
#define kBrushScale     14 //thickens  of the line (1 = thickest)
#define kLuminosity     0.5 // the Luminosity. I think that this is what you have to play with
#define kSaturation     1.0 //the Saturation of the line color

更改这些参数将允许您实现实线。上面的设置会给你一条细的实线。

希望这能有所帮助。沙尼

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2646489

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档