TINYGL: implemented tglDepthFunc