|
|
|
@ -32,8 +32,8 @@ pub enum Format {
@@ -32,8 +32,8 @@ pub enum Format {
|
|
|
|
|
unsafe impl Sync for Info {} |
|
|
|
|
unsafe impl Send for Info {} |
|
|
|
|
|
|
|
|
|
impl Info { |
|
|
|
|
pub fn new() -> Self { |
|
|
|
|
impl Default for Info { |
|
|
|
|
fn default() -> Self { |
|
|
|
|
let mut raw = MaybeUninit::zeroed(); |
|
|
|
|
let raw = unsafe { |
|
|
|
|
citro3d_sys::AttrInfo_Init(raw.as_mut_ptr()); |
|
|
|
@ -41,6 +41,12 @@ impl Info {
@@ -41,6 +41,12 @@ impl Info {
|
|
|
|
|
}; |
|
|
|
|
Self(raw) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
impl Info { |
|
|
|
|
pub fn new() -> Self { |
|
|
|
|
Self::default() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub(crate) fn copy_from(raw: *const citro3d_sys::C3D_AttrInfo) -> Option<Self> { |
|
|
|
|
if raw.is_null() { |
|
|
|
|