mittsu 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/circle.yml +1 -0
- data/lib/mittsu/core/geometry.rb +0 -1
- data/lib/mittsu/materials/mesh_face_material.rb +2 -0
- data/lib/mittsu/renderers/generic_lib.rb +8 -2
- data/lib/mittsu/renderers/glfw_lib.rb +2 -4
- data/lib/mittsu/renderers/opengl/opengl_geometry_group.rb +1 -1
- data/lib/mittsu/renderers/opengl/opengl_lib.rb +2 -6
- data/lib/mittsu/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 777d37e66478390707be4af3e544d08cf65dde56
|
4
|
+
data.tar.gz: ec7d9a490810352ccaa678becd3c41a601063486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c3d12b4844ad8b69effd00066f419492d65551ac06476362597db9cdcef146c1bb47eadfd0e5896b8b566e506f30f443a62829d607e937158e4a4831d6fc23a
|
7
|
+
data.tar.gz: 02f66db10339722a29a27248a021188c945a51cc9e0b2f0f3412da3038b941bac94bbfaeac135a889f76a09e059ce739b305dd8747d0ff565ea7ef809a17bdbc
|
data/README.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# Mittsu
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/mittsu.svg)](https://badge.fury.io/rb/mittsu)
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/mittsu.svg)](https://badge.fury.io/rb/mittsu)
|
4
|
+
[![Dependency Status](https://gemnasium.com/jellymann/mittsu.svg)](https://gemnasium.com/jellymann/mittsu)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/github/jellymann/mittsu/badge.svg?branch=master)](https://coveralls.io/github/jellymann/mittsu?branch=master)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/jellymann/mittsu/badges/gpa.svg)](https://codeclimate.com/github/jellymann/mittsu)
|
7
|
+
|
8
|
+
🍎 [![Circle CI Build Status (macOS)](https://circleci.com/gh/jellymann/mittsu/tree/master.svg?style=shield)](https://circleci.com/gh/jellymann/mittsu/tree/master)
|
9
|
+
🐧 [![Travis Build Status (Ubuntu)](https://travis-ci.org/jellymann/mittsu.svg?branch=master)](https://travis-ci.org/jellymann/mittsu)
|
10
|
+
🖼 [![AppVeyor Build status (Windows)](https://ci.appveyor.com/api/projects/status/x7k8r95m5f5fg9cu/branch/master?svg=true)](https://ci.appveyor.com/project/jellymann/mittsu/branch/master)
|
4
11
|
|
5
12
|
3D Graphics Library for Ruby
|
6
13
|
|
@@ -12,6 +19,8 @@ Mittsu makes 3D graphics easier by providing an abstraction over OpenGL, and is
|
|
12
19
|
![Point Light](https://cloud.githubusercontent.com/assets/1171825/18411861/4531bb4c-7781-11e6-92b4-b6ebda60e2c9.gif)
|
13
20
|
![Tank Demo](https://cloud.githubusercontent.com/assets/1171825/18411862/4531fe9a-7781-11e6-9665-b172df1a3645.gif)
|
14
21
|
|
22
|
+
(You can find the source for the Tank Demo [here](https://github.com/jellymann/mittsu-tank-demo))
|
23
|
+
|
15
24
|
## Installation
|
16
25
|
|
17
26
|
Install the prerequisites:
|
data/circle.yml
CHANGED
data/lib/mittsu/core/geometry.rb
CHANGED
@@ -9,11 +9,17 @@ module Mittsu
|
|
9
9
|
when :OPENGL_PLATFORM_LINUX
|
10
10
|
self::Linux.new
|
11
11
|
else
|
12
|
-
|
12
|
+
warn "WARNING: Unsupported platform: #{OpenGL.get_platform}"
|
13
|
+
Base.new
|
13
14
|
end
|
14
15
|
end
|
15
16
|
|
16
|
-
class
|
17
|
+
class Base
|
18
|
+
def path; nil; end
|
19
|
+
def file; nil; end
|
20
|
+
end
|
21
|
+
|
22
|
+
class Linux < Base
|
17
23
|
def path
|
18
24
|
return nil if file_path.nil?
|
19
25
|
File.dirname file_path
|
@@ -10,14 +10,10 @@ module Mittsu
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
class Windows
|
14
|
-
def path; nil; end
|
15
|
-
def file; nil; end
|
13
|
+
class Windows < GenericLib::Base
|
16
14
|
end
|
17
15
|
|
18
|
-
class MacOS
|
19
|
-
def path; nil; end
|
20
|
-
def file; nil; end
|
16
|
+
class MacOS < GenericLib::Base
|
21
17
|
end
|
22
18
|
end
|
23
19
|
end
|
data/lib/mittsu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mittsu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opengl-bindings
|
@@ -399,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
399
399
|
requirements:
|
400
400
|
- OpenGL 3.3+ capable hardware and drivers
|
401
401
|
rubyforge_project:
|
402
|
-
rubygems_version: 2.6.
|
402
|
+
rubygems_version: 2.6.13
|
403
403
|
signing_key:
|
404
404
|
specification_version: 4
|
405
405
|
summary: 3D Graphics Library for Ruby
|