#[repr(C)]pub struct TTF_GPUAtlasDrawSequence {
pub atlas_texture: *mut SDL_GPUTexture,
pub xy: *mut SDL_FPoint,
pub uv: *mut SDL_FPoint,
pub num_vertices: c_int,
pub indices: *mut c_int,
pub num_indices: c_int,
pub image_type: TTF_ImageType,
pub next: *mut TTF_GPUAtlasDrawSequence,
}Expand description
Draw sequence returned by TTF_GetGPUTextDrawData
Available Since: This struct is available since SDL_ttf 3.0.0.
See Also: TTF_GetGPUTextDrawData
Fields§
§atlas_texture: *mut SDL_GPUTexture< Texture atlas that stores the glyphs
xy: *mut SDL_FPoint< An array of vertex positions
uv: *mut SDL_FPoint< An array of normalized texture coordinates for each vertex
num_vertices: c_int< Number of vertices
indices: *mut c_int< An array of indices into the ‘vertices’ arrays
num_indices: c_int< Number of indices
image_type: TTF_ImageType< The image type of this draw sequence
next: *mut TTF_GPUAtlasDrawSequence< The next sequence (will be NULL in case of the last sequence)
Trait Implementations§
Source§impl Clone for TTF_GPUAtlasDrawSequence
impl Clone for TTF_GPUAtlasDrawSequence
Source§fn clone(&self) -> TTF_GPUAtlasDrawSequence
fn clone(&self) -> TTF_GPUAtlasDrawSequence
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TTF_GPUAtlasDrawSequence
impl Debug for TTF_GPUAtlasDrawSequence
Source§impl Default for TTF_GPUAtlasDrawSequence
impl Default for TTF_GPUAtlasDrawSequence
Source§impl Hash for TTF_GPUAtlasDrawSequence
impl Hash for TTF_GPUAtlasDrawSequence
impl Copy for TTF_GPUAtlasDrawSequence
Auto Trait Implementations§
impl Freeze for TTF_GPUAtlasDrawSequence
impl RefUnwindSafe for TTF_GPUAtlasDrawSequence
impl !Send for TTF_GPUAtlasDrawSequence
impl !Sync for TTF_GPUAtlasDrawSequence
impl Unpin for TTF_GPUAtlasDrawSequence
impl UnsafeUnpin for TTF_GPUAtlasDrawSequence
impl UnwindSafe for TTF_GPUAtlasDrawSequence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more