AftGangAglay Documentation


setflag

New in 2.2.0

Parameters

Parameter Type Description
fl int The draw flags to apply.

Return Value

N/A

Description

Sets flags for draw operations, bitor'd together.

Flag

Name Description
BACKFACE Enable backface culling on geometry
BLEND Enable blending
FOG Enable fog
TEXTURE Enable texture sampling
LIGHTING Enable lights and lighting calculations
DEPTH Enable depth testing

Example

import agan

class game():
	def create(self):
		fl = [ agan.DEPTH, agan.TEXTURE, agan.LIGHTING ]
		agan.setflag(agan.bitor(fl))
		return self
	#
	def update(self):
		pass
	#
	def close(self):
		pass