summaryrefslogtreecommitdiff
path: root/src/opengl/bind/a.bind
blob: 41eef5642a11a700423b13bffa7d6a7ac217c491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
int glActiveShaderProgram_bind(lua_State *L)
{
	GLuint pipeline = luaL_checkinteger(L, 1);
	GLuint program = luaL_checkinteger(L, 2);
	glActiveShaderProgram(pipeline, program);
	return 0;
}


int glActiveTexture_bind(lua_State *L)
{
	GLenum texture = luaL_checkinteger(L, 1);
	glActiveTexture(texture);
	return 0;
}


int glAttachShader_bind(lua_State *L)
{
	GLuint program = luaL_checkinteger(L, 1);
	GLuint shader = luaL_checkinteger(L, 2);
	glAttachShader(program, shader);
	return 0;
}