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

lang updates #40

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

4 cgl.rs
@@ -10,7 +10,7 @@
// Mac-specific OpenGL bindings.

use gl2::{GLenum, GLint, GLsizei, GLuint};
use core::libc::*;
use std::libc::*;

pub type CGLContextObj = *c_void;
pub type CGLError = c_int;
@@ -50,4 +50,4 @@ extern {
pub fn CGLTexImageIOSurface2D(ctx: CGLContextObj, target: GLenum, internal_format: GLenum,
width: GLsizei, height: GLsizei, format: GLenum, ty: GLenum,
ioSurface: IOSurfaceRef, plane: GLuint) -> CGLError;
}
}
26 gl2.rs
@@ -9,15 +9,19 @@

/* automatically generated by rust-bindgen */

use core::libc::*;
use core::libc::types::common::c99::*;
use core::cast::transmute;
use core::ptr::to_unsafe_ptr;
use core::str::{as_c_str, from_bytes};
use core::str::raw::from_c_str;
use core::sys::size_of;
use core::vec::from_elem;
use core::vec::raw::to_ptr;
use std::libc::*;
use std::libc::types::common::c99::*;
use std::cast::transmute;
use std::ptr::to_unsafe_ptr;
use std::str::{as_c_str, from_bytes};
use std::str::raw::from_c_str;
use std::sys::size_of;
use std::vec::from_elem;
use std::vec::raw::to_ptr;
use std::str;
use std::cmp;
use std::cast;
use std::ptr;

// Linking
#[nolink]
@@ -1029,8 +1033,8 @@ pub fn viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei) {
#[cfg(target_os="macos")]
pub mod apple {
use super::{GLenum, GLsizei};
use core::cast::transmute;
use core::vec::raw::to_ptr;
use std::cast::transmute;
use std::vec::raw::to_ptr;

pub unsafe fn texture_range(target: GLenum, buffer: &[u8]) {
super::glTextureRangeAPPLE(target, buffer.len() as GLsizei, transmute(to_ptr(buffer)));
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.