diff options
author | Enne Walker <ennewalker@users.sourceforge.net> | 2010-04-23 16:15:39 -0400 |
---|---|---|
committer | Enne Walker <ennewalker@users.sourceforge.net> | 2010-04-24 11:41:02 -0400 |
commit | 628a7cdd6f98325059fe118837b72eddfacd5f86 (patch) | |
tree | 96cf72493e781830275ddca53144b48a6d5a0e86 /crawl-ref/source/glwrapper.h | |
parent | a22caea21579cd15007a2c2167d233789a1e01fa (diff) | |
download | crawl-ref-628a7cdd6f98325059fe118837b72eddfacd5f86.tar.gz crawl-ref-628a7cdd6f98325059fe118837b72eddfacd5f86.zip |
Move specific create funcs out of generic files.
glwrapper-ogl.cc, windowmanager-sdl.cc, and fontwrapper-ft.cc now contain
the static functions for their parent class's factory create. This
allows new implementations to be added without requiring modification of
the generic file (with #ifdefs).
Diffstat (limited to 'crawl-ref/source/glwrapper.h')
-rw-r--r-- | crawl-ref/source/glwrapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/glwrapper.h b/crawl-ref/source/glwrapper.h index b63670465a..6ae5186b38 100644 --- a/crawl-ref/source/glwrapper.h +++ b/crawl-ref/source/glwrapper.h @@ -113,6 +113,8 @@ public: // To silence pre 4.3 g++ compiler warnings virtual ~GLStateManager() {}; + // Note: the init/shutdown static functions should be written in the derived + // implementation-specific cc file, e.g. glwrapper-ogl.cc. static void init(); static void shutdown(); |