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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for UsagePattern
Source§impl Debug for UsagePattern
impl Debug for UsagePattern
impl Eq 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 ==.