Initial commit.
This commit is contained in:
commit
f215bc3742
43 changed files with 2983 additions and 0 deletions
27
Client/Client.h
Normal file
27
Client/Client.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "Shared.h"
|
||||
#include "Platform/Window.h"
|
||||
|
||||
namespace Artifact {
|
||||
|
||||
/// The client class.
|
||||
class Client: public Engine<BaseSubsystem> {
|
||||
public:
|
||||
Window * window = nullptr;
|
||||
|
||||
void addDefaultSubsystems();
|
||||
void initDefault();
|
||||
/// Initializes the client. This includes opening a window, creating a WebGPU device, etc.
|
||||
void init();
|
||||
/// Runs a single iteration of the render loop.
|
||||
void render();
|
||||
/// Runs a single iteration of the tick loop.
|
||||
void tick();
|
||||
/// Runs the client.
|
||||
void run();
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue