moved texturebuffer outside of spec

This commit is contained in:
Sandro Sobczyński
2020-10-29 21:53:08 +01:00
parent ab69ba28e3
commit 8501a85f49
22 changed files with 363 additions and 180 deletions
+19 -6
View File
@@ -17,10 +17,17 @@
// ----
/** Create by specifying values */
Point::Point(float x, float y)
Point::Point(float t_x, float t_y)
{
this->x = x;
this->y = y;
x = t_x;
y = t_y;
}
/** Create with other point values */
Point::Point(const Point &v)
{
x = v.x;
y = v.y;
}
/** Create empty point */
@@ -36,10 +43,16 @@ Point::~Point() {}
// Methods
// ----
void Point::set(float x, float y)
void Point::set(float t_x, float t_y)
{
this->x = x;
this->y = y;
x = x;
y = y;
}
void Point::set(const Point &v)
{
x = v.x;
y = v.y;
}
void Point::print()
+4 -4
View File
@@ -18,11 +18,11 @@
// ----
/** Create by specifying 3 points */
Vector3::Vector3(float x, float y, float z)
Vector3::Vector3(float t_x, float t_y, float t_z)
{
this->x = x;
this->y = y;
this->z = z;
x = t_x;
y = t_y;
z = t_z;
}
/** Create with another vector values */