- dnload writeup
- Magic Global Offset Table (GOT) slot entries: http://users.eecs.northwestern.edu/%7Ekch479/docs/notes/linking.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from ctypes import* | |
u=CDLL("libc.so.6") | |
c=CDLL("libclutter-1.0.so.0") | |
l=CDLL("libgobject-2.0.so.0") | |
def t(i,*b):i.restype=c_void_p;i.argtypes=[c_void_p]*len(b);return i(*b) | |
t(c.clutter_init) | |
g=t(c.clutter_stage_new) | |
_=t(c.clutter_shader_effect_new,1) | |
t(c.clutter_shader_effect_set_shader_source,_,b"void main(){cogl_color_out=vec4(cogl_tex_coord_in[0].xyx,1.);}") |
THIS IS OUTDATED, USE THE DOCUMENT HERE INSTEAD!
An implementation can be found here.