This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
10,134 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
language: rust | ||
before_install: | ||
- sudo add-apt-repository ppa:team-xbmc/ppa -y | ||
- sudo apt-get update -qq | ||
install: | ||
- sudo apt-get install libsdl2-dev | ||
script: | ||
- cargo test -v | ||
- cargo doc -v | ||
- cargo build -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
[package] | ||
|
||
name = "piston2d-opengl_graphics" | ||
version = "0.40.0" | ||
name = "opengles_graphics" | ||
version = "0.1.1" | ||
authors = [ | ||
"bvssvni <[email protected]>", | ||
"Coeuvre <[email protected]>", | ||
|
@@ -12,24 +11,25 @@ authors = [ | |
"Apointos", | ||
"ccgn", | ||
"reem", | ||
"TyOverby <[email protected]>" | ||
"TyOverby <[email protected]>", | ||
"Victor Brekenfeld <[email protected]>" | ||
] | ||
keywords = ["opengl", "graphics", "2d", "piston"] | ||
description = "An OpenGL 2D back-end for the Piston game engine" | ||
keywords = ["opengles", "graphics", "2d", "piston"] | ||
description = "An OpenGL ES 2D back-end for the Piston game engine" | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/PistonDevelopers/opengl_graphics.git" | ||
homepage = "https://github.com/PistonDevelopers/opengl_graphics" | ||
repository = "https://github.com/Drakulix/opengles_graphics.git" | ||
homepage = "https://github.com/Drakulix/opengles_graphics" | ||
build = "build.rs" | ||
|
||
[lib] | ||
name = "opengl_graphics" | ||
name = "opengles_graphics" | ||
path = "src/lib.rs" | ||
|
||
[dependencies] | ||
image = "0.12.0" | ||
rusttype = "0.2.0" | ||
gl = "0.6.0" | ||
piston-shaders_graphics2d = "0.3.1" | ||
shaders_graphics2d_gles = { version = "0.2.0", path = "./shaders" } | ||
piston-texture = "0.5.0" | ||
piston2d-graphics = "0.21.0" | ||
shader_version = "0.2.0" | ||
|
@@ -40,5 +40,5 @@ piston = "0.31.3" | |
pistoncore-sdl2_window = "0.40.0" | ||
|
||
[build-dependencies] | ||
gl_generator = "0.5.0" | ||
khronos_api = "0.0.8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# opengl_graphics [![Build Status](https://travis-ci.org/PistonDevelopers/opengl_graphics.svg)](https://travis-ci.org/PistonDevelopers/opengl_graphics) [![Crates.io](https://img.shields.io/crates/v/piston2d-opengl_graphics.svg)](https://crates.io/crates/piston2d-opengl_graphics) [![Crates.io](https://img.shields.io/crates/l/piston2d-opengl_graphics.svg)](https://github.com/PistonDevelopers/opengl_graphics/blob/master/LICENSE) | ||
# opengles_graphics [![Build Status](https://travis-ci.org/PistonDevelopers/opengl_graphics.svg)](https://travis-ci.org/Drakulix/opengles_graphics) [![Crates.io](https://img.shields.io/crates/v/opengles_graphics.svg)](https://crates.io/crates/opengles_graphics) [![Crates.io](https://img.shields.io/crates/l/opengles_graphics.svg)](https://github.com/Drakulix/opengles_graphics/blob/master/LICENSE) | ||
|
||
An OpenGL 2D back-end for the Piston game engine | ||
An OpenGL ES 2D back-end for the Piston game engine | ||
|
||
Maintainers: @Potpourri, @bvssvni, @mitchmindtree | ||
Maintainers: @drakulix | ||
Regulary updated fork of [PistonDevelopers/opengl_graphics](https://github.com/PistonDevelopers/opengl_graphics) | ||
|
||
### Important! | ||
|
||
OpenGL needs to load function pointers before use. | ||
OpenGL ES needs to load function pointers before use. | ||
If you are experiencing strange error messages like "X not loaded" this is likely the case. | ||
This is done automatically for you in the SDL2 and GLFW window back-ends for Piston. | ||
To do this manually, see the README in [gl-rs](https://github.com/bjz/gl-rs) | ||
To do this, see the README in [gl-rs](https://github.com/bjz/gl-rs) | ||
|
||
## Dependencies | ||
|
||
![dependencies](./Cargo.png) | ||
The necessary GL interface is exposed under `opengles_graphics::gl`. | ||
Currently only supportes GLSL Version 100 & GL ES Version 2.0. | ||
|
||
[How to contribute](https://github.com/PistonDevelopers/piston/blob/master/CONTRIBUTING.md) | ||
### Contributions welcome |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
extern crate gl_generator; | ||
|
||
use gl_generator::{Registry, Api, Profile, Fallbacks, GlobalGenerator}; | ||
use std::env; | ||
use std::fs::File; | ||
use std::path::Path; | ||
|
||
fn main() { | ||
let dest = env::var("CARGO_MANIFEST_DIR").unwrap(); | ||
let mut file = File::create(&Path::new(&dest).join("src/gl.rs")).unwrap(); | ||
|
||
Registry::new(Api::Gles2, (3, 1), Profile::Compatibility, Fallbacks::All, []) | ||
.write_bindings(GlobalGenerator, &mut file) | ||
.unwrap(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.