Lines Matching refs:Texture
240 * @param texture_id Texture id
242 * @param width Texture width
243 * @param height Texture height
587 /* Texture static fields */
588 const GLuint Texture::m_invalid_id = -1;
594 Texture::Texture(const glw::Functions& gl) : m_id(m_invalid_id), m_gl(gl)
602 Texture::~Texture()
610 void Texture::Release()
625 void Texture::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
634 * @param target Texture target
643 void Texture::CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
689 void Texture::Generate(const glw::Functions& gl, glw::GLuint& out_id)
707 * @param target Texture target
712 void Texture::GetData(const glw::Functions& gl, glw::GLint level, glw::GLenum target, glw::GLenum format,
722 * @param id Texture id
724 * @param width Texture width
725 * @param height Texture height
730 void Texture::GetData(const glw::Functions& gl, glw::GLuint id, glw::GLint level, glw::GLuint width, glw::GLuint height,
750 * @param target Texture target
755 void Texture::GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
765 * @param target Texture target
775 void Texture::Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
819 * @param target Texture target
826 void Texture::Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
859 * @param target Texture target
871 void Texture::SubImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLint x, glw::GLint y,
1102 Texture texture(gl);
1115 /* Texture initialization */
1116 Texture::Generate(gl, texture.m_id);
1117 Texture::Bind(gl, texture.m_id, GL_TEXTURE_2D);
1118 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R8UI, width, height, 0);
1119 Texture::Bind(gl, 0, GL_TEXTURE_2D);
1242 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
1244 Texture::SubImage(gl, GL_TEXTURE_2D, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height, 0 /* depth */,
1248 Texture::Bind(gl, 0, GL_TEXTURE_2D);
1290 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
1291 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
1292 Texture::Bind(gl, 0, GL_TEXTURE_2D);
1379 Texture destination_texture(gl);
1381 Texture source_texture(gl);
1390 Texture::Generate(gl, destination_texture.m_id);
1391 Texture::Generate(gl, source_texture.m_id);
1447 Texture::Bind(gl, source_texture.m_id, texture_target);
1504 Texture::Bind(gl, source_texture.m_id, texture_target);
1684 /* Texture storage parameters */
1719 Texture::Bind(gl, texture_id, target);
1720 Texture::Storage(gl, target, n_levels, internal_format, width, height, 0);
1739 Texture::Bind(gl, 0, target);
1752 Texture::SubImage(gl, GL_TEXTURE_2D, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height,
1766 Texture::SubImage(gl, GL_TEXTURE_2D, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height,
1782 Texture::SubImage(gl, GL_TEXTURE_2D, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height,
1793 Texture::SubImage(gl, GL_TEXTURE_2D, 1 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, image_width, image_height,
1847 Texture::Bind(gl, 0, target);
1876 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
1878 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]);
1881 Texture::Bind(gl, 0, GL_TEXTURE_2D);
1907 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
1909 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RGBA, GL_BYTE, &pixels[0]);
1912 Texture::Bind(gl, 0, GL_TEXTURE_2D);
1948 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
1950 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RGBA, GL_FLOAT, &pixels[0]);
1953 Texture::Bind(gl, 0, GL_TEXTURE_2D);
1994 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
1996 Texture::GetData(gl, texture_id, 1 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
1999 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2052 Texture destination_texture(gl);
2054 Texture::Generate(gl, destination_texture.m_id);
2055 Texture::Bind(gl, destination_texture.m_id, GL_TEXTURE_2D);
2056 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R32UI, width, height, 0 /* depth */);
2081 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
2084 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2125 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2130 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]);
2133 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2156 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2161 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA, GL_BYTE, &pixels[0]);
2164 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2189 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2202 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA, GL_FLOAT, &pixels[0]);
2205 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2237 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2241 Texture::GetData(gl, texture_id, 1 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
2244 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2298 Texture destination_texture(gl);
2300 Texture::Generate(gl, destination_texture.m_id);
2301 Texture::Bind(gl, destination_texture.m_id, GL_TEXTURE_2D);
2302 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R32UI, width, height, 0 /* depth */);
2330 Texture::GetData(gl, destination_texture.m_id, 0 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT,
2334 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2416 Texture destination_texture(gl);
2417 Texture source_texture(gl);
2421 Texture::Generate(gl, destination_texture.m_id);
2422 Texture::Generate(gl, source_texture.m_id);
2713 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2715 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RED, GL_UNSIGNED_BYTE, &pixels[0]);
2718 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2744 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2746 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RG, GL_BYTE, &pixels[0]);
2749 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2785 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2787 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RGBA, GL_FLOAT, &pixels[0]);
2790 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2825 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2827 Texture::GetData(gl, 1 /* level */, GL_TEXTURE_2D, GL_RED_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
2830 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2882 Texture destination_texture(gl);
2884 Texture::Generate(gl, destination_texture.m_id);
2885 Texture::Bind(gl, destination_texture.m_id, GL_TEXTURE_2D);
2886 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R32UI, width, height, 0 /* depth */);
2910 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RED_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
2913 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2957 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2962 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RED, GL_UNSIGNED_BYTE, &pixels[0]);
2965 Texture::Bind(gl, 0, GL_TEXTURE_2D);
2988 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
2993 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RG, GL_BYTE, &pixels[0]);
2996 Texture::Bind(gl, 0, GL_TEXTURE_2D);
3021 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
3033 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA, GL_FLOAT, &pixels[0]);
3036 Texture::Bind(gl, 0, GL_TEXTURE_2D);
3068 Texture::Bind(gl, texture_id, GL_TEXTURE_2D);
3073 Texture::GetData(gl, texture_id, 1 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
3076 Texture::Bind(gl, 0, GL_TEXTURE_2D);
3130 Texture destination_texture(gl);
3132 Texture::Generate(gl, destination_texture.m_id);
3133 Texture::Bind(gl, destination_texture.m_id, GL_TEXTURE_2D);
3134 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R32UI, width, height, 0 /* depth */);
3158 Texture::GetData(gl, 0 /* level */, GL_TEXTURE_2D, GL_RED_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
3161 Texture::Bind(gl, 0, GL_TEXTURE_2D);