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

#include "../../types.hpp"
#include "../../utils.hpp"

namespace amalgine
{
    class Image;
    
    class Texture2D
    {
        DISABLE_COPY(Texture2D)
    public:
        // Not thread safe
        Texture2D(Image *image);
        ~Texture2D();

        i32 get_texture_id() const { return texture_id; }
    private:
        i32 texture_id;
        u32 texture_ref;
    };
}