Skip to content

Commit

Permalink
Add glGetString, GL_VERSION & GL_VENDOR to sapp-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
panpang authored and not-fl3 committed Feb 27, 2021
1 parent fdf9fd8 commit aad95c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native/sapp-windows/src/gl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ pub const GL_DRAW_FRAMEBUFFER_BINDING: u32 = 36006;
pub const GL_TIME_ELAPSED: u32 = 35007;
pub const GL_QUERY_RESULT: u32 = 34918;
pub const GL_QUERY_RESULT_AVAILABLE: u32 = 34919;
pub const GL_VENDOR: u32 = 0x1F00;
pub const GL_VERSION: u32 = 0x1F02;

pub const WGL_NUMBER_PIXEL_FORMATS_ARB: u32 = 0x2000;
pub const WGL_SUPPORT_OPENGL_ARB: u32 = 0x2010;
Expand Down Expand Up @@ -331,6 +333,7 @@ macro_rules! gl_loader {

gl_loader!(
fn glGetStringi(name: GLenum, index: GLuint) -> *const GLubyte,
fn glGetString(name: GLenum) -> *const GLubyte,
fn glFramebufferTextureLayer(
target: GLenum,
attachment: GLenum,
Expand Down

0 comments on commit aad95c6

Please sign in to comment.