Hi, this is a small suggestion: Add LoadFromResourceName like TPicture has for BGRABitmap. Also a Create(Instance...).. Is easier than ever now to store the resources with the IDE in the project options (Or that option was always there and I just noticed that recently? =) Well, no more dealing with .res or .rc files by hand.
Maybe this can be added as IBGLTexture list of constructor functions too.
There are other interesting methods in TPicture like LoadFromClipboardFormat, LoadFromLazarusResource and SaveToClipboardFormat that maybe you're interested to add too.
Maybe you already know it using it in lazpaint or other projects, is just as:
uses
LCLType
procedure TBCCustomImageButton.LoadFromBitmapResource(Resource: string; ResourceType: PChar);
var
res: TResourceStream;
begin
res := TResourceStream.Create(HInstance, Resource, ResourceType);
if BitmapOptions.Bitmap <> nil then
BitmapOptions.Bitmap.Free;
BitmapOptions.Bitmap := TBGRABitmap.Create(res);
res.Free;
end;
I don't know if the ResourceType will be other than RT_RCDATA.