summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_generic/evas_ector_gl_buffer.eo
blob: 7830416db58f3598890069fc85c01b0b70a43e6c (plain)
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
class Evas.Ector.GL.Buffer extends Ector.GL.Buffer implements Evas.Ector.Buffer
{
   [[An Ector GL buffer capable of being mapped, drawn and rendered to.

     Potentially very inefficient (may rely on glReadPixels).
   ]]
   methods {
      gl_buffer_prepare {
         [[Set the main properties to create a gl buffer.]]
         params {
            engine: void_ptr; [[The current canvas engine]]
            w: int; [[Width]]
            h: int; [[Height]]
            cspace: Efl.Gfx.Colorspace; [[Alpha or RGBA]]
            flags: Ector.Buffer.Flag; [[Required buffer capabilities
                                        (map/draw/render, etc...)]]
         }
      }
   }
   constructors {
      .gl_buffer_prepare;
   }
   implements {
      Efl.Object.finalize;
      Efl.Object.destructor;
      Evas.Ector.Buffer.drawable_image_get;
      Evas.Ector.Buffer.render_image_get;
      Evas.Ector.Buffer.engine_image_release;
      Ector.Buffer.size { get; }
      Ector.Buffer.cspace { get; }
      Ector.Buffer.flags { get; }
      Ector.Buffer.map;
      Ector.Buffer.unmap;
   }
}