I'm trying to link an use an image from the media and fill it with the shape I drew.
**The compound points is GLFloat[4][4][3]; it was quite big but this creates a square I can use bezier.
GLfloat texpts[2][2][2] = {{{0.0, 0.0}, {0.0, 1.0}},
{{1.0, 0.0}, {1.0, 1.0}}};
glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4,
0, 1, 12, 4, &compoundPoints[0][0][0]);
glMap2f(GL_MAP2_TEXTURE_COORD_2, 0, 1, 2, 2,
0, 1, 4, 2, &texpts[0][0][0]);
glEnable(GL_MAP2_TEXTURE_COORD_2);
glEnable(GL_MAP2_VERTEX_3);
glMapGrid2f(20, 0.0, 1.0, 20, 0.0, 1.0);
//Then I try to bind it the texture I got from the parameter and load the texImage2D
glBindTexture(GL_TEXTURE_2D, imageTexture);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,
GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA_FLOAT16_APPLE, [linkedTexture width], [linkedTexture height], 0, GL_RGB, GL_UNSIGNED_BYTE, 0);
When I do this, I get a square with weird pictures.
Also is there an example included in FxPlug that shows how to create a published parameter that can be carried over to FCPX?
Thanks!