diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-11 19:11:57 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-11 19:11:57 +0000 |
commit | 773c1bafe0f1d8b706e0f72e235f8466e7a9ccf5 (patch) | |
tree | ab4b3058f436a4e4c54618f132a9179ee40e330c /src/render/state.h | |
parent | 3082cb197fb6af7d069f9ad211ff6ea5657d924a (diff) |
cleanups
Diffstat (limited to 'src/render/state.h')
-rw-r--r-- | src/render/state.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/render/state.h b/src/render/state.h new file mode 100644 index 0000000..59626c4 --- /dev/null +++ b/src/render/state.h @@ -0,0 +1,34 @@ +/* + render/state.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_RENDER_STATE_H__ +#define __INCLUDED_RENDER_STATE_H__ + + +namespace render { + +class State { +public: + static void init(int width, int height); + static void shutdown(); + + static void resize(int width, int height); + static void clear(); + + inline static int width() { return render_width; } + inline static int height() { return render_height; } + inline static float aspect() { return render_aspect; } + +private: + static int render_width; + static int render_height; + + static float render_aspect; +}; +} // namespace render + +#endif // __INCLUDED_RENDER_STATE_H__ + |