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

Author Topic: sfml Text Rendering doesnt print error but it force closes the window  (Read 542 times)

0 Members and 1 Guest are viewing this topic.

call_me_saleh

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Hi I'm trying to make a TextView class to render texts like:

    textView = new TextView("Hello World!");
    textView->render(window);

but at this line i get the force close:
void View::render(sf::RenderTarget *target) {
    target->draw(*view);
}
view is a View class member:
    sf::Drawable *view;

call_me_saleh

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
problem solved
i had forgotten to give view as a reference

 

anything