dl
Public 成员函数 | 所有成员列表
dl::Graphics类 参考

#include <dl_graphics.h>

Public 成员函数

 Graphics ()
 
void Dot (const Position3 &p)
 
void Line (const Position3 &p0, const Position3 &p1)
 
void TriangleSolid (const Position3 &p0, const Position3 &p1, const Position3 &p2)
 
void Triangle (const Position3 &p0, const Position3 &p1, const Position3 &p2)
 三角形 更多...
 
void Quad (const Position3 &p0, const Position3 &p1, const Position3 &p2, const Position3 &p3)
 四边形 更多...
 
void QuadSolid (const Position3 &p0, const Position3 &p1, const Position3 &p2, const Position3 &p3)
 四边形 填充 更多...
 
void Rectangle (const Position3 &p0, const Position3 &p1)
 矩形 更多...
 
void RectangleSolid (const Position3 &p0, const Position3 &p1)
 矩形填充 更多...
 
void Polygon (const std::vector< Position3 > &vec_pos)
 多边形 更多...
 
void PolygonSolid (const std::vector< Position3 > &vec_pos)
 多边形 填充(不支持复杂形状,完美绘制需要扫描线之类的算法) 更多...
 
void Love ()
 
void RenderCoor (Coor *coor, bool to_parent=true)
 绘制Coor 更多...
 
void SetCoor (Coor *coor)
 设置变换 更多...
 
void SetColor (const Color &col)
 设置颜色 更多...
 
void SetColor (const std::vector< Color > &col)
 

详细描述

在文件 dl_graphics.h 第 23 行定义.

构造及析构函数说明

◆ Graphics()

dl::Graphics::Graphics ( )
inline

在文件 dl_graphics.h 第 26 行定义.

成员函数说明

◆ Dot()

void dl::Graphics::Dot ( const Position3 &  p)

◆ Line()

void dl::Graphics::Line ( const Position3 &  p0,
const Position3 &  p1 
)

◆ Love()

void dl::Graphics::Love ( )
inline

在文件 dl_graphics.h 第 116 行定义.

◆ Polygon()

void dl::Graphics::Polygon ( const std::vector< Position3 > &  vec_pos)
inline

多边形

在文件 dl_graphics.h 第 100 行定义.

◆ PolygonSolid()

void dl::Graphics::PolygonSolid ( const std::vector< Position3 > &  vec_pos)
inline

多边形 填充(不支持复杂形状,完美绘制需要扫描线之类的算法)

在文件 dl_graphics.h 第 107 行定义.

◆ Quad()

void dl::Graphics::Quad ( const Position3 &  p0,
const Position3 &  p1,
const Position3 &  p2,
const Position3 &  p3 
)
inline

四边形

在文件 dl_graphics.h 第 58 行定义.

◆ QuadSolid()

void dl::Graphics::QuadSolid ( const Position3 &  p0,
const Position3 &  p1,
const Position3 &  p2,
const Position3 &  p3 
)
inline

四边形 填充

在文件 dl_graphics.h 第 75 行定义.

◆ Rectangle()

void dl::Graphics::Rectangle ( const Position3 &  p0,
const Position3 &  p1 
)
inline

矩形

在文件 dl_graphics.h 第 89 行定义.

◆ RectangleSolid()

void dl::Graphics::RectangleSolid ( const Position3 &  p0,
const Position3 &  p1 
)
inline

矩形填充

在文件 dl_graphics.h 第 94 行定义.

◆ RenderCoor()

void dl::Graphics::RenderCoor ( Coor *  coor,
bool  to_parent = true 
)

绘制Coor

◆ SetColor() [1/2]

void dl::Graphics::SetColor ( const Color &  col)
inline

设置颜色

在文件 dl_graphics.h 第 159 行定义.

◆ SetColor() [2/2]

void dl::Graphics::SetColor ( const std::vector< Color > &  col)
inline

在文件 dl_graphics.h 第 164 行定义.

◆ SetCoor()

void dl::Graphics::SetCoor ( Coor *  coor)
inline

设置变换

在文件 dl_graphics.h 第 156 行定义.

◆ Triangle()

void dl::Graphics::Triangle ( const Position3 &  p0,
const Position3 &  p1,
const Position3 &  p2 
)
inline

三角形

在文件 dl_graphics.h 第 44 行定义.

◆ TriangleSolid()

void dl::Graphics::TriangleSolid ( const Position3 &  p0,
const Position3 &  p1,
const Position3 &  p2 
)

该类的文档由以下文件生成: