Skip to main content

skia_sys/
lib.rs

1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5#![allow(non_upper_case_globals)]
6#![allow(non_camel_case_types)]
7#![allow(non_snake_case)]
8
9extern crate libc;
10
11use libc::*;
12
13pub type SkiaGrContextRef = *mut c_void;
14pub type SkiaGrGLInterfaceRef = *const c_void;
15
16extern {
17
18pub fn SkiaGrGLCreateNativeInterface() -> SkiaGrGLInterfaceRef;
19pub fn SkiaGrGLInterfaceRetain(anInterface: SkiaGrGLInterfaceRef);
20pub fn SkiaGrGLInterfaceRelease(anInterface: SkiaGrGLInterfaceRef);
21pub fn SkiaGrGLInterfaceHasExtension(anInterface: SkiaGrGLInterfaceRef, extension: *const c_char) -> bool;
22pub fn SkiaGrGLInterfaceGLVersionGreaterThanOrEqualTo(anInterface: SkiaGrGLInterfaceRef, major: i32, minor: i32) -> bool;
23
24pub fn SkiaGrContextCreate(anInterface: SkiaGrGLInterfaceRef) -> SkiaGrContextRef;
25pub fn SkiaGrContextRetain(aContext: SkiaGrContextRef);
26pub fn SkiaGrContextRelease(aContext: SkiaGrContextRef);
27
28}