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.
26 lines
910 B
26 lines
910 B
#pragma once
|
|
|
|
#include <base/primitive.hpp>
|
|
#include <subface/simple/plane.hpp>
|
|
#include <subface/simple/cylinder_face.hpp>
|
|
|
|
namespace internal
|
|
{
|
|
struct cylinder_t final : primitive {
|
|
void initialize(primitive_data_center_t &) override;
|
|
void destroy() override;
|
|
|
|
primitive_type get_type() const override { return PRIMITIVE_TYPE_CYLINDER; };
|
|
|
|
marked_subface_ptr_t<internal::cylinder_face_t> cylinder_face{};
|
|
marked_subface_ptr_t<internal::plane_t> bottom_plane{};
|
|
marked_subface_ptr_t<internal::plane_t> top_plane{};
|
|
|
|
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> *)(&cylinder_face); }
|
|
|
|
size_t get_subface_count() const override { return 3; }
|
|
};
|
|
} // namespace internal
|