TDME2  1.9.200
TransparentRenderPointsPool.cpp
Go to the documentation of this file.
2 
3 #include <algorithm>
4 #include <string>
5 #include <vector>
6 
7 #include <tdme/tdme.h>
8 #include <tdme/engine/Color4.h>
10 #include <tdme/math/Vector3.h>
11 #include <tdme/utilities/Console.h>
12 
13 using std::string;
14 using std::vector;
15 
21 
22 TransparentRenderPointsPool::TransparentRenderPointsPool(int32_t pointsMax)
23 {
24  poolIdx = 0;
25  transparentRenderPoints.resize(pointsMax);
26  for (auto i = 0; i < transparentRenderPoints.size(); i++) {
28  }
29 }
30 
32  for (auto i = 0; i < transparentRenderPoints.size(); i++) delete transparentRenderPoints[i];
33 }
34 
36 {
37  std::sort(
40  [](const TransparentRenderPoint* point1, const TransparentRenderPoint* point2) {
41  return -point1->point.getZ() > -point2->point.getZ();
42  }
43  );
44 }
Color 4 definition class.
Definition: Color4.h:18
Vector3 class representing vector3 mathematical structure and operations with x, y,...
Definition: Vector3.h:20
Console class.
Definition: Console.h:29