pixo 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/ext/libpixgem/src/application.cpp +3 -1
- data/ext/pixo/pixlib/include/pixlib/camera.hpp +1 -1
- data/ext/pixo/pixlib/src/camera.cpp +6 -2
- data/lib/pixo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 031f9ec2cb9498e875515af2abfe58a4af01f47b
|
4
|
+
data.tar.gz: 3108f3d5c94aa8c0cbd5cf75fd5c3dc3435ab1db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d73ca73680ce3cb613c22ea0b3d52e5585642f798266db8f400cc6962c0c25306a81bd726c86cd7013efa41b4efae28b10ae673324a0ed282856abf26c198a1e
|
7
|
+
data.tar.gz: 1b1eac96f5011bb8d315757edca36f4dab062737c77edd3149dafc610bc5b562867df44c14957eb5ad037f37e02680f2b2b0f05082bb507c99f3f66cfc9cd9b4
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|
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
|
101
|
+
void IsoCamera::rotate(const float degs)
|
102
102
|
{
|
103
|
-
Yaw +=
|
103
|
+
Yaw += degs;
|
104
|
+
if (Yaw > 360) {
|
105
|
+
Yaw -= 360;
|
106
|
+
}
|
107
|
+
|
104
108
|
updateCameraVectors();
|
105
109
|
}
|
106
110
|
}
|
data/lib/pixo/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|