jPCT - a 3d engine for Java > Support
blitting text and images
Melssj5:
I made a text blitter method for strings too but I guess I will better try this classes. Actually my text blitting method is working fine but my image editor is paint so the quality is too bad.
raft:
yeap, creating font textures on the fly is handy. i just barrowed the idea and some piece of code from fenggui ;)
fireside:
I copied texture pack and put it into a class, but i got an error on this line:
--- Code: --- buffer.blit(texture, entry.bounds.x, entry.bounds.y, destX, destY, entry.bounds.width, entry.bounds.height,
destWidth, destHeight, transparency, additive, color);
--- End code ---
error:
The method blit(int[], int, int, int, int, int, int, int, int, boolean) in the type FrameBuffer is not applicable for the arguments (Texture, int, int, int, int, int, int, int, int, int, boolean, Color)
raft:
as written in first message: these two classes use new FrameBuffer.blit(..) method in the upcoming 1.16 release ;)
download the 116r3, from http://www.jpct.net/download/beta/jpctapi116rc3.zip
fireside:
Very Nice. Thanks.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version