什么是帆布VS openGL的能力? [英] What are the capabilities of canvas vs openGL?

查看:112
本文介绍了什么是帆布VS openGL的能力?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,openGL的工程奇迹,如果你发送的纹理它,是静态的,例如像瓷砖很少改变。但不是当你不断变化的精灵?

I know that openGL works wonders if you send textures to it that are static and rarely change for example like tiles. But not when you have constantly changing sprites?

是否有可能创建游戏一样,纯粹是从帆布绑架,什么是它的性能?

Is it possible to create games like abduction purely from canvas and what would be its performance?

推荐答案

有可能创建使用帆布像绑架游戏,但最终你会在性能方面打一个绊脚石。

It is possible to create games like abduction using canvas, however eventually you are going to hit a stumbling block in terms of performance.

无论是OpenGL的移动或静止将成倍处理图像速度更快,通过访问能够一次操作像素的大型阵列的GC缓冲区和像素处理器。

OpenGL whether moving or static will handle images exponentially faster, by accessing buffers and pixel processors on the gc capable of manipulating large arrays of pixels at once.

不过OpenGL是不容易的,这需要时间来学习,你需要学习它的语言。这就是说,你会发现吨的信息,用openGL,我强烈建议轻量级Java游戏库(LWJGL) http://lwjgl.org / 以及讷河教程 http://nehe.gamedev.net/

However OpenGL isn't easy it will take time to learn, and you will need to learn it's language. This said you will find tons of information on using openGL, I highly recommend the Lightweight Java Game Library (LWJGL) http://lwjgl.org/ and NeHe tutorials http://nehe.gamedev.net/.

反正看看看看你的想法,这将是很难,但与所有的努力就最终会得到回报。

Anyway take a look see what you think, it'll be hard but as with all hard work it'll pay off eventually.

希望这有助于。

这篇关于什么是帆布VS openGL的能力?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