Struct gfx::device::state::Primitive
[−]
[src]
pub struct Primitive { pub front_face: FrontFace, pub method: RasterMethod, pub offset: Option<Offset>, }
Primitive rasterization state. Note that GL allows different raster method to be used for front and back, while this abstraction does not.
Fields
front_face | Which vertex winding is considered to be the front face for culling. |
method | How to rasterize this primitive. |
offset | Any polygon offset to apply. |
Methods
impl Primitive
fn get_cull_face(&self) -> CullFace
Get the cull face, if any, for this primitive state.