TDME2  1.9.200
RenderTransparentRenderPointsPool.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include <tdme/tdme.h>
7 #include <tdme/engine/Color4.h>
10 #include <tdme/math/Matrix4x4.h>
12 #include <tdme/utilities/Console.h>
13 
14 using std::vector;
15 
21 
22 /**
23  * Render transparent render points pool
24  * @author andreas.drewke
25  */
27 {
28 private:
29  vector<TransparentRenderPoint*> transparentRenderPoints;
30  int32_t poolIdx;
31 
32 public:
33  // forbid class copy
35 
36  /**
37  * Public constructor
38  * @param pointsMax points max
39  */
40  RenderTransparentRenderPointsPool(int32_t pointsMax);
41 
42  /**
43  * Destructor
44  */
46 
47  /**
48  * Merge another pool into this pool
49  * @param pool2 pool
50  * @param cameraMatrix cameraMatrix
51  */
52  void merge(TransparentRenderPointsPool* pool2, const Matrix4x4& cameraMatrix);
53 
54  /**
55  * Reset
56  */
57  void reset();
58 
59  /**
60  * @return transparent render points count
61  */
62  inline const int32_t getTransparentRenderPointsCount() {
63  return poolIdx;
64  }
65 
66  /**
67  * @return transparent render points vector
68  */
69  inline const vector<TransparentRenderPoint*>& getTransparentRenderPoints() {
71  }
72 
73  /**
74  * Sort transparent render points
75  */
76  void sort();
77 
78 };
Color 4 definition class.
Definition: Color4.h:18
void merge(TransparentRenderPointsPool *pool2, const Matrix4x4 &cameraMatrix)
Merge another pool into this pool.
Matrix4x4 class representing matrix4x4 mathematical structure and operations for 3d space.
Definition: Matrix4x4.h:23
Console class.
Definition: Console.h:29
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6