SDL 色调
在 OpenGL 中,我只需调用 glColor3f,然后绘制纹理即可为其着色,但在 SDL 中如何执行此操作?我已经浏览了文档,但无论如何都看不到这样做。
我也尝试在 SDL 下进行这项工作,因为我希望我的游戏有一个仅 SDL 模式,以防玩游戏的人没有很好的显卡。
In OpenGL I simply call glColor3f and then draw the texture to get it coloured, but how do I do this in SDL? I have looked through the docs and cannot see anyway to do this.
I am trying to make this work under SDL too because I want an SDL-only mode for my game, incase the person playing doesn't have a very good graphics card.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有内置功能可以执行此操作,您必须在软件中手动执行此操作。一种相当快速且直接的方法是:
不过,如果您经常这样做,这可能会很慢。
There isn't a built-in function to do it, you'll have to it manually in software. A decently quick and straight forward way to do it would be:
This may be quite slow if you do it a lot, though.