DQBsetTextureSize
SUB

Prototype

DECLARE SUB DQBsetTextureSize (BYVAL Size)

Parameters

Size - New texture width

Returns

none

Description

Unlike the name says, DQBsetTextureSize is used to set only the width of the texture used by subsequent calls to DQBttri. The width must be specified in pixels and must be a power of 2; values that are not powers of 2 will be rounded to the previous power, so that if you give 63 the function will assume it's a 32, and if you give a 64, it'll assume it's a 64, etc... There are no limits about the height of a texture, you only have to care about the texel coordinates of the vertexes of your triangle.

Notes:

By default, the texture size is set to 64; see also DQBttri.