Репозитории ALT
5.1: | 0.3.1-alt1 |
4.1: | 0.3.1-alt0.1 |
4.0: | 0.3.1-alt0.1 |
3.0: | 0.2.2-alt2 |
Группа :: Графика
Пакет: mview
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mview-0.2.2.patch
Скачать
Скачать
diff -urN /var/local/RPM/BUILD/mview-src-0.2.2/mathvector/matrix3.h 3/mathvector/matrix3.h
--- /var/local/RPM/BUILD/mview-src-0.2.2/mathvector/matrix3.h 2003-11-07 20:20:58 +0300
+++ mathvector/matrix3.h 2005-02-08 11:21:07 +0300
@@ -10,6 +10,7 @@
#define _MATRIX3_H
#include <stdarg.h>
+#include <math.h>
#define SIZE 3
@@ -61,7 +62,7 @@
for (int j=0; j < SIZE; j++)
data[i][j]= i == j ? 1 : 0;
}
-
+/*
// make x rotation matrix
void set_x_rotation(float x) {
set_rotation(x, 0.0, 0.0);
@@ -76,7 +77,7 @@
void set_z_rotation(float z) {
set_rotation(0.0, 0.0, z);
}
-
+*/
// make rotation matrix
void set_rotation_from_angles(float x, float y, float z) {
data[0][0] = cos(y)*cos(z);
diff -urN /var/local/RPM/BUILD/mview-src-0.2.2/mesh/matrix3.h 3/mesh/matrix3.h
--- /var/local/RPM/BUILD/mview-src-0.2.2/mesh/matrix3.h 2003-11-09 15:01:16 +0300
+++ mesh/matrix3.h 2005-02-08 11:21:14 +0300
@@ -10,6 +10,7 @@
#define _MATRIX3_H
#include <stdarg.h>
+#include <math.h>
#define SIZE 3
@@ -61,7 +62,7 @@
for (int j=0; j < SIZE; j++)
data[i][j]= i == j ? 1 : 0;
}
-
+/*
// make x rotation matrix
void set_x_rotation(float x) {
set_rotation(x, 0.0, 0.0);
@@ -76,7 +77,7 @@
void set_z_rotation(float z) {
set_rotation(0.0, 0.0, z);
}
-
+*/
// make rotation matrix
void set_rotation_from_angles(float x, float y, float z) {
data[0][0] = cos(y)*cos(z);
diff -urN /var/local/RPM/BUILD/mview-src-0.2.2/texture/array3d.h 3/texture/array3d.h
--- /var/local/RPM/BUILD/mview-src-0.2.2/texture/array3d.h 2003-11-09 15:13:01 +0300
+++ texture/array3d.h 2005-02-08 11:22:09 +0300
@@ -16,7 +16,7 @@
Array3D()
{
- x=y=z=0;
+ size_x=size_y=size_z=0;
data=NULL;
}