Lines Matching refs:width
144 void WebGLTexture::setLevelInfo(GC3Denum target, GC3Dint level, GC3Denum internalFormat, GC3Dsizei width, GC3Dsizei height, GC3Denum type)
148 // We assume level, internalFormat, width, height, and type have all been
153 m_info[index][level].setInfo(internalFormat, width, height, type);
166 GC3Dsizei width = info0.width;
168 GC3Dint levelCount = computeLevelCount(width, height);
170 width = std::max(1, width >> 1);
173 info.setInfo(info0.internalFormat, width, height, info0.type);
202 return info->width;
230 bool WebGLTexture::isNPOT(GC3Dsizei width, GC3Dsizei height)
232 ASSERT(width >= 0 && height >= 0);
233 if (!width || !height)
235 if ((width & (width - 1)) || (height & (height - 1)))
310 || info.width != first.width || info.height != first.height
317 GC3Dint WebGLTexture::computeLevelCount(GC3Dsizei width, GC3Dsizei height)
319 // return 1 + log2Floor(std::max(width, height));
320 GC3Dsizei n = std::max(width, height);
341 if (isNPOT(m_info[ii][0].width, m_info[ii][0].height)) {
348 GC3Dint levelCount = computeLevelCount(first.width, first.height);
355 || info0.width != first.width || info0.height != first.height
360 GC3Dsizei width = info0.width;
363 width = std::max(1, width >> 1);
367 || info.width != width || info.height != height