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); }
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); }
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; }
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; }