1 /*************************************************
4 * Copyright(C)2010 RoNor
7 * Licensed under GNU Lesser General Public License
8 * http://www.gnu.org/licenses/lgpl.html
9 * -----------------------------------------------
11 * SDLで用意されている構造体をクラスに置き換えたものです。
14 * http://www.libsdl.org/cgi/docwiki.cgi/SDL_API
15 *************************************************/
27 var format:SDL_PixelFormat = null
31 var pixels:java.nio.ByteBuffer = null
32 var clip_rect:SDL_Rect = null
36 class SDL_PixelFormat {
38 var palette:SDL_Palette = null
39 var BitsPerPixel:Int = 0
40 var BytesPerPixel:Int = 0
60 var colors:SDL_Color = null
70 class SDL_Rect(var x:Int, var y:Int, var w:Int, var h:Int) {
71 def this(x:Int, y:Int) = this(x,y,0,0)
72 def this() = this(0,0,0,0)
76 *This read-only structure is returned by SDL_GetVideoInfo.<br />
77 *It contains information on either the best available mode if called before SDL_SetVideoMode or the current video mode if called after SDL_SetVideoMode.
80 var hw_available:Long = 1
81 var wm_available:Long = 1
83 var blit_hw_CC:Long = 1
84 var blit_hw_A:Long = 1
86 var blit_sw_CC:Long = 1
87 var blit_sw_A:Long = 1
88 var blit_fill:Long = 1
89 var video_mem:Long = 0
90 var vfmt:SDL_PixelFormat = null
100 var pitches:Array[Int] = null
101 var pixels:Array[Int] = null
102 var hw_overlay:Int = 1