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

Author Topic: Question  (Read 911 times)

0 Members and 1 Guest are viewing this topic.

osmkzy

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Question
« on: August 10, 2023, 09:24:08 am »
Hello i'm an absulute beginner at sfml how can i make a text input box like in a login screen?

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Question
« Reply #1 on: August 10, 2023, 09:46:48 am »
Bare minimum for an input text box would be
sf::RectangleShape or sf::Sprite to display the box
sf::Text & sf::Font to display the the text
The TextEntered event to catch the text inputted by the user
and of course the mandatory basics of how to create a windows, a correct event and main loop

Could also use a GUI library like TGUI or SFGUI, but I don't know anything about them

 

anything