pub type DynamicInstance<V = Latest> = Instance<Dynamic<Library, V>>;
Expand description
Alias for dynamically linked instances with the latest handled version of EGL.
Aliased Type§
struct DynamicInstance<V = Latest> { /* private fields */ }
Implementations§
Source§impl DynamicInstance<EGL1_0>
impl DynamicInstance<EGL1_0>
Sourcepub unsafe fn load_required_from_filename<P: AsRef<OsStr>>(
filename: P,
) -> Result<DynamicInstance<EGL1_0>, LoadError<Error>>
pub unsafe fn load_required_from_filename<P: AsRef<OsStr>>( filename: P, ) -> Result<DynamicInstance<EGL1_0>, LoadError<Error>>
Create an EGL instance by finding and loading a dynamic library with the given filename. This function fails if the EGL library does not provide the minimum required version given by the type parameter.
See Library::new
for more details on how the filename
argument is used.
On Linux plateforms, the library is loaded with the RTLD_NODELETE
flag.
See #14 for more details.
§Safety
This is fundamentally unsafe since there are no guaranties the input library complies to the EGL API.
Sourcepub unsafe fn load_required() -> Result<DynamicInstance<EGL1_0>, LoadError<Error>>
pub unsafe fn load_required() -> Result<DynamicInstance<EGL1_0>, LoadError<Error>>
Create an EGL instance by finding and loading the libEGL.so.1
or libEGL.so
library.
This function fails if the EGL library does not provide the minimum required version given by the type parameter.
This is equivalent to DynamicInstance::load_required_from_filename("libEGL.so.1")
.
§Safety
This is fundamentally unsafe since there are no guaranties the found library complies to the EGL API.
Source§impl DynamicInstance<EGL1_1>
impl DynamicInstance<EGL1_1>
Sourcepub unsafe fn load_required_from_filename<P: AsRef<OsStr>>(
filename: P,
) -> Result<DynamicInstance<EGL1_1>, LoadError<Error>>
pub unsafe fn load_required_from_filename<P: AsRef<OsStr>>( filename: P, ) -> Result<DynamicInstance<EGL1_1>, LoadError<Error>>
Create an EGL instance by finding and loading a dynamic library with the given filename. This function fails if the EGL library does not provide the minimum required version given by the type parameter.
See Library::new
for more details on how the filename
argument is used.
On Linux plateforms, the library is loaded with the RTLD_NODELETE
flag.
See #14 for more details.
§Safety
This is fundamentally unsafe since there are no guaranties the input library complies to the EGL API.
Sourcepub unsafe fn load_required() -> Result<DynamicInstance<EGL1_1>, LoadError<Error>>
pub unsafe fn load_required() -> Result<DynamicInstance<EGL1_1>, LoadError<Error>>
Create an EGL instance by finding and loading the libEGL.so.1
or libEGL.so
library.
This function fails if the EGL library does not provide the minimum required version given by the type parameter.
This is equivalent to DynamicInstance::load_required_from_filename("libEGL.so.1")
.
§Safety
This is fundamentally unsafe since there are no guaranties the found library complies to the EGL API.
Source§impl DynamicInstance<EGL1_2>
impl DynamicInstance<EGL1_2>
Sourcepub unsafe fn load_required_from_filename<P: AsRef<OsStr>>(
filename: P,
) -> Result<DynamicInstance<EGL1_2>, LoadError<Error>>
pub unsafe fn load_required_from_filename<P: AsRef<OsStr>>( filename: P, ) -> Result<DynamicInstance<EGL1_2>, LoadError<Error>>
Create an EGL instance by finding and loading a dynamic library with the given filename. This function fails if the EGL library does not provide the minimum required version given by the type parameter.
See Library::new
for more details on how the filename
argument is used.
On Linux plateforms, the library is loaded with the RTLD_NODELETE
flag.
See #14 for more details.
§Safety
This is fundamentally unsafe since there are no guaranties the input library complies to the EGL API.
Sourcepub unsafe fn load_required() -> Result<DynamicInstance<EGL1_2>, LoadError<Error>>
pub unsafe fn load_required() -> Result<DynamicInstance<EGL1_2>, LoadError<Error>>
Create an EGL instance by finding and loading the libEGL.so.1
or libEGL.so
library.
This function fails if the EGL library does not provide the minimum required version given by the type parameter.
This is equivalent to DynamicInstance::load_required_from_filename("libEGL.so.1")
.
§Safety
This is fundamentally unsafe since there are no guaranties the found library complies to the EGL API.
Source§impl DynamicInstance<EGL1_3>
impl DynamicInstance<EGL1_3>
Sourcepub unsafe fn load_required_from_filename<P: AsRef<OsStr>>(
filename: P,
) -> Result<DynamicInstance<EGL1_3>, LoadError<Error>>
pub unsafe fn load_required_from_filename<P: AsRef<OsStr>>( filename: P, ) -> Result<DynamicInstance<EGL1_3>, LoadError<Error>>
Create an EGL instance by finding and loading a dynamic library with the given filename. This function fails if the EGL library does not provide the minimum required version given by the type parameter.
See Library::new
for more details on how the filename
argument is used.
On Linux plateforms, the library is loaded with the RTLD_NODELETE
flag.
See #14 for more details.
§Safety
This is fundamentally unsafe since there are no guaranties the input library complies to the EGL API.
Sourcepub unsafe fn load_required() -> Result<DynamicInstance<EGL1_3>, LoadError<Error>>
pub unsafe fn load_required() -> Result<DynamicInstance<EGL1_3>, LoadError<Error>>
Create an EGL instance by finding and loading the libEGL.so.1
or libEGL.so
library.
This function fails if the EGL library does not provide the minimum required version given by the type parameter.
This is equivalent to DynamicInstance::load_required_from_filename("libEGL.so.1")
.
§Safety
This is fundamentally unsafe since there are no guaranties the found library complies to the EGL API.
Source§impl DynamicInstance<EGL1_4>
impl DynamicInstance<EGL1_4>
Sourcepub unsafe fn load_required_from_filename<P: AsRef<OsStr>>(
filename: P,
) -> Result<DynamicInstance<EGL1_4>, LoadError<Error>>
pub unsafe fn load_required_from_filename<P: AsRef<OsStr>>( filename: P, ) -> Result<DynamicInstance<EGL1_4>, LoadError<Error>>
Create an EGL instance by finding and loading a dynamic library with the given filename. This function fails if the EGL library does not provide the minimum required version given by the type parameter.
See Library::new
for more details on how the filename
argument is used.
On Linux plateforms, the library is loaded with the RTLD_NODELETE
flag.
See #14 for more details.
§Safety
This is fundamentally unsafe since there are no guaranties the input library complies to the EGL API.
Sourcepub unsafe fn load_required() -> Result<DynamicInstance<EGL1_4>, LoadError<Error>>
pub unsafe fn load_required() -> Result<DynamicInstance<EGL1_4>, LoadError<Error>>
Create an EGL instance by finding and loading the libEGL.so.1
or libEGL.so
library.
This function fails if the EGL library does not provide the minimum required version given by the type parameter.
This is equivalent to DynamicInstance::load_required_from_filename("libEGL.so.1")
.
§Safety
This is fundamentally unsafe since there are no guaranties the found library complies to the EGL API.
Source§impl DynamicInstance<EGL1_5>
impl DynamicInstance<EGL1_5>
Sourcepub unsafe fn load_required_from_filename<P: AsRef<OsStr>>(
filename: P,
) -> Result<DynamicInstance<EGL1_5>, LoadError<Error>>
pub unsafe fn load_required_from_filename<P: AsRef<OsStr>>( filename: P, ) -> Result<DynamicInstance<EGL1_5>, LoadError<Error>>
Create an EGL instance by finding and loading a dynamic library with the given filename. This function fails if the EGL library does not provide the minimum required version given by the type parameter.
See Library::new
for more details on how the filename
argument is used.
On Linux plateforms, the library is loaded with the RTLD_NODELETE
flag.
See #14 for more details.
§Safety
This is fundamentally unsafe since there are no guaranties the input library complies to the EGL API.
Sourcepub unsafe fn load_required() -> Result<DynamicInstance<EGL1_5>, LoadError<Error>>
pub unsafe fn load_required() -> Result<DynamicInstance<EGL1_5>, LoadError<Error>>
Create an EGL instance by finding and loading the libEGL.so.1
or libEGL.so
library.
This function fails if the EGL library does not provide the minimum required version given by the type parameter.
This is equivalent to DynamicInstance::load_required_from_filename("libEGL.so.1")
.
§Safety
This is fundamentally unsafe since there are no guaranties the found library complies to the EGL API.
Source§impl DynamicInstance<EGL1_0>
impl DynamicInstance<EGL1_0>
Sourcepub unsafe fn load_from_filename<P: AsRef<OsStr>>(
filename: P,
) -> Result<DynamicInstance<EGL1_0>, Error>
pub unsafe fn load_from_filename<P: AsRef<OsStr>>( filename: P, ) -> Result<DynamicInstance<EGL1_0>, Error>
Create an EGL instance by finding and loading a dynamic library with the given filename.
See Library::new
for more details on how the filename
argument is used.
On Linux plateforms, the library is loaded with the RTLD_NODELETE
flag.
See #14 for more details.
§Safety
This is fundamentally unsafe since there are no guaranties the input library complies to the EGL API.
Sourcepub unsafe fn load() -> Result<DynamicInstance<EGL1_0>, Error>
pub unsafe fn load() -> Result<DynamicInstance<EGL1_0>, Error>
Create an EGL instance by finding and loading the libEGL.so.1
or libEGL.so
library.
This is equivalent to DynamicInstance::load_from_filename("libEGL.so.1")
.
§Safety
This is fundamentally unsafe since there are no guaranties the found library complies to the EGL API.