Exemplo n.º 1
0
void render_one_block(int x, int y, int mv_x, int mv_y, int xPix, int yPix,
			int x_off, int y_off, int ref,int dpb_pos)
{
  x *= 16;
  y *= 16;  
  x += x_off;
  y -= y_off;

  // Motion Vector and ref frame is stored in texcoord 0
  glTexCoord3i(mv_x, mv_y, dpb_pos);
  glVertex2f(x, y);
  glVertex2f(x, y+yPix);
  glVertex2f(x+xPix, y+yPix);
  glVertex2f(x+xPix, y);
 
}
Exemplo n.º 2
0
template< > inline void glTexCoord3< int >			( int s, int t, int r )			{	glTexCoord3i(s,t,r);	};
Exemplo n.º 3
0
inline void glTexCoord( const GLint & s, const GLint & t, const GLint & r )		{ glTexCoord3i( s, t, r ); }
Exemplo n.º 4
0
/////////////////////////////////////////////////////////
// Render
//
void GEMglTexCoord3i :: render(GemState *state) {
	glTexCoord3i (s, t, r);
}
Exemplo n.º 5
0
M(void, glTexCoord3i, jint s, jint t, jint r) {
	glTexCoord3i(s, t, r);
}