mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 17:28:00 +02:00
wasm improvements
This commit is contained in:
parent
17b29c7227
commit
474454382f
6 changed files with 257 additions and 22 deletions
32
BeefLibs/SDL2/src/BitmapFont.bf
Normal file
32
BeefLibs/SDL2/src/BitmapFont.bf
Normal file
|
@ -0,0 +1,32 @@
|
|||
using System.Collections;
|
||||
|
||||
namespace SDL2
|
||||
{
|
||||
class BitmapFont
|
||||
{
|
||||
public class Page
|
||||
{
|
||||
public Image mImage ~ delete _;
|
||||
}
|
||||
|
||||
public struct CharData
|
||||
{
|
||||
public int32 mX;
|
||||
public int32 mY;
|
||||
public int32 mWidth;
|
||||
public int32 mHeight;
|
||||
public int32 mXOfs;
|
||||
public int32 mYOfs;
|
||||
public int32 mXAdvance;
|
||||
public int32 mPage;
|
||||
}
|
||||
|
||||
public List<Page> mPages = new .() ~ DeleteContainerAndItems!(_);
|
||||
public List<CharData> mCharData = new .() ~ delete _;
|
||||
|
||||
public this()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue