gltemplate.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /*************************************************************************
  2. * Copyright (c) 2011 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at https://graphviz.org
  9. *************************************************************************/
  10. #pragma once
  11. /*
  12. this code is used to set up a OpenGL window and set
  13. some basic features (panning zooming and rotating)
  14. Viewport.h provides a higher level control such as drawing primitives
  15. */
  16. #ifdef _WIN32
  17. #include <windows.h>
  18. #endif
  19. #include <glcomp/opengl.h>
  20. #include <gtk/gtk.h>
  21. #include <gdk/gdkkeysyms.h>
  22. #include <gtk/gtkgl.h>
  23. #include <gdk/gdkcursor.h>
  24. gboolean expose_event(GtkWidget *widget, GdkEventExpose *event, void *data);
  25. extern GdkGLConfig *configure_gl(void);
  26. void create_window(GdkGLConfig * glconfig, GtkWidget * vbox);