Ejemplo n.º 1
0
        public static Texture2D CreateDrawableTexture(int width, int height, uint textureID)
        {
            Texture2D tex = new Texture2D();

            tex.Width      = width;
            tex.Height     = height;
            tex.RealWidth  = width;
            tex.RealHeight = height;
            tex.Target     = TextureTarget.Texture2D;
            tex.TextureID  = textureID;
            tex.CreateVBO(false);
            return(tex);
        }
Ejemplo n.º 2
0
        public static new Texture2D Load(string fileName, bool origCenter)
        {
            Texture   t   = Texture.Load(fileName);
            Texture2D tex = new Texture2D();

            tex.textureName = fileName;
            tex.TextureID   = t.TextureID;
            tex.Width       = t.Width;
            tex.Height      = t.Height;
            tex.RealWidth   = t.RealWidth;
            tex.RealHeight  = t.RealHeight;
            tex.Target      = t.Target;
            tex.CreateVBO(origCenter);
            return(tex);
        }
Ejemplo n.º 3
0
 public static Texture2D CreateDrawableTexture(int width, int height, uint textureID)
 {
     Texture2D tex = new Texture2D();
     tex.Width = width;
     tex.Height = height;
     tex.RealWidth = width;
     tex.RealHeight = height;
     tex.Target = TextureTarget.Texture2D;
     tex.TextureID = textureID;
     tex.CreateVBO(false);
     return tex;
 }
Ejemplo n.º 4
0
 public static new Texture2D Load(string fileName, bool origCenter)
 {
     Texture t = Texture.Load(fileName);
     Texture2D tex = new Texture2D();
     tex.textureName = fileName;
     tex.TextureID = t.TextureID;
     tex.Width = t.Width;
     tex.Height = t.Height;
     tex.RealWidth = t.RealWidth;
     tex.RealHeight = t.RealHeight;
     tex.Target = t.Target;
     tex.CreateVBO(origCenter);
     return tex;
 }