diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:21 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:21 +0100 |
commit | 9f6b7a10e7e00edf6ab50a9cf162b377d84a43f6 (patch) | |
tree | fe4ebd024c59376c425073b4fa747fa70824d171 /stockton-render/src/draw/texture/mod.rs | |
parent | 26c325640df7ab8b9ea4a6c3fd5166f7df7f80ff (diff) |
feat(render) WIP: textures, using a fixed size texture array
currently using an 8 long texture array with seperate samplers.
also move to a trait for resolving textures from the bsp file rather than adding them manually. currently stuck with one static implementation though. this means all textures in the file are loaded when the map is.
not currently drawing with anything other than the first texture array, so files with >8 textures will fail.
Diffstat (limited to 'stockton-render/src/draw/texture/mod.rs')
-rw-r--r-- | stockton-render/src/draw/texture/mod.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/stockton-render/src/draw/texture/mod.rs b/stockton-render/src/draw/texture/mod.rs new file mode 100644 index 0000000..896e1d2 --- /dev/null +++ b/stockton-render/src/draw/texture/mod.rs @@ -0,0 +1,22 @@ +// Copyright (C) 2019 Oscar Shrimpton + +// This program 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. + +// This program 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 this program. If not, see <http://www.gnu.org/licenses/>. + +mod resolver; +mod image; +mod chunk; +pub mod loader; + +pub use self::loader::TextureStore; +pub use self::image::LoadedImage;
\ No newline at end of file |