blob: 81a660371fabf6431a0b73e6e55853e85355bb9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
#include "ScopedResource.hpp"
#include <glad/glad.h>
struct OGLShaderDeleter {
static void DeleteObject(GLuint id) { glDeleteShader(id); }
};
struct OGLShaderProgramDeleter {
static void DeleteObject(GLuint id) { glDeleteProgram(id); }
};
using OGLShader = ScopedResource<GLuint, OGLShaderDeleter, 0>;
using OGLShaderProgram = ScopedResource<GLuint, OGLShaderProgramDeleter, 0>;
|