コード例 #1
0
        public static GLTexture2DArray FromRawData(int width, int height, TexFormat format, byte[] data)
        {
            GLTexture2DArray texture = new GLTexture2DArray();

            texture.Width = width; texture.Height = height;
            texture.LoadImage(width, height, format, data);
            return(texture);
        }
コード例 #2
0
        public static GLTexture2DArray FromBitmap(Bitmap image)
        {
            GLTexture2DArray texture = new GLTexture2DArray();

            texture.Width = image.Width; texture.Height = image.Height;
            texture.LoadImage(image);
            return(texture);
        }
コード例 #3
0
        public static GLTexture2DArray FromGeneric(STGenericTexture texture, ImageParameters parameters)
        {
            GLTexture2DArray glTexture = new GLTexture2DArray();

            glTexture.Width  = (int)texture.Width;
            glTexture.Height = (int)texture.Height;
            glTexture.LoadImage(texture, parameters);
            return(glTexture);
        }