SimpleGL
1.1.0
A framework for platform independent rendering
|
This class should get extended by the user when using the Vulkan backend. More...
#include <application_vk.hpp>
Public Member Functions | |
ApplicationVK (int width=640, int height=480, std::string title="SimpleGL Application (Vulkan backend)") | |
Creates a new application. More... | |
~ApplicationVK (void) | |
Destroys the application. More... | |
void | clear () override |
This method clears the color and depth buffers. More... | |
void | dispose () override |
Disposes the application. More... | |
Public Member Functions inherited from sgl::Application | |
~Application (void) | |
Destroys the application. More... | |
void | run () |
Starts the application. More... | |
void | init () |
Initializes the application. More... | |
void | mainLoop () |
The main loop is a fixed timestep loop. More... | |
virtual void | handleEvents (std::vector< Event * > events)=0 |
This method is intended to handle events like user input. More... | |
virtual void | updateScene (float delta)=0 |
This method is intended to update objects of the application. More... | |
virtual void | renderScene (float alpha)=0 |
This method is intended to used for drawing the scene. More... | |
Protected Attributes | |
BatchVK * | batch |
The batch of this application. More... | |
ShaderModuleManager * | shaderModuleManager |
The shader module manager of this application. More... | |
TextureImageManager * | textureImageManager |
The texture image manager of this application. More... | |
Protected Attributes inherited from sgl::Application | |
bool | running |
Tells if the application is running. More... | |
int | targetUps |
Stores the desired UPS. More... | |
int | targetFps |
Stores the desired FPS. More... | |
Window * | window |
The window of this application. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from sgl::Application | |
Application (void) | |
Initializes a new application. More... | |
This class should get extended by the user when using the Vulkan backend.
Definition at line 27 of file application_vk.hpp.
sgl::ApplicationVK::ApplicationVK | ( | int | width = 640 , |
int | height = 480 , |
||
std::string | title = "SimpleGL Application (Vulkan backend)" |
||
) |
Creates a new application.
width | The width of the window, default is 640 pixel. |
height | The height of the window, default is 480 pixel. |
title | The title of the window, default is "SimpleGL Application". |
Definition at line 14 of file application_vk.cpp.
sgl::ApplicationVK::~ApplicationVK | ( | void | ) |
Destroys the application.
Definition at line 21 of file application_vk.cpp.
|
overridevirtual |
This method clears the color and depth buffers.
Implements sgl::Application.
Definition at line 29 of file application_vk.cpp.
|
overridevirtual |
Disposes the application.
Reimplemented from sgl::Application.
Definition at line 33 of file application_vk.cpp.
|
protected |
The batch of this application.
Definition at line 31 of file application_vk.hpp.
|
protected |
The shader module manager of this application.
Definition at line 34 of file application_vk.hpp.
|
protected |
The texture image manager of this application.
Definition at line 37 of file application_vk.hpp.