Re: [AD] No more video/system bitmaps |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2005-05-31, Robert Ohannessian <ROhannessian@xxxxxxxxxx> wrote:
>
> I propose this modification to al_create_bitmap(): Remove the "type"
> parameter, and add a "usage" parameter. The usage parameter is logically
> an enum from the list {AL_STATIC_DRAW, AL_STATIC_READ, AL_DYNAMIC_DRAW,
> AL_DYNAMIC_READ, AL_STREAM_DRAW, AL_STREAM_READ}.
>
> "Static" means the image does not change after being defined.
> "Dynamic" means the image does change often.
> "Stream" means the image will not be used often after it was defined
> (for example, for temporary bitmaps).
Please define what you mean by "define", especially _when_ a bitmap
becomes defined.
(Only glanced at it before going to sleep: I like the idea as it seems
analogous with the direction we've gone with the display API. Thomas
Harte/Gillius's acquire_bitmap proposals also come to mind.)
Peter