Nigel
4355a12b9a
PART 1: - Added a Renderer class - Added a Application interface - Added a RenderPass interface - Added multiple RenderPass classes - Added a Window class - Moved Shaders into a Shader folder The idea behind this redesign is to make more abstractions. These abstraction are then supposedly going to make it easier to focus on the next couple tutorials main elements
16 lines
321 B
C++
16 lines
321 B
C++
#pragma once
|
|
#include <string>
|
|
#include "shader.h"
|
|
|
|
class RenderPass {
|
|
public :
|
|
virtual void Render() = 0;
|
|
virtual void Setup() = 0;
|
|
|
|
RenderPass(const std::string& name, Shader& shader) : m_name(name), m_shader(shader) {}
|
|
~RenderPass(){}
|
|
|
|
protected:
|
|
const std::string& m_name;
|
|
Shader& m_shader;
|
|
}; |