|
virtual void | SetClearColor (const glm::vec4 &color) override |
| Set the color to be used for clear (rendering) screen.
|
|
virtual void | Clear () override |
| Clear the rendering screen.
|
|
virtual void | BeginScene () override |
| Setting up resources for rendering of a scene.
|
|
virtual void | DrawIndexed (std::shared_ptr< VertexArray > vertexArray) override |
| Routine for drawing primitives.
|
|
virtual void | EndScene () override |
| Instructions for end of the scene.
|
|
void | AllocateCommandBuffers () |
| Allocates resources for command buffers. Command buffers are objects used to record commands which can be subsequently submitted to a device queue for execution. For instance the graphics and presentation queues.
|
|
void | RecordCommandBuffers (VkCommandBuffer commandBuffer, uint32_t imageIndex) |
|
void | SubmitCommandBuffers () |
|
void | CreateSynchronicity () |
|
void | ClearVulkanRendererAPI () |
|
void | RemoveSynchronicity () |
|
void | RecreateCommandBuffersPipelineSwapchain () |
|
void | RecreateCommandBuffersAndSwapChain () |
|
const std::vector< VkCommandBuffer > & | GetCommandBuffers () const |
|
const int & | GetMaxFramesInFlight () const |
|
const std::vector< VkFence > & | GetFences () const |
|
const std::vector< VkSemaphore > & | GetImageAvailableSemaphores () const |
|
const std::vector< VkSemaphore > | GetRenderFinishedSemaphore () const |
|
virtual | ~RendererAPI () |
| A destructor.
|
|
glm::vec4 & | GetClearColor () const |
| Getter for m_ClearColor variable.
|
|
|
enum class | API { None = 0
, OpenGL = 1
, Vulkan = 2
} |
| The rendering API used by the Engine. More...
|
|
static API | GetAPI () |
| Getter for rendering api being used.
|
|
static glm::vec4 | m_ClearColor = { 0.0f, 0.0f, 0.0f, 0.0f } |
|
◆ BeginScene()
void Karma::VulkanRendererAPI::BeginScene |
( |
| ) |
|
|
overridevirtual |
◆ Clear()
void Karma::VulkanRendererAPI::Clear |
( |
| ) |
|
|
overridevirtual |
◆ DrawIndexed()
void Karma::VulkanRendererAPI::DrawIndexed |
( |
std::shared_ptr< VertexArray > | vertexArray | ) |
|
|
overridevirtual |
◆ EndScene()
void Karma::VulkanRendererAPI::EndScene |
( |
| ) |
|
|
overridevirtual |
◆ SetClearColor()
void Karma::VulkanRendererAPI::SetClearColor |
( |
const glm::vec4 & | color | ) |
|
|
overridevirtual |
Set the color to be used for clear (rendering) screen.
- Parameters
-
color | The color to be used for clearing |
- Since
- Karma 1.0.0
Implements Karma::RendererAPI.
The documentation for this class was generated from the following files: