pixo 0.4.1 → 0.4.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: f49c00d86d98cb6be43ae290175313ee7af4b6e5
4
- data.tar.gz: 40a9255fa51834283531d73a43ecfe8130564a6a
3
+ metadata.gz: 031f9ec2cb9498e875515af2abfe58a4af01f47b
4
+ data.tar.gz: 3108f3d5c94aa8c0cbd5cf75fd5c3dc3435ab1db
5
5
  SHA512:
6
- metadata.gz: d6196ff2ea3adbfe98a206cd28692b3ffaa9bb600adc91351eda36ba24372a74818c81ea551add51ed7d7ca5070689700a0bf12e7734b78950a9451ea36e89ad
7
- data.tar.gz: acb04c4a13e8fa2ad1b2101717f3011f59bf6344ff7f3a17dfb59abad7303c6942f2c807d467ec3cab8fc0050d75961c20ae323aca5ba910394dcebf57616f09
6
+ metadata.gz: d73ca73680ce3cb613c22ea0b3d52e5585642f798266db8f400cc6962c0c25306a81bd726c86cd7013efa41b4efae28b10ae673324a0ed282856abf26c198a1e
7
+ data.tar.gz: 1b1eac96f5011bb8d315757edca36f4dab062737c77edd3149dafc610bc5b562867df44c14957eb5ad037f37e02680f2b2b0f05082bb507c99f3f66cfc9cd9b4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pixo (0.4.1)
4
+ pixo (0.4.2)
5
5
  concurrent-ruby
6
6
 
7
7
  GEM
@@ -88,7 +88,9 @@ VALUE application_initialize(VALUE self)
88
88
  glfwWindowHint(GLFW_DEPTH_BITS, 24 );
89
89
 
90
90
  // Open a window and create its OpenGL context
91
- holder->window = glfwCreateWindow( 800, 800, "Pixo", NULL, NULL);
91
+ GLFWmonitor* monitor = glfwGetPrimaryMonitor();
92
+ const GLFWvidmode* mode = glfwGetVideoMode(monitor);
93
+ holder->window = glfwCreateWindow( mode->width, mode->height, "Pixo", monitor, NULL);
92
94
  if( holder->window == NULL ){
93
95
  ALOGV( "Failed to open GLFW window. If you have an Intel GPU, they are not 3.3 compatible. Try the 2.1 version of the tutorials.\n" );
94
96
  getchar();
@@ -70,7 +70,7 @@ namespace Pixlib {
70
70
 
71
71
  void moveTowards(const IsoCamera& camera, float timeScale);
72
72
 
73
- void rotate(const float rads);
73
+ void rotate(const float degs);
74
74
  private:
75
75
  // Calculates the front vector from the Camera's (updated) Eular Angles
76
76
  void updateCameraVectors();
@@ -98,9 +98,13 @@ namespace Pixlib {
98
98
  }
99
99
 
100
100
 
101
- void IsoCamera::rotate(const float rads)
101
+ void IsoCamera::rotate(const float degs)
102
102
  {
103
- Yaw += rads;
103
+ Yaw += degs;
104
+ if (Yaw > 360) {
105
+ Yaw -= 360;
106
+ }
107
+
104
108
  updateCameraVectors();
105
109
  }
106
110
  }
@@ -1,3 +1,3 @@
1
1
  module Pixo
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Constantine
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-01 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby