Lines Matching defs:target
82 * @param target Buffer target
87 void Buffer::InitData(glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size, const glw::GLvoid* data)
92 m_target = target;
111 /** Binds buffer to its target
128 /** Bind buffer to given target
132 * @param target Buffer target
134 void Buffer::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
136 gl.bindBuffer(target, id);
144 * @param target Buffer target
147 void Buffer::BindBase(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index)
149 gl.bindBufferBase(target, index, id);
156 * @param target Buffer target
161 void Buffer::Data(const glw::Functions& gl, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
164 gl.bufferData(target, size, data, usage);
191 * @param target Buffer target
196 void Buffer::SubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
199 gl.bufferSubData(target, offset, size, data);
238 * @param target Framebuffer target
245 void Framebuffer::AttachTexture(const glw::Functions& gl, glw::GLenum target, glw::GLenum attachment,
248 gl.framebufferTexture(target, attachment, texture_id, level);
258 * @param target Framebuffer target
261 void Framebuffer::Bind(const glw::Functions& gl, glw::GLenum target, glw::GLuint id)
263 gl.bindFramebuffer(target, id);
619 /** Bind texture to target
625 void Texture::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
627 gl.bindTexture(target, id);
634 * @param target Texture target
643 void Texture::CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
647 switch (target)
650 gl.compressedTexImage1D(target, level, internal_format, width, 0 /* border */, image_size, data);
656 gl.compressedTexImage2D(target, level, internal_format, width, height, 0 /* border */, image_size, data);
676 gl.compressedTexImage3D(target, level, internal_format, width, height, depth, 0 /* border */, image_size, data);
707 * @param target Texture target
712 void Texture::GetData(const glw::Functions& gl, glw::GLint level, glw::GLenum target, glw::GLenum format,
715 gl.getTexImage(target, level, format, type, out_data);
750 * @param target Texture target
755 void Texture::GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
758 gl.getTexLevelParameteriv(target, level, pname, param);
765 * @param target Texture target
775 void Texture::Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
779 switch (target)
782 gl.texImage1D(target, level, internal_format, width, 0 /* border */, format, type, data);
788 gl.texImage2D(target, level, internal_format, width, height, 0 /* border */, format, type, data);
808 gl.texImage3D(target, level, internal_format, width, height, depth, 0 /* border */, format, type, data);
819 * @param target Texture target
826 void Texture::Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
829 switch (target)
832 gl.texStorage1D(target, levels, internal_format, width);
839 gl.texStorage2D(target, levels, internal_format, width, height);
843 gl.texStorage2DMultisample(target, levels, internal_format, width, height, GL_FALSE);
848 gl.texStorage3D(target, levels, internal_format, width, height, depth);
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,
875 switch (target)
878 gl.texSubImage1D(target, level, x, width, format, type, pixels);
884 gl.texSubImage2D(target, level, x, y, width, height, format, type, pixels);
898 gl.texSubImage3D(target, level, x, y, z, width, height, depth, format, type, pixels);
1367 // RG8_SNORM is not required to be used as a render target
1688 GLenum target = GL_TEXTURE_2D;
1712 target = GL_TEXTURE_2D_MULTISAMPLE;
1719 Texture::Bind(gl, texture_id, target);
1720 Texture::Storage(gl, target, n_levels, internal_format, width, height, 0);
1727 gl.texParameteri(target, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_NEAREST);
1728 gl.texParameteri(target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
1732 gl.texParameteri(target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
1733 gl.texParameteri(target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
1739 Texture::Bind(gl, 0, target);
1847 Texture::Bind(gl, 0, target);