restructure work
This commit is contained in:
parent
64c8492e5c
commit
e01595e155
3424 changed files with 492 additions and 1696851 deletions
|
|
@ -1,3 +1,37 @@
|
|||
//
|
||||
// Created by claire on 28/06/2026.
|
||||
//
|
||||
|
||||
#include <iostream>
|
||||
#include <glad/glad.h>
|
||||
|
||||
namespace game
|
||||
{
|
||||
bool Init()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void PreFrame()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Render()
|
||||
{
|
||||
glClearColor(0.2f, 0.3f, 0.3f, 1.0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void PostFrame()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Cleanup()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
15
game/game.h
15
game/game.h
|
|
@ -1,9 +1,14 @@
|
|||
|
||||
namespace Game {
|
||||
void Init();
|
||||
#pragma once
|
||||
|
||||
void Update();
|
||||
namespace game
|
||||
{
|
||||
bool Init();
|
||||
|
||||
void PreFrame();
|
||||
void Render();
|
||||
void PreRender();
|
||||
void PostRender();
|
||||
void Update();
|
||||
void PostFrame();
|
||||
|
||||
void Cleanup();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue