Lines Matching full:program
71 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
72 return program ? ToJBool(program->CompileAndLink()) : JNI_FALSE;
79 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
83 return ToJBool(program && program->SetUniformValue(c_key, c_value));
93 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
95 return program ? ToJObject(env, program->GetUniformValue(c_key)) : JNI_NULL;
102 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
104 if (program && inputs && output) {
125 if (!program->Process(input_frames, output_frame)) {
139 ShaderProgram* program = gl_env_ptr ? ShaderProgram::CreateIdentity(gl_env_ptr) : NULL;
140 return program ? WrapNewObjectInJava(program, env, false) : NULL;
153 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
154 if (program) {
155 program->SetSourceRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3)));
171 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
172 if (program) {
173 program->SetTargetRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3)));
182 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
183 if (program) {
184 program->SetClearsOutput(ToCppBool(clears));
193 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
194 if (program) {
195 program->SetBlendEnabled(ToCppBool(enable));
205 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
206 if (program) {
207 program->SetBlendFunc(sfactor, dfactor);
218 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
219 if (program) {
220 program->SetClearColor(r, g, b, 1.0f);
229 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
230 if (program) {
231 program->SetDrawMode(draw_mode);
241 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
242 if (program) {
243 program->SetTileCounts(x_count, y_count);
252 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
253 if (program) {
254 program->SetVertexCount(vertex_count);
261 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
262 return ToJBool(program && program->BeginDraw());
271 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
272 if (program) {
277 // Get the program variable to set
279 ProgramVar program_var = program->GetAttribute(attr_string);
283 const bool success = program->SetAttributeValues(program_var,
304 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz);
305 if (program) {
309 // Get the program variable to set
311 ProgramVar program_var = program->GetAttribute(attr_string);
315 const bool success = program->SetAttributeValues(program_var,