]> git.lizzy.rs Git - dragonblocks3d.git/blob - src/dragonblocks/texture.hpp
Frustum & Backface Culling
[dragonblocks3d.git] / src / dragonblocks / texture.hpp
1 #pragma once
2
3 #include <string>
4 #include "gl.hpp"
5
6 namespace dragonblocks
7 {
8         class Texture
9         {
10                 public:
11                 static bool mipmap;
12                 static bool bilinear_filter;
13                 
14                 static void initArgs();
15                 
16                 void bind() const;
17                 void load(const std::string &);
18                 Texture() = default;
19                 Texture(const Texture &) = default;
20                 
21                 private:
22                 static GLenum min_filter, mag_filter;
23                 
24                 GLuint id;
25         };
26 }