38 lines
642 B
D
38 lines
642 B
D
public import includes;
|
|
import std.stdio;
|
|
import aliases;
|
|
import core.memory;
|
|
import platform;
|
|
import game;
|
|
import util;
|
|
import core.simd;
|
|
import math;
|
|
import core.stdc.string : memcpy;
|
|
|
|
// TODO:
|
|
// 1. Remove bindless (informed to be perf death)
|
|
// 2. Set up VK_AMD_shader_info
|
|
// 3. Determine how to better handle inputs
|
|
// 4. Make assets loaded from the disk in debug mode
|
|
// 5. Set up multisampling
|
|
|
|
void main(string[] argv)
|
|
{
|
|
PlatformWindow window = CreateWindow("Video Game", 1920, 1080);
|
|
Game g = InitGame(&window);
|
|
|
|
while (true)
|
|
{
|
|
HandleEvents(&window);
|
|
if (window.close)
|
|
{
|
|
break;
|
|
}
|
|
|
|
Cycle(&g);
|
|
}
|
|
|
|
Destroy(&g);
|
|
}
|
|
|