diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-26 18:55:34 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-26 18:55:34 (GMT) |
commit | 743a82148dd2ddfdbd0eba24b208f1249ab4065d (patch) | |
tree | 98d598f030d4f2a938614338d2453d62453e3d90 /src | |
parent | f897fad9b887a5133db6b90354fdac840f792b45 (diff) |
explain our unusual portability system
Diffstat (limited to 'src')
-rw-r--r-- | src/OffscreenContext.h | 3 | ||||
-rw-r--r-- | src/OffscreenContextAll.hpp | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/OffscreenContext.h b/src/OffscreenContext.h index a32ea2c..0c700b6 100644 --- a/src/OffscreenContext.h +++ b/src/OffscreenContext.h @@ -1,6 +1,9 @@ #ifndef OFFSCREENCONTEXT_H_ #define OFFSCREENCONTEXT_H_ +// Here we implement a 'portability' pattern but since we are mixing +// Objective-C with C++, it is a bit different than what's found in a textbook. + #include <iostream> #include <fstream> #include <string> diff --git a/src/OffscreenContextAll.hpp b/src/OffscreenContextAll.hpp index 8ee7ebe..1c73b73 100644 --- a/src/OffscreenContextAll.hpp +++ b/src/OffscreenContextAll.hpp @@ -1,4 +1,5 @@ -// Functions shared by OffscreenContext[platform].cc +// Functions shared by OffscreenContext[platform].cc (or .mm) +// #include directly after definition of struct OffscreenContext. void bind_offscreen_context(OffscreenContext *ctx) { |