Skip to content

Commit

Permalink
Merge pull request #11 from fabric-and-ink/license-header
Browse files Browse the repository at this point in the history
Add license headers to .rs files
  • Loading branch information
K4ugummi committed Sep 29, 2018
2 parents b6f810b + 5dc5522 commit 79462c2
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 8 deletions.
14 changes: 14 additions & 0 deletions src/game/car.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// This file is part of Carambolage.

// Carambolage is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Carambolage is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
use super::model::Model;
use nalgebra::geometry::Translation;
use nalgebra::{zero, Matrix4, Vector3};
Expand Down
14 changes: 14 additions & 0 deletions src/game/mesh.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// This file is part of Carambolage.

// Carambolage is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Carambolage is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
#![macro_use]

use std::ffi::CString;
Expand Down
14 changes: 14 additions & 0 deletions src/game/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// This file is part of Carambolage.

// Carambolage is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Carambolage is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
extern crate gl;
extern crate glfw;

Expand Down
14 changes: 14 additions & 0 deletions src/game/model.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// This file is part of Carambolage.

// Carambolage is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Carambolage is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
use std::ffi::CString;

use super::mesh::{Mesh, Vertex};
Expand Down
14 changes: 14 additions & 0 deletions src/game/scene.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// This file is part of Carambolage.

// Carambolage is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Carambolage is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
use nalgebra::{inf, sup, zero, Matrix4, Point3, Vector3};
use rand::{thread_rng, Rng};
use time::Duration;
Expand Down
32 changes: 24 additions & 8 deletions src/game/shader.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// This file is part of Carambolage.

// Carambolage is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Carambolage is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
use std::ffi::{CStr, CString};
use std::ptr;
use std::str;
Expand Down Expand Up @@ -108,10 +122,11 @@ impl Shader {
ptr::null_mut(),
info_log.as_mut_ptr() as *mut i8,
);
println!("ERROR::SHADER_COMPILATION_ERROR of type: {}\n{}\n \
-- --------------------------------------------------- -- ",
type_,
str::from_utf8(&info_log).unwrap());
println!(
"ERROR::SHADER_COMPILATION_ERROR of type: {}\n{}\n",
type_,
str::from_utf8(&info_log).unwrap()
);
}
} else {
gl::GetProgramiv(shader, gl::LINK_STATUS, &mut success);
Expand All @@ -122,10 +137,11 @@ impl Shader {
ptr::null_mut(),
info_log.as_mut_ptr() as *mut i8,
);
println!("ERROR::PROGRAM_LINKING_ERROR of type: {}\n{}\n \
-- --------------------------------------------------- -- ",
type_,
str::from_utf8(&info_log).unwrap());
println!(
"ERROR::PROGRAM_LINKING_ERROR of type: {}\n{}\n",
type_,
str::from_utf8(&info_log).unwrap()
);
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// This file is part of Carambolage.

// Carambolage is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Carambolage is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
extern crate nalgebra;
extern crate rand;
extern crate time;
Expand Down

0 comments on commit 79462c2

Please sign in to comment.