Skip to content

Commit

Permalink
Added license information (GNU GPLv3).
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Feb 17, 2010
1 parent b65a303 commit b533ad1
Show file tree
Hide file tree
Showing 60 changed files with 1,611 additions and 53 deletions.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

58 changes: 9 additions & 49 deletions README
Original file line number Diff line number Diff line change
@@ -1,51 +1,11 @@
A simple software rasterizer for demonstration purposes written in D.
--
d4: A simple software rasterizer for demonstration purposes written in D.
---
This project comes with two executable demos, try the »--help« command line
switch on the binaries for help. On Windows, you can just drag and drop a model
file on one of the .exe files. Try pressing the WSAD and cursor keys and the
first half of the bottom row of your keyboard.

Thanks to the Assimp asset import library team (http://assimp.sourceforge.net).
Their excellent library enables this programm to read 26 different
model file formats:
This software is distributed under the terms of the GNU GPLv3, see COPYING for
details.

* Collada (*.dae)
* 3D Studio Max 3DS (*.3ds)
* 3D Studio Max ASE (*.ase)
* Wavefront Object (*.obj)
* Stanford Polygon Library (*.ply)
* AutoCAD DXF (*.dxf)
* LightWave (*.lwo)
* Stereolithography (*.stl)
* AC3D (*.ac)
* Valve Model (*.smd, *.vta)
* Quake I (*.mdl)
* Quake II (*.md2)
* Quake III (*.md3)
* Return to Castle Wolfenstein (*.mdc)
* Doom 3 (*.md5)
* Biovision BVH (*.bvh)
* DirectX X (*.x)
* Quick3D (*.q3d)
* Irrlicht Mesh (*.irrmesh)
* Neutral File Format (*.nff)
* Sense8 WorldToolKit (*.nff)
* Object File Format (*.off)
* PovRAY Raw (*.raw)
* Terragen Terrain (*.ter)
* 3D GameStudio (*.mdl)
* 3D GameStudio Terrain (*.hmp)

The Assimp library is Copyright (c) 2008 ASSIMP Development Team.
See bin/libraries/Assimp.licence.txt for licence information.

Another jewel of a library is DevIL (http://openil.sourceforge.net), which is
used to import the textures. Thanks to it, this program can read 30 different
texture formats:
*.act, *.bmp, *.cut, *.dcx, *.dds, *.exr, *.hdr, *.ico, *.icns, *.gif, *.jpg,
*.jp2, *.lbm, *.lif, *.mdl, *.pal, *.pcd, *.pcx, *.pic, *.png, *.pnm, *.psd,
*.psp, *.raw, *.sgi, *.tga, *.tif, *.wal, *.vtf, Doom graphics

DevIL and the multimedia library SDL (http://www.libsdl.org) are used under the
terms of the LGPL license (bin/libraries/LGPL.licence.txt).

--

All rights reserved.
Contact <[email protected]> for further information.
Please refer to http://klickverbot.github.com/d4/ for further information.
16 changes: 16 additions & 0 deletions src/SpinningLights.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

/**
* Simple example demonstrating more complex per-pixel lighting by displaying
* a scene illuminated by two colored point lights moving around.
Expand Down
16 changes: 16 additions & 0 deletions src/Viewer.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

/**
* Simple model viewer.
*
Expand Down
16 changes: 16 additions & 0 deletions src/d4/app/Application.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.app.Application;

import tango.core.Array;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/app/FreeCamera.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.app.FreeCamera;

import tango.math.Math : PI;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/app/Key.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.app.Key;

/**
Expand Down
16 changes: 16 additions & 0 deletions src/d4/app/Option.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.app.Option;

/**
Expand Down
16 changes: 16 additions & 0 deletions src/d4/app/Rendering.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.app.Rendering;

import tango.math.Math : PI;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/app/Sdl.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.app.Sdl;

import tango.io.Stdout;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/format/AssimpScene.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.format.AssimpScene;

import tango.io.Path : standardizePath = standard;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/format/DevilImporter.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.format.DevilImporter;

import tango.io.Stdout;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/math/AABB.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.math.AABB;

import Math = tango.math.Math;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/math/Color.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.math.Color;

import d4.math.Vector3;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/math/Matrix4.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.math.Matrix4;

import tango.io.Stdout;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/math/Plane.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.math.Plane;

import d4.math.Vector4;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/math/Quaternion.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.math.Quaternion;

import tango.math.Math : sin, cos;
Expand Down
16 changes: 16 additions & 0 deletions src/d4/math/Texture.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright © 2010, klickverbot <[email protected]>.
*
* This file is part of d4, which 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.
*
* d4 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
* d4. If not, see <http://www.gnu.org/licenses/>.
*/

module d4.math.Texture;

import tango.math.Math : rndint;
Expand Down
Loading

0 comments on commit b533ad1

Please sign in to comment.