I found a GUI library called library two days ago, and it's here.
librocket
Then I build the DX sample, looks like that:
{"name":"608507","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/8\/080dbc5585b6cafe8029c9f486741556.png","w":1030,"h":764,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/8\/080dbc5585b6cafe8029c9f486741556"}
Now I try to write an allegro render, I got that:
.....
==================================================================================
Well, now i'm succeeded.
but i don't know why.
The font texture gen function are absolutely wrong, but it looks like works fine.I don't know why, it just works.
↓↓↓
bool RocketAllegroRenderer::GenerateTexture(...)
And it's my codes:
https://www.allegro.cc/files/attachment/608519
This is just a guess, but I bet your transform is wrong in some way.
Maybe al_draw_indexed_prim call has problem?
Another opengl render here:
opengl
I think my codes did same work.
I'm a bit confused at what the problem is here... the letters appear to be placed in the right spot, and the only issue is that they have the wrong background and for whatever reason you're rendering only half the text. Maybe you're loading your textures incorrectly? The code you're using in that .rar certainly seems incorrect:
You probably want to be locking with ALLEGRO_PIXER_FORMAT_RGBA_8888 format. Also, the indices you use when copying over data seem to be wrong.