Lines Matching refs:texture
47 static struct Texture texture;
246 {/*texture*/
251 float offsets[] = { 1.0 / texture.width, 1.0 / texture.height,
252 0.0 , 1.0 / texture.height,
253 -1.0 / texture.width, 1.0 / texture.height,
254 1.0 / texture.width, 0.0,
256 -1.0 / texture.width, 0.0,
257 1.0 / texture.width, -1.0 / texture.height,
258 0.0 , -1.0 / texture.height,
259 -1.0 / texture.width, -1.0 / texture.height };
273 texture.x = 0;
274 texture.y = 0;
276 glGenTextures(1, &texture.id);
277 glBindTexture(GL_TEXTURE_2D, texture.id);
285 data = LoadRGBImage(filename, &texture.width, &texture.height,
286 &texture.format);
288 printf("Error: couldn't load texture image '%s'\n", filename);
292 filename, texture.width, texture.height);
294 texture.width, texture.height, 0, texture.format,
412 anchor[0] = center[0] - texture.width/2;
413 anchor[1] = center[1] - texture.height/2;
430 glVertex3f(0, texture.height, 0);
434 glVertex3f(texture.width, 0, 0);
438 glVertex3f(texture.width, texture.height, 0);