Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Why declare variables in header?

$
0
0

@rc255 wrote:

Hello, I’ve just started working through the examples in the OF book, and in this section, when it gets to using polylines, the author begins to define variables in the header file, rather than in the ofApp.cpp file as was done up to that point. I’m guessing the reason is explained in more detail later on, but can anyone give me a basic explanation as to when it’s best to define variables in the header and when not to?

Thanks

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles