Skip to main content

QOpenGLFunctions

Struct QOpenGLFunctions 

Source
pub struct QOpenGLFunctions { /* private fields */ }
Expand description

C++ class: QOpenGLFunctions.

Implementations§

Source§

impl QOpenGLFunctions

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QOpenGLFunctions>>, ) -> Ref<QOpenGLFunctions>

Calls C++ function: QOpenGLFunctions& QOpenGLFunctions::operator=(const QOpenGLFunctions& other).

Source

pub unsafe fn gl_active_texture(&self, texture: c_uint)

Calls C++ function: void QOpenGLFunctions::glActiveTexture(unsigned int texture).

Source

pub unsafe fn gl_attach_shader(&self, program: c_uint, shader: c_uint)

Calls C++ function: void QOpenGLFunctions::glAttachShader(unsigned int program, unsigned int shader).

Source

pub unsafe fn gl_bind_attrib_location( &self, program: c_uint, index: c_uint, name: *const c_char, )

Calls C++ function: void QOpenGLFunctions::glBindAttribLocation(unsigned int program, unsigned int index, const char* name).

Source

pub unsafe fn gl_bind_buffer(&self, target: c_uint, buffer: c_uint)

Calls C++ function: void QOpenGLFunctions::glBindBuffer(unsigned int target, unsigned int buffer).

Source

pub unsafe fn gl_bind_framebuffer(&self, target: c_uint, framebuffer: c_uint)

Calls C++ function: void QOpenGLFunctions::glBindFramebuffer(unsigned int target, unsigned int framebuffer).

Source

pub unsafe fn gl_bind_renderbuffer(&self, target: c_uint, renderbuffer: c_uint)

Calls C++ function: void QOpenGLFunctions::glBindRenderbuffer(unsigned int target, unsigned int renderbuffer).

Source

pub unsafe fn gl_bind_texture(&self, target: c_uint, texture: c_uint)

Calls C++ function: void QOpenGLFunctions::glBindTexture(unsigned int target, unsigned int texture).

Source

pub unsafe fn gl_blend_color( &self, red: c_float, green: c_float, blue: c_float, alpha: c_float, )

Calls C++ function: void QOpenGLFunctions::glBlendColor(float red, float green, float blue, float alpha).

Source

pub unsafe fn gl_blend_equation(&self, mode: c_uint)

Calls C++ function: void QOpenGLFunctions::glBlendEquation(unsigned int mode).

Source

pub unsafe fn gl_blend_equation_separate( &self, mode_r_g_b: c_uint, mode_alpha: c_uint, )

Calls C++ function: void QOpenGLFunctions::glBlendEquationSeparate(unsigned int modeRGB, unsigned int modeAlpha).

Source

pub unsafe fn gl_blend_func(&self, sfactor: c_uint, dfactor: c_uint)

Calls C++ function: void QOpenGLFunctions::glBlendFunc(unsigned int sfactor, unsigned int dfactor).

Source

pub unsafe fn gl_blend_func_separate( &self, src_r_g_b: c_uint, dst_r_g_b: c_uint, src_alpha: c_uint, dst_alpha: c_uint, )

Calls C++ function: void QOpenGLFunctions::glBlendFuncSeparate(unsigned int srcRGB, unsigned int dstRGB, unsigned int srcAlpha, unsigned int dstAlpha).

Source

pub unsafe fn gl_buffer_data( &self, target: c_uint, size: c_long, data: *const c_void, usage: c_uint, )

Calls C++ function: void QOpenGLFunctions::glBufferData(unsigned int target, long size, const void* data, unsigned int usage).

Source

pub unsafe fn gl_buffer_sub_data( &self, target: c_uint, offset: c_long, size: c_long, data: *const c_void, )

Calls C++ function: void QOpenGLFunctions::glBufferSubData(unsigned int target, long offset, long size, const void* data).

Source

pub unsafe fn gl_check_framebuffer_status(&self, target: c_uint) -> c_uint

Calls C++ function: unsigned int QOpenGLFunctions::glCheckFramebufferStatus(unsigned int target).

Source

pub unsafe fn gl_clear(&self, mask: c_uint)

Calls C++ function: void QOpenGLFunctions::glClear(unsigned int mask).

Source

pub unsafe fn gl_clear_color( &self, red: c_float, green: c_float, blue: c_float, alpha: c_float, )

Calls C++ function: void QOpenGLFunctions::glClearColor(float red, float green, float blue, float alpha).

Source

pub unsafe fn gl_clear_depthf(&self, depth: c_float)

Calls C++ function: void QOpenGLFunctions::glClearDepthf(float depth).

Source

pub unsafe fn gl_clear_stencil(&self, s: c_int)

Calls C++ function: void QOpenGLFunctions::glClearStencil(int s).

Source

pub unsafe fn gl_color_mask( &self, red: c_uchar, green: c_uchar, blue: c_uchar, alpha: c_uchar, )

Calls C++ function: void QOpenGLFunctions::glColorMask(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha).

Source

pub unsafe fn gl_compile_shader(&self, shader: c_uint)

Calls C++ function: void QOpenGLFunctions::glCompileShader(unsigned int shader).

Source

pub unsafe fn gl_compressed_tex_image_2d( &self, target: c_uint, level: c_int, internalformat: c_uint, width: c_int, height: c_int, border: c_int, image_size: c_int, data: *const c_void, )

Calls C++ function: void QOpenGLFunctions::glCompressedTexImage2D(unsigned int target, int level, unsigned int internalformat, int width, int height, int border, int imageSize, const void* data).

Source

pub unsafe fn gl_compressed_tex_sub_image_2d( &self, target: c_uint, level: c_int, xoffset: c_int, yoffset: c_int, width: c_int, height: c_int, format: c_uint, image_size: c_int, data: *const c_void, )

Calls C++ function: void QOpenGLFunctions::glCompressedTexSubImage2D(unsigned int target, int level, int xoffset, int yoffset, int width, int height, unsigned int format, int imageSize, const void* data).

Source

pub unsafe fn gl_copy_tex_image_2d( &self, target: c_uint, level: c_int, internalformat: c_uint, x: c_int, y: c_int, width: c_int, height: c_int, border: c_int, )

Calls C++ function: void QOpenGLFunctions::glCopyTexImage2D(unsigned int target, int level, unsigned int internalformat, int x, int y, int width, int height, int border).

Source

pub unsafe fn gl_copy_tex_sub_image_2d( &self, target: c_uint, level: c_int, xoffset: c_int, yoffset: c_int, x: c_int, y: c_int, width: c_int, height: c_int, )

Calls C++ function: void QOpenGLFunctions::glCopyTexSubImage2D(unsigned int target, int level, int xoffset, int yoffset, int x, int y, int width, int height).

Source

pub unsafe fn gl_create_program(&self) -> c_uint

Calls C++ function: unsigned int QOpenGLFunctions::glCreateProgram().

Source

pub unsafe fn gl_create_shader(&self, type_: c_uint) -> c_uint

Calls C++ function: unsigned int QOpenGLFunctions::glCreateShader(unsigned int type).

Source

pub unsafe fn gl_cull_face(&self, mode: c_uint)

Calls C++ function: void QOpenGLFunctions::glCullFace(unsigned int mode).

Source

pub unsafe fn gl_delete_buffers(&self, n: c_int, buffers: *const c_uint)

Calls C++ function: void QOpenGLFunctions::glDeleteBuffers(int n, const unsigned int* buffers).

Source

pub unsafe fn gl_delete_framebuffers( &self, n: c_int, framebuffers: *const c_uint, )

Calls C++ function: void QOpenGLFunctions::glDeleteFramebuffers(int n, const unsigned int* framebuffers).

Source

pub unsafe fn gl_delete_program(&self, program: c_uint)

Calls C++ function: void QOpenGLFunctions::glDeleteProgram(unsigned int program).

Source

pub unsafe fn gl_delete_renderbuffers( &self, n: c_int, renderbuffers: *const c_uint, )

Calls C++ function: void QOpenGLFunctions::glDeleteRenderbuffers(int n, const unsigned int* renderbuffers).

Source

pub unsafe fn gl_delete_shader(&self, shader: c_uint)

Calls C++ function: void QOpenGLFunctions::glDeleteShader(unsigned int shader).

Source

pub unsafe fn gl_delete_textures(&self, n: c_int, textures: *const c_uint)

Calls C++ function: void QOpenGLFunctions::glDeleteTextures(int n, const unsigned int* textures).

Source

pub unsafe fn gl_depth_func(&self, func: c_uint)

Calls C++ function: void QOpenGLFunctions::glDepthFunc(unsigned int func).

Source

pub unsafe fn gl_depth_mask(&self, flag: c_uchar)

Calls C++ function: void QOpenGLFunctions::glDepthMask(unsigned char flag).

Source

pub unsafe fn gl_depth_rangef(&self, z_near: c_float, z_far: c_float)

Calls C++ function: void QOpenGLFunctions::glDepthRangef(float zNear, float zFar).

Source

pub unsafe fn gl_detach_shader(&self, program: c_uint, shader: c_uint)

Calls C++ function: void QOpenGLFunctions::glDetachShader(unsigned int program, unsigned int shader).

Source

pub unsafe fn gl_disable(&self, cap: c_uint)

Calls C++ function: void QOpenGLFunctions::glDisable(unsigned int cap).

Source

pub unsafe fn gl_disable_vertex_attrib_array(&self, index: c_uint)

Calls C++ function: void QOpenGLFunctions::glDisableVertexAttribArray(unsigned int index).

Source

pub unsafe fn gl_draw_arrays(&self, mode: c_uint, first: c_int, count: c_int)

Calls C++ function: void QOpenGLFunctions::glDrawArrays(unsigned int mode, int first, int count).

Source

pub unsafe fn gl_draw_elements( &self, mode: c_uint, count: c_int, type_: c_uint, indices: *const c_void, )

Calls C++ function: void QOpenGLFunctions::glDrawElements(unsigned int mode, int count, unsigned int type, const void* indices).

Source

pub unsafe fn gl_enable(&self, cap: c_uint)

Calls C++ function: void QOpenGLFunctions::glEnable(unsigned int cap).

Source

pub unsafe fn gl_enable_vertex_attrib_array(&self, index: c_uint)

Calls C++ function: void QOpenGLFunctions::glEnableVertexAttribArray(unsigned int index).

Source

pub unsafe fn gl_finish(&self)

Calls C++ function: void QOpenGLFunctions::glFinish().

Source

pub unsafe fn gl_flush(&self)

Calls C++ function: void QOpenGLFunctions::glFlush().

Source

pub unsafe fn gl_framebuffer_renderbuffer( &self, target: c_uint, attachment: c_uint, renderbuffertarget: c_uint, renderbuffer: c_uint, )

Calls C++ function: void QOpenGLFunctions::glFramebufferRenderbuffer(unsigned int target, unsigned int attachment, unsigned int renderbuffertarget, unsigned int renderbuffer).

Source

pub unsafe fn gl_framebuffer_texture_2d( &self, target: c_uint, attachment: c_uint, textarget: c_uint, texture: c_uint, level: c_int, )

Calls C++ function: void QOpenGLFunctions::glFramebufferTexture2D(unsigned int target, unsigned int attachment, unsigned int textarget, unsigned int texture, int level).

Source

pub unsafe fn gl_front_face(&self, mode: c_uint)

Calls C++ function: void QOpenGLFunctions::glFrontFace(unsigned int mode).

Source

pub unsafe fn gl_gen_buffers(&self, n: c_int, buffers: *mut c_uint)

Calls C++ function: void QOpenGLFunctions::glGenBuffers(int n, unsigned int* buffers).

Source

pub unsafe fn gl_gen_framebuffers(&self, n: c_int, framebuffers: *mut c_uint)

Calls C++ function: void QOpenGLFunctions::glGenFramebuffers(int n, unsigned int* framebuffers).

Source

pub unsafe fn gl_gen_renderbuffers(&self, n: c_int, renderbuffers: *mut c_uint)

Calls C++ function: void QOpenGLFunctions::glGenRenderbuffers(int n, unsigned int* renderbuffers).

Source

pub unsafe fn gl_gen_textures(&self, n: c_int, textures: *mut c_uint)

Calls C++ function: void QOpenGLFunctions::glGenTextures(int n, unsigned int* textures).

Source

pub unsafe fn gl_generate_mipmap(&self, target: c_uint)

Calls C++ function: void QOpenGLFunctions::glGenerateMipmap(unsigned int target).

Source

pub unsafe fn gl_get_active_attrib( &self, program: c_uint, index: c_uint, bufsize: c_int, length: *mut c_int, size: *mut c_int, type_: *mut c_uint, name: *mut c_char, )

Calls C++ function: void QOpenGLFunctions::glGetActiveAttrib(unsigned int program, unsigned int index, int bufsize, int* length, int* size, unsigned int* type, char* name).

Source

pub unsafe fn gl_get_active_uniform( &self, program: c_uint, index: c_uint, bufsize: c_int, length: *mut c_int, size: *mut c_int, type_: *mut c_uint, name: *mut c_char, )

Calls C++ function: void QOpenGLFunctions::glGetActiveUniform(unsigned int program, unsigned int index, int bufsize, int* length, int* size, unsigned int* type, char* name).

