Files
tyra-linux/tutorials/04-de_dust2/inc/tutorial_04.hpp
T
2022-08-22 23:23:51 +02:00

45 lines
865 B
C++

/*
# _____ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2022, tyra - https://github.com/h4570/tyra
# Licensed under Apache License 2.0
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
*/
#pragma once
#include <tyra>
#include <memory.h>
#include "./camera.hpp"
namespace Tyra {
class Tutorial04 : public Game {
public:
Tutorial04(Engine* engine);
~Tutorial04();
void init();
void loop();
private:
void loadMesh();
Engine* engine;
Camera camera;
/** 3D pipeline used for rendering static meshes */
StaticPipeline stapip;
/** Options for static pipeline */
StaPipOptions renderOptions;
/** Mesh with de_dust2 */
std::unique_ptr<StaticMesh> mesh;
};
} // namespace Tyra