Esempio n. 1
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     texture = new Texture2D(GraphicsDevice, 1280, 720);
     texBuffer = new byte[1280 * 720 * 4];
     textureUpdated = TextureUpdated;
     XNAWebRenderer.XNAWR_Initialize(
         "http://www.google.com/",
         textureUpdated,
         1280,
         720
     );
     prevState = Keyboard.GetState();
 }
Esempio n. 2
0
 public static extern void XNAWR_Initialize([MarshalAs(UnmanagedType.LPStr)] string initialURL, XNAWebRenderer.TextureUpdatedDelegate callback, int width, int height);