devil 0.1.9.0-x86-mswin32-60 → 0.1.9.1-x86-mswin32-60

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,26 @@
1
+ 2009-6-12 John Mair (Banisterfiend)
2
+ * version 0.1.9.1
3
+ * added thumbnail2 and resize2 for anti-aliased image scaling
4
+ * made Gosu::Window#screenshot 1.9 compatible (now using glReadPixels)
5
+ * using version.rb to help manage versions
6
+
7
+ 2009-14-11 John Mair (Banisterfiend)
8
+ * added to ruby_il.c:
9
+ * IL::SetInteger, IL::JPG_QUALITY
10
+ * added to ruby_ilu.c:
11
+ * ILU::CompareImage
12
+ * added test_quality.rb to tests
13
+ * added :jpg_quality option parameter to Devil::Image#save
14
+
15
+ 2009-11-11 John Mair (Banisterfiend)
16
+ * version 0.1.9.0 re-release
17
+ * REMOVED ILUT (OpenGL) support because ILUT is not built with OpenGL support on all platforms (e.g gentoo and some ubuntu distros)
18
+
19
+ 2009-11-10 John Mair (Banisterfiend)
20
+ * version 0.1.9.0
21
+ * added ILUT (OpenGL) support
22
+ * updated installation info (no longer using c:\windows\system\ for dlls)
23
+
1
24
  2009-10-29 John Mair (Banisterfiend)
2
25
  * version 0.1.8.8
3
26
  * added Devil.with_group (for loading multiple images into the same block)
data/README CHANGED
@@ -1,4 +1,4 @@
1
- Ruby Devil version 0.1.9.0
1
+ Ruby Devil version 0.1.9.1
2
2
  ========================
3
3
 
4
4
  * Original author: Jaroslaw Tworek <dev.jrx@gmail.com>
@@ -23,8 +23,8 @@ For Gentoo:
23
23
 
24
24
  For windows:
25
25
 
