This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/gleasy/shader.h

24 lines
416 B
C
Raw Permalink Normal View History

#pragma once
#include <stddef.h>
#include <GL/glew.h>
typedef GLuint gleasy_shader_t;
gleasy_shader_t /* OWNERSHIP */
gleasy_shader_new(
GLenum type,
const char* header,
size_t header_len,
const char* src,
size_t src_len
);
size_t
gleasy_shader_get_log(
gleasy_shader_t shader,
char* dst, /* when NULL, returns actual size */
size_t maxlen
);