CapsAdmin

Untitled

Aug 16th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. awesomium.Initialize()
  2.  
  3. local frame = aahh.Create("frame")
  4. frame:SetTitle("awesome! (ium)")
  5. frame:SetSize(Vec2(512, 512))
  6. frame:Center()
  7.  
  8. local tex = Texture(1024, 1024, ETF_A8R8G8B8, -1)
  9.  
  10. local view = WebView(1024, 1024, false)
  11. view:LoadURL("http://www.google.com/")
  12. view:SetTransparent(true)
  13.  
  14. function frame:OnPostDraw()
  15.     view:UpdateTexture(tex, 1024, 1024, ETF_A8R8G8B8)
  16.     surface.SetTexture(tex:GetId())
  17.    
  18.     surface.SetColor(Color(1,1,1,1))
  19.     surface.DrawTexturedRectEx(
  20.         0,0,
  21.         1024,1024
  22.     )
  23.    
  24.     awesomium.Update()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment