-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added license information (GNU GPLv3).
- Loading branch information
1 parent
b65a303
commit b533ad1
Showing
60 changed files
with
1,611 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
Oops, something went wrong.