|
|
@ -412,14 +412,14 @@ typedef struct RenderTexture2D { |
|
|
|
// RenderTexture type, same as RenderTexture2D |
|
|
|
typedef RenderTexture2D RenderTexture; |
|
|
|
|
|
|
|
typedef struct NPatch { |
|
|
|
Texture2D texture; // The texture associated with the 9-patch (maybe Texture2D *, instead?) |
|
|
|
n">Rectangle sourceRec; // The 9-patch region in the texture |
|
|
|
n">Vector2 minSize; // The minimum size the 9-patch can be shrunk to |
|
|
|
float borderWidth[4]; // The widths of the left, top, right and bottom borders |
|
|
|
int padding[4]; // Helps the n-patch contents fit nicely inside |
|
|
|
int type; // The type of this n-patch: 9-patch, 3-patch vertical or 3-patch horizontal |
|
|
|
} NPatch; |
|
|
|
typedef struct NPatchInfo { |
|
|
|
Rectangle sourceRec; // Region in the texture |
|
|
|
kt">int left; // left border offset |
|
|
|
kt">int top; // top border offset |
|
|
|
int right; // right border offset |
|
|
|
int bottom; // bottom border offset |
|
|
|
int type; // layout of the n-patch: 3x3, 1x3 or 3x1 |
|
|
|
} NPatchInfo; |
|
|
|
|
|
|
|
// Font character info |
|
|
|
typedef struct CharInfo { |
|
|
@ -1015,7 +1015,7 @@ RLAPI void DrawTextureV(Texture2D texture, Vector2 position, Color tint); |
|
|
|
RLAPI void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint); // Draw a Texture2D with extended parameters |
|
|
|
RLAPI void DrawTextureRec(Texture2D texture, Rectangle sourceRec, Vector2 position, Color tint); // Draw a part of a texture defined by a rectangle |
|
|
|
RLAPI void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint); // Draw a part of a texture defined by a rectangle with 'pro' parameters |
|
|
|
RLAPI void DrawNPatch(NPatch nPatch, Rectangle destRec, bool usePadding, Vector2 origin, float rotation, Color tint); //Draw 9x9, 3x1 or 1x3 stretchable Texture2D |
|
|
|
RLAPI void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint); // Draws a texture (or part of it) that stretches or shrinks nicely. |
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------ |
|
|
|
// Font Loading and Text Drawing Functions (Module: text) |
|
|
|