예제 #1
0
        void LoadSlice(int layer)
        {
            Bitmap bmp = null;

            bmp = UVDLPApp.Instance().m_slicefile.GetSliceImage(layer);
            if (bmp != null)
            {
                m_sliceW = bmp.Width;
                m_sliceH = bmp.Height;
                CalcSliceLocation();

                if (m_sliceTex != -1)
                {
                    gr2d.DeleteTexture(m_sliceTex);
                }
                m_sliceTex = gr2d.LoadTextureImage(bmp);
            }
        }
예제 #2
0
        void LoadSlice(int layer)
        {
            Bitmap bmp = null;

            bmp = UVDLPApp.Instance().m_slicefile.GetSliceImage(layer);
            if (bmp != null)
            {
                bmp.Tag  = BuildManager.SLICE_NORMAL; // set the tag for later
                m_sliceW = bmp.Width;
                m_sliceH = bmp.Height;
                CalcSliceLocation();

                if (m_sliceTex != -1)
                {
                    gr2d.DeleteTexture(m_sliceTex);
                }
                m_sliceTex = gr2d.LoadTextureImage(bmp);
            }
        }