xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
| 命名空间 | 宏定义 | 类型定义
shaderinstence.hpp 文件参考
#include <xcal/render/impl/opengl/gl/shaderprogram.hpp>
#include <xcal/render/impl/opengl/utils/resourcedistributor.hpp>
#include <xcal/utils/paths.hpp>
shaderinstence.hpp 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

struct  xcal::render::opengl::utils::ResourceAllocator< xcal::render::opengl::GL::ShaderProgram, Catgory, Id >
 
struct  xcal::render::opengl::utils::ResourceAllocator< xcal::render::opengl::GL::VertexArrayObject, Catgory, Id >
 
struct  xcal::render::opengl::utils::ResourceAllocator< xcal::render::opengl::GL::Buffer, Catgory, Id >
 

命名空间

namespace  xcal
 
namespace  xcal::render
 
namespace  xcal::render::opengl
 
namespace  xcal::render::opengl::utils
 

宏定义

#define XCAL_DEFINE_STATIC_GLOBJECT(T, Catgory, Id)
 
#define XCAL_STATIC_GLOBJECT(T, Catgory, Id)
 
#define XCAL_BUFFER_INSTANCE(T, _id)
 
#define XCAL_SHADER_INSTANCE(T, _id)
 
#define SHADER_FILE(name)
 

类型定义

template<class T , size_t _id>
using xcal::render::opengl::utils::ShaderInstance = StaticResourceDistributor< xcal::render::opengl::GL::ShaderProgram, T, _id >
 
template<class T , size_t _id>
using xcal::render::opengl::utils::VertexArrayObjectInstance = DynamicResourceDistributor< xcal::render::opengl::GL::VertexArrayObject, T, _id >
 
template<class T , size_t _id>
using xcal::render::opengl::utils::BufferInstance = DynamicResourceDistributor< xcal::render::opengl::GL::Buffer, T, _id >
 

宏定义说明

◆ SHADER_FILE

#define SHADER_FILE (   name)
值:
(xcal::utils::paths::EXECUTABLE_DIR + "/" + XCAL_OPENGL_SHADER_DIR + \
name)
const std::string EXECUTABLE_DIR
Get the directory of the executable.
Definition paths.cc:43

在文件 shaderinstence.hpp63 行定义.

◆ XCAL_BUFFER_INSTANCE

#define XCAL_BUFFER_INSTANCE (   T,
  _id 
)
值:

在文件 shaderinstence.hpp48 行定义.

◆ XCAL_DEFINE_STATIC_GLOBJECT

#define XCAL_DEFINE_STATIC_GLOBJECT (   T,
  Catgory,
  Id 
)
值:
template <> \
std::shared_ptr<T> \
xcal::render::opengl::utils::ResourceAllocator<T, Catgory, Id>::allocate()

在文件 shaderinstence.hpp40 行定义.

◆ XCAL_SHADER_INSTANCE

#define XCAL_SHADER_INSTANCE (   T,
  _id 
)
值:
template <> \
std::shared_ptr<xcal::render::opengl::GL::ShaderProgram> \

在文件 shaderinstence.hpp53 行定义.

◆ XCAL_STATIC_GLOBJECT

#define XCAL_STATIC_GLOBJECT (   T,
  Catgory,
  Id 
)