aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/rst-client/src/graphics/mod.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2021-02-06 22:54:28 +0100
committerKatharina Fey <kookie@spacekookie.de>2021-02-06 22:54:28 +0100
commita6a1949914fb2074fb5fec9c75b075eac369541f (patch)
treea112f4ce0e88298c1d8a25c504d7a0478a0c39dc /games/rstnode/rst-client/src/graphics/mod.rs
parentcf9392a33bb99ae581f818d3ddb8be1231521a02 (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.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;
+}