26
- * download devil.dll and ilu.dll from [http://github.com/banister/devil/downloads]
27
- * and copy these files to c:\windows\system\
26
+ * download devil-dlls.zip from [http://github.com/banister/devil/downloads]
27
+ * and copy the uncompressed files to c:\ruby\bin\
28
28
 
29
29
  For macosx:
30
30
 
data/Rakefile CHANGED
@@ -8,8 +8,8 @@ require 'rake/gempackagetask'
8
8
  require 'rake/testtask'
9
9
  require 'rake/rdoctask'
10
10
 
11
- DEVIL_VERSION = "0.1.9.0"
12
-
11
+ # get the devil version
12
+ require 'lib/devil/version'
13
13
  dlext = Config::CONFIG['DLEXT']
14
14
 
15
15
  CLEAN.include("ext/**/*.#{dlext}", "ext/**/.log", "ext/**/.o", "ext/**/*~", "ext/**/*#*", "ext/**/.obj", "ext/**/.def", "ext/**/.pdb")
@@ -19,7 +19,7 @@ spec = Gem::Specification.new do |s|
19
19
  s.name = "devil"
20
20
  s.summary = "ruby bindings for devil cross platform image loading library"
21
21
  s.description = s.summary
22
- s.version = DEVIL_VERSION
22
+ s.version = Devil::VERSION
23
23
  s.author = "Jaroslaw Tworek, John Mair (banisterfiend)"
24
24
  s.email = 'jrmair@gmail.com'
25
25
  s.date = Time.now.strftime '%Y-%m-%d'
@@ -39,7 +39,7 @@ spec = Gem::Specification.new do |s|
39
39
  s.has_rdoc = true
40
40
  s.extra_rdoc_files = ["README"]
41
41
  s.rdoc_options << '--main' << 'README'
42
- s.files = ["Rakefile", "README", "CHANGELOG", "LICENSE", "lib/devil.rb", "lib/devil/gosu.rb"] +
42
+ s.files = ["Rakefile", "README", "CHANGELOG", "LICENSE", "lib/devil.rb", "lib/devil/gosu.rb", "lib/devil/version.rb"] +
43
43
  FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c", "test/test*.rb", "test/*.png", "test/*.jpg"].to_a
44
44
 
45
45
  if RUBY_PLATFORM =~ /win32/
@@ -71,6 +71,6 @@ end
71
71
 
72
72
  Rake::RDocTask.new do |rd|
73
73
  rd.main = "README"
74
- rd.rdoc_files.include("README", "lib/devil.rb", "lib/devil/gosu.rb")
74
+ rd.rdoc_files.include("README", "lib/devil.rb", "lib/devil/gosu.rb", "lib/devil/version.rb")
75
75
  end
76
76
 
@@ -1,27 +1,23 @@
1
- require 'mkmf'
2
-
3
- if RUBY_PLATFORM =~ /mingw|win32/
4
- $CFLAGS += ' -I/home/john/.rake-compiler/ruby/ruby-1.8.6-p287/include/'
5
- $LDFLAGS += ' -L/home/john/.rake-compiler/ruby/ruby-1.8.6-p287/lib/'
6
- exit unless have_library("glut32")
7
- exit unless have_library("DevIL")
8
-
9
- elsif RUBY_PLATFORM =~ /darwin/
10
-
11
- # this only works if you install devil via macports
12
- $CFLAGS += ' -I/opt/local/include/ -I/System/Library/Frameworks/GLUT.framework/Headers'
13
- $LDFLAGS += ' -L/opt/local/lib/ -framework GLUT'
14
- exit unless have_library("IL")
15
-
16
- elsif RUBY_PLATFORM =~ /linux/
17
- exit unless have_library("IL")
18
-
19
- exit unless have_library("glut")
20
- exit unless have_library("GL")
21
- end
22
-
23
- # all platforms
24
- exit unless have_library("ILU")
25
- exit unless have_library("ILUT")
26
-
27
- create_makefile('devil')
1
+ require 'mkmf'
2
+
3
+ if RUBY_PLATFORM =~ /mingw|win32/
4
+ $CFLAGS += ' -I/home/john/.rake-compiler/ruby/ruby-1.8.6-p287/include/'
5
+ $LDFLAGS += ' -L/home/john/.rake-compiler/ruby/ruby-1.8.6-p287/lib/'
6
+ exit unless have_library("DevIL")
7
+
8
+ elsif RUBY_PLATFORM =~ /darwin/
9
+
10
+ # this only works if you install devil via macports
11
+ $CFLAGS += ' -I/opt/local/include/'
12
+ $LDFLAGS += ' -L/opt/local/lib/'
13
+ exit unless have_library("IL")
14
+
15
+ elsif RUBY_PLATFORM =~ /linux/
16
+ exit unless have_library("IL")
17
+
18
+ end
19
+
20
+ # all platforms
21
+ exit unless have_library("ILU")
22
+
23
+ create_makefile('devil')
@@ -5,5 +5,5 @@ void
5
5
  Init_devil() {
6
6
  InitializeIL();
7
7
  InitializeILU();
8
- InitializeILUT();
8
+ /* InitializeILUT(); */
9
9
  }
@@ -1,11 +1,8 @@
1
1
  #include <ruby.h>
2
-
3
2
  #include <stdio.h>
4
3
 
5
4
  typedef struct RArray RArray;
6
5
 
7
6
  extern void InitializeIL();
8
7
  extern void InitializeILU();
9
-
10
- /* turning off ILUT layer */
11
- /*extern void InitializeILUT(); */
8
+ /* extern void InitializeILUT(); */
@@ -376,6 +376,17 @@ static VALUE il_ClearImage(VALUE obj)
376
376
  ILboolean flag = ilClearImage();
377
377
  return flag ? Qtrue : Qfalse;
378
378
  }
379
+
380
+ static VALUE il_SetInteger(VALUE obj, VALUE rb_mode, VALUE rb_param)
381
+ {
382
+ ILenum mode = NUM2INT(rb_mode);
383
+ ILint param = NUM2INT(rb_param);
384
+
385
+ ilSetInteger(mode, param);
386
+
387
+ return Qnil;
388
+ }
389
+
379
390
  /* end of banisterfiend additions */
380
391
 
381
392
  void
