Function setOpenglEnabled

call on app initialization if OpenGL support is detected

void setOpenglEnabled(
  bool enabled = true
);