logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

al_set_new_bitmap_wrap - Allegro 5 API

Description

       Sets the texture wrapping settings for newly created bitmaps (on the current thread).  Typically you take
       advantage  of  this feature either via the primitives addon (see al_draw_prim(3alleg5) and others) or via
       custom shaders (see ALLEGRO_SHADER(3alleg5)).

              Note: In the context of custom shaders, Direct3D  and  OpenGL  have  different  granularities  for
              controlling  this  setting.   Direct3D  sets  wrapping  setting for each sampler separately, while
              OpenGL sets it per-texture.  This interacts particularly poorly with the  primitives  addon  which
              (for backwards compatibility) alters the wrapping setting.  To minimize this issue, use a wrapping
              setting that’s not ALLEGRO_BITMAP_WRAP_DEFAULT.

Name

       al_set_new_bitmap_wrap - Allegro 5 API

See Also

ALLEGRO_BITMAP_WRAP(3alleg5)

Allegro reference manual                                                         al_set_new_bitmap_wrap(3alleg5)

Since

       5.2.8

              [UnstableAPI]: This is an experimental feature.

Synopsis

              #include <allegro5/allegro.h>

              void al_set_new_bitmap_wrap(ALLEGRO_BITMAP_WRAP u, ALLEGRO_BITMAP_WRAP v)

See Also