summaryrefslogtreecommitdiffstats
path: root/src/old/math3d.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-22 15:54:16 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-22 15:54:16 +0200
commit4531ac88d3c022866d564be40c20593de4c70bfc (patch)
tree63bd1feff134c95001a1b10495882debfcdf54e3 /src/old/math3d.h
parent11df0ebf94e0842566bdc8d627ab50cc5309605d (diff)
downloadcolobot-4531ac88d3c022866d564be40c20593de4c70bfc.tar.gz
colobot-4531ac88d3c022866d564be40c20593de4c70bfc.tar.bz2
colobot-4531ac88d3c022866d564be40c20593de4c70bfc.zip
Moved old implementations to src/old
Diffstat (limited to 'src/old/math3d.h')
-rw-r--r--src/old/math3d.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/old/math3d.h b/src/old/math3d.h
new file mode 100644
index 0000000..5ef6f43
--- /dev/null
+++ b/src/old/math3d.h
@@ -0,0 +1,48 @@
+// * This file is part of the COLOBOT source code
+// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
+// *
+// * 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/.
+
+// math3d.h
+
+#pragma once
+
+
+#include <math.h>
+
+#include "common/struct.h"
+
+
+// TODO
+void MappingObject( D3DVERTEX2* pVertices, int nb, float scale );
+
+// TODO
+void SmoothObject( D3DVERTEX2* pVertices, int nb );
+
+// TODO
+D3DCOLOR RetColor(float intensity);
+
+// TODO
+D3DCOLOR RetColor(D3DCOLORVALUE intensity);
+
+// TODO
+D3DCOLORVALUE RetColor(D3DCOLOR intensity);
+
+// TODO
+void RGB2HSV(D3DCOLORVALUE src, ColorHSV &dest);
+
+// TODO
+void HSV2RGB(ColorHSV src, D3DCOLORVALUE &dest);
+
+