wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::gui::Instance Class Reference

#include <instance.hpp>

Collaboration diagram for wren::gui::Instance:

Public Member Functions

void paint (const Element &root)
void flush (const ::vk::CommandBuffer &cmd, const vulkan::Device &device, VmaAllocator allocator)
void set_window_size (const math::Vec2f &window_size)

Private Attributes

math::Vec2f window_size_
std::vector< Vertex > vertices_ {}
std::vector< std::int16_t > indices_ {}
std::shared_ptr< vk::Buffer > index_buffer_
std::shared_ptr< vk::Buffer > vertex_buffer_

Member Function Documentation

◆ flush()

void wren::gui::Instance::flush ( const ::vk::CommandBuffer & cmd,
const vulkan::Device & device,
VmaAllocator allocator )
Here is the call graph for this function:

◆ paint()

void wren::gui::Instance::paint ( const Element & root)

◆ set_window_size()

void wren::gui::Instance::set_window_size ( const math::Vec2f & window_size)
inline

Member Data Documentation

◆ index_buffer_

std::shared_ptr<vk::Buffer> wren::gui::Instance::index_buffer_
private

◆ indices_

std::vector<std::int16_t> wren::gui::Instance::indices_ {}
private

◆ vertex_buffer_

std::shared_ptr<vk::Buffer> wren::gui::Instance::vertex_buffer_
private

◆ vertices_

std::vector<Vertex> wren::gui::Instance::vertices_ {}
private

◆ window_size_

math::Vec2f wren::gui::Instance::window_size_
private

The documentation for this class was generated from the following files: