external get_state : t -> State.t = "graphics_context_get_state"