forked from pupil-labs/cygl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.pxd
36 lines (26 loc) · 944 Bytes
/
utils.pxd
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
from glew cimport *
from libcpp.vector cimport vector
cdef class RGBA:
cdef public float r,g,b,a
cpdef init()
cpdef draw_polyline(verts,float thickness=*,RGBA color=*,line_type =*)
cpdef draw_polyline_norm(verts,float thickness=*,RGBA color=*,line_type =*)
cpdef draw_points(points,float size=*,RGBA color=*,float sharpness=*)
cpdef draw_circle(center_position=*,float radius=*,float stroke_width=*, RGBA color=*,float sharpness=*)
cpdef draw_points_norm(points,float size=*,RGBA color=*,float sharpness=*)
ctypedef struct fbo_tex_id:
GLuint fbo_id
GLuint tex_id
cdef class Render_Target:
cdef fbo_tex_id fbo_tex
cdef class Named_Texture:
cdef GLuint texture_id
cdef bint use_yuv_shader
cdef class Sphere:
cdef GLuint vertex_buffer_id
cdef GLuint index_buffer_id
cdef int vertex_buffer_size
cdef int index_buffer_size
cdef int indices_amount
cpdef push_ortho(int w,int h)
cpdef pop_ortho()