tried making naming more uniform and implemented most of the opengl managers
This commit is contained in:
37
include/assets/data/point_cloud_data.hpp
Normal file
37
include/assets/data/point_cloud_data.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include "assets/components/point_cloud_vertex_components.hpp"
|
||||
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include "generic/vertex_array_data.hpp"
|
||||
|
||||
namespace assets
|
||||
{
|
||||
|
||||
class point_cloud_data : public vertex_array_data<
|
||||
point_cloud_vertex_components::flags,
|
||||
point_cloud_vertex_components::position,
|
||||
point_cloud_vertex_components::normal,
|
||||
point_cloud_vertex_components::color,
|
||||
point_cloud_vertex_components::reflectance
|
||||
> {
|
||||
public:
|
||||
[[nodiscard]] inline std::vector<point_cloud_vertex_components::position>& positions();
|
||||
[[nodiscard]] inline std::vector<point_cloud_vertex_components::normal>& normals();
|
||||
[[nodiscard]] inline std::vector<point_cloud_vertex_components::color>& colors();
|
||||
[[nodiscard]] inline std::vector<point_cloud_vertex_components::reflectance>& reflectances();
|
||||
|
||||
[[nodiscard]] inline const std::vector<point_cloud_vertex_components::position>& positions() const;
|
||||
[[nodiscard]] inline const std::vector<point_cloud_vertex_components::normal>& normals() const;
|
||||
[[nodiscard]] inline const std::vector<point_cloud_vertex_components::color>& colors() const;
|
||||
[[nodiscard]] inline const std::vector<point_cloud_vertex_components::reflectance>& reflectances() const;
|
||||
|
||||
inline void clear();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#define INCLUDE_DYNAMIC_TEXTURE_DATA_IMPLEMENTATION
|
||||
#include "assets/data/point_cloud_data.ipp"
|
||||
#undef INCLUDE_DYNAMIC_TEXTURE_DATA_IMPLEMENTATION
|
||||
Reference in New Issue
Block a user