xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
| 命名空间 | 宏定义 | 类型定义 | 函数
object.hpp 文件参考
#include <xcal/public.h>
#include <memory>
#include <xcal/mobject/core/abs_mobject.hpp>
#include <xcal/mobject/core/mobject.hpp>
#include <xcal/render/impl/opengl/core/typedef.hpp>
#include <xcal/render/impl/opengl/gl/vertexarrayobject.hpp>
#include <xcmath/xcmath.hpp>
object.hpp 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  xcal::render::opengl::object::Object
 

命名空间

namespace  xcal
 
namespace  xcal::render
 
namespace  xcal::render::opengl
 
namespace  xcal::render::opengl::object
 

宏定义

#define XCAL_OPENGL_REGIST_OBJECT(class_, type)
 
#define XCAL_OPENGL_REGIST_OBJECT_IMPL(class_, type)
 

类型定义

using xcal::render::opengl::object::object_ptr = std::unique_ptr< Object >
 

函数

template<class T >
requires std::is_base_of_v<mobject::AbsMObject, T>
xcal::render::opengl::object::object_ptr xcal::render::opengl::object::create (T *mobject)
 
object_ptr xcal::render::opengl::object::create (mobject::AbsMObject *mobject)
 

宏定义说明

◆ XCAL_OPENGL_REGIST_OBJECT

#define XCAL_OPENGL_REGIST_OBJECT (   class_,
  type 
)
值:
template <> \
xcal::render::opengl::object::object_ptr \
xcal::render::opengl::object::create<xcal::mobject::type>( \
xcal::mobject::type * mobj)

在文件 object.hpp44 行定义.

◆ XCAL_OPENGL_REGIST_OBJECT_IMPL

#define XCAL_OPENGL_REGIST_OBJECT_IMPL (   class_,
  type 
)
值:
template <> \
xcal::render::opengl::object::object_ptr \
xcal::render::opengl::object::create<xcal::mobject::type>( \
xcal::mobject::type * mobj) { \
return std::make_unique<class_>(mobj); \
}

在文件 object.hpp50 行定义.