Perfectly Fitting a Texture

Blitz3D Forums/Blitz3D Programming/Perfectly Fitting a Texture

Okay. If I do:

somecube=CreateCube() or somecube=CreateQuad() or something
ScaleMesh somecube,2,4,1

How can I create a texture so that 0,0 on the texture will correspond to the upperleft of the front face and texturewidth,textureheight will correspond to the lowerright of the front face?