Program

Undocumented in source.

Constructors

this
this(string program_name, int program_id, bool created)
Undocumented in source.

Members

Functions

attach
GLResult!void attach(Args shaders)

attach shaders to Program

get_uniform_loc
GLResult!int get_uniform_loc(string u_name)

Wrapper to gl_get_uniform_location

link
GLResult!void link()

Link shaders attached to program

prepare_and_attach
GLResult!void prepare_and_attach(Shader*[] shaders)

Compile all shaders, attach each to program link and validate program.

use
GLResult!void use()

use this Program. Use Program.use_empty() to use null program

validate
GLResult!void validate()

validate program and call get_param to check if validation was successful

Properties

id
uint id [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
is_attached
bool is_attached [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
is_created
bool is_created [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
is_linked
bool is_linked [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
is_validated
bool is_validated [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

create_program
GLResult!Program create_program(string program_name)

Creates program

use_empty
void use_empty()

Use null program. same as gl_program_use(0)

Meta