- I have no patience anymore to use C++ for my own projecs.
- I have learned a lot in the last year.
So I am going to rewrite an entire engine with my new ideas and knowledges here.
- Custom shaders
- Common render stuff: different render pipelines, render graph, render pass
- Tiled forward (forward+) rendering
- Fixing bags
- Also working on tools (Hash tables, strings, ...)
- Open console in the build directory.
- Run generate.bat.
- Open generated solution in MSVS.
- Press Build button.
#include "application.h"
#include "memory/memory.h"
class Scene : public REV::SceneBase
{
Scene(REV::Allocator *allocator)
: SceneBase(allocator, REV::ConstString(REV_CSTR_ARGS("DemoScene")), 1024, 36*1024)
{
}
~Scene()
{
}
virtual void OnSetCurrent() override {}
virtual void OnUnsetCurrent() override {}
virtual void OnSetResourcesData() override {}
virtual void OnUpdate() override {}
};
class Sandbox : public REV::Application
{
public:
Sandbox()
: Application(REV::ConstString(REV_CSTR_ARGS("Sandbox")),
REV::ConstString(REV_CSTR_ARGS("../../sandbox/sandbox.ini"))),
m_Scene(&m_Allocator)
{
}
~Sandbox()
{
}
REV_INLINE Scene& GetScene() { return m_Scene; }
private:
Scene m_Scene;
};
int REV_CDECL main(int argc, char **argv)
{
REV::Memory::Create(MB(512), MB(512), GB(2ui64));
Sandbox sandbox;
sandbox.Run(&sandbox.GetScene());
return 0;
}