library: rename 'render' module to 'scene'

This commit is contained in:
Bruno BELANYI 2020-03-29 20:15:27 +02:00
parent aa47b54e4c
commit a59bd026bc
8 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@ pub type Point2D = nalgebra::Point2<f32>;
pub mod core; pub mod core;
pub mod light; pub mod light;
pub mod material; pub mod material;
pub mod render; pub mod scene;
pub mod serialize; pub mod serialize;
pub mod shape; pub mod shape;
pub mod texture; pub mod texture;

View file

@ -1,4 +1,4 @@
use pathtracer::render::Scene; use pathtracer::scene::Scene;
use std::path::PathBuf; use std::path::PathBuf;
use structopt::StructOpt; use structopt::StructOpt;

View file

@ -23,7 +23,7 @@ impl LightAggregate {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// # use pathtracer::render::LightAggregate; /// # use pathtracer::scene::LightAggregate;
/// # /// #
/// let la = LightAggregate::empty(); /// let la = LightAggregate::empty();
/// assert_eq!(la.ambient_lights_iter().count(), 0); /// assert_eq!(la.ambient_lights_iter().count(), 0);
@ -40,7 +40,7 @@ impl LightAggregate {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// # use pathtracer::render::LightAggregate; /// # use pathtracer::scene::LightAggregate;
/// # /// #
/// let la = LightAggregate::new( /// let la = LightAggregate::new(
/// Vec::new(), /// Vec::new(),

View file

@ -30,7 +30,7 @@ impl Object {
/// ``` /// ```
/// # use pathtracer::core::{LightProperties, LinearColor}; /// # use pathtracer::core::{LightProperties, LinearColor};
/// # use pathtracer::material::UniformMaterial; /// # use pathtracer::material::UniformMaterial;
/// # use pathtracer::render::Object; /// # use pathtracer::scene::Object;
/// # use pathtracer::shape::Sphere; /// # use pathtracer::shape::Sphere;
/// # use pathtracer::texture::UniformTexture; /// # use pathtracer::texture::UniformTexture;
/// # use pathtracer::Point; /// # use pathtracer::Point;

View file

@ -37,7 +37,7 @@ impl Scene {
/// ``` /// ```
/// # use pathtracer::core::{Camera, LightProperties, LinearColor}; /// # use pathtracer::core::{Camera, LightProperties, LinearColor};
/// # use pathtracer::material::UniformMaterial; /// # use pathtracer::material::UniformMaterial;
/// # use pathtracer::render::{LightAggregate, Object, Scene}; /// # use pathtracer::scene::{LightAggregate, Object, Scene};
/// # use pathtracer::shape::Sphere; /// # use pathtracer::shape::Sphere;
/// # use pathtracer::texture::UniformTexture; /// # use pathtracer::texture::UniformTexture;
/// # use pathtracer::Point; /// # use pathtracer::Point;
@ -354,7 +354,7 @@ mod test {
#[test] #[test]
fn empty_scene() { fn empty_scene() {
use crate::core::Camera; use crate::core::Camera;
use crate::render::{LightAggregate, Scene}; use crate::scene::{LightAggregate, Scene};
let _scene = Scene::new( let _scene = Scene::new(
Camera::default(), Camera::default(),