Skip to content

Commit

Permalink
add aliases for get_parameter_* functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tesselode authored and grovesNL committed Sep 3, 2024
1 parent b65d5e7 commit eb44a87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,18 +885,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_framebuffer_parameter_i32(&self, target: u32, parameter: u32) -> i32;
Expand Down

0 comments on commit eb44a87

Please sign in to comment.