Initial commit with the chapter-0 code working.
This commit is contained in:
commit
7298568818
19 changed files with 8380 additions and 0 deletions
29
vk_engine.h
Normal file
29
vk_engine.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// vulkan_guide.h : Include file for standard system include files,
|
||||
// or project specific include files.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vk_types.h>
|
||||
|
||||
class VulkanEngine {
|
||||
public:
|
||||
|
||||
bool _isInitialized{ false };
|
||||
int _frameNumber {0};
|
||||
|
||||
VkExtent2D _windowExtent{ 1700 , 900 };
|
||||
|
||||
struct SDL_Window* _window{ nullptr };
|
||||
|
||||
//initializes everything in the engine
|
||||
void init();
|
||||
|
||||
//shuts down the engine
|
||||
void cleanup();
|
||||
|
||||
//draw loop
|
||||
void draw();
|
||||
|
||||
//run main loop
|
||||
void run();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue