mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-27 01:19:18 -05:00
Merge branch 'master' of https://github.com/raysan5/raygui
This commit is contained in:
19
src/raygui.h
19
src/raygui.h
@ -298,6 +298,15 @@
|
|||||||
int format; // Data format (PixelFormat type)
|
int format; // Data format (PixelFormat type)
|
||||||
} Texture2D;
|
} Texture2D;
|
||||||
|
|
||||||
|
// Image, pixel data stored in CPU memory (RAM)
|
||||||
|
typedef struct Image {
|
||||||
|
void *data; // Image raw data
|
||||||
|
int width; // Image base width
|
||||||
|
int height; // Image base height
|
||||||
|
int mipmaps; // Mipmap levels, 1 by default
|
||||||
|
int format; // Data format (PixelFormat type)
|
||||||
|
} Image;
|
||||||
|
|
||||||
// GlyphInfo, font characters glyphs info
|
// GlyphInfo, font characters glyphs info
|
||||||
typedef struct GlyphInfo {
|
typedef struct GlyphInfo {
|
||||||
int value; // Character value (Unicode)
|
int value; // Character value (Unicode)
|
||||||
@ -311,11 +320,13 @@
|
|||||||
// It should be redesigned to be provided by user
|
// It should be redesigned to be provided by user
|
||||||
typedef struct Font {
|
typedef struct Font {
|
||||||
int baseSize; // Base size (default chars height)
|
int baseSize; // Base size (default chars height)
|
||||||
int glyphCount; // Number of characters
|
int glyphCount; // Number of glyph characters
|
||||||
Texture2D texture; // Characters texture atlas
|
int glyphPadding; // Padding around the glyph characters
|
||||||
Rectangle *recs; // Characters rectangles in texture
|
Texture2D texture; // Texture atlas containing the glyphs
|
||||||
GlyphInfo *chars; // Characters info data
|
Rectangle *recs; // Rectangles in texture for the glyphs
|
||||||
|
GlyphInfo *glyphs; // Glyphs info data
|
||||||
} Font;
|
} Font;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Style property
|
// Style property
|
||||||
|
|||||||
Reference in New Issue
Block a user