18 lines
218 B
C++
18 lines
218 B
C++
#pragma once
|
|
|
|
#include "GL/glew.h"
|
|
|
|
namespace zgl
|
|
{
|
|
struct shader_handle
|
|
{
|
|
constexpr bool operator==(const shader_handle&) const = default;
|
|
|
|
constexpr bool valid() const
|
|
{
|
|
return id != 0;
|
|
}
|
|
|
|
GLuint id{ 0 };
|
|
};
|
|
} |