Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » [ Allegro5 + Win32 api ]

This thread is locked; no one can reply to it. rss feed Print
[ Allegro5 + Win32 api ]
Silver Sthan
Member #4,585
April 2004
avatar

I just wonder how to render Allegro 5 in a winapi window ? If it's possible or not.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Silver Sthan
Member #4,585
April 2004
avatar

Ok, Thanks for your reply ! ;)

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Rodolfo Lam
Member #16,045
August 2015

Well technically he could render to a memory bitmap then blit that to some sort of custom win32 control that understood the pixel format.

The performance of this process might be really bad though... Maybe not so at very small Allegro Display/Target Bitmap sizes.

Silver Sthan
Member #4,585
April 2004
avatar

I just want to make a little basic "resources" editor (example : modelsheet,sprites,map, etc) who can use allegro5 render.

But I have found the solution with SFML. The lib can integrate a view in winapi window directly.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Silver Sthan
Member #4,585
April 2004
avatar

Because I need the Gui to manipulate datas more easily.

I work on an editor who can ease me to create a file who contain tile/frame informations.

{"name":"1478352932-editor.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/6\/f6c8912cb4be3900d082185cd8ac19a2.png","w":1386,"h":897,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/6\/f6c8912cb4be3900d082185cd8ac19a2"}1478352932-editor.png

Go to: