Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add aliases for get_parameter_* functions #300

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,18 +789,25 @@ pub trait HasContext: __private::Sealed {

unsafe fn get_buffer_parameter_i32(&self, target: u32, parameter: u32) -> i32;

#[doc(alias = "glGetIntegerv")]
unsafe fn get_parameter_i32(&self, parameter: u32) -> i32;

#[doc(alias = "glGetIntegerv")]
unsafe fn get_parameter_i32_slice(&self, parameter: u32, out: &mut [i32]);

#[doc(alias = "glGetFloatv")]
unsafe fn get_parameter_f32(&self, parameter: u32) -> f32;

#[doc(alias = "glGetFloatv")]
unsafe fn get_parameter_f32_slice(&self, parameter: u32, out: &mut [f32]);

#[doc(alias = "glGetIntegeri_v")]
unsafe fn get_parameter_indexed_i32(&self, parameter: u32, index: u32) -> i32;

#[doc(alias = "glGetStringi")]
unsafe fn get_parameter_indexed_string(&self, parameter: u32, index: u32) -> String;

#[doc(alias = "glGetString")]
unsafe fn get_parameter_string(&self, parameter: u32) -> String;

unsafe fn get_active_uniform_block_parameter_i32(
Expand Down
Loading