Exemplo n.º 1
0
void CreateShader(){
	TextureManager* TextMgr = TextureManager::Inst();
	unsigned int TexID = 1;
	GLuint texHandle;
	if (TextMgr->LoadTexture("resource//cy2.png", TexID, GL_RGB, GL_RGB, 0, 0)){
		texHandle=TextMgr->GetTextureHanle(TexID);
	}
	else{
		return;
	}
	RenderHandle = genRenderProg(texHandle);
}
Exemplo n.º 2
0
int main() {
	initGL();

	GLuint texHandle = genTexture();
	renderHandle = genRenderProg(texHandle);
	computeHandle = genComputeProg(texHandle);

	for (int i = 0; i < 1024; ++i) {
		updateTex(i);
		draw();
	}

	return 0;
}