diff options
author | Katharina Fey <kookie@spacekookie.de> | 2021-02-06 22:54:28 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2021-02-06 22:54:28 +0100 |
commit | a6a1949914fb2074fb5fec9c75b075eac369541f (patch) | |
tree | a112f4ce0e88298c1d8a25c504d7a0478a0c39dc /games/rstnode/rst-client/src/graphics/mod.rs | |
parent | cf9392a33bb99ae581f818d3ddb8be1231521a02 (diff) |
rstnode: create small graphics example
Diffstat (limited to 'games/rstnode/rst-client/src/graphics/mod.rs')
-rw-r--r-- | games/rstnode/rst-client/src/graphics/mod.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/games/rstnode/rst-client/src/graphics/mod.rs b/games/rstnode/rst-client/src/graphics/mod.rs new file mode 100644 index 000000000000..8118207d70af --- /dev/null +++ b/games/rstnode/rst-client/src/graphics/mod.rs @@ -0,0 +1,16 @@ +//! Graphics module +//! +//! Each entity in the game has a graphics companion object in +//! [`entities`](self::entities), which knows how to render a given +//! object. Different game screens and UI elements can be found in +//! [`ui`](self::ui). + +pub mod entities; +pub mod ui; + +/// A utility module to include everything required to implement a +/// graphics entity +pub(self) mod prelude { + pub use ggez::{event::EventHandler, graphics::{self, Drawable, DrawParam, Mesh, DrawMode}, Context, GameResult}; + pub use mint::Point2; +} |