You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
729 B
23 lines
729 B
4 weeks ago
|
#pragma once
|
||
|
|
||
|
#include <base/primitive.hpp>
|
||
|
#include <subface/simple/sphere_face.hpp>
|
||
|
|
||
|
namespace internal
|
||
|
{
|
||
|
struct sphere_t final : primitive {
|
||
|
void initialize(primitive_data_center_t &) override;
|
||
|
void destroy() override;
|
||
|
|
||
|
primitive_type get_type() const override { return PRIMITIVE_TYPE_SPHERE; };
|
||
|
|
||
|
marked_subface_ptr_t<internal::sphere_face_t> sphere_face{};
|
||
|
|
||
|
protected:
|
||
|
void initialize(primitive_data_center_t &, const std::vector<std::pair<internal::paired_model_matrix *, bool>> &) override;
|
||
|
|
||
|
marked_subface_ptr_t<subface> *get_subface() const override { return (marked_subface_ptr_t<subface> *)(&sphere_face); }
|
||
|
|
||
|
size_t get_subface_count() const override { return 1; }
|
||
|
};
|
||
|
} // namespace internal
|