… | |
… | |
212 | double t = SvNV (*hv_fetch (hv, "t", 1, 1)); |
212 | double t = SvNV (*hv_fetch (hv, "t", 1, 1)); |
213 | int name = SvIV (*hv_fetch (hv, "name", 4, 1)); |
213 | int name = SvIV (*hv_fetch (hv, "name", 4, 1)); |
214 | |
214 | |
215 | if (items < 5) |
215 | if (items < 5) |
216 | { |
216 | { |
217 | w = SvNV (*hv_fetch (hv, "width", 5, 1)); |
217 | w = SvNV (*hv_fetch (hv, "w", 1, 1)); |
218 | h = SvNV (*hv_fetch (hv, "height", 6, 1)); |
218 | h = SvNV (*hv_fetch (hv, "h", 1, 1)); |
219 | } |
219 | } |
220 | |
220 | |
221 | glBindTexture (GL_TEXTURE_2D, name); |
221 | glBindTexture (GL_TEXTURE_2D, name); |
222 | glBegin (GL_QUADS); |
222 | glBegin (GL_QUADS); |
223 | glTexCoord2d (0, 0); glVertex2d (x , y ); |
223 | glTexCoord2d (0, 0); glVertex2d (x , y ); |