OSDN Git Service

[更新]NyARToolkit
[nyartoolkit-and/nyartoolkit-and.git] / src / jp / nyatla / nyartoolkit / core / raster / NyARBinRaster.java
index 418017e..9a13ec2 100644 (file)
@@ -37,13 +37,13 @@ import jp.nyatla.nyartoolkit.core.types.*;
 public final class NyARBinRaster extends NyARRaster_BasicClass\r
 {\r
        private INyARBufferReader _buffer_reader;\r
-       protected int[][] _ref_buf;\r
+       protected int[] _ref_buf;\r
 \r
        public NyARBinRaster(int i_width, int i_height)\r
        {\r
                super(new NyARIntSize(i_width,i_height));\r
-               this._ref_buf = new int[i_height][i_width];\r
-               this._buffer_reader=new NyARBufferReader(this._ref_buf,INyARBufferReader.BUFFERFORMAT_INT2D_BIN_8);\r
+               this._ref_buf = new int[i_height*i_width];\r
+               this._buffer_reader=new NyARBufferReader(this._ref_buf,INyARBufferReader.BUFFERFORMAT_INT1D_BIN_8);\r
        }\r
        public INyARBufferReader getBufferReader()\r
        {\r