xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
path.hpp
浏览该文件的文档.
1#pragma once
2
7#include <xcmath/xcmath.hpp>
8
10class XCAL_API Path : public Object {
11 public:
13
14 private:
15 GL::Buffer stroke_vbo_;
16 GL::Buffer fill_vbo_;
17 GL::Buffer position_vbo_;
19 std::shared_ptr<GL::ShaderProgram> stroke_shader_program_;
20 std::shared_ptr<GL::ShaderProgram> fill_shader_program_;
21
22 public:
23 explicit Path(mobject::Path *mobject);
24 void create() override;
25 void destroy() override;
26 void render() const override;
27 virtual void update_projection_view(
28 const xcmath::mat4<float_t> &projection_view) override;
29
30 Path(const Path &) = delete;
31};
32} // namespace xcal::render::opengl::object
xcal::render::opengl::object::object_ptr create(T *mobject)
#define XCAL_OPENGL_REGIST_OBJECT(class_, type)
Definition object.hpp:44
#define XCAL_API
Definition public.h:69