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);
}