Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
GLCommandBuffer类 参考
类 GLCommandBuffer 继承关系图:
CommandBuffer

Public 成员函数

void begin () override
 开始记录命令. 更多...
 
void end () override
 结束记录命令. 更多...
 
void begin_render_pass () override
 
void end_render_pass () override
 
void set_viewport (const Viewport &viewport) override
 
void set_pipeline (std::shared_ptr< Pipeline > pipeline) override
 
void set_vertex_buffer (std::shared_ptr< VertexBuffer > vertex_buffer) override
 
void set_index_buffer (std::shared_ptr< IndexBuffer > index_buffer) override
 
void set_texture (std::shared_ptr< Texture > texture, unsigned int slot) override
 
void clear (uint8_t flags) override
 清空缓冲区. 更多...
 
void set_clear_color (const Vector4 &color) override
 设置清空颜色缓冲区的默认值. 更多...
 
void set_clear_depth (float depth) override
 设置清空深度缓冲区的默认值. 更多...
 
void set_clear_stencil (uint32_t value) override
 设置清空模板缓冲区的默认值. 更多...
 
void draw (uint32_t vertex_count, uint32_t first_vertex) override
 
void draw_indexed (uint32_t index_count, uint32_t first_index) override
 
const auto & get_data () const
 
virtual void begin ()=0
 开始记录命令. 更多...
 
virtual void end ()=0
 结束记录命令. 更多...
 
virtual void begin_render_pass ()=0
 
virtual void end_render_pass ()=0
 
virtual void set_viewport (const Viewport &viewport)=0
 
virtual void set_pipeline (std::shared_ptr< Pipeline > pipeline)=0
 
virtual void set_vertex_buffer (std::shared_ptr< VertexBuffer > vertex_buffer)=0
 
virtual void set_index_buffer (std::shared_ptr< IndexBuffer > index_buffer)=0
 
virtual void set_texture (std::shared_ptr< Texture > texture, unsigned int slot)=0
 
virtual void clear (uint8_t flags)=0
 清空缓冲区. 更多...
 
virtual void set_clear_color (const Vector4 &color)=0
 设置清空颜色缓冲区的默认值. 更多...
 
virtual void set_clear_depth (float depth)=0
 设置清空深度缓冲区的默认值. 更多...
 
virtual void set_clear_stencil (uint32_t value)=0
 设置清空模板缓冲区的默认值. 更多...
 
virtual void draw (uint32_t vertex_count, uint32_t first_vertex=0)=0
 
virtual void draw_indexed (uint32_t index_count, uint32_t first_index=0)=0
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 CommandBuffer
static std::shared_ptr< CommandBuffercreate ()
 

成员函数说明

◆ begin()

void GLCommandBuffer::begin ( )
overridevirtual

开始记录命令.

实现了 CommandBuffer.

◆ begin_render_pass()

void GLCommandBuffer::begin_render_pass ( )
overridevirtual

实现了 CommandBuffer.

◆ clear()

void GLCommandBuffer::clear ( uint8_t  flags)
overridevirtual

清空缓冲区.

参数
flags类型.
参见
ClearFlag

实现了 CommandBuffer.

◆ draw()

void GLCommandBuffer::draw ( uint32_t  vertex_count,
uint32_t  first_vertex 
)
overridevirtual

实现了 CommandBuffer.

◆ draw_indexed()

void GLCommandBuffer::draw_indexed ( uint32_t  index_count,
uint32_t  first_index 
)
overridevirtual

实现了 CommandBuffer.

◆ end()

void GLCommandBuffer::end ( )
overridevirtual

结束记录命令.

实现了 CommandBuffer.

◆ end_render_pass()

void GLCommandBuffer::end_render_pass ( )
overridevirtual

实现了 CommandBuffer.

◆ set_clear_color()

void GLCommandBuffer::set_clear_color ( const Vector4 &  color)
overridevirtual

设置清空颜色缓冲区的默认值.

参数
color默认值.

实现了 CommandBuffer.

◆ set_clear_depth()

void GLCommandBuffer::set_clear_depth ( float  depth)
overridevirtual

设置清空深度缓冲区的默认值.

参数
depth默认值.

实现了 CommandBuffer.

◆ set_clear_stencil()

void GLCommandBuffer::set_clear_stencil ( uint32_t  value)
overridevirtual

设置清空模板缓冲区的默认值.

参数
value默认值.

实现了 CommandBuffer.

◆ set_index_buffer()

void GLCommandBuffer::set_index_buffer ( std::shared_ptr< IndexBuffer index_buffer)
overridevirtual

实现了 CommandBuffer.

◆ set_pipeline()

void GLCommandBuffer::set_pipeline ( std::shared_ptr< Pipeline pipeline)
overridevirtual

实现了 CommandBuffer.

◆ set_texture()

void GLCommandBuffer::set_texture ( std::shared_ptr< Texture texture,
unsigned int  slot 
)
overridevirtual

实现了 CommandBuffer.

◆ set_vertex_buffer()

void GLCommandBuffer::set_vertex_buffer ( std::shared_ptr< VertexBuffer vertex_buffer)
overridevirtual

实现了 CommandBuffer.

◆ set_viewport()

void GLCommandBuffer::set_viewport ( const Viewport viewport)
overridevirtual

实现了 CommandBuffer.


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