Exemple #1
0
void TestStruct() {
    S *s = new S();
    s->setA();
    s->setB();
    s->setC();

    UseS(s);

    delete s;
}
Exemple #2
0
void Ortho(int width, int height, float r, float g, float b, float a)
{
	Shader* s;
	CHECKGLERROR();
	UseS(SH_ORTHO);
	s = g_sh+g_curS;
	glUniform1f(s->slot[SSLOT_WIDTH], (float)width);
	glUniform1f(s->slot[SSLOT_HEIGHT], (float)height);
	glUniform4f(s->slot[SSLOT_COLOR], r, g, b, a);
	g_currw = width;
	g_currh = height;
	CHECKGLERROR();
}