Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Solved] Opening Website File to show in Window  (Read 3982 times)

0 Members and 1 Guest are viewing this topic.

JTeck

  • Newbie
  • *
  • Posts: 35
    • View Profile
[Solved] Opening Website File to show in Window
« on: April 11, 2014, 11:49:16 am »
Hi, would it be possible to open a website page or a file and show the contents of the site in the window? I have had a look at searching and found nothing on this topic, so I'm unsure if anybody has tried this yet.

If there is a way, what would be the best solution to achieve it?

Cheers
« Last Edit: April 11, 2014, 03:18:47 pm by JTeck »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Opening Website File to show in Window
« Reply #1 on: April 11, 2014, 11:53:13 am »
You mean if it's possible to implement a simple web browser with SFML?

SFML supports the HTTP protocol, which you can use to fetch website contents, but you have to parse the HTML and CSS code yourself and display everything correctly. It will be a giant effort with very limited results (websites can become arbitrarily complex, if you consider scripts, forms, ...), so you'd better use something other than SFML.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

JTeck

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: Opening Website File to show in Window
« Reply #2 on: April 11, 2014, 11:55:49 am »
You mean if it's possible to implement a simple web browser with SFML?

SFML supports the HTTP protocol, which you can use to fetch website contents, but you have to parse the HTML and CSS code yourself and display everything correctly. It will be a giant effort with very limited results (websites can become arbitrarily complex, if you consider scripts, forms, ...), so you'd better use something other than SFML.

Aww, ok :). I just thought of that when I was thinking about user input into text boxes, since SFML doesn't support GUI objects from what I've read.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Opening Website File to show in Window
« Reply #3 on: April 11, 2014, 12:04:52 pm »
There are extension libraries like SFGUI or TGUI (search in the project forum) for the purpose of user interfaces, but websites are a whole different topic.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

JTeck

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: Opening Website File to show in Window
« Reply #4 on: April 11, 2014, 03:18:18 pm »
There are extension libraries like SFGUI or TGUI (search in the project forum) for the purpose of user interfaces, but websites are a whole different topic.

Alrighty, Ill have a look, cheers.

The Terminator

  • Full Member
  • ***
  • Posts: 224
  • Windows and Mac C++ Developer
    • View Profile
[Solved] Opening Website File to show in Window
« Reply #5 on: April 16, 2014, 08:01:02 pm »
Have a look at Awesomium. It sounds like exactly what you need. It's a fairly good library.
Current Projects:
Technoport

 

anything