Struct qt_gui::q_opengl_buffer::UsagePattern
source · pub struct UsagePattern(/* private fields */);
Expand description
This enum defines the usage pattern of a QOpenGLBuffer object.
C++ enum: QOpenGLBuffer::UsagePattern
.
This enum defines the usage pattern of a QOpenGLBuffer object.
Implementations§
source§impl UsagePattern
impl UsagePattern
sourcepub const StreamDraw: UsagePattern = _
pub const StreamDraw: UsagePattern = _
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
)
sourcepub const StreamRead: UsagePattern = _
pub const StreamRead: UsagePattern = _
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
)
sourcepub const StreamCopy: UsagePattern = _
pub const StreamCopy: UsagePattern = _
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
)
sourcepub const StaticDraw: UsagePattern = _
pub const StaticDraw: UsagePattern = _
The data will be set once and used many times for drawing operations. (C++ enum variant: StaticDraw = 35044
)
sourcepub const StaticRead: UsagePattern = _
pub const StaticRead: UsagePattern = _
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
)
sourcepub const StaticCopy: UsagePattern = _
pub const StaticCopy: UsagePattern = _
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
)
sourcepub const DynamicDraw: UsagePattern = _
pub const DynamicDraw: UsagePattern = _
The data will be modified repeatedly and used many times for drawing operations. (C++ enum variant: DynamicDraw = 35048
)
sourcepub const DynamicRead: UsagePattern = _
pub const DynamicRead: UsagePattern = _
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
)
sourcepub const DynamicCopy: UsagePattern = _
pub const DynamicCopy: UsagePattern = _
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§
source§impl Clone for UsagePattern
impl Clone for UsagePattern
source§fn clone(&self) -> UsagePattern
fn clone(&self) -> UsagePattern
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UsagePattern
impl Debug for UsagePattern
source§impl From<UsagePattern> for c_int
impl From<UsagePattern> for c_int
source§fn from(value: UsagePattern) -> Self
fn from(value: UsagePattern) -> Self
source§impl From<i32> for UsagePattern
impl From<i32> for UsagePattern
source§impl PartialEq for UsagePattern
impl PartialEq for UsagePattern
source§fn eq(&self, other: &UsagePattern) -> bool
fn eq(&self, other: &UsagePattern) -> bool
self
and other
values to be equal, and is used
by ==
.