Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
OpenGLES conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Feb 6, 2017
1 parent 3de8959 commit e5f6a9e
Show file tree
Hide file tree
Showing 25 changed files with 10,134 additions and 427 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
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
Binary file removed Cargo.png
Binary file not shown.
24 changes: 12 additions & 12 deletions Cargo.toml
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]>",
Expand All @@ -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"
Expand All @@ -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"

18 changes: 9 additions & 9 deletions README.md
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 removed assets/FiraSans-Regular.ttf
Binary file not shown.
99 changes: 0 additions & 99 deletions assets/LICENSE

This file was deleted.

Binary file removed assets/rust.png
Binary file not shown.
15 changes: 15 additions & 0 deletions build.rs
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();
}
82 changes: 0 additions & 82 deletions examples/draw_state.rs

This file was deleted.

37 changes: 0 additions & 37 deletions examples/hello_world.rs

This file was deleted.

40 changes: 0 additions & 40 deletions examples/image_test.rs

This file was deleted.

Loading

0 comments on commit e5f6a9e

Please sign in to comment.