~asac/clutk/gles-support

« back to all changes in this revision

Viewing changes to clutk/ctk-arb-asm-private.h

  • Committer: Jay Taoko
  • Date: 2010-07-22 16:33:53 UTC
  • mfrom: (237.1.2 clutk.menu-expandable)
  • Revision ID: jay.taoko@canonical.com-20100722163353-jospaxvda2ih8b4p
CtkMenuExpandable: Added an Expandable Menu. Compute correct size
and position with regard to the anchor and the special item inside the menu.

[modified]
  clutk/Makefile.am
  clutk/clutk.h
  clutk/ctk-arb-asm-private.c
  clutk/ctk-arb-asm-private.h
  clutk/ctk-layer-actor.c
  clutk/ctk-main.c
  clutk/ctk-menu.c
  clutk/ctk-menu.h
  data/shaders/Makefile.am
  data/shaders/shaders.h
  gtk-doc.make
  tests/Makefile.am
  tests/test-clutk.c
  vapi/clutk-0.3.gi
  vapi/clutk-0.3.vapi

[added]
  clutk/ctk-menu-expandable.c
  clutk/ctk-menu-expandable.h
  data/shaders/TextureColorMask.fparb
  tests/test-ctk-menu-expandable.c
  tests/test-menu-expandable.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
ShaderProgramASM* g_shExp_asm;
68
68
ShaderProgramASM* g_shMultipassBlur_asm;
69
69
ShaderProgramASM* g_shTextureMask_asm;
 
70
ShaderProgramASM* g_shTextureColorMask_asm;
70
71
 
71
72
/* ARB program */
72
73
ShaderProgramASM* ctk_create_shader_asm_program_from_source(const char* vtx_filename, const char* frag_filename);
160
161
                                    gfloat            opacity);
161
162
 
162
163
void ctk_render_masked2_texture_asm (guint             tex_id,
163
 
                                    guint             tex_mask_id,
164
 
                                    guint             texwidth,
165
 
                                    guint             texheight,
166
 
                                    ShaderProgramASM* shader,
167
 
                                    gint              window_w,
168
 
                                    gint              window_h,
169
 
                                    gint              x,
170
 
                                    gint              y,
171
 
                                    gint              w,
172
 
                                    gint              h,
173
 
                                    gfloat            opacity);
174
 
 
 
164
                                     guint             tex_mask_id,
 
165
                                     guint             texwidth,
 
166
                                     guint             texheight,
 
167
                                     ShaderProgramASM* shader,
 
168
                                     gint              window_w,
 
169
                                     gint              window_h,
 
170
                                     gint              x,
 
171
                                     gint              y,
 
172
                                     gint              w,
 
173
                                     gint              h,
 
174
                                     gfloat            opacity);
 
175
 
 
176
void ctk_render_masked3_texture_asm (guint             tex_id,
 
177
                                     guint             tex_mask_id,
 
178
                                     guint             texwidth,
 
179
                                     guint             texheight,
 
180
                                     gfloat*           tex_coord,           
 
181
                                     gfloat*           mask_coord,
 
182
                                     ShaderProgramASM* shader,
 
183
                                     gint              window_w,
 
184
                                     gint              window_h,
 
185
                                     gint              x,
 
186
                                     gint              y,
 
187
                                     gint              w,
 
188
                                     gint              h,
 
189
                                     gfloat            opacity);
 
190
 
 
191
void ctk_render_texture_part(guint texid, gint x, gint y, gint width, gint height, float u0, float v0, float u1, float v1, int window_w, int window_h);
 
192
 
 
193
void
 
194
ctk_render_texture_part_with_mask (guint          tex_id,
 
195
                                guint             tex_mask_id,
 
196
                                gint              x,
 
197
                                gint              y,
 
198
                                gint              w,
 
199
                                gint              h,
 
200
                                float u0, float v0, float u1, float v1,
 
201
                                float U0, float V0, float U1, float V1,
 
202
                                gint              window_w,
 
203
                                gint              window_h,
 
204
                                gfloat            opacity);
 
205
                                
175
206
G_END_DECLS
176
207
 
177
208
#endif /* _CTK_ASM_ARB_PRIVATE_H_ */