Midnight Graphics
Create Fast and Simple Graphics in C++
mn::Graphics::RenderFrame Struct Reference

Public Member Functions

MN_SYMBOL void startRender (std::optional< std::shared_ptr< Image >> image=std::nullopt)
 
MN_SYMBOL void endRender ()
 
MN_SYMBOL void clear (std::tuple< float, float, float > color, float alpha=1.f, std::optional< std::shared_ptr< Image >> image=std::nullopt, int attachment_index=-1) const
 
MN_SYMBOL void setPushConstant (const Pipeline &pipeline, const void *data) const
 
template<typename T >
void setPushConstant (const Pipeline &pipeline, const T &value) const
 
MN_SYMBOL void blit (const Image::Attachment &source, const Image::Attachment &destination) const
 
MN_SYMBOL void bind (const std::shared_ptr< Pipeline > &pipeline) const
 
MN_SYMBOL void bind (uint32_t set_index, const std::shared_ptr< Pipeline > &pipeline, const std::shared_ptr< Descriptor > &descriptor) const
 
MN_SYMBOL void draw (uint32_t vertices, uint32_t instances=1) const
 
MN_SYMBOL void draw (const std::shared_ptr< Buffer > &buffer, uint32_t instances=1) const
 
MN_SYMBOL void draw (const std::shared_ptr< Mesh > &mesh, uint32_t instances=1) const
 
MN_SYMBOL void drawIndexed (const std::shared_ptr< Buffer > &buffer, const std::shared_ptr< TypeBuffer< uint32_t >> &indices, uint32_t instances=1, uint32_t index_offset=0, std::optional< std::size_t > index_count=std::nullopt) const
 
MN_SYMBOL void draw (const std::shared_ptr< Pipeline > &pipeline, uint32_t vertices, uint32_t instances=1) const
 
MN_SYMBOL void draw (const std::shared_ptr< Pipeline > &pipeline, const std::shared_ptr< Buffer > &buffer, uint32_t instances=1) const
 
MN_SYMBOL void draw (const std::shared_ptr< Pipeline > &pipeline, const std::shared_ptr< Mesh > &mesh, uint32_t instances=1) const
 
MN_SYMBOL void drawIndexed (const std::shared_ptr< Pipeline > &pipeline, const std::shared_ptr< Buffer > &buffer, const std::shared_ptr< TypeBuffer< uint32_t >> &indices, uint32_t instances=1) const
 

Public Attributes

const uint32_t image_index
 
std::shared_ptr< Imageimage
 

Friends

struct Window
 

The documentation for this struct was generated from the following file: