rays 0.2 → 0.3
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/.doc/ext/rays/bitmap.cpp +100 -33
- data/.doc/ext/rays/bounds.cpp +2 -2
- data/.doc/ext/rays/camera.cpp +2 -2
- data/.doc/ext/rays/color.cpp +2 -2
- data/.doc/ext/rays/color_space.cpp +3 -3
- data/.doc/ext/rays/font.cpp +5 -4
- data/.doc/ext/rays/image.cpp +1 -1
- data/.doc/ext/rays/matrix.cpp +4 -4
- data/.doc/ext/rays/painter.cpp +1 -1
- data/.doc/ext/rays/point.cpp +2 -2
- data/.doc/ext/rays/polygon.cpp +3 -3
- data/.doc/ext/rays/polyline.cpp +3 -3
- data/.doc/ext/rays/rays.cpp +10 -10
- data/.doc/ext/rays/shader.cpp +2 -2
- data/.github/workflows/release-gem.yml +2 -2
- data/.github/workflows/tag.yml +1 -1
- data/.github/workflows/test.yml +10 -1
- data/ChangeLog.md +14 -0
- data/Gemfile.lock +1 -1
- data/Rakefile +17 -2
- data/VERSION +1 -1
- data/ext/rays/bitmap.cpp +100 -33
- data/ext/rays/bounds.cpp +2 -2
- data/ext/rays/camera.cpp +2 -2
- data/ext/rays/color.cpp +2 -2
- data/ext/rays/color_space.cpp +3 -3
- data/ext/rays/defs.h +2 -0
- data/ext/rays/extconf.rb +4 -2
- data/ext/rays/font.cpp +5 -4
- data/ext/rays/image.cpp +1 -1
- data/ext/rays/matrix.cpp +4 -4
- data/ext/rays/painter.cpp +1 -1
- data/ext/rays/point.cpp +2 -2
- data/ext/rays/polygon.cpp +3 -3
- data/ext/rays/polyline.cpp +3 -3
- data/ext/rays/rays.cpp +10 -10
- data/ext/rays/shader.cpp +2 -2
- data/include/rays/color_space.h +4 -4
- data/include/rays/defs.h +7 -0
- data/include/rays/rays.h +8 -0
- data/include/rays/ruby/bitmap.h +2 -2
- data/include/rays/ruby/bounds.h +2 -2
- data/include/rays/ruby/camera.h +2 -2
- data/include/rays/ruby/color.h +2 -2
- data/include/rays/ruby/color_space.h +2 -2
- data/include/rays/ruby/exception.h +3 -3
- data/include/rays/ruby/font.h +2 -2
- data/include/rays/ruby/image.h +2 -2
- data/include/rays/ruby/matrix.h +2 -2
- data/include/rays/ruby/painter.h +2 -2
- data/include/rays/ruby/point.h +2 -2
- data/include/rays/ruby/polygon.h +2 -2
- data/include/rays/ruby/polyline.h +2 -2
- data/include/rays/ruby/rays.h +6 -6
- data/include/rays/ruby/shader.h +2 -2
- data/include/rays/ruby.h +3 -1
- data/include/rays.h +3 -0
- data/lib/rays/bitmap.rb +7 -0
- data/lib/rays/extension.rb +4 -0
- data/rays.gemspec +2 -2
- data/src/coord.h +2 -2
- data/src/font.cpp +1 -0
- data/src/image.cpp +0 -29
- data/src/ios/bitmap.mm +23 -30
- data/src/ios/font.mm +4 -1
- data/src/ios/opengl.mm +23 -10
- data/src/ios/rays.mm +5 -3
- data/src/matrix.h +1 -1
- data/src/opengl.h +7 -8
- data/src/osx/bitmap.mm +23 -30
- data/src/osx/font.mm +4 -1
- data/src/osx/opengl.mm +31 -19
- data/src/osx/rays.mm +5 -3
- data/src/painter.cpp +1 -0
- data/src/shader.cpp +3 -0
- data/src/texture.cpp +3 -25
- data/src/texture.h +0 -2
- data/src/win32/bitmap.cpp +167 -65
- data/src/win32/camera.cpp +119 -0
- data/src/win32/font.cpp +179 -40
- data/src/win32/gdi.cpp +2 -4
- data/src/win32/gdi.h +1 -1
- data/src/win32/opengl.cpp +127 -0
- data/src/win32/rays.cpp +16 -9
- data/test/helper.rb +2 -5
- data/test/test_bitmap.rb +3 -1
- data/test/test_image.rb +8 -14
- data/test/test_painter.rb +4 -4
- metadata +8 -8
- data/include/rays/opengl.h +0 -20
- data/src/win32/font.h +0 -24
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rucy
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.3'
|
41
41
|
description: This library helps you to develop graphics application with OpenGL.
|
42
42
|
email: xordog@gmail.com
|
43
43
|
executables: []
|
@@ -125,7 +125,6 @@ files:
|
|
125
125
|
- include/rays/font.h
|
126
126
|
- include/rays/image.h
|
127
127
|
- include/rays/matrix.h
|
128
|
-
- include/rays/opengl.h
|
129
128
|
- include/rays/painter.h
|
130
129
|
- include/rays/point.h
|
131
130
|
- include/rays/polygon.h
|
@@ -221,10 +220,11 @@ files:
|
|
221
220
|
- src/texture.h
|
222
221
|
- src/util.cpp
|
223
222
|
- src/win32/bitmap.cpp
|
223
|
+
- src/win32/camera.cpp
|
224
224
|
- src/win32/font.cpp
|
225
|
-
- src/win32/font.h
|
226
225
|
- src/win32/gdi.cpp
|
227
226
|
- src/win32/gdi.h
|
227
|
+
- src/win32/opengl.cpp
|
228
228
|
- src/win32/rays.cpp
|
229
229
|
- test/helper.rb
|
230
230
|
- test/test_bitmap.rb
|
data/include/rays/opengl.h
DELETED
data/src/win32/font.h
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
// -*- c++ -*-
|
2
|
-
#pragma once
|
3
|
-
#ifndef __RAYS_SRC_WIN32_FONT_H__
|
4
|
-
#define __RAYS_SRC_WIN32_FONT_H__
|
5
|
-
|
6
|
-
|
7
|
-
#include "rays/defs.h"
|
8
|
-
#include "rays/font.h"
|
9
|
-
#include "gdi.h"
|
10
|
-
|
11
|
-
|
12
|
-
namespace Rays
|
13
|
-
{
|
14
|
-
|
15
|
-
|
16
|
-
bool RawFont_draw_string (
|
17
|
-
const RawFont& font, HDC hdc, coord context_height,
|
18
|
-
const char* str, coord x, coord y);
|
19
|
-
|
20
|
-
|
21
|
-
}// Rays
|
22
|
-
|
23
|
-
|
24
|
-
#endif//EOH
|