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

Author Topic: shapes and sprites  (Read 807 times)

0 Members and 1 Guest are viewing this topic.

lane

  • Newbie
  • *
  • Posts: 29
    • View Profile
shapes and sprites
« on: December 28, 2017, 11:46:01 pm »
Quote
Haven't coded in a minute, but I was wondering if I could have a main.cpp that would act as the guide of a program and run other .h & .cpp files with other functions in them.

For example: the main.cpp would say run a function from test.cpp. And test.cpp was building a rectangle shape and building some sprites. Could I draw those shapes and sprites to the main.cpp window?

Thanks :)

I'm Dumb.
« Last Edit: December 29, 2017, 05:17:01 am by lane »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10820
    • View Profile
    • development blog
    • Email
Re: shapes and sprites
« Reply #1 on: December 29, 2017, 10:13:34 am »
This has nothing to do with SFML and is basic C++ knowledge.
Please refer to your C++ reference/book and get yourself familiar with C++ first.
SFML requires a good understanding of C++.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/