gdkglpixmap.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. { Original file is /usr/include/gtkglext-1.0/gdk/gdkglpixmap.h }
  2. {$ifdef read_interface_types}
  3. { PGdkGLPixmap already defined in gdkgltypes.inc }
  4. TGdkGLPixmap = record
  5. parent_instance: TGObject;
  6. drawable: PGdkDrawable; {* Associated GdkPixmap *}
  7. end;
  8. PGdkGLPixmapClass = ^TGdkGLPixmapClass;
  9. TGdkGLPixmapClass = record
  10. parent_class: TGObjectClass;
  11. end;
  12. {$endif read_interface_types}
  13. {$ifdef read_interface_rest}
  14. function GDK_TYPE_GL_PIXMAP: GType;
  15. function GDK_GL_PIXMAP(anObject: Pointer): PGdkGLPixmap;
  16. function GDK_GL_PIXMAP_CLASS(klass: Pointer): PGdkGLPixmapClass;
  17. function GDK_IS_GL_PIXMAP(anObject: Pointer): boolean;
  18. function GDK_IS_GL_PIXMAP_CLASS(klass: Pointer): boolean;
  19. function GDK_GL_PIXMAP_GET_CLASS(obj: Pointer): PGdkGLPixmapClass;
  20. function gdk_gl_pixmap_get_type: GType; cdecl; external GdkGLExtLib;
  21. {*
  22. * attrib_list is currently unused. This must be set to NULL or empty
  23. * (first attribute of None). See GLX 1.3 spec.
  24. *}
  25. function gdk_gl_pixmap_new(
  26. glconfig: PGdkGLConfig;
  27. pixmap: PGdkPixmap;
  28. attrib_list: PLongInt): PGdkGLPixmap;
  29. cdecl; external GdkGLExtLib;
  30. procedure gdk_gl_pixmap_destroy(glpixmap: PGdkGLPixmap);
  31. cdecl; external GdkGLExtLib;
  32. function gdk_gl_pixmap_get_pixmap(glpixmap: PGdkGLPixmap): PGdkPixmap;
  33. cdecl; external GdkGLExtLib;
  34. {*
  35. * OpenGL extension to GdkPixmap
  36. *}
  37. function gdk_pixmap_set_gl_capability(
  38. pixmap: PGdkPixmap;
  39. glconfig: PGdkGLConfig;
  40. attrib_list: PLongInt): PGdkGLPixmap;
  41. cdecl; external GdkGLExtLib;
  42. procedure gdk_pixmap_unset_gl_capability(pixmap: PGdkPixmap);
  43. cdecl; external GdkGLExtLib;
  44. function gdk_pixmap_is_gl_capable(pixmap: PGdkPixmap): gboolean;
  45. cdecl; external GdkGLExtLib;
  46. function gdk_pixmap_get_gl_pixmap(pixmap: PGdkPixmap): PGdkGLPixmap;
  47. cdecl; external GdkGLExtLib;
  48. function gdk_pixmap_get_gl_drawable(pixmap: PGdkPixmap): PGdkGLDrawable;
  49. {$endif read_interface_rest}
  50. {$ifdef read_implementation}
  51. function GDK_TYPE_GL_PIXMAP: GType;
  52. begin
  53. GDK_TYPE_GL_PIXMAP := gdk_gl_pixmap_get_type;
  54. end;
  55. function GDK_GL_PIXMAP(anObject: Pointer): PGdkGLPixmap;
  56. begin
  57. GDK_GL_PIXMAP := PGdkGLPixmap(
  58. G_TYPE_CHECK_INSTANCE_CAST(anObject, GDK_TYPE_GL_PIXMAP));
  59. end;
  60. function GDK_GL_PIXMAP_CLASS(klass: Pointer): PGdkGLPixmapClass;
  61. begin
  62. GDK_GL_PIXMAP_CLASS := PGdkGLPixmapClass(
  63. G_TYPE_CHECK_CLASS_CAST(klass, GDK_TYPE_GL_PIXMAP));
  64. end;
  65. function GDK_IS_GL_PIXMAP(anObject: Pointer): boolean;
  66. begin
  67. GDK_IS_GL_PIXMAP := G_TYPE_CHECK_INSTANCE_TYPE(anObject, GDK_TYPE_GL_PIXMAP);
  68. end;
  69. function GDK_IS_GL_PIXMAP_CLASS(klass: Pointer): boolean;
  70. begin
  71. GDK_IS_GL_PIXMAP_CLASS := G_TYPE_CHECK_CLASS_TYPE(klass, GDK_TYPE_GL_PIXMAP);
  72. end;
  73. function GDK_GL_PIXMAP_GET_CLASS(obj: Pointer): PGdkGLPixmapClass;
  74. begin
  75. GDK_GL_PIXMAP_GET_CLASS := PGdkGLPixmapClass(
  76. G_TYPE_INSTANCE_GET_CLASS(obj, GDK_TYPE_GL_PIXMAP));
  77. end;
  78. function gdk_pixmap_get_gl_drawable(pixmap: PGdkPixmap): PGdkGLDrawable;
  79. begin
  80. gdk_pixmap_get_gl_drawable :=
  81. GDK_GL_DRAWABLE (gdk_pixmap_get_gl_pixmap (pixmap));
  82. end;
  83. {$endif read_implementation}