Hi Perturbatio,
Thanks for the response.
This is what I'm after (soggyp, sorry if it answers your query... I'll open another post if needed).
The texture is resized to fit the new image.
Thanks for the response.
This is what I'm after (soggyp, sorry if it answers your query... I'll open another post if needed).
SetGraphicsDriver GLMax2DDriver() Graphics 640,480,0 img1:TImage = LoadImage("beach1.png") '64*64 img2:TPixmap = LoadPixmap("bmax160.png") '160*160 texture_name:Int = bglTexFromPixmap(img2) Cls DrawImage img1,100,100 DrawPixmap img2,100,300 glBindTexture GL_TEXTURE_2D, texture_name DrawImage img1,300,100 Flip WaitKey
The texture is resized to fit the new image.