summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_generic/evas_ector_gl_buffer.eo
blob: 6c6bdc03b975608c7a42fbc6a38983209d698bf9 (plain) (blame)
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 (Efl.Object, Evas.Ector.Buffer, Ector.GL.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 {
            evas: Evas.Canvas; [[The current canvas]]
            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;
   }
}