Adjusts the texture size to the graphic card in case it does not support different texture sizes. Old graphic adapters supports only texture sizes of the power of 2.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public static bool AdjustTextureSize(
	ref int w,
	ref int h
)

Parameters

w
Type: System..::.Int32 %
Preferred texture width.
h
Type: System..::.Int32 %
Preferred texture height.

Return Value

Returns trueTruetruetrue (True in Visual Basic) if the texture size was adjusted.

See Also