fn tex_image_3d(&self,
                    target: GLenum,
                    level: GLint,
                    internal_format: GLint,
                    width: GLsizei,
                    height: GLsizei,
                    depth: GLsizei,
                    border: GLint,
                    format: GLenum,
                    ty: GLenum,
                    opt_data: Option<&[u8]>) {
        unsafe {
            let pdata = match opt_data {
                Some(data) => mem::transmute(data.as_ptr()),
                None => ptr::null(),
            };
            self.ffi_gl_.TexImage3D(target,
                                    level,
                                    internal_format,
                                    width,
                                    height,
                                    depth,
                                    border,
                                    format,
                                    ty,
                                    pdata);
        }
    }
// FIXME: Does not verify buffer size -- unsafe!
Does not verify buffer size -- unsafe!
Does not verify buffer size -- unsafe!
fn tex_image_3d(&self,
                    target: GLenum,
                    level: GLint,
                    internal_format: GLint,
                    width: GLsizei,
                    height: GLsizei,
                    depth: GLsizei,
                    border: GLint,
                    format: GLenum,
                    ty: GLenum,
                    opt_data: Option<&[u8]>) {
        unsafe {
            let pdata = match opt_data {
                Some(data) => mem::transmute(data.as_ptr()),
                None => ptr::null(),
            };
            self.ffi_gl_.TexImage3D(target,
                                    level,
                                    internal_format,
                                    width,
                                    height,
                                    depth,
                                    border,
                                    format,
                                    ty,
                                    pdata);
        }
    }
fn tex_image_3d ( & self , target : GLenum , level : GLint , internal_format : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , border : GLint , format : GLenum , ty : GLenum , opt_data : Option < & [ u8 ] > ) { unsafe { let pdata = match opt_data { Some ( data ) => mem :: transmute ( data . as_ptr ( ) ) , None => ptr :: null ( ) , } ; self . ffi_gl_ . TexImage3D ( target , level , internal_format , width , height , depth , border , format , ty , pdata ) ; } }
FIXME: Does not verify buffer size -- unsafe!
FIXME : Does not verify buffer size -- unsafe!
&self
target
GLenum
level
GLint
internal_format
GLint
width
GLsizei
height
GLsizei
depth
GLsizei
border
GLint
format
GLenum
ty
GLenum
opt_data
Option<&[u8]>
&self
target
GLenum
level
GLint
internal_format
GLint
width
GLsizei
height
GLsizei
depth
GLsizei
border
GLint
format
GLenum
ty
GLenum
opt_data
Option<&[u8]>