SimpleGL
1.1.0
A framework for platform independent rendering
Main Page
Namespaces
Classes
Files
File List
File Members
Backends
Vulkan
src
application_vk.cpp
Go to the documentation of this file.
1
8
#include "
SimpleGL_vk/application_vk.hpp
"
9
10
#include "
SimpleGL_vk/glfw_window_vk.hpp
"
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
();
17
shaderModuleManager
=
new
ShaderModuleManager
();
18
textureImageManager
=
new
TextureImageManager
();
19
}
20
21
ApplicationVK::~ApplicationVK
(
void
) {
22
/* Delete manager */
23
delete
shaderModuleManager
;
24
25
/* Delete batch */
26
delete
batch
;
27
}
28
29
void
ApplicationVK::clear
() {
30
/* Nothing to do here */
31
}
32
33
void
ApplicationVK::dispose
() {
34
shaderModuleManager
->
clear
();
35
textureImageManager
->
clear
();
36
}
37
}
sgl::ApplicationVK::batch
BatchVK * batch
The batch of this application.
Definition:
application_vk.hpp:31
sgl::ShaderModuleManager
This class provides methods for managing shader modules.
Definition:
manager_vk.hpp:27
sgl::Application::window
Window * window
The window of this application.
Definition:
application.hpp:38
sgl::WindowVK
This class provides a GLFW window with a Vulkan instance.
Definition:
glfw_window_vk.hpp:29
sgl::TextureImageManager::clear
void clear() override
Removes all texture images and disposes them.
Definition:
manager_vk.cpp:77
sgl::ApplicationVK::shaderModuleManager
ShaderModuleManager * shaderModuleManager
The shader module manager of this application.
Definition:
application_vk.hpp:34
sgl
Generic namespace for the SimpleGL framework.
Definition:
application.hpp:18
application_vk.hpp
sgl::ApplicationVK::~ApplicationVK
~ApplicationVK(void)
Destroys the application.
Definition:
application_vk.cpp:21
sgl::ApplicationVK::ApplicationVK
ApplicationVK(int width=640, int height=480, std::string title="SimpleGL Application (Vulkan backend)")
Creates a new application.
Definition:
application_vk.cpp:14
sgl::ApplicationVK::dispose
void dispose() override
Disposes the application.
Definition:
application_vk.cpp:33
sgl::ApplicationVK::textureImageManager
TextureImageManager * textureImageManager
The texture image manager of this application.
Definition:
application_vk.hpp:37
sgl::BatchVK
This class is used for batch rendering with Vulkan.
Definition:
batching_vk.hpp:31
sgl::ApplicationVK::clear
void clear() override
This method clears the color and depth buffers.
Definition:
application_vk.cpp:29
sgl::Application
This is the base class for an application.
Definition:
application.hpp:25
glfw_window_vk.hpp
sgl::TextureImageManager
This class provides methods for managing texture images.
Definition:
manager_vk.hpp:57
sgl::ShaderModuleManager::clear
void clear() override
Removes all shader modules and disposes them.
Definition:
manager_vk.cpp:30
Generated on Sat Jun 30 2018 21:55:23 for SimpleGL by
1.8.11