efl/src/lib/ector/gl/ector_gl_surface.eo

41 lines
1.1 KiB
Plaintext

import ector_types;
class @beta Ector.GL.Surface extends Ector.GL.Buffer implements Ector.Surface
{
[[Ector GL surface class]]
c_prefix: ector_gl_surface;
methods {
shader_get {
[[Get shader]]
return: uint; [[Shader count]]
params {
@in flags: uint64; [[Flags]]
}
}
push {
[[Push surface to GPU]]
return: bool; [[$true on success, $false otherwise]]
params {
@in flags: uint64; [[GL flags]]
@in vertex: ptr(GLshort); [[GL vertex]]
@in vertex_count: uint; [[GL vertex count]]
@in mul_col: uint; [[Premultiplied color]]
}
}
state_define {
[[Define state]]
return: bool; [[$true on success, $false otherwise]]
params {
@in op: Efl.Gfx.Render_Op; [[Render operation]]
@in clips: array<Eina.Rect>; [[Array of @Eina.Rect clip]]
}
}
}
implements {
Ector.Surface.renderer_factory_new;
Ector.Surface.reference_point { set; }
Efl.Object.destructor;
Efl.Object.constructor;
}
}