vadgl.gl3

Undocumented in source.

Members

Aliases

get_param
alias get_param(GLParam p) = get_param_!p
Undocumented in source.

Functions

get_info_log
GLResult!string get_info_log(const(T) self)

Call glGet{Program|Shader}InfoLog and return result as a string

get_param
GLError get_param(const(Shader) self, GLParam param, int val)
Undocumented in source. Be warned that the author may not have intended to support it.
get_param
GLError get_param(const(Program) self, GLParam param, int val)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_attach_shader
GLResult!void gl_attach_shader(uint program_id, uint shader_id)

Wrapper to glCreateShader

gl_buffer_data
GLResult!void gl_buffer_data(GLenum target, GLsizeiptr size, const(void*) data, GLenum usage)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_buffer_sub_data
GLResult!void gl_buffer_sub_data(GLenum target, GLintptr offset, GLsizeiptr size, const(void*) data)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_clear
GLResult!void gl_clear(GLbitfield mask)

Wrapper to glClear

gl_clear_color
void gl_clear_color(float r, float g, float b, float a)

Wrapper to glClearColor

gl_compile_shader
GLResult!void gl_compile_shader(uint id)

Wrapper to glCreateShader

gl_create_program
uint gl_create_program()

Wrapper to glCreateShader

gl_create_shader
GLResult!uint gl_create_shader(Shader.Type type)

Wrapper to glCreateShader

gl_draw_arrays_instanced
GLResult!void gl_draw_arrays_instanced(GLenum mode, int first, int count, int prim_count)

Wrapper to glDrawArraysInstanced

gl_draw_elements_instanced
GLResult!void gl_draw_elements_instanced(GLenum mode, int count, GLType type, void* indicies_ptr, int prim_count)

Wrapper to glDrawElementsInstanced

gl_draw_range_elements
GLResult!void gl_draw_range_elements(GLenum mode, uint start, uint end, int count, GLType type, size_t offset_)

Wrapper to glDrawRangeElements

gl_enable_vertex_array_attributes
GLResult!void gl_enable_vertex_array_attributes(uint vao_id, uint[] locations)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_enable_vertex_attributes
GLResult!void gl_enable_vertex_attributes(uint[] locations)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_enable_vertex_attributes
GLResult!void gl_enable_vertex_attributes(VArrayObject vao, uint[] locations)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_link_program
GLResult!void gl_link_program(uint program_id)

Wrapper to glCreateShader

gl_set_uniform
GLResult!void gl_set_uniform(int loc, int n, T[N] v)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_set_uniform
GLResult!void gl_set_uniform(int loc, int n, T[] v)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_set_uniform
GLResult!void gl_set_uniform(int loc, T[N][] v)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_shader_source
GLResult!void gl_shader_source(uint id, int count, const(char**) strings, const(int*) lengths)

Wrapper to glCreateShader

gl_shader_source
GLResult!void gl_shader_source(uint id, const(char*) src_c_str, int length)

Wrapper to glCreateShader

gl_shader_source
GLResult!void gl_shader_source(uint id, const(char[]) src)

Wrapper to glCreateShader

gl_uniform_matrix4fv
GLResult!void gl_uniform_matrix4fv(int loc, int n, bool normlized, const(float*) mat_ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_use_program
GLResult!void gl_use_program(uint program_id)

Wrapper to glCreateShader

gl_vertex_attrib_divisor
GLResult!void gl_vertex_attrib_divisor(uint loc, uint divisor)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_vertex_attributeI_conf
GLResult!void gl_vertex_attributeI_conf(uint loc, int count, GLType type, long stride, size_t offset_)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_vertex_attribute_conf
GLResult!void gl_vertex_attribute_conf(uint loc, int count, GLType type, size_t stride, size_t offset_, bool normalized)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_with
void gl_with(T globject)

Not sure about this, may get removed later

is_program_param
bool is_program_param(GLParam param)

Returns whether param is a parameter that can be passed to glGetProgramiv

is_shader_param
bool is_shader_param(GLParam param)

Returns whether param is a parameter that can be passed to glGetShaderIv

set_uniform_mat4
GLResult!void set_uniform_mat4(int loc, int n, const(float[]) mat, bool normalized)
Undocumented in source. Be warned that the author may not have intended to support it.
set_uniform_mat4
GLResult!void set_uniform_mat4(int loc, const(float[]) mat, bool normalized)
Undocumented in source. Be warned that the author may not have intended to support it.
to_gltype
GLType to_gltype(GLenum type)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

MAX_GL_VARIABLE_NAME
enum MAX_GL_VARIABLE_NAME;
Undocumented in source.

Static functions

gl_draw_arrays
GLResult!void gl_draw_arrays(GLenum mode, uint first, int count)

Wrapper to glDrawArrays

gl_draw_elements
GLResult!void gl_draw_elements(GLenum mode, int count, GLType type, size_t indices)

Wrapper to glDrawElements

gl_get_attribute_location
GLResult!int gl_get_attribute_location(string name, int program_id)
Undocumented in source. Be warned that the author may not have intended to support it.
gl_get_uniform_location
GLResult!int gl_get_uniform_location(uint program_id, const(char*) name)

Wrapper to glGetUniformLocation

gl_get_uniform_location
GLResult!int gl_get_uniform_location(uint program_id, string name)

Wrapper to glGetUniformLocation

Structs

GLAttributeInfo
struct GLAttributeInfo
Undocumented in source.
GLUniform
struct GLUniform

Abstraction over uniforms

Program
struct Program
Undocumented in source.
Shader
struct Shader

Abstraction over shader

VArrayObject
struct VArrayObject
Undocumented in source.
VBufferObject
struct VBufferObject
Undocumented in source.

Templates

gl_call
template gl_call(alias fnc)

Run OpenGL function and log it on version VADGL_DebugGLCalls Use gl_wrap instead for error handling.

gl_wrap
template gl_wrap(alias fnc_)

Run opengl function fnc_ and check for OpenGL errors

glattribute
template glattribute(T)
Undocumented in source.
to_gltype
template to_gltype(T)
Undocumented in source.

Variables

checkGLCalls
enum bool checkGLCalls;
Undocumented in source.
checkGLCalls
enum bool checkGLCalls;
Undocumented in source.
checkGLCalls
enum bool checkGLCalls;
Undocumented in source.
checkGLCalls
enum bool checkGLCalls;
Undocumented in source.

Meta