Example #1
0
//delete the shape from the render list
func UnRegisterForRender(ent entity.Entity) {
	delete(RenderEntity, ent.Id())
}
Example #2
0
//allow a shape to be drawn on the screen
func RegisterForRender(ent entity.Entity) {
	//only adds to the list if
	if _, found := RenderEntity[ent.Id()]; !found {
		RenderEntity[ent.Id()] = ent
	}
}