能的OpenGL ES渲染的非基2维纹理? [英] Can OpenGL ES render textures of non base 2 dimensions?

查看:136
本文介绍了能的OpenGL ES渲染的非基2维纹理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这仅仅是一个快速的问题之前,我更深入地将我目前的渲染系统OpenGL的。听说纹理需要是在基座2的尺寸,以便存储用于呈现。这是真的?

This is just a quick question before I dive deeper into converting my current rendering system to openGL. I heard that textures needed to be in base 2 sizes in order to be stored for rendering. Is this true?

我的应用程序是非常严格的内存,但大部分的位图不是2权力。是否存储非基地2个纹理占用更多的内存?

My application is very tight on memory, but most of the bitmaps are not powers of two. Does storing non-base 2 textures consume more memory?

推荐答案

这是真的取决于OpenGL ES的版本的OpenGL ES 1.0 / 1.1有两个限制的权力。 OpenGL ES 2.0的不具有限制,但是它限制涡卷模式的两个纹理非动力

It's true depending on the OpenGL ES version, OpenGL ES 1.0/1.1 have the power of two restriction. OpenGL ES 2.0 doesn't have the limitation, but it restrict the wrap modes for non power of two textures.

创建更大的纹理匹配POT尺​​寸不浪费的纹理内存。

Creating bigger textures to match POT dimensions does waste texture memory.

这篇关于能的OpenGL ES渲染的非基2维纹理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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