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

Author Topic: Viewing website cotent in SFML window.  (Read 2768 times)

0 Members and 2 Guests are viewing this topic.

Arch1eN

  • Newbie
  • *
  • Posts: 5
    • View Profile
Viewing website cotent in SFML window.
« on: September 30, 2014, 11:14:38 am »
Hi !

I would like to make an application in SFML that will show a web based document in SFML window just like in web browsers. What kind of tools do i need to do this ? I was looking for some informations, but i couldnt find any.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Viewing website cotent in SFML window.
« Reply #1 on: September 30, 2014, 11:21:56 am »
Have you searched before posting?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Arch1eN

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Viewing website cotent in SFML window.
« Reply #2 on: September 30, 2014, 01:31:21 pm »
Have you searched before posting?

I did, but i have never found an answer, thats why i have posted a topic.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Viewing website cotent in SFML window.
« Reply #3 on: September 30, 2014, 05:40:42 pm »
The first thing you will need to do is parse an HTML file.

After this, the details of how you implement how to display each part is entirely up to you. SFML provides access to text and image drawing and that's all you really need. You may need to customise the way you use it to allow for text altering mid-word, for example.

You should look into using views to help with scrolling, although you will have to create your own scroll-bar/-control.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Viewing website cotent in SFML window.
« Reply #4 on: September 30, 2014, 05:47:20 pm »
You'll need a HTML rendering/layout engine like KHTML/WebKit or similar (or write one yourself - major task).

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Viewing website cotent in SFML window.
« Reply #5 on: September 30, 2014, 06:04:57 pm »
a HTML rendering/layout engine
This seems like a much more approachable...approach.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Arch1eN

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Viewing website cotent in SFML window.
« Reply #6 on: October 01, 2014, 08:16:34 pm »
Thank You guys, this is the answer i was looking for :)