Skip to content

Commit

Permalink
docs: v2
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov committed Nov 13, 2024
1 parent caf2e30 commit 1ffe959
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions glutin/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ pub trait NotCurrentGlContext: Sealed {
/// guaranteed to be current.
fn treat_as_possibly_current(self) -> Self::PossiblyCurrentContext;

/// Make context current on the calling thread producing the
/// Make context current on the calling thread and change its type to
/// [`Self::PossiblyCurrentContext`]. The `surface` is used as a target for
/// default framebuffer.
/// the default framebuffer.
///
/// # Platform specific
///
Expand All @@ -77,7 +77,7 @@ pub trait NotCurrentGlContext: Sealed {
) -> Result<Self::PossiblyCurrentContext>;

/// Make context current on the calling thread without a default
/// framebuffer producing the [`Self::PossiblyCurrentContext`].
/// framebuffer and change its type to [`Self::PossiblyCurrentContext`].
///
/// # Api specific
///
Expand All @@ -97,21 +97,21 @@ pub trait PossiblyCurrentGlContext: Sealed {
/// Returns `true` if this context is the current one in this thread.
fn is_current(&self) -> bool;

/// Make the context not current to the current thread and returns a
/// [`Self::NotCurrentContext`].
/// Make the context not current to the current thread and change its type
/// to [`Self::NotCurrentContext`].
///
/// # Platform specific
///
/// - **macOS: this will block if your main thread is blocked.**
fn make_not_current(self) -> Result<Self::NotCurrentContext>;

/// Make the context not current on the current thread. If you need to
/// Make the context not current on the calling thread. If you need to
/// send the context to another thread, use [`Self::make_not_current`]
/// instead.
fn make_not_current_in_place(&self) -> Result<()>;

/// Make context current on the calling. The `surface` is used as a target
/// for default framebuffer.
/// Make context current on the calling thread. The `surface` is used as a
/// target for the default framebuffer.
///
/// # Platform specific
///
Expand Down

0 comments on commit 1ffe959

Please sign in to comment.