xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
line.hpp
浏览该文件的文档.
1#pragma once
2#include <xcal/public.h>
3
9#include <xcmath/xcmath.hpp>
10class StaticLine;
12class XCAL_API Line : public Object {
13 public:
15
16 private:
17 mutable struct {
21 } ubo_data_;
22 mutable GL::Buffer ubo_;
23 std::shared_ptr<StaticLine> static_line_;
25
26 public:
27 explicit Line(mobject::Line *mobject);
28 void create() override;
29 void destroy() override;
30 void render() const override;
31 void update_ubo_data() const;
32 void update_projection_view(
33 const xcmath::mat4<float_t> &view_projection) override;
34
35 Line(const Line &) = delete;
36};
37} // namespace xcal::render::opengl::object
xcmath::vec4< float_t > color
Definition line.hpp:19
xcmath::mat4< float_t > model
Definition line.hpp:20
xcmath::vec4< float_t > direction
Definition line.hpp:18
Vector class template
Definition vec.hpp:206
Header file for matrix class template and related utilities
#define XCAL_OPENGL_REGIST_OBJECT(class_, type)
Definition object.hpp:44
#define XCAL_API
Definition public.h:69