[][src]Struct qt_gui::q_opengl_buffer::UsagePattern

#[repr(transparent)]
pub struct UsagePattern(_);

This enum defines the usage pattern of a QOpenGLBuffer object.

C++ enum: QOpenGLBuffer::UsagePattern.

C++ documentation:

This enum defines the usage pattern of a QOpenGLBuffer object.

Methods

impl UsagePattern[src]

pub fn to_int(&self) -> c_int[src]

impl UsagePattern[src]

pub const StreamDraw: UsagePattern[src]

The data will be set once and used a few times for drawing operations. Under OpenGL/ES 1.1 this is identical to StaticDraw. (C++ enum variant: StreamDraw = 35040)

pub const StreamRead: UsagePattern[src]

The data will be set once and used a few times for reading data back from the OpenGL server. Not supported under OpenGL/ES. (C++ enum variant: StreamRead = 35041)

pub const StreamCopy: UsagePattern[src]

The data will be set once and used a few times for reading data back from the OpenGL server for use in further drawing operations. Not supported under OpenGL/ES. (C++ enum variant: StreamCopy = 35042)

pub const StaticDraw: UsagePattern[src]

The data will be set once and used many times for drawing operations. (C++ enum variant: StaticDraw = 35044)

pub const StaticRead: UsagePattern[src]

The data will be set once and used many times for reading data back from the OpenGL server. Not supported under OpenGL/ES. (C++ enum variant: StaticRead = 35045)

pub const StaticCopy: UsagePattern[src]

The data will be set once and used many times for reading data back from the OpenGL server for use in further drawing operations. Not supported under OpenGL/ES. (C++ enum variant: StaticCopy = 35046)

pub const DynamicDraw: UsagePattern[src]

The data will be modified repeatedly and used many times for drawing operations. (C++ enum variant: DynamicDraw = 35048)

pub const DynamicRead: UsagePattern[src]

The data will be modified repeatedly and used many times for reading data back from the OpenGL server. Not supported under OpenGL/ES. (C++ enum variant: DynamicRead = 35049)

pub const DynamicCopy: UsagePattern[src]

The data will be modified repeatedly and used many times for reading data back from the OpenGL server for use in further drawing operations. Not supported under OpenGL/ES. (C++ enum variant: DynamicCopy = 35050)

Trait Implementations

impl Clone for UsagePattern[src]

impl Copy for UsagePattern[src]

impl Debug for UsagePattern[src]

impl Eq for UsagePattern[src]

impl From<UsagePattern> for c_int[src]

impl From<i32> for UsagePattern[src]

impl PartialEq<UsagePattern> for UsagePattern[src]

impl StructuralEq for UsagePattern[src]

impl StructuralPartialEq for UsagePattern[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.