devil 0.1.1 → 0.1.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.
Files changed (5) hide show
  1. data/README +1 -1
  2. data/Rakefile +1 -1
  3. data/ext/devil/ruby_il.c +11 -5
  4. data/lib/devil.rb +1 -1
  5. metadata +1 -1
data/README CHANGED
@@ -1,4 +1,4 @@
1
- Devil version 0.1.1
1
+ Devil version 0.1.2
2
2
 
3
3
  * Original author: Jaroslaw Tworek <dev.jrx@gmail.com>
4
4
  * Current maintainer: John Mair (banisterfiend) http://banisterfiend.wordpress.com
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
4
4
  require 'rake/testtask'
5
5
  require 'rake/rdoctask'
6
6
 
7
- DEVIL_VERSION = "0.1.1"
7
+ DEVIL_VERSION = "0.1.2"
8
8
 
9
9
  dlext = Config::CONFIG['DLEXT']
10
10
 
@@ -117,7 +117,9 @@ static VALUE il_TexImage(VALUE obj, VALUE rb_width, VALUE rb_height,
117
117
  ILubyte bpp = NUM2INT(rb_bpp);
118
118
  ILenum format = NUM2INT(rb_format);
119
119
  ILenum type = NUM2INT(rb_type);
120
- ILvoid* data = ImageData2Arr(rb_data);
120
+
121
+ /* from ILvoid */
122
+ void* data = ImageData2Arr(rb_data);
121
123
 
122
124
  ILboolean flag = ilTexImage(width, height, depth,
123
125
  bpp, format, type, data);
@@ -130,7 +132,8 @@ static VALUE il_GetData(VALUE obj) {
130
132
  }
131
133
 
132
134
  ILuint ilCopyPixels(ILuint XOff, ILuint YOff, ILuint ZOff, ILuint Width,
133
- ILuint Height, ILuint Depth, ILenum Format, ILenum Type, ILvoid
135
+ /* changed from ILvoid */
136
+ ILuint Height, ILuint Depth, ILenum Format, ILenum Type, void
134
137
  *Data);
135
138
 
136
139
  static VALUE il_CopyPixels(VALUE obj, VALUE rb_XOff, VALUE rb_YOff, VALUE rb_ZOff,
@@ -144,14 +147,16 @@ static VALUE il_CopyPixels(VALUE obj, VALUE rb_XOff, VALUE rb_YOff, VALUE rb_ZOf
144
147
  ILuint Depth = NUM2INT(rb_Depth);
145
148
  ILenum Format = NUM2INT(rb_Format);
146
149
  ILenum Type = NUM2INT(rb_Type);
147
- ILvoid* data = ImageData2Arr(rb_data);
150
+ /* ILvoid */
151
+ void* data = ImageData2Arr(rb_data);
148
152
 
149
153
  ILuint uint = ilCopyPixels(XOff, YOff, ZOff, Width, Height, Depth, Format, Type, data);
150
154
  return INT2FIX(uint);
151
155
  }
152
156
 
153
157
  static VALUE il_SetData(VALUE obj, VALUE rb_Data) {
154
- ILvoid* data = ImageData2Arr(rb_Data);
158
+ /* ILvoid */
159
+ void* data = ImageData2Arr(rb_Data);
155
160
  ILboolean flag = ilSetData(data);
156
161
  return flag ? Qtrue : Qfalse;
157
162
  }
@@ -167,7 +172,8 @@ static VALUE il_SetPixels(VALUE obj, VALUE rb_XOff, VALUE rb_YOff, VALUE rb_ZOff
167
172
  ILuint Depth = NUM2INT(rb_Depth);
168
173
  ILenum Format = NUM2INT(rb_Format);
169
174
  ILenum Type = NUM2INT(rb_Type);
170
- ILvoid* data = ImageData2Arr(rb_data);
175
+ /* ILvoid */
176
+ void* data = ImageData2Arr(rb_data);
171
177
 
172
178
  ilSetPixels(XOff, YOff, ZOff, Width, Height, Depth, Format, Type, data);
173
179
  return Qnil;
@@ -14,7 +14,7 @@ end
14
14
 
15
15
  # Provides a high level wrapper for the low-level DevIL Ruby bindings
16
16
  module Devil
17
- VERSION = '0.1.1'
17
+ VERSION = '0.1.2'
18
18
 
19
19
  # loads +file+ and returns a new image
20
20
  # Optionally accepts a block and yields the newly created image to the block.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaroslaw Tworek, John Mair (banisterfiend)