X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctexture.h;h=b91f8d3ad3ded9c70c9d9ce804be5783d004ce78;hb=4180fd8871d42ead45706fba4d6ebddca977f307;hp=82fcf83abd61a1d8bf576db07db24569e49ba2ea;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bctexture.h b/cinelerra-5.1/guicast/bctexture.h index 82fcf83a..b91f8d3a 100644 --- a/cinelerra-5.1/guicast/bctexture.h +++ b/cinelerra-5.1/guicast/bctexture.h @@ -53,7 +53,7 @@ public: // and the commands are run in the right sequence to // initialize it to our preferred specifications. // The texture unit initialization requires the texture to be bound. - void bind(int texture_unit = -1); + void bind(int texture_unit, int nearest=0); // Calculate the power of 2 size for allocating textures static int calculate_texture_size(int w, int *max = 0); @@ -66,6 +66,7 @@ public: float in_x1, float in_y1, float in_x2, float in_y2, float out_x1, float out_y1, float out_x2, float out_y2); + void write_tex(const char *fn, int id); void write_tex(const char *fn); private: void clear_objects();