目录

HcSetResolution

Method

HcErrorCode HcSetResolution(struct HiCulling *obj, unsigned int width, unsigned int height)

设置depth buffer的分辨率。此函数被调用后,会立即执行一次HcClearBuffer,并且之前的分辨率将不再适用。

Parameters

Name

Description

obj

用于执行软件遮挡剔除的HiCulling对象。

width

以像素为单位描述的depth buffer的宽度,必须是2的倍数。

height

以像素为单位描述的depth buffer的高度,必须是2的倍数。

Returns

Type

Description

HcErrorCode

错误码,用于描述错误原因。