mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
Larger debug text for retina display (#3109)
* Add Init.Resolution.scaleDebug * clamp scale to BGFX_CONFIG_MAX_SCALE_DEBUG * update version * Use textWdith/textHeight in helloworld
This commit is contained in:
@@ -2114,6 +2114,7 @@ public static class bgfx
|
||||
public uint32 reset;
|
||||
public uint8 numBackBuffers;
|
||||
public uint8 maxFrameLatency;
|
||||
public uint8 scaleDebug;
|
||||
}
|
||||
|
||||
[CRepr]
|
||||
|
||||
@@ -2093,6 +2093,7 @@ public static partial class bgfx
|
||||
public uint reset;
|
||||
public byte numBackBuffers;
|
||||
public byte maxFrameLatency;
|
||||
public byte scaleDebug;
|
||||
}
|
||||
|
||||
public unsafe struct Init
|
||||
|
||||
@@ -18,7 +18,7 @@ enum expandEnum(EnumType, string fqnEnumType = EnumType.stringof) = (){
|
||||
|
||||
extern(C) @nogc nothrow:
|
||||
|
||||
enum uint BGFX_API_VERSION = 118;
|
||||
enum uint BGFX_API_VERSION = 119;
|
||||
|
||||
alias bgfx_view_id_t = ushort;
|
||||
|
||||
@@ -886,6 +886,7 @@ struct bgfx_resolution_t
|
||||
uint reset; /// Reset parameters.
|
||||
ubyte numBackBuffers; /// Number of back buffers.
|
||||
ubyte maxFrameLatency; /// Maximum frame latency.
|
||||
ubyte scaleDebug; /// Scale factor for debug view.
|
||||
}
|
||||
|
||||
/// Configurable runtime limits parameters.
|
||||
|
||||
@@ -1338,6 +1338,7 @@ pub const Caps = extern struct {
|
||||
reset: u32,
|
||||
numBackBuffers: u8,
|
||||
maxFrameLatency: u8,
|
||||
scaleDebug: u8,
|
||||
};
|
||||
|
||||
pub const Init = extern struct {
|
||||
|
||||
Reference in New Issue
Block a user