Source

pub unsafe fn gl_get_attached_shaders( &self, program: c_uint, maxcount: c_int, count: *mut c_int, shaders: *mut c_uint, )

Calls C++ function: void QOpenGLFunctions::glGetAttachedShaders(unsigned int program, int maxcount, int* count, unsigned int* shaders).

Source

pub unsafe fn gl_get_attrib_location( &self, program: c_uint, name: *const c_char, ) -> c_int

Calls C++ function: int QOpenGLFunctions::glGetAttribLocation(unsigned int program, const char* name).

Source

pub unsafe fn gl_get_booleanv(&self, pname: c_uint, params: *mut c_uchar)

Calls C++ function: void QOpenGLFunctions::glGetBooleanv(unsigned int pname, unsigned char* params).

Source

pub unsafe fn gl_get_buffer_parameteriv( &self, target: c_uint, pname: c_uint, params: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetBufferParameteriv(unsigned int target, unsigned int pname, int* params).

Source

pub unsafe fn gl_get_error(&self) -> c_uint

Calls C++ function: unsigned int QOpenGLFunctions::glGetError().

Source

pub unsafe fn gl_get_floatv(&self, pname: c_uint, params: *mut c_float)

Calls C++ function: void QOpenGLFunctions::glGetFloatv(unsigned int pname, float* params).

Source

pub unsafe fn gl_get_framebuffer_attachment_parameteriv( &self, target: c_uint, attachment: c_uint, pname: c_uint, params: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetFramebufferAttachmentParameteriv(unsigned int target, unsigned int attachment, unsigned int pname, int* params).

Source

pub unsafe fn gl_get_integerv(&self, pname: c_uint, params: *mut c_int)

Calls C++ function: void QOpenGLFunctions::glGetIntegerv(unsigned int pname, int* params).

Source

pub unsafe fn gl_get_program_info_log( &self, program: c_uint, bufsize: c_int, length: *mut c_int, infolog: *mut c_char, )

Calls C++ function: void QOpenGLFunctions::glGetProgramInfoLog(unsigned int program, int bufsize, int* length, char* infolog).

Source

pub unsafe fn gl_get_programiv( &self, program: c_uint, pname: c_uint, params: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetProgramiv(unsigned int program, unsigned int pname, int* params).

Source

pub unsafe fn gl_get_renderbuffer_parameteriv( &self, target: c_uint, pname: c_uint, params: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetRenderbufferParameteriv(unsigned int target, unsigned int pname, int* params).

Source

pub unsafe fn gl_get_shader_info_log( &self, shader: c_uint, bufsize: c_int, length: *mut c_int, infolog: *mut c_char, )

Calls C++ function: void QOpenGLFunctions::glGetShaderInfoLog(unsigned int shader, int bufsize, int* length, char* infolog).

Source

pub unsafe fn gl_get_shader_precision_format( &self, shadertype: c_uint, precisiontype: c_uint, range: *mut c_int, precision: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetShaderPrecisionFormat(unsigned int shadertype, unsigned int precisiontype, int* range, int* precision).

Source

pub unsafe fn gl_get_shader_source( &self, shader: c_uint, bufsize: c_int, length: *mut c_int, source: *mut c_char, )

Calls C++ function: void QOpenGLFunctions::glGetShaderSource(unsigned int shader, int bufsize, int* length, char* source).

Source

pub unsafe fn gl_get_shaderiv( &self, shader: c_uint, pname: c_uint, params: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetShaderiv(unsigned int shader, unsigned int pname, int* params).

Source

pub unsafe fn gl_get_string(&self, name: c_uint) -> *const c_uchar

Calls C++ function: const unsigned char* QOpenGLFunctions::glGetString(unsigned int name).

Source

pub unsafe fn gl_get_tex_parameterfv( &self, target: c_uint, pname: c_uint, params: *mut c_float, )

Calls C++ function: void QOpenGLFunctions::glGetTexParameterfv(unsigned int target, unsigned int pname, float* params).

Source

pub unsafe fn gl_get_tex_parameteriv( &self, target: c_uint, pname: c_uint, params: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetTexParameteriv(unsigned int target, unsigned int pname, int* params).

Source

pub unsafe fn gl_get_uniform_location( &self, program: c_uint, name: *const c_char, ) -> c_int

Calls C++ function: int QOpenGLFunctions::glGetUniformLocation(unsigned int program, const char* name).

Source

pub unsafe fn gl_get_uniformfv( &self, program: c_uint, location: c_int, params: *mut c_float, )

Calls C++ function: void QOpenGLFunctions::glGetUniformfv(unsigned int program, int location, float* params).

Source

pub unsafe fn gl_get_uniformiv( &self, program: c_uint, location: c_int, params: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetUniformiv(unsigned int program, int location, int* params).

Source

pub unsafe fn gl_get_vertex_attrib_pointerv( &self, index: c_uint, pname: c_uint, pointer: *mut *mut c_void, )

Calls C++ function: void QOpenGLFunctions::glGetVertexAttribPointerv(unsigned int index, unsigned int pname, void** pointer).

Source

pub unsafe fn gl_get_vertex_attribfv( &self, index: c_uint, pname: c_uint, params: *mut c_float, )

Calls C++ function: void QOpenGLFunctions::glGetVertexAttribfv(unsigned int index, unsigned int pname, float* params).

Source

pub unsafe fn gl_get_vertex_attribiv( &self, index: c_uint, pname: c_uint, params: *mut c_int, )

Calls C++ function: void QOpenGLFunctions::glGetVertexAttribiv(unsigned int index, unsigned int pname, int* params).

Source

pub unsafe fn gl_hint(&self, target: c_uint, mode: c_uint)

Calls C++ function: void QOpenGLFunctions::glHint(unsigned int target, unsigned int mode).

Source

pub unsafe fn gl_is_buffer(&self, buffer: c_uint) -> c_uchar

Calls C++ function: unsigned char QOpenGLFunctions::glIsBuffer(unsigned int buffer).

Source

pub unsafe fn gl_is_enabled(&self, cap: c_uint) -> c_uchar

Calls C++ function: unsigned char QOpenGLFunctions::glIsEnabled(unsigned int cap).

Source

pub unsafe fn gl_is_framebuffer(&self, framebuffer: c_uint) -> c_uchar

Calls C++ function: unsigned char QOpenGLFunctions::glIsFramebuffer(unsigned int framebuffer).

Source

pub unsafe fn gl_is_program(&self, program: c_uint) -> c_uchar

Calls C++ function: unsigned char QOpenGLFunctions::glIsProgram(unsigned int program).

Source

pub unsafe fn gl_is_renderbuffer(&self, renderbuffer: c_uint) -> c_uchar

Calls C++ function: unsigned char QOpenGLFunctions::glIsRenderbuffer(unsigned int renderbuffer).

Source

pub unsafe fn gl_is_shader(&self, shader: c_uint) -> c_uchar

Calls C++ function: unsigned char QOpenGLFunctions::glIsShader(unsigned int shader).

Source

pub unsafe fn gl_is_texture(&self, texture: c_uint) -> c_uchar

Calls C++ function: unsigned char QOpenGLFunctions::glIsTexture(unsigned int texture).

Source

pub unsafe fn gl_line_width(&self, width: c_float)

Calls C++ function: void QOpenGLFunctions::glLineWidth(float width).

Calls C++ function: void QOpenGLFunctions::glLinkProgram(unsigned int program).

Source

pub unsafe fn gl_pixel_storei(&self, pname: c_uint, param: c_int)

Calls C++ function: void QOpenGLFunctions::glPixelStorei(unsigned int pname, int param).

Source

pub unsafe fn gl_polygon_offset(&self, factor: c_float, units: c_float)

Calls C++ function: void QOpenGLFunctions::glPolygonOffset(float factor, float units).

Source

pub unsafe fn gl_read_pixels( &self, x: c_int, y: c_int, width: c_int, height: c_int, format: c_uint, type_: c_uint, pixels: *mut c_void, )

Calls C++ function: void QOpenGLFunctions::glReadPixels(int x, int y, int width, int height, unsigned int format, unsigned int type, void* pixels).

Source

pub unsafe fn gl_release_shader_compiler(&self)

Calls C++ function: void QOpenGLFunctions::glReleaseShaderCompiler().

Source

pub unsafe fn gl_renderbuffer_storage( &self, target: c_uint, internalformat: c_uint, width: c_int, height: c_int, )

Calls C++ function: void QOpenGLFunctions::glRenderbufferStorage(unsigned int target, unsigned int internalformat, int width, int height).

Source

pub unsafe fn gl_sample_coverage(&self, value: c_float, invert: c_uchar)

Calls C++ function: void QOpenGLFunctions::glSampleCoverage(float value, unsigned char invert).

Source

pub unsafe fn gl_scissor(&self, x: c_int, y: c_int, width: c_int, height: c_int)

Calls C++ function: void QOpenGLFunctions::glScissor(int x, int y, int width, int height).

Source

pub unsafe fn gl_shader_binary( &self, n: c_int, shaders: *const c_uint, binaryformat: c_uint, binary: *const c_void, length: c_int, )

Calls C++ function: void QOpenGLFunctions::glShaderBinary(int n, const unsigned int* shaders, unsigned int binaryformat, const void* binary, int length).

Source

pub unsafe fn gl_shader_source( &self, shader: c_uint, count: c_int, string: *mut *const c_char, length: *const c_int, )

Calls C++ function: void QOpenGLFunctions::glShaderSource(unsigned int shader, int count, const char** string, const int* length).

Source

pub unsafe fn gl_stencil_func(&self, func: c_uint, ref_: c_int, mask: c_uint)

Calls C++ function: void QOpenGLFunctions::glStencilFunc(unsigned int func, int ref, unsigned int mask).

Source

pub unsafe fn gl_stencil_func_separate( &self, face: c_uint, func: c_uint, ref_: c_int, mask: c_uint, )

Calls C++ function: void QOpenGLFunctions::glStencilFuncSeparate(unsigned int face, unsigned int func, int ref, unsigned int mask).

Source

pub unsafe fn gl_stencil_mask(&self, mask: c_uint)

Calls C++ function: void QOpenGLFunctions::glStencilMask(unsigned int mask).

Source

pub unsafe fn gl_stencil_mask_separate(&self, face: c_uint, mask: c_uint)

Calls C++ function: void QOpenGLFunctions::glStencilMaskSeparate(unsigned int face, unsigned int mask).

Source

pub unsafe fn gl_stencil_op(&self, fail: c_uint, zfail: c_uint, zpass: c_uint)

Calls C++ function: void QOpenGLFunctions::glStencilOp(unsigned int fail, unsigned int zfail, unsigned int zpass).

Source

pub unsafe fn gl_stencil_op_separate( &self, face: c_uint, fail: c_uint, zfail: c_uint, zpass: c_uint, )

Calls C++ function: void QOpenGLFunctions::glStencilOpSeparate(unsigned int face, unsigned int fail, unsigned int zfail, unsigned int zpass).

Source

pub unsafe fn gl_tex_image_2d( &self, target: c_uint, level: c_int, internalformat: c_int, width: c_int, height: c_int, border: c_int, format: c_uint, type_: c_uint, pixels: *const c_void, )

Calls C++ function: void QOpenGLFunctions::glTexImage2D(unsigned int target, int level, int internalformat, int width, int height, int border, unsigned int format, unsigned int type, const void* pixels).

Source

pub unsafe fn gl_tex_parameterf( &self, target: c_uint, pname: c_uint, param: c_float, )

Calls C++ function: void QOpenGLFunctions::glTexParameterf(unsigned int target, unsigned int pname, float param).

Source

pub unsafe fn gl_tex_parameterfv( &self, target: c_uint, pname: c_uint, params: *const c_float, )

Calls C++ function: void QOpenGLFunctions::glTexParameterfv(unsigned int target, unsigned int pname, const float* params).

Source

pub unsafe fn gl_tex_parameteri( &self, target: c_uint, pname: c_uint, param: c_int, )

Calls C++ function: void QOpenGLFunctions::glTexParameteri(unsigned int target, unsigned int pname, int param).

Source

pub unsafe fn gl_tex_parameteriv( &self, target: c_uint, pname: c_uint, params: *const c_int, )

Calls C++ function: void QOpenGLFunctions::glTexParameteriv(unsigned int target, unsigned int pname, const int* params).

Source

pub unsafe fn gl_tex_sub_image_2d( &self, target: c_uint, level: c_int, xoffset: c_int, yoffset: c_int, width: c_int, height: c_int, format: c_uint, type_: c_uint, pixels: *const c_void, )

Calls C++ function: void QOpenGLFunctions::glTexSubImage2D(unsigned int target, int level, int xoffset, int yoffset, int width, int height, unsigned int format, unsigned int type, const void* pixels).

Source

pub unsafe fn gl_uniform_1f(&self, location: c_int, x: c_float)

Calls C++ function: void QOpenGLFunctions::glUniform1f(int location, float x).

Source

pub unsafe fn gl_uniform_1fv( &self, location: c_int, count: c_int, v: *const c_float, )

Calls C++ function: void QOpenGLFunctions::glUniform1fv(int location, int count, const float* v).

Source

pub unsafe fn gl_uniform_1i(&self, location: c_int, x: c_int)

Calls C++ function: void QOpenGLFunctions::glUniform1i(int location, int x).

Source

pub unsafe fn gl_uniform_1iv( &self, location: c_int, count: c_int, v: *const c_int, )

Calls C++ function: void QOpenGLFunctions::glUniform1iv(int location, int count, const int* v).

Source

pub unsafe fn gl_uniform_2f(&self, location: c_int, x: c_float, y: c_float)

Calls C++ function: void QOpenGLFunctions::glUniform2f(int location, float x, float y).

Source

pub unsafe fn gl_uniform_2fv( &self, location: c_int, count: c_int, v: *const c_float, )

Calls C++ function: void QOpenGLFunctions::glUniform2fv(int location, int count, const float* v).

Source

pub unsafe fn gl_uniform_2i(&self, location: c_int, x: c_int, y: c_int)

Calls C++ function: void QOpenGLFunctions::glUniform2i(int location, int x, int y).

Source

pub unsafe fn gl_uniform_2iv( &self, location: c_int, count: c_int, v: *const c_int, )

Calls C++ function: void QOpenGLFunctions::glUniform2iv(int location, int count, const int* v).

Source

pub unsafe fn gl_uniform_3f( &self, location: c_int, x: c_float, y: c_float, z: c_float, )

Calls C++ function: void QOpenGLFunctions::glUniform3f(int location, float x, float y, float z).

Source

pub unsafe fn gl_uniform_3fv( &self, location: c_int, count: c_int, v: *const c_float, )

Calls C++ function: void QOpenGLFunctions::glUniform3fv(int location, int count, const float* v).

Source

pub unsafe fn gl_uniform_3i( &self, location: c_int, x: c_int, y: c_int, z: c_int, )

Calls C++ function: void QOpenGLFunctions::glUniform3i(int location, int x, int y, int z).

Source

pub unsafe fn gl_uniform_3iv( &self, location: c_int, count: c_int, v: *const c_int, )

Calls C++ function: void QOpenGLFunctions::glUniform3iv(int location, int count, const int* v).

Source

pub unsafe fn gl_uniform_4f( &self, location: c_int, x: c_float, y: c_float, z: c_float, w: c_float, )

Calls C++ function: void QOpenGLFunctions::glUniform4f(int location, float x, float y, float z, float w).

Source

pub unsafe fn gl_uniform_4fv( &self, location: c_int, count: c_int, v: *const c_float, )

Calls C++ function: void QOpenGLFunctions::glUniform4fv(int location, int count, const float* v).

Source

pub unsafe fn gl_uniform_4i( &self, location: c_int, x: c_int, y: c_int, z: c_int, w: c_int, )

Calls C++ function: void QOpenGLFunctions::glUniform4i(int location, int x, int y, int z, int w).

Source

pub unsafe fn gl_uniform_4iv( &self, location: c_int, count: c_int, v: *const c_int, )

Calls C++ function: void QOpenGLFunctions::glUniform4iv(int location, int count, const int* v).

Source

pub unsafe fn gl_uniform_matrix_2fv( &self, location: c_int, count: c_int, transpose: c_uchar, value: *const c_float, )

Calls C++ function: void QOpenGLFunctions::glUniformMatrix2fv(int location, int count, unsigned char transpose, const float* value).

Source

pub unsafe fn gl_uniform_matrix_3fv( &self, location: c_int, count: c_int, transpose: c_uchar, value: *const c_float, )

Calls C++ function: void QOpenGLFunctions::glUniformMatrix3fv(int location, int count, unsigned char transpose, const float* value).

Source

pub unsafe fn gl_uniform_matrix_4fv( &self, location: c_int, count: c_int, transpose: c_uchar, value: *const c_float, )

Calls C++ function: void QOpenGLFunctions::glUniformMatrix4fv(int location, int count, unsigned char transpose, const float* value).

Source

pub unsafe fn gl_use_program(&self, program: c_uint)

Calls C++ function: void QOpenGLFunctions::glUseProgram(unsigned int program).

Source

pub unsafe fn gl_validate_program(&self, program: c_uint)

Calls C++ function: void QOpenGLFunctions::glValidateProgram(unsigned int program).

Source

pub unsafe fn gl_vertex_attrib_1f(&self, indx: c_uint, x: c_float)

Calls C++ function: void QOpenGLFunctions::glVertexAttrib1f(unsigned int indx, float x).

Source

pub unsafe fn gl_vertex_attrib_1fv(&self, indx: c_uint, values: *const c_float)

Calls C++ function: void QOpenGLFunctions::glVertexAttrib1fv(unsigned int indx, const float* values).

Source

pub unsafe fn gl_vertex_attrib_2f(&self, indx: c_uint, x: c_float, y: c_float)

Calls C++ function: void QOpenGLFunctions::glVertexAttrib2f(unsigned int indx, float x, float y).

Source

pub unsafe fn gl_vertex_attrib_2fv(&self, indx: c_uint, values: *const c_float)

Calls C++ function: void QOpenGLFunctions::glVertexAttrib2fv(unsigned int indx, const float* values).

Source

pub unsafe fn gl_vertex_attrib_3f( &self, indx: c_uint, x: c_float, y: c_float, z: c_float, )

Calls C++ function: void QOpenGLFunctions::glVertexAttrib3f(unsigned int indx, float x, float y, float z).

Source

pub unsafe fn gl_vertex_attrib_3fv(&self, indx: c_uint, values: *const c_float)

Calls C++ function: void QOpenGLFunctions::glVertexAttrib3fv(unsigned int indx, const float* values).

Source

pub unsafe fn gl_vertex_attrib_4f( &self, indx: c_uint, x: c_float, y: c_float, z: c_float, w: c_float, )

Calls C++ function: void QOpenGLFunctions::glVertexAttrib4f(unsigned int indx, float x, float y, float z, float w).

Source

pub unsafe fn gl_vertex_attrib_4fv(&self, indx: c_uint, values: *const c_float)

Calls C++ function: void QOpenGLFunctions::glVertexAttrib4fv(unsigned int indx, const float* values).

Source

pub unsafe fn gl_vertex_attrib_pointer( &self, indx: c_uint, size: c_int, type_: c_uint, normalized: c_uchar, stride: c_int, ptr: *const c_void, )

Calls C++ function: void QOpenGLFunctions::glVertexAttribPointer(unsigned int indx, int size, unsigned int type, unsigned char normalized, int stride, const void* ptr).

Source

pub unsafe fn gl_viewport( &self, x: c_int, y: c_int, width: c_int, height: c_int, )

Calls C++ function: void QOpenGLFunctions::glViewport(int x, int y, int width, int height).

Source

pub unsafe fn has_opengl_feature(&self, feature: OpenGLFeature) -> bool

Calls C++ function: bool QOpenGLFunctions::hasOpenGLFeature(QOpenGLFunctions::OpenGLFeature feature) const.

Source

pub unsafe fn initialize_opengl_functions(&self)

Calls C++ function: void QOpenGLFunctions::initializeOpenGLFunctions().

Source

pub unsafe fn new_0a() -> CppBox<QOpenGLFunctions>

Calls C++ function: [constructor] void QOpenGLFunctions::QOpenGLFunctions().

Source

pub unsafe fn new_1a( context: impl CastInto<Ptr<QOpenGLContext>>, ) -> CppBox<QOpenGLFunctions>

Calls C++ function: [constructor] void QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext* context).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QOpenGLFunctions>>, ) -> CppBox<QOpenGLFunctions>

Calls C++ function: [constructor] void QOpenGLFunctions::QOpenGLFunctions(const QOpenGLFunctions& other).

Source

pub unsafe fn opengl_features(&self) -> QFlags<OpenGLFeature>

Calls C++ function: QFlags<QOpenGLFunctions::OpenGLFeature> QOpenGLFunctions::openGLFeatures() const.

Trait Implementations§

Source§

impl CppDeletable for QOpenGLFunctions

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QOpenGLFunctions::~QOpenGLFunctions().

Source§

impl StaticDowncast<QOpenGLExtraFunctions> for QOpenGLFunctions

Source§

unsafe fn static_downcast( ptr: Ptr<QOpenGLFunctions>, ) -> Ptr<QOpenGLExtraFunctions>

Calls C++ function: QOpenGLExtraFunctions* static_cast<QOpenGLExtraFunctions*>(QOpenGLFunctions* ptr).

Source§

impl StaticUpcast<QOpenGLFunctions> for QOpenGLExtraFunctions

Source§

unsafe fn static_upcast( ptr: Ptr<QOpenGLExtraFunctions>, ) -> Ptr<QOpenGLFunctions>

Calls C++ function: QOpenGLFunctions* static_cast<QOpenGLFunctions*>(QOpenGLExtraFunctions* ptr).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.