Beispiel #1
0
 public glGDIWrapper(glTexture2D src)
 {
     if (src == null) throw new
         ArgumentNullException("src");
     if (src.IsDisposed) throw new
         ObjectDisposedException("src");
     source = src;
     bitmap = new Bitmap(source.Width, source
         .Height, PixelFormat.Format32bppArgb);
     bitmapRect = new Rectangle(0, 0,
         source.Width, source.Height);
 }
Beispiel #2
0
 public DemoSprite2d()
     : base("Sprite 2d")
 {
     sprite = glTexture2D.FromFile("Demos\\sprite.png");
 }