[ create a new paste ] login | about

Link: http://codepad.org/ExjlapWg    [ raw code | fork ]

Plain Text, pasted on Mar 27:
1
2
3
4
5
6
	static GLuint texture;
	glGenTextures (1, &texture);
	glBindTexture (GL_TEXTURE_2D, texture);
	glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA, 640, 480, 0, GL_RGBA, GL_UNSIGNED_SHORT, ctx->Pixels_);
	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);


Create a new paste based on this one


Comments: