aboutsummaryrefslogtreecommitdiff
path: root/include/RenderBackend/OpenGL/DeviceFrame.hpp
blob: 12e578ab907e9739fd89c00741b0be9f2ff61227 (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
#pragma once

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

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