Vireo  0.0
Vireo 3D Rendering Hardware Interface
Setting up the project

First, clone the following projects somewhere in your computer :

Then add a .env.cmake file containing the following variable at the root of your project template project:

set(VIREO_RHI_PROJECT_DIR "path_to_the_cloned_vireo_directory")

In the src directory creates :

Edit the MyApp.ixx interface file:

#include "Libraries.h"
export module myapp;
import app;
export class MyApp : public Application {
public:
void onInit() override;
void onRender() override;
void onResize() override;
void onDestroy() override;
}

Edit the MyApp.cpp implementation file :

#include "Libraries.h"
module myapp;
void MyApp::onInit() {
}
void MyApp::onRender() {
}
void MyApp::onResize() {
}
void MyApp::onDestroy() {
}

Edit the MyAppMain.cpp source file :

#include "Macros.h"
import myapp;
APP(std::make_shared<MyApp>(), "Hello, Vireo !", 800, 600);

Then reload the CMake project and build the myapp target.

Execute the application (from the project root directory).

On Windows it will display the graphic API selection dialog :

backend_select.png

An empty window will be displayed :

empty_window.png

Next : The Vireo class