@@ -422,6 +433,7 @@ InitializeIL() {
422
433
  rb_define_module_function(mIL, "ClearColour", il_ClearColour, 4);
423
434
  rb_define_module_function(mIL, "ClearImage", il_ClearImage, 0);
424
435
  rb_define_module_function(mIL, "ApplyProfile", il_ApplyProfile, 2);
436
+ rb_define_module_function(mIL, "SetInteger", il_SetInteger, 2);
425
437
  /* end of methods added by banisterfiend */
426
438
 
427
439
  //////////////////////////////////
@@ -526,6 +538,7 @@ InitializeIL() {
526
538
  rb_define_const(mIL, "CUR_IMAGE", INT2NUM(IL_CUR_IMAGE));
527
539
  rb_define_const(mIL, "ORIGIN_LOWER_LEFT", INT2NUM(IL_ORIGIN_LOWER_LEFT));
528
540
  rb_define_const(mIL, "ORIGIN_UPPER_LEFT", INT2NUM(IL_ORIGIN_UPPER_LEFT));
541
+ rb_define_const(mIL, "JPG_QUALITY", INT2NUM(IL_JPG_QUALITY));
529
542
  }
530
543
  //////////////////////////////////////////
531
544
 
@@ -163,6 +163,14 @@ static VALUE ilu_SwapColours(VALUE obj)
163
163
  return flag ? Qtrue : Qfalse;
164
164
  }
165
165
 
166
+ static VALUE ilu_CompareImage(VALUE obj, VALUE rb_cmp_img)
167
+ {
168
+ ILuint cmp_img = NUM2INT(rb_cmp_img);
169
+
170
+ ILboolean flag = iluCompareImage(rb_cmp_img);
171
+
172
+ return flag ? Qtrue : Qfalse;
173
+ }
166
174
  /* end of functions added by banisterfiend */
167
175
 
168
176
  void
@@ -194,6 +202,7 @@ InitializeILU() {
194
202
  rb_define_module_function(mILU, "Emboss", ilu_Emboss, 0);
195
203
  rb_define_module_function(mILU, "Mirror", ilu_Mirror, 0);
196
204
  rb_define_module_function(mILU, "SwapColours", ilu_SwapColours, 0);
205
+ rb_define_module_function(mILU, "CompareImage", ilu_CompareImage, 1);
197
206
  /* end of functions added by banisterfiend */
198
207
 
199
208
  /* constants added by banisterfiend */
Binary file
Binary file
@@ -4,6 +4,7 @@ require 'rbconfig'
4
4
 
5
5
  direc = File.dirname(__FILE__)
6
6
  dlext = Config::CONFIG['DLEXT']
7
+
7
8
  begin
8
9
  if RUBY_VERSION && RUBY_VERSION =~ /1.9/
9
10
  require "#{direc}/1.9/devil.#{dlext}"
@@ -13,14 +14,13 @@ begin
13
14
  rescue LoadError => e
14
15
  require "#{direc}/devil.#{dlext}"
15
16
  end
17
+ require "#{direc}/devil/version"
16
18
 
17
19
  # Provides a high level wrapper for the low-level DevIL Ruby bindings
18
20
  module Devil
19
21
  include IL
20
22
  include ILU
21
23
 
22
- VERSION = '0.1.9.0'
23
-
24
24
  class << self
25
25
 
26
26
  # loads +file+ and returns a new image
@@ -142,6 +142,7 @@ module Devil
142
142
  # update the config. options
143
143
  ILU.ImageParameter(ILU::FILTER, @options[:scale_filter])
144
144
  ILU.ImageParameter(ILU::PLACEMENT, @options[:placement])
145
+ IL.SetInteger(IL::JPG_QUALITY, @options[:jpg_quality])
145
146
  IL.ClearColour(*@options[:clear_color])
146
147
  end
147
148
 
@@ -171,11 +172,13 @@ module Devil
171
172
  :prepare_image_hook => nil,
172
173
  :load_image_hook => nil,
173
174
  :create_image_hook => nil,
175
+ :jpg_quality => 99
174
176
  }
175
177
 
176
178
  # configurable options
177
179
  ILU.ImageParameter(ILU::FILTER, @options[:scale_filter])
178
180
  ILU.ImageParameter(ILU::PLACEMENT, @options[:placement])
181
+ IL.SetInteger(IL::JPG_QUALITY, @options[:jpg_quality])
179
182
  IL.ClearColour(*@options[:clear_color])
180
183
 
181
184
  # fixed options
@@ -250,7 +253,7 @@ class Devil::Image
250
253
 
251
254
  alias_method :close, :free
252
255
  alias_method :delete, :free
253
-
256
+
254
257
  # returns the width of the image.
255
258
  def width
