next work: support 3-way coordinate system in VertexColor2D material.
This commit is contained in:
19
inc/hgl/graph/mtl/2d/VertexColor2D.h
Normal file
19
inc/hgl/graph/mtl/2d/VertexColor2D.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef HGL_GRAPH_MTL_2D_VERTEX2D_INCLUDE
|
||||
#define HGL_GRAPH_MTL_2D_VERTEX2D_INCLUDE
|
||||
|
||||
#include<hgl/graph/mtl/StdMaterial.h>
|
||||
|
||||
namespace hgl
|
||||
{
|
||||
namespace graph
|
||||
{
|
||||
class MaterialCreateInfo;
|
||||
|
||||
namespace mtl
|
||||
{
|
||||
MaterialCreateInfo *CreateVertexColor2D(const CoordinateSystem2D &);
|
||||
}//namespace mtl
|
||||
}//namespace graph
|
||||
}//namespace hgl
|
||||
|
||||
#endif//HGL_GRAPH_MTL_2D_VERTEX2D_INCLUDE
|
@@ -1,17 +0,0 @@
|
||||
#ifndef HGL_GRAPH_MTL_2D_VERTEX2DNDC_INCLUDE
|
||||
#define HGL_GRAPH_MTL_2D_VERTEX2DNDC_INCLUDE
|
||||
|
||||
namespace hgl
|
||||
{
|
||||
namespace graph
|
||||
{
|
||||
class MaterialCreateInfo;
|
||||
|
||||
namespace mtl
|
||||
{
|
||||
MaterialCreateInfo *CreateVertexColor2DNDC();
|
||||
}//namespace mtl
|
||||
}//namespace graph
|
||||
}//namespace hgl
|
||||
|
||||
#endif//HGL_GRAPH_MTL_2D_VERTEX2DNDC_INCLUDE
|
@@ -1,6 +1,19 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#define STD_MTL_NAMESPACE_BEGIN namespace hgl{namespace graph{namespace mtl{
|
||||
#define STD_MTL_NAMESPACE_END }}}
|
||||
|
||||
#define STD_MTL_NAMESPACE_USING using namespace hgl::graph::mtl
|
||||
|
||||
enum class CoordinateSystem2D
|
||||
{
|
||||
NDC,
|
||||
ZeroToOne, //左上角为0,0;右下角为1,1
|
||||
Ortho //左上角为0,0;右下角为(width-1),(height-1)
|
||||
};
|
||||
|
||||
namespace GlobalShaderUBO
|
||||
{
|
||||
constexpr const char ViewportInfo[]="ViewportInfo";
|
||||
constexpr const char CameraInfo[]="CameraInfo";
|
||||
}
|
||||
|
Reference in New Issue
Block a user