| Line |
Branch |
Decision |
Call |
Exec |
Source |
| 1 |
|
|
|
|
#ifndef CHRYSALIS_BASERENDERERDATA_H |
| 2 |
|
|
|
|
#define CHRYSALIS_BASERENDERERDATA_H |
| 3 |
|
|
|
|
|
| 4 |
|
|
|
|
#include <Vertex2f.h> |
| 5 |
|
|
|
|
|
| 6 |
|
|
|
|
namespace Chrysalis { |
| 7 |
|
|
|
|
template<typename V> |
| 8 |
|
|
|
|
requires std::is_base_of_v<Vertex2f, V> |
| 9 |
|
|
|
|
class BaseRendererData { |
| 10 |
|
|
|
|
protected: |
| 11 |
|
|
0/6
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
|
✗ |
explicit BaseRendererData() = default; |
| 12 |
|
|
|
|
public: |
| 13 |
|
|
0/3
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
|
✗ |
virtual ~BaseRendererData() = default; |
| 14 |
|
|
|
|
|
| 15 |
|
|
|
|
virtual size_t size() = 0; |
| 16 |
|
|
|
|
virtual std::vector<V> vbo() = 0; |
| 17 |
|
|
|
|
|
| 18 |
|
|
|
✗ |
virtual void updateVBO() { |
| 19 |
|
|
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
|
✗ |
shouldUpload_ = true; |
| 20 |
|
|
|
✗ |
} |
| 21 |
|
|
|
✗ |
[[nodiscard]] bool shouldUpload() { |
| 22 |
|
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
|
0/3
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
|
✗ |
if (shouldUpload_) { |
| 23 |
|
|
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
|
✗ |
shouldUpload_ = false; |
| 24 |
|
|
|
✗ |
return true; |
| 25 |
|
|
|
|
} |
| 26 |
|
|
0/3
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
|
✗ |
return shouldUpload_; |
| 27 |
|
|
|
|
} |
| 28 |
|
|
|
|
private: |
| 29 |
|
|
|
|
bool shouldUpload_ = true; |
| 30 |
|
|
|
|
}; |
| 31 |
|
|
|
|
} |
| 32 |
|
|
|
|
|
| 33 |
|
|
|
|
#endif //CHRYSALIS_BASERENDERERDATA_H |
| 34 |
|
|
|
|
|