256
259
  action { IL.GetInteger(IL::IMAGE_WIDTH) }
@@ -266,10 +269,18 @@ class Devil::Image
266
269
  alias_method :rows, :height
267
270
 
268
271
  # saves the image to +file+. If no +file+ is provided default to the opened file.
269
- def save(file = @file)
272
+ # Optional :quality hash parameter (only applies to JPEG images).
273
+ # Valid values are in the 0-99 range, with 99 being the best quality.
274
+ def save(file = @file, options = {})
275
+ quality = options[:quality]
276
+
270
277
  raise "This image does not have an associated file. Please provide an explicit file name when saving." if !file
271
278
 
272
- action { IL.SaveImage(file) }
279
+ action do
280
+ IL.SetInteger(IL::JPG_QUALITY, quality) if quality
281
+ IL.SaveImage(file)
282
+ IL.SetInteger(IL::JPG_QUALITY, Devil.get_options[:jpg_quality]) if quality
283
+ end
273
284
  self
274
285
  end
275
286
 
@@ -288,9 +299,22 @@ class Devil::Image
288
299
  self
289
300
  end
290
301
 
302
+ # resize the image to +width+ and +height+. Aspect ratios of the image do not have to be the same.
303
+ # Applies a gaussian filter before rescaling to reduce aliasing.
304
+ # Optional :filter hash parameter that maps to a valid scale filter
305
+ # Optional :gauss parameter - number of times to apply gaussian filter before resizing (default is 2)
306
+ # (see: Devil.set_options :scale_filter)
307
+ def resize2(width, height, options = {})
308
+ gauss = options[:gauss] ||= 2
309
+ blur(gauss) if (width < self.width && height < self.height)
310
+ resize(width, height, options)
311
+ self
312
+ end
313
+
291
314
  # Creates a proportional thumbnail of the image scaled so its longest
292
315
  # edge is resized to +size+.
293
316
  # Optional :filter hash parameter that maps to a valid scale filter
317
+ # Optional :gauss parameter - number of times to apply gaussian filter before resizing (default is 2)
294
318
  # (see: Devil.set_options :scale_filter)
295
319
  def thumbnail(size, options = {})
296
320
 
@@ -301,6 +325,18 @@ class Devil::Image
301
325
  self
302
326
  end
303
327
 
328
+ # Creates a proportional thumbnail of the image scaled so its longest
329
+ # edge is resized to +size+.
330
+ # Applies a gaussian filter before rescaling to reduce aliasing.
331
+ # Optional :filter hash parameter that maps to a valid scale filter
332
+ # (see: Devil.set_options :scale_filter)
333
+ def thumbnail2(size, options = {})
334
+ gauss = options[:gauss] ||= 2
335
+ blur(gauss)
336
+ thumbnail(size, options)
337
+ self
338
+ end
339
+
304
340
  # return a deep copy of the current image.
305
341
  def dup
306
342
  new_image_name = action { IL.CloneCurImage }
@@ -37,19 +37,9 @@ class Gosu::Window
37
37
  def screenshot
38
38
  require 'opengl'
39
39
 
40
- canvas_texture_id = glGenTextures(1).first
41
-
42
40
  img = nil
43
41
  self.gl do
44
- glEnable(GL_TEXTURE_2D)
45
- glBindTexture(GL_TEXTURE_2D, canvas_texture_id)
46
-
47
- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, self.width, self.height, 0,
48
- GL_RGB, GL_UNSIGNED_BYTE, "\0" * self.width * self.height * 3)
49
-
50
- glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, 0, 0, self.width, self.height, 0)
51
-
52
- data = glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE)
42
+ data = glReadPixels(0, 0, self.width, self.height, GL_RGBA, GL_UNSIGNED_BYTE)
53
43
  img = Devil.from_blob(data, self.width, self.height)
54
44
  end
55
45
 
@@ -0,0 +1,3 @@
1
+ module Devil
2
+ VERSION = "0.1.9.1"
3
+ end
Binary file
@@ -5,6 +5,6 @@ $LOAD_PATH.push("#{$direc}/../lib/")
5
5
  require 'rubygems'
6
6
  require 'devil/gosu'
7
7
 
8
- Devil.load_image("texture.png").show(512, 400)
8
+ Devil.load_image("texture.png").emboss.show(512, 400)
9
9
  Devil.load_image("tank.png").show(300, 400)
