Skip to content

Commit

Permalink
refactor: 🎨 Move primitives into mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
melody-rs committed Sep 22, 2023
1 parent 1ec9324 commit 33cd3ec
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
16 changes: 1 addition & 15 deletions src/graphics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Luminol. If not, see <http://www.gnu.org/licenses/>.

pub mod primitives {
mod quad;
mod sprite;
mod tiles;
mod vertex;
mod viewport;

pub use quad::Quad;
pub use vertex::Vertex;
pub use viewport::Viewport;

pub use sprite::Sprite;
pub use tiles::Atlas;
pub use tiles::Tiles;
}
pub mod primitives;

mod event;
mod map;
Expand Down
37 changes: 37 additions & 0 deletions src/graphics/primitives/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Copyright (C) 2023 Lily Lyons
//
// This file is part of Luminol.
//
// Luminol is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Luminol is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Luminol. If not, see <http://www.gnu.org/licenses/>.
//
// Additional permission under GNU GPL version 3 section 7
//
// If you modify this Program, or any covered work, by linking or combining
// it with Steamworks API by Valve Corporation, containing parts covered by
// terms of the Steamworks API by Valve Corporation, the licensors of this
// Program grant you additional permission to convey the resulting work.

mod quad;
mod sprite;
mod tiles;
mod vertex;
mod viewport;

pub use quad::Quad;
pub use vertex::Vertex;
pub use viewport::Viewport;

pub use sprite::Sprite;
pub use tiles::Atlas;
pub use tiles::Tiles;

0 comments on commit 33cd3ec

Please sign in to comment.