aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/rst-client/src/graphics/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'games/rstnode/rst-client/src/graphics/mod.rs')
-rw-r--r--games/rstnode/rst-client/src/graphics/mod.rs16
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;
+}