10
10
 
@@ -0,0 +1,9 @@
1
+ $direc = File.dirname(__FILE__)
2
+
3
+ $LOAD_PATH.push("#{$direc}/../lib/")
4
+
5
+ require 'rubygems'
6
+ require 'devil/gosu'
7
+
8
+ Devil.load("texture.png").save("texture_out1.jpg", :quality => 50).
9
+ save("texture_out2.jpg").free
@@ -6,7 +6,8 @@ require 'rubygems'
6
6
  require 'devil/gosu'
7
7
 
8
8
  Devil.load("texture.png") do |img|
9
- img.dup.thumbnail(100, :filter => Devil::NEAREST).show(200, 300).free
10
- img.dup.thumbnail(100).show(200, 500).free
9
+ img.dup.thumbnail2(100, :filter => Devil::NEAREST, :gauss => 4).show(200, 300).free
10
+ img.dup.thumbnail2(100, :filter => Devil::NEAREST, :gauss => 1).show(500, 300).free
11
+ img.dup.thumbnail(100).save("thumb.png").show(200, 500).free
11
12
  end
12
13
 
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.9.0
4
+ version: 0.1.9.1
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
7
  - Jaroslaw Tworek, John Mair (banisterfiend)
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-10 00:00:00 +13:00
12
+ date: 2009-12-07 00:00:00 +13:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -28,12 +28,12 @@ files:
28
28
  - LICENSE
29
29
  - lib/devil.rb
30
30
  - lib/devil/gosu.rb
31
+ - lib/devil/version.rb
31
32
  - ext/devil/extconf.rb
32
33
  - ext/devil/ruby_devil_ext.h
33
34
  - ext/devil/ruby_devil_ext.c
34
35
  - ext/devil/ruby_il.c
35
36
  - ext/devil/ruby_ilu.c
36
- - ext/devil/ruby_ilut.c
37
37
  - test/test_blank.rb
38
38
  - test/test_blit.rb
39
39
  - test/test_clone_and_crop.rb
@@ -45,6 +45,7 @@ files:
45
45
  - test/test_ilut.rb
46
46
  - test/test_new_api.rb
47
47
  - test/test_profile.rb
48
+ - test/test_quality.rb
48
49
  - test/test_scale_algos.rb
49
50
  - test/test_screenshot.rb
50
51
  - test/test_thumbnail.rb
