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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 198e7e5303fe8bbbb7e492202d6c6fbff7bcd22f
4
- data.tar.gz: c82f5a49d70ea80dd057380ccfd8431941142d7d
3
+ metadata.gz: 777d37e66478390707be4af3e544d08cf65dde56
4
+ data.tar.gz: ec7d9a490810352ccaa678becd3c41a601063486
5
5
  SHA512:
6
- metadata.gz: 565731b3928d01109ae3b8e2b4a5481e2e1a73f3ba3b2decf39340701b3a29110b68813eb6fe53034dea3f01d35bee1ab6eb3f1fe46bcb62b23d9152e47317b9
7
- data.tar.gz: cf32a40173d2041dc16a1f2c5843f85bff809aae621cd6ae55be215bd5c64fd01187350abf399178c19ef045b6556d7712f9a26aa5918fa015a648ef986f8c2b
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) [![Dependency Status](https://gemnasium.com/jellymann/mittsu.svg)](https://gemnasium.com/jellymann/mittsu) [![Circle CI](https://circleci.com/gh/jellymann/mittsu/tree/master.svg?style=shield)](https://circleci.com/gh/jellymann/mittsu/tree/master) [![Build status](https://ci.appveyor.com/api/projects/status/x7k8r95m5f5fg9cu/branch/master?svg=true)](https://ci.appveyor.com/project/jellymann/mittsu/branch/master) [![Test Coverage](https://codeclimate.com/github/jellymann/mittsu/badges/coverage.svg)](https://codeclimate.com/github/jellymann/mittsu/coverage) [![Code Climate](https://codeclimate.com/github/jellymann/mittsu/badges/gpa.svg)](https://codeclimate.com/github/jellymann/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
@@ -20,5 +20,6 @@ dependencies:
20
20
 
21
21
  test:
22
22
  post:
23
+ - bundle exec codeclimate-test-reporter
23
24
  - mkdir -p $CIRCLE_TEST_REPORTS/minitest/
24
25
  - cp -r test/reports/*.xml $CIRCLE_TEST_REPORTS/minitest/
@@ -438,7 +438,6 @@ module Mittsu
438
438
  end
439
439
  end
440
440
  face_indices_to_remove.reverse_each do |idx|
441
- idx = face_indices_to_remove[i]
442
441
  @faces.delete_at idx
443
442
  @face_vertex_uvs.each do |uv|
444
443
  uv.delete_at idx
@@ -2,6 +2,8 @@ require 'securerandom'
2
2
 
3
3
  module Mittsu
4
4
  class MeshFaceMaterial
5
+ attr_reader :materials
6
+
5
7
  def initialize(materials = [])
6
8
  @uuid = SecureRandom.uuid
7
9
  @type = 'MeshFaceMaterial'
@@ -9,11 +9,17 @@ module Mittsu
9
9
  when :OPENGL_PLATFORM_LINUX
10
10
  self::Linux.new
11
11
  else
12
- fail "Unsupported platform."
12
+ warn "WARNING: Unsupported platform: #{OpenGL.get_platform}"
13
+ Base.new
13
14
  end
14
15
  end
15
16
 
16
- class Linux
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
@@ -24,12 +24,10 @@ module Mittsu
24
24
  end
25
25
  end
26
26
 
27
- class Windows
28
- def path; nil; end
29
- def file; nil; end
27
+ class Windows < GenericLib::Base
30
28
  end
31
29
 
32
- class MacOS
30
+ class MacOS < GenericLib::Base
33
31
  def path
34
32
  '/usr/local/lib'
35
33
  end
@@ -4,7 +4,7 @@ module Mittsu
4
4
  class OpenGLGeometryGroup
5
5
  include OpenGLGeometryLike
6
6
 
7
- attr_reader :id
7
+ attr_reader :id, :material_index
8
8
 
9
9
  alias :initted_arrays? :initted_arrays
10
10
 
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Mittsu
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  REVISION = "71"
4
4
  end
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.1
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-04-09 00:00:00.000000000 Z
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.8
402
+ rubygems_version: 2.6.13
403
403
  signing_key:
404
404
  specification_version: 4
405
405
  summary: 3D Graphics Library for Ruby