SimpleGL  1.1.0
A framework for platform independent rendering
application_vk.cpp
Go to the documentation of this file.
1 
9 
11 
12 namespace sgl {
13 
14  ApplicationVK::ApplicationVK(int width, int height, std::string title) : Application() {
15  window = new WindowVK(width, height, title);
16  batch = new BatchVK();
19  }
20 
22  /* Delete manager */
23  delete shaderModuleManager;
24 
25  /* Delete batch */
26  delete batch;
27  }
28 
30  /* Nothing to do here */
31  }
32 
36  }
37 }
BatchVK * batch
The batch of this application.
This class provides methods for managing shader modules.
Definition: manager_vk.hpp:27
Window * window
The window of this application.
Definition: application.hpp:38
This class provides a GLFW window with a Vulkan instance.
void clear() override
Removes all texture images and disposes them.
Definition: manager_vk.cpp:77
ShaderModuleManager * shaderModuleManager
The shader module manager of this application.
Generic namespace for the SimpleGL framework.
Definition: application.hpp:18
~ApplicationVK(void)
Destroys the application.
ApplicationVK(int width=640, int height=480, std::string title="SimpleGL Application (Vulkan backend)")
Creates a new application.
void dispose() override
Disposes the application.
TextureImageManager * textureImageManager
The texture image manager of this application.
This class is used for batch rendering with Vulkan.
Definition: batching_vk.hpp:31
void clear() override
This method clears the color and depth buffers.
This is the base class for an application.
Definition: application.hpp:25
This class provides methods for managing texture images.
Definition: manager_vk.hpp:57
void clear() override
Removes all shader modules and disposes them.
Definition: manager_vk.cpp:30