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); }
template< > inline void glTexCoord3< int > ( int s, int t, int r ) { glTexCoord3i(s,t,r); };
inline void glTexCoord( const GLint & s, const GLint & t, const GLint & r ) { glTexCoord3i( s, t, r ); }
///////////////////////////////////////////////////////// // Render // void GEMglTexCoord3i :: render(GemState *state) { glTexCoord3i (s, t, r); }
M(void, glTexCoord3i, jint s, jint t, jint r) { glTexCoord3i(s, t, r); }