cleanup comments

This commit is contained in:
Nick Spagnola 2020-06-29 07:00:28 -07:00
parent 43bc5a5829
commit bd6d7eb489
No known key found for this signature in database
GPG Key ID: 4FB92FAC62E13DFE
1 changed files with 5 additions and 1 deletions

View File

@ -508,7 +508,8 @@ pub unsafe extern "C" fn PFFillStyleDestroy(fill_style: PFFillStyleRef) {
drop(Box::from_raw(fill_style)) drop(Box::from_raw(fill_style))
} }
// `gl` // `resources`
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn PFEmbeddedResourceLoaderCreate() -> PFResourceLoaderRef { pub unsafe extern "C" fn PFEmbeddedResourceLoaderCreate() -> PFResourceLoaderRef {
let loader = Box::new(EmbeddedResourceLoader::new()); let loader = Box::new(EmbeddedResourceLoader::new());
@ -529,6 +530,9 @@ pub unsafe extern "C" fn PFFilesystemResourceLoaderFromPath(path: *const c_char)
Box::into_raw(Box::new(ResourceLoaderWrapper(loader as Box<dyn ResourceLoader>))) Box::into_raw(Box::new(ResourceLoaderWrapper(loader as Box<dyn ResourceLoader>)))
} }
// `gl`
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn PFGLLoadWith(loader: PFGLFunctionLoader, userdata: *mut c_void) { pub unsafe extern "C" fn PFGLLoadWith(loader: PFGLFunctionLoader, userdata: *mut c_void) {
gl::load_with(|name| { gl::load_with(|name| {