For CL_Texture:
Code:
CL_Draw::texture(
CL_GraphicContext gc,
const CL_Rectf &rect,
const CL_Colorf &color = CL_Colorf::white,
const CL_Rectf &texture_unit1_coords = CL_Rectf(0.0, 0.0, 1.0, 1.0));
So, it will automatically be stretched by OpenGL.
Remember to use gc.set_texture(0, texture) before and gc.reset_texture(0) after.
To set the filters use: (CL_Texture)
Code:
void set_min_filter(CL_TextureFilter filter);
void set_mag_filter(CL_TextureFilter filter);
CL_Texture is very low level, where speed will be the priority.
Maybe CL_Sprite would be a better choice? http://clanlib.org/docs/clanlib-2.0....CL_Sprite.html
Bookmarks