From 0d83c843e32edc792788f6dd72378c8efc4c054e Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 10 Sep 2019 20:55:04 -0700 Subject: [PATCH] Add bindings to `CGLRetainPixelFormat` and `CGLReleasePixelFormat` --- src/cgl.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cgl.rs b/src/cgl.rs index 98d1532..faa5574 100644 --- a/src/cgl.rs +++ b/src/cgl.rs @@ -159,6 +159,9 @@ extern { attrib: CGLPixelFormatAttribute, value: *mut GLint) -> CGLError; pub fn CGLDestroyPixelFormat(pix: CGLPixelFormatObj) -> CGLError; + pub fn CGLReleasePixelFormat(pix: CGLPixelFormatObj); + pub fn CGLRetainPixelFormat(pix: CGLPixelFormatObj) -> CGLPixelFormatObj; + pub fn CGLGetPixelFormatRetainCount(pix: CGLPixelFormatObj) -> GLuint; // Context functions pub fn CGLCreateContext(pix: CGLPixelFormatObj, share: CGLContextObj, ctx: *mut CGLContextObj) ->