lace_opengl_0.1.0_672a6415/source/platform/osmesa/private/thin/osmesa_c-binding.ads

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C;
with Interfaces.C.Strings;
with osmesa_c.Pointers;
with Swig;
with Swig.Pointers;
with Interfaces.C;

package osmesa_c.Binding is

   function OSMesaCreateContext
     (format    : in osmesa_c.GLenum;
      sharelist : in osmesa_c.OSMesaContext) return osmesa_c.OSMesaContext;

   function OSMesaCreateContextExt
     (format      : in osmesa_c.GLenum;
      depthBits   : in osmesa_c.GLint;
      stencilBits : in osmesa_c.GLint;
      accumBits   : in osmesa_c.GLint;
      sharelist   : in osmesa_c.OSMesaContext) return osmesa_c.OSMesaContext;

   procedure OSMesaDestroyContext (ctx : in osmesa_c.OSMesaContext);

   function OSMesaMakeCurrent
     (ctx      : in osmesa_c.OSMesaContext;
      buffer   : in Swig.void_ptr;
      the_type : in osmesa_c.GLenum;
      width    : in osmesa_c.GLsizei;
      height   : in osmesa_c.GLsizei) return osmesa_c.GLboolean;

   function OSMesaGetCurrentContext return osmesa_c.OSMesaContext;

   procedure OSMesaPixelStore
     (pname : in osmesa_c.GLint;
      value : in osmesa_c.GLint);

   procedure OSMesaGetIntegerv
     (pname : in osmesa_c.GLint;
      value : in osmesa_c.Pointers.GLint_Pointer);

   function OSMesaGetDepthBuffer
     (c             : in osmesa_c.OSMesaContext;
      width         : in osmesa_c.Pointers.GLint_Pointer;
      height        : in osmesa_c.Pointers.GLint_Pointer;
      bytesPerValue : in osmesa_c.Pointers.GLint_Pointer;
      buffer : in Swig.Pointers.void_ptr_Pointer) return osmesa_c.GLboolean;

   function OSMesaGetColorBuffer
     (c      : in osmesa_c.OSMesaContext;
      width  : in osmesa_c.Pointers.GLint_Pointer;
      height : in osmesa_c.Pointers.GLint_Pointer;
      format : in osmesa_c.Pointers.GLint_Pointer;
      buffer : in Swig.Pointers.void_ptr_Pointer) return osmesa_c.GLboolean;

   function OSMesaGetProcAddress
     (funcName : in Interfaces.C.Strings.chars_ptr) return osmesa_c.OSMESAproc;

   procedure OSMesaColorClamp (enable : in osmesa_c.GLboolean);

   procedure OSMesaPostprocess
     (osmesa       : in osmesa_c.OSMesaContext;
      filter       : in Interfaces.C.Strings.chars_ptr;
      enable_value : in Interfaces.C.unsigned);

private

   pragma Import (C, OSMesaCreateContext, "Ada_OSMesaCreateContext");
   pragma Import (C, OSMesaCreateContextExt, "Ada_OSMesaCreateContextExt");
   pragma Import (C, OSMesaDestroyContext, "Ada_OSMesaDestroyContext");
   pragma Import (C, OSMesaMakeCurrent, "Ada_OSMesaMakeCurrent");
   pragma Import (C, OSMesaGetCurrentContext, "Ada_OSMesaGetCurrentContext");
   pragma Import (C, OSMesaPixelStore, "Ada_OSMesaPixelStore");
   pragma Import (C, OSMesaGetIntegerv, "Ada_OSMesaGetIntegerv");
   pragma Import (C, OSMesaGetDepthBuffer, "Ada_OSMesaGetDepthBuffer");
   pragma Import (C, OSMesaGetColorBuffer, "Ada_OSMesaGetColorBuffer");
   pragma Import (C, OSMesaGetProcAddress, "Ada_OSMesaGetProcAddress");
   pragma Import (C, OSMesaColorClamp, "Ada_OSMesaColorClamp");
   pragma Import (C, OSMesaPostprocess, "Ada_OSMesaPostprocess");

end osmesa_c.Binding;