* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// nonzero. The created texture object is stored in *texture.
// The texture parameters are stored in the texture manager.
// The user must delete *texture when finished with it.
// The texture is bound to the current texture unit and enabled.
// Must be called from a synchronous opengl thread after enable_opengl.
static void new_texture(BC_Texture **texture,
// nonzero. The created texture object is stored in *texture.
// The texture parameters are stored in the texture manager.
// The user must delete *texture when finished with it.
// The texture is bound to the current texture unit and enabled.
// Must be called from a synchronous opengl thread after enable_opengl.
static void new_texture(BC_Texture **texture,
int colormodel);
// Bind the frame's texture to GL_TEXTURE_2D and enable it.
// If a texture_unit is supplied, the texture unit is made active
int colormodel);
// Bind the frame's texture to GL_TEXTURE_2D and enable it.
// If a texture_unit is supplied, the texture unit is made active
// initialize it to our preferred specifications.
// The texture unit initialization requires the texture to be bound.
void bind(int texture_unit = -1);
// initialize it to our preferred specifications.
// The texture unit initialization requires the texture to be bound.
void bind(int texture_unit = -1);
+ void draw_texture(
+ float in_x1, float in_y1, float in_x2, float in_y2,
+ float out_x1, float out_y1, float out_x2, float out_y2);