Lines Matching defs:width
777 /** Check if two types can share the same location, based on the underlying numerical type and bit width
2180 * @param width Texture width
2183 void Framebuffer::AttachTexture(GLenum attachment, GLuint texture_id, GLuint width, GLuint height)
2187 AttachTexture(gl, attachment, texture_id, width, height);
2230 * @param width Texture width
2233 void Framebuffer::AttachTexture(const Functions& gl, GLenum attachment, GLuint texture_id, GLuint width, GLuint height)
2238 gl.viewport(0 /* x */, 0 /* y */, width, height);
3256 * @param width Width of texture
3264 void Texture::Init(TYPES tex_type, GLuint width, GLuint height, GLuint depth, GLenum internal_format, GLenum format,
3277 Storage(gl, tex_type, width, height, depth, internal_format);
3278 Update(gl, tex_type, width, height, depth, format, type, data);
3391 GLint width;
3401 gl.getTexLevelParameteriv(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0 /* level */, GL_TEXTURE_WIDTH, &width);
3407 const GLuint image_size = width * height * texel_size;
3429 * @param width Width of texture
3434 void Texture::Storage(const Functions& gl, TYPES tex_type, GLuint width, GLuint height, GLuint depth,
3444 gl.texStorage1D(target, levels, internal_format, width);
3451 gl.texStorage2D(target, levels, internal_format, width, height);
3456 gl.texStorage3D(target, levels, internal_format, width, height, depth);
3480 * @param width Width of texture
3486 void Texture::Update(const Functions& gl, TYPES tex_type, GLuint width, GLuint height, GLuint depth, GLenum format,
3496 gl.texSubImage1D(target, level, 0 /* x */, width, format, type, data);
3502 gl.texSubImage2D(target, level, 0 /* x */, 0 /* y */, width, height, format, type, data);
3506 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, level, 0 /* x */, 0 /* y */, width, height, format, type,
3508 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, level, 0 /* x */, 0 /* y */, width, height, format, type,
3510 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, level, 0 /* x */, 0 /* y */, width, height, format, type,
3512 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, level, 0 /* x */, 0 /* y */, width, height, format, type,
3514 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, level, 0 /* x */, 0 /* y */, width, height, format, type,
3516 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, level, 0 /* x */, 0 /* y */, width, height, format, type,
3522 gl.texSubImage3D(target, level, 0 /* x */, 0 /* y */, 0 /* z */, width, height, depth, format, type, data);