render/state

Allows you to control OpenGL states in a really simple way. More functionality will be added to this later on, for now it is really basic

enable_depth()

Disables depth

enable_depth(): void

This method does not have any parameters

disable_depth()

Enables depth

disable_depth(): void

This method does not have any parameters

enable_blend()

Enables blending

enable_blend(): void

This method does not have any parameters

disable_blend()

Disables blending

disable_blend(): void

This method does not have any parameters

blend_func()

Applies the given blend function

blend_func(src_factor: int, dst_factor: int): void

Parameters

nametypedescription
src_factorintNo description
dst_factorintNo description

blend_func_separate()

Applies the given blend function

blend_func_separate(src_factor: int, dst_factor: int, src_factor_alpha: int, dst_factor_alpha: int): void

Parameters

nametypedescription
src_factorintNo description
dst_factorintNo description
src_factor_alphaintNo description
dst_factor_alphaintNo description