14 #include "TargetConditionals.h" 22 #define GLLIB_OPENGL_VERSION 200 23 #define GLLIB_TRILLINEAR_FILTERING 1 28 #define GLLIB_OPENGL_VERSION 320 // 210, 320, 330, 410, ... 29 #define GLLIB_TRILLINEAR_FILTERING 1 35 #define GLLIB_OPENGL_VERSION 210 // 210, 320, 330, 410, ... 36 #define GLLIB_TRILLINEAR_FILTERING 1 45 using Program_UP = std::unique_ptr<Program>;
46 using Program_SP = std::shared_ptr<Program>;
50 std::string debug_name;
56 using Texture_UP = std::unique_ptr<Texture>;
57 using Texture_SP = std::shared_ptr<Texture>;
63 using VBO_UP = std::unique_ptr<VBO>;
64 using VBO_SP = std::shared_ptr<VBO>;
67 using VAO_UP = std::unique_ptr<VAO>;
68 using VAO_SP = std::shared_ptr<VAO>;
71 using MeshPainter_UP = std::unique_ptr<MeshPainter>;
72 using MeshPainter_SP = std::shared_ptr<MeshPainter>;
74 template<
typename Vertex>
78 using FBO_UP = std::unique_ptr<FBO>;
79 using FBO_SP = std::shared_ptr<FBO>;
154 std::pair<WrapMode, WrapMode> wrap = std::make_pair(WrapMode::Clamp, WrapMode::Clamp);
162 static TexParams clamped_nearest() {
return clamped(TexFilter::Nearest); }
163 static TexParams clamped_linear() {
return clamped(TexFilter::Linear); }
164 static TexParams clamped_mipmapped() {
return clamped(TexFilter::Mipmapped); }
165 static TexParams repeated_linear() {
return repeated(TexFilter::Linear); }
166 static TexParams repeated_mipmapped() {
return repeated(TexFilter::Mipmapped); }
167 static TexParams mipmapped(WrapMode u, WrapMode v) {
return TexParams(TexFilter::Mipmapped, u, v); }
171 if (a.filter != b.filter) {
return a.filter < b.filter; }
172 if (a.wrap != b.wrap) {
return a.wrap < b.wrap; }
178 return a.filter == b.filter && a.wrap == b.wrap;
184 void check_for_gl_error(
const char* file,
int line);
187 #define CHECK_FOR_GL_ERROR gl::check_for_gl_error(__FILE__, __LINE__) 189 #define CHECK_FOR_GL_ERROR 204 #define NAME_PAINT_GROUP(name) gl::PaintGrouper LOGURU_ANONYMOUS_VARIABLE(paint_scope_)(name) 206 #define NAME_PAINT_FUNCTION() NAME_PAINT_GROUP(__PRETTY_FUNCTION__) Definition: gl_lib.hpp:419
TexFilter
Definition: gl_lib_fwd.hpp:135
ImageFormat
Definition: gl_lib_fwd.hpp:103
Definition: gl_lib_fwd.hpp:194
Definition: file_system.hpp:18
16-bit half-float, alpha channel only.
Definition: gl_lib.hpp:236
Definition: gl_lib_fwd.hpp:151
Definition: gl_lib.hpp:338
Definition: gl_lib.hpp:278
Definition: gl_lib.hpp:48
Definition: gl_lib_fwd.hpp:89
constexpr int format_size(ImageFormat format)
byte size per pixel
Definition: gl_lib_fwd.hpp:123
Definition: gl_lib.hpp:357
Definition: gl_lib_fwd.hpp:48
Usage
For VBO:s and the like.
Definition: gl_lib_fwd.hpp:82
An off-screen buffer you can draw onto.
Definition: gl_lib.hpp:499
OpenGL wrapper classes.
Definition: gl_lib.hpp:30
Definition: gl_lib_fwd.hpp:94