Function gvr_sys::gvr_buffer_spec_set_color_format [] [src]

pub unsafe extern "C" fn gvr_buffer_spec_set_color_format(
    spec: *mut gvr_buffer_spec,
    color_format: i32
)

Sets the color format for the buffer to be created. Default format is GVR_COLOR_FORMAT_RGBA_8888. For all alpha-containing formats, the pixels are expected to be premultiplied with alpha. In other words, the 60% opaque primary green color is (0.0, 0.6, 0.0, 0.6).

@param spec Buffer specification. @param color_format The color format for the buffer. Valid formats are in the gvr_color_format_type enum.