Type Alias khronos_egl::DynamicInstance

source ·
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>

source

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.

source

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>

source

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.

source

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>

source

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.

source

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>

source

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.

source

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>

source

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.

source

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>

source

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.

source

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>

source

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.

source

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.