@@ -1,98 +0,0 @@
1
- #include <ruby.h>
2
- #include <IL/ilut.h>
3
- #include "ruby_devil_ext.h"
4
-
5
- static VALUE mILUT;
6
-
7
- static VALUE ilut_Renderer(VALUE obj, VALUE ilut_enum) {
8
- ILenum renderer = NUM2INT(ilut_enum);
9
- ilutRenderer(renderer);
10
- return Qnil;
11
- }
12
-
13
- static VALUE ilut_Enable(VALUE obj, VALUE rb_Mode) {
14
- ILenum Mode = NUM2INT(rb_Mode);
15
- ILboolean flag = ilutEnable(Mode);
16
- return flag ? Qtrue : Qfalse;
17
- }
18
-
19
- static VALUE ilut_GLTexImage(VALUE obj, VALUE rb_Level) {
20
- GLuint Level = NUM2INT(rb_Level);
21
- ILboolean flag = ilutGLTexImage(Level);
22
- return flag ? Qtrue : Qfalse;
23
- }
24
-
25
- static VALUE ilut_GLBindTexImage(VALUE obj) {
26
- GLuint ret = ilutGLBindTexImage();
27
- return INT2FIX(ret);
28
- }
29
-
30
- static VALUE ilut_GLBuildMipmaps(VALUE obj) {
31
- ILboolean flag = ilutGLBuildMipmaps();
32
- return flag ? Qtrue : Qfalse;
33
- }
34
-
35
- static VALUE ilut_GLBindMipmaps(VALUE obj) {
36
- ILuint ret = ilutGLBindMipmaps();
37
- return INT2FIX(ret);
38
- }
39
-
40
- static VALUE ilut_GLLoadImage(VALUE obj, VALUE rb_FileName) {
41
- const ILstring FileName = StringValuePtr(rb_FileName);
42
- ILuint ret = ilutGLLoadImage(FileName);
43
- return INT2FIX(ret);
44
- }
45
-
46
- static VALUE ilut_GLScreen(VALUE obj) {
47
- ILboolean flag = ilutGLScreen();
48
- return flag ? Qtrue : Qfalse;
49
- }
50
-
51
- static VALUE ilut_GLScreenie(VALUE obj) {
52
- ILboolean flag = ilutGLScreenie();
53
- return flag ? Qtrue : Qfalse;
54
- }
55
-
56
-
57
-
58
- void
59
- InitializeILUT() {
60
- mILUT = rb_define_module("ILUT");
61
- //////////////////////////////////
62
- //METHODS
63
- //////////////////////////////////
64
- rb_define_module_function(mILUT, "Renderer", ilut_Renderer, 1);
65
- rb_define_module_function(mILUT, "Enable", ilut_Enable , 1);
66
- rb_define_module_function(mILUT, "GLTexImage", ilut_GLTexImage, 1);
67
- rb_define_module_function(mILUT, "GLBindTexImage", ilut_GLBindTexImage, 0);
68
- rb_define_module_function(mILUT, "GLBuildMipmaps", ilut_GLBuildMipmaps , 0);
69
- rb_define_module_function(mILUT, "GLBindMipmaps", ilut_GLBindMipmaps , 0);
70
- rb_define_module_function(mILUT, "GLLoadImage", ilut_GLLoadImage, 1);
71
- rb_define_module_function(mILUT, "GLScreen", ilut_GLScreen , 1);
72
- rb_define_module_function(mILUT, "GLScreenie", ilut_GLScreenie , 1);
73
-
74
- //////////////////////////////////
75
- //CONSTANTS
76
- //////////////////////////////////
77
- rb_define_const(mILUT, "OPENGL", INT2NUM(ILUT_OPENGL));
78
- rb_define_const(mILUT, "ALLEGRO", INT2NUM(ILUT_ALLEGRO));
79
- rb_define_const(mILUT, "WIN32", INT2NUM(ILUT_WIN32));
80
- rb_define_const(mILUT, "DIRECT3D8", INT2NUM(ILUT_DIRECT3D8));
81
- rb_define_const(mILUT, "DIRECT3D9", INT2NUM(ILUT_DIRECT3D9));
82
-
83
- rb_define_const(mILUT, "PALETTE_MODE", INT2NUM(ILUT_PALETTE_MODE));
84
- rb_define_const(mILUT, "OPENGL_CONV", INT2NUM(ILUT_OPENGL_CONV));
85
- rb_define_const(mILUT, "D3D_MIPLEVELS", INT2NUM(ILUT_D3D_MIPLEVELS));
86
- rb_define_const(mILUT, "MAXTEX_WIDTH", INT2NUM(ILUT_MAXTEX_WIDTH));
87
- rb_define_const(mILUT, "MAXTEX_HEIGHT", INT2NUM(ILUT_MAXTEX_HEIGHT));
88
- rb_define_const(mILUT, "MAXTEX_DEPTH", INT2NUM(ILUT_MAXTEX_DEPTH));
89
- rb_define_const(mILUT, "GL_USE_S3TC", INT2NUM(ILUT_GL_USE_S3TC));
90
- rb_define_const(mILUT, "D3D_USE_DXTC", INT2NUM(ILUT_D3D_USE_DXTC));
91
- rb_define_const(mILUT, "GL_GEN_S3TC", INT2NUM(ILUT_GL_GEN_S3TC));
92
- rb_define_const(mILUT, "D3D_GEN_DXTC", INT2NUM(ILUT_D3D_GEN_DXTC));
93
- rb_define_const(mILUT, "S3TC_FORMAT", INT2NUM(ILUT_S3TC_FORMAT));
94
- rb_define_const(mILUT, "DXTC_FORMAT", INT2NUM(ILUT_DXTC_FORMAT));
95
- rb_define_const(mILUT, "D3D_POOL", INT2NUM(ILUT_D3D_POOL));
96
- rb_define_const(mILUT, "D3D_ALPHA_KEY_COLOR", INT2NUM(ILUT_D3D_ALPHA_KEY_COLOR));
97
- rb_define_const(mILUT, "D3D_ALPHA_KEY_COLOUR", INT2NUM(ILUT_D3D_ALPHA_KEY_COLOUR));
98
- }