I am definitely not an expert in OpenGL, but could it be just this simple (pseudo code, as your dev language not mentioned):
Code: Select all
main_func() {
while more images {
img1 = load_image()
apply_image_to_texture1()
img2 = load_image()
apply_image_to_texture2()
img2 = load_image()
apply_image_to_texture2()
update_display()
sleep(x seconds)
}
}
If you start from the hello_triangle example, could you just call the init_textures() in the beginning of the update_model() (or redraw_model()) to load the next set of images?
How does your code look like now?
Regards,
JP
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'