aboutsummaryrefslogtreecommitdiff
path: root/include/RenderBackend/OpenGL/DeviceFrame.hpp
blob: f10af4c514a4a22608ed0729b65447588be20e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include "../../types.hpp"
#include "../../utils.hpp"
#include <vector>

namespace amalgine
{
    class DeviceMemory;
    class ShaderProgram;
    
    class DeviceFrame
    {
        DISABLE_COPY(DeviceFrame)
    public:
        DeviceFrame();
        ~DeviceFrame();
        
        DeviceMemory* alloc();
        void draw(ShaderProgram *shader);
    private:
        u32 vertexArrayObjectId;
        std::vector<DeviceMemory*> buffers;
    };
}