feat(fixLib): fix release raylib
This commit is contained in:
parent
ae50bfa2cc
commit
2f5406bbd9
15 changed files with 1840 additions and 1840 deletions
|
|
@ -33,6 +33,6 @@ int main() {
|
|||
EndDrawing();
|
||||
}
|
||||
|
||||
CloseWindow();
|
||||
rayCloseWindow();
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -54,7 +54,7 @@ int main()
|
|||
|
||||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
rayCloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ int main()
|
|||
|
||||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
rayCloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ int main()
|
|||
|
||||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
rayCloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# format=pipe
|
||||
InitWindow|void|(int width, int height, const char *title);|
|
||||
WindowShouldClose|bool|(void);|
|
||||
CloseWindow|void|(void);|
|
||||
rayCloseWindow|void|(void);|
|
||||
IsWindowReady|bool|(void);|
|
||||
IsWindowMinimized|bool|(void);|
|
||||
IsWindowResized|bool|(void);|
|
||||
|
|
@ -26,7 +26,7 @@ GetMonitorPhysicalHeight|int|(int monitor);|
|
|||
GetMonitorName|const char *|(int monitor);|
|
||||
GetClipboardText|const char *|(void);|
|
||||
SetClipboardText|void|(const char *text);|
|
||||
ShowCursor|void|(void);|
|
||||
rayShowCursor|void|(void);|
|
||||
HideCursor|void|(void);|
|
||||
IsCursorHidden|bool|(void);|
|
||||
EnableCursor|void|(void);|
|
||||
|
|
@ -136,28 +136,28 @@ DrawCircleV|void|(Vector2 center, float radius, Color color);|
|
|||
DrawCircleLines|void|(int centerX, int centerY, float radius, Color color);|
|
||||
DrawRing|void|(Vector2 center, float innerRadius, float outerRadius, int startAngle, int endAngle, int segments, Color color);|
|
||||
DrawRingLines|void|(Vector2 center, float innerRadius, float outerRadius, int startAngle, int endAngle, int segments, Color color);|
|
||||
DrawRectangle|void|(int posX, int posY, int width, int height, Color color);|
|
||||
DrawRectangleV|void|(Vector2 position, Vector2 size, Color color);|
|
||||
DrawRectangleRec|void|(Rectangle rec, Color color);|
|
||||
DrawRectanglePro|void|(Rectangle rec, Vector2 origin, float rotation, Color color);|
|
||||
DrawRectangleGradientV|void|(int posX, int posY, int width, int height, Color color1, Color color2);|
|
||||
DrawRectangleGradientH|void|(int posX, int posY, int width, int height, Color color1, Color color2);|
|
||||
DrawRectangleGradientEx|void|(Rectangle rec, Color col1, Color col2, Color col3, Color col4);|
|
||||
DrawRectangleLines|void|(int posX, int posY, int width, int height, Color color);|
|
||||
DrawRectangleLinesEx|void|(Rectangle rec, int lineThick, Color color);|
|
||||
DrawRectangleRounded|void|(Rectangle rec, float roundness, int segments, Color color);|
|
||||
DrawRectangleRoundedLines|void|(Rectangle rec, float roundness, int segments, int lineThick, Color color);|
|
||||
DrawrayRectangle|void|(int posX, int posY, int width, int height, Color color);|
|
||||
DrawrayRectangleV|void|(Vector2 position, Vector2 size, Color color);|
|
||||
DrawrayRectangleRec|void|(rayRectangle rec, Color color);|
|
||||
DrawrayRectanglePro|void|(rayRectangle rec, Vector2 origin, float rotation, Color color);|
|
||||
DrawrayRectangleGradientV|void|(int posX, int posY, int width, int height, Color color1, Color color2);|
|
||||
DrawrayRectangleGradientH|void|(int posX, int posY, int width, int height, Color color1, Color color2);|
|
||||
DrawrayRectangleGradientEx|void|(rayRectangle rec, Color col1, Color col2, Color col3, Color col4);|
|
||||
DrawrayRectangleLines|void|(int posX, int posY, int width, int height, Color color);|
|
||||
DrawrayRectangleLinesEx|void|(rayRectangle rec, int lineThick, Color color);|
|
||||
DrawrayRectangleRounded|void|(rayRectangle rec, float roundness, int segments, Color color);|
|
||||
DrawrayRectangleRoundedLines|void|(rayRectangle rec, float roundness, int segments, int lineThick, Color color);|
|
||||
DrawTriangle|void|(Vector2 v1, Vector2 v2, Vector2 v3, Color color);|
|
||||
DrawTriangleLines|void|(Vector2 v1, Vector2 v2, Vector2 v3, Color color);|
|
||||
DrawPoly|void|(Vector2 center, int sides, float radius, float rotation, Color color);|
|
||||
DrawPolyEx|void|(Vector2 *points, int numPoints, Color color);|
|
||||
DrawPolyExLines|void|(Vector2 *points, int numPoints, Color color);|
|
||||
SetShapesTexture|void|(Texture2D texture, Rectangle source);|
|
||||
CheckCollisionRecs|bool|(Rectangle rec1, Rectangle rec2);|
|
||||
SetShapesTexture|void|(Texture2D texture, rayRectangle source);|
|
||||
CheckCollisionRecs|bool|(rayRectangle rec1, rayRectangle rec2);|
|
||||
CheckCollisionCircles|bool|(Vector2 center1, float radius1, Vector2 center2, float radius2);|
|
||||
CheckCollisionCircleRec|bool|(Vector2 center, float radius, Rectangle rec);|
|
||||
GetCollisionRec|Rectangle|(Rectangle rec1, Rectangle rec2);|
|
||||
CheckCollisionPointRec|bool|(Vector2 point, Rectangle rec);|
|
||||
CheckCollisionCircleRec|bool|(Vector2 center, float radius, rayRectangle rec);|
|
||||
GetCollisionRec|rayRectangle|(rayRectangle rec1, rayRectangle rec2);|
|
||||
CheckCollisionPointRec|bool|(Vector2 point, rayRectangle rec);|
|
||||
CheckCollisionPointCircle|bool|(Vector2 point, Vector2 center, float radius);|
|
||||
CheckCollisionPointTriangle|bool|(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3);|
|
||||
LoadImage|Image|(const char *fileName);|
|
||||
|
|
@ -186,7 +186,7 @@ ImageAlphaMask|void|(Image *image, Image alphaMask);|
|
|||
ImageAlphaClear|void|(Image *image, Color color, float threshold);
|
||||
ImageAlphaCrop|void|(Image *image, float threshold);|
|
||||
ImageAlphaPremultiply|void|(Image *image);|
|
||||
ImageCrop|void|(Image *image, Rectangle crop);|
|
||||
ImageCrop|void|(Image *image, rayRectangle crop);|
|
||||
ImageResize|void|(Image *image, int newWidth, int newHeight);|
|
||||
ImageResizeNN|void|(Image *image, int newWidth,int newHeight);|void|
|
||||
ImageResizeCanvas|void|(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color color);|
|
||||
|
|
@ -195,9 +195,9 @@ ImageDither|void|(Image *image, int rBpp, int gBpp, int bBpp, int aBpp);|
|
|||
ImageExtractPalette|Color *|(Image image, int maxPaletteSize, int *extractCount);|
|
||||
ImageText|Image|(const char *text, int fontSize, Color color);|
|
||||
ImageTextEx|Image|(Font font, const char *text, float fontSize, float spacing, Color tint);|
|
||||
ImageDraw|void|(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec);|
|
||||
ImageDrawRectangle|void|(Image *dst, Rectangle rec, Color color);|
|
||||
ImageDrawRectangleLines|void|(Image *dst, Rectangle rec, int thick, Color color);|
|
||||
ImageDraw|void|(Image *dst, Image src, rayRectangle srcRec, rayRectangle dstRec);|
|
||||
ImageDrawrayRectangle|void|(Image *dst, rayRectangle rec, Color color);|
|
||||
ImageDrawrayRectangleLines|void|(Image *dst, rayRectangle rec, int thick, Color color);|
|
||||
ImageDrawText|void|(Image *dst, Vector2 position, const char *text, int fontSize, Color color);|
|
||||
ImageDrawTextEx|void|(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color);|
|
||||
ImageFlipVertical|void|(Image *image);|
|
||||
|
|
@ -225,10 +225,10 @@ SetTextureWrap|void|(Texture2D texture, int wrapMode);|
|
|||
DrawTexture|void|(Texture2D texture, int posX, int posY, Color tint);|
|
||||
DrawTextureV|void|(Texture2D texture, Vector2 position, Color tint);|
|
||||
DrawTextureEx|void|(Texture2D texture, Vector2 position, float rotation, float scale, Color tint);|
|
||||
DrawTextureRec|void|(Texture2D texture, Rectangle sourceRec, Vector2 position, Color tint);|
|
||||
DrawTextureQuad|void|(Texture2D texture, Vector2 tiling, Vector2 offset, Rectangle quad, Color tint);|
|
||||
DrawTexturePro|void|(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint);|
|
||||
DrawTextureNPatch|void|(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint);|
|
||||
DrawTextureRec|void|(Texture2D texture, rayRectangle sourceRec, Vector2 position, Color tint);|
|
||||
DrawTextureQuad|void|(Texture2D texture, Vector2 tiling, Vector2 offset, rayRectangle quad, Color tint);|
|
||||
DrawTexturePro|void|(Texture2D texture, rayRectangle sourceRec, rayRectangle destRec, Vector2 origin, float rotation, Color tint);|
|
||||
DrawTextureNPatch|void|(Texture2D texture, NPatchInfo nPatchInfo, rayRectangle destRec, Vector2 origin, float rotation, Color tint);|
|
||||
GetFontDefault|Font|(void);|
|
||||
LoadFont|Font|(const char *fileName);|
|
||||
LoadFontEx|Font|(const char *fileName, int fontSize, int *fontChars, int charsCount);|
|
||||
|
|
@ -239,8 +239,8 @@ UnloadFont|void|(Font font);|
|
|||
DrawFPS|void|(int posX, int posY);|
|
||||
DrawText|void|(const char *text, int posX, int posY, int fontSize, Color color);|
|
||||
DrawTextEx|void|(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint);|
|
||||
DrawTextRec|void|(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint);|
|
||||
DrawTextRecEx|void|(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, int selectStart, int selectLength, Color selectText, Color selectBack);|
|
||||
DrawTextRec|void|(Font font, const char *text, rayRectangle rec, float fontSize, float spacing, bool wordWrap, Color tint);|
|
||||
DrawTextRecEx|void|(Font font, const char *text, rayRectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, int selectStart, int selectLength, Color selectText, Color selectBack);|
|
||||
MeasureText|int|(const char *text, int fontSize);|
|
||||
MeasureTextEx|Vector2|(Font font, const char *text, float fontSize, float spacing);|
|
||||
GetGlyphIndex|int|(Font font, int character);|
|
||||
|
|
@ -308,7 +308,7 @@ DrawModelWires|void|(Model model, Vector3 position, float scale, Color tint);|
|
|||
DrawModelWiresEx|void|(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint);|
|
||||
DrawBoundingBox|void|(BoundingBox box, Color color);|
|
||||
DrawBillboard|void|(Camera camera, Texture2D texture, Vector3 center, float size, Color tint);|
|
||||
DrawBillboardRec|void|(Camera camera, Texture2D texture, Rectangle sourceRec, Vector3 center, float size, Color tint);|
|
||||
DrawBillboardRec|void|(Camera camera, Texture2D texture, rayRectangle sourceRec, Vector3 center, float size, Color tint);|
|
||||
CheckCollisionSpheres|bool|(Vector3 centerA, float radiusA, Vector3 centerB, float radiusB);|
|
||||
CheckCollisionBoxes|bool|(BoundingBox box1, BoundingBox box2);|
|
||||
CheckCollisionBoxSphere|bool|(BoundingBox box, Vector3 centerSphere, float radiusSphere);|
|
||||
|
|
@ -400,7 +400,7 @@ Vector4|struct||
|
|||
Quaternion|struct||
|
||||
Matrix|struct||
|
||||
Color|struct||
|
||||
Rectangle|struct||
|
||||
rayRectangle|struct||
|
||||
Image|struct||
|
||||
Texture|struct||
|
||||
RenderTexture|struct||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<Param name="const char *title" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="CloseWindow" func="yes">
|
||||
<KeyWord name="rayCloseWindow" func="yes">
|
||||
<Overload retVal="void" descr="Close window and unload OpenGL context"></Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="WindowShouldClose" func="yes">
|
||||
|
|
@ -198,7 +198,7 @@
|
|||
</KeyWord>
|
||||
|
||||
<!-- Cursor-related functions -->
|
||||
<KeyWord name="ShowCursor" func="yes">
|
||||
<KeyWord name="rayShowCursor" func="yes">
|
||||
<Overload retVal="void" descr="Shows cursor"></Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="HideCursor" func="yes">
|
||||
|
|
@ -975,13 +975,13 @@
|
|||
<!-------------------------------------------------------------------------------------- -->
|
||||
<!-- Basic Shapes Drawing Functions (Module: shapes) -->
|
||||
<!-------------------------------------------------------------------------------------- -->
|
||||
<!-- Set texture and rectangle to be used on shapes drawing -->
|
||||
<!-- Set texture and rayRectangle to be used on shapes drawing -->
|
||||
<!-- NOTE: It can be useful when using basic shapes and one single font, -->
|
||||
<!-- defining a font char white rectangle would allow drawing everything in a single draw call -->
|
||||
<!-- defining a font char white rayRectangle would allow drawing everything in a single draw call -->
|
||||
<KeyWord name="SetShapesTexture" func="yes">
|
||||
<Overload retVal="void" descr="Set texture and rectangle to be used on shapes drawing">
|
||||
<Overload retVal="void" descr="Set texture and rayRectangle to be used on shapes drawing">
|
||||
<Param name="Texture2D texture" />
|
||||
<Param name="Rectangle source" />
|
||||
<Param name="rayRectangle source" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
|
||||
|
|
@ -1137,8 +1137,8 @@
|
|||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangle" func="yes">
|
||||
<Overload retVal="void" descr="Draw a color-filled rectangle">
|
||||
<KeyWord name="DrawrayRectangle" func="yes">
|
||||
<Overload retVal="void" descr="Draw a color-filled rayRectangle">
|
||||
<Param name="int posX" />
|
||||
<Param name="int posY" />
|
||||
<Param name="int width" />
|
||||
|
|
@ -1146,29 +1146,29 @@
|
|||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleV" func="yes">
|
||||
<Overload retVal="void" descr="Draw a color-filled rectangle (Vector version)">
|
||||
<KeyWord name="DrawrayRectangleV" func="yes">
|
||||
<Overload retVal="void" descr="Draw a color-filled rayRectangle (Vector version)">
|
||||
<Param name="Vector2 position" />
|
||||
<Param name="Vector2 size" />
|
||||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleRec" func="yes">
|
||||
<Overload retVal="void" descr="Draw a color-filled rectangle">
|
||||
<Param name="Rectangle rec" />
|
||||
<KeyWord name="DrawrayRectangleRec" func="yes">
|
||||
<Overload retVal="void" descr="Draw a color-filled rayRectangle">
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectanglePro" func="yes">
|
||||
<Overload retVal="void" descr="Draw a color-filled rectangle with pro parameters">
|
||||
<Param name="Rectangle rec" />
|
||||
<KeyWord name="DrawrayRectanglePro" func="yes">
|
||||
<Overload retVal="void" descr="Draw a color-filled rayRectangle with pro parameters">
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="Vector2 origin" />
|
||||
<Param name="float rotation" />
|
||||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleGradientV" func="yes">
|
||||
<Overload retVal="void" descr="Draw a vertical-gradient-filled rectangle">
|
||||
<KeyWord name="DrawrayRectangleGradientV" func="yes">
|
||||
<Overload retVal="void" descr="Draw a vertical-gradient-filled rayRectangle">
|
||||
<Param name="int posX" />
|
||||
<Param name="int posY" />
|
||||
<Param name="int width" />
|
||||
|
|
@ -1177,8 +1177,8 @@
|
|||
<Param name="Color color2" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleGradientH" func="yes">
|
||||
<Overload retVal="void" descr="Draw a horizontal-gradient-filled rectangle">
|
||||
<KeyWord name="DrawrayRectangleGradientH" func="yes">
|
||||
<Overload retVal="void" descr="Draw a horizontal-gradient-filled rayRectangle">
|
||||
<Param name="int posX" />
|
||||
<Param name="int posY" />
|
||||
<Param name="int width" />
|
||||
|
|
@ -1187,17 +1187,17 @@
|
|||
<Param name="Color color2" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleGradientEx" func="yes">
|
||||
<Overload retVal="void" descr="Draw a gradient-filled rectangle with custom vertex colors">
|
||||
<Param name="Rectangle rec" />
|
||||
<KeyWord name="DrawrayRectangleGradientEx" func="yes">
|
||||
<Overload retVal="void" descr="Draw a gradient-filled rayRectangle with custom vertex colors">
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="Color col1" />
|
||||
<Param name="Color col2" />
|
||||
<Param name="Color col3" />
|
||||
<Param name="Color col4" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleLines" func="yes">
|
||||
<Overload retVal="void" descr="Draw rectangle outline">
|
||||
<KeyWord name="DrawrayRectangleLines" func="yes">
|
||||
<Overload retVal="void" descr="Draw rayRectangle outline">
|
||||
<Param name="int posX" />
|
||||
<Param name="int posY" />
|
||||
<Param name="int width" />
|
||||
|
|
@ -1205,24 +1205,24 @@
|
|||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleLinesEx" func="yes">
|
||||
<Overload retVal="void" descr="Draw rectangle outline with extended parameters">
|
||||
<Param name="Rectangle rec" />
|
||||
<KeyWord name="DrawrayRectangleLinesEx" func="yes">
|
||||
<Overload retVal="void" descr="Draw rayRectangle outline with extended parameters">
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="float lineThick" />
|
||||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleRounded" func="yes">
|
||||
<Overload retVal="void" descr="Draw rectangle with rounded edges">
|
||||
<Param name="Rectangle rec" />
|
||||
<KeyWord name="DrawrayRectangleRounded" func="yes">
|
||||
<Overload retVal="void" descr="Draw rayRectangle with rounded edges">
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="float roundness" />
|
||||
<Param name="int segments" />
|
||||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawRectangleRoundedLines" func="yes">
|
||||
<Overload retVal="void" descr="Draw rectangle with rounded edges outline">
|
||||
<Param name="Rectangle rec" />
|
||||
<KeyWord name="DrawrayRectangleRoundedLines" func="yes">
|
||||
<Overload retVal="void" descr="Draw rayRectangle with rounded edges outline">
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="float roundness" />
|
||||
<Param name="int segments" />
|
||||
<Param name="float lineThick" />
|
||||
|
|
@ -1423,9 +1423,9 @@
|
|||
|
||||
<!-- Basic shapes collision detection functions -->
|
||||
<KeyWord name="CheckCollisionRecs" func="yes">
|
||||
<Overload retVal="bool" descr="Check collision between two rectangles">
|
||||
<Param name="Rectangle rec1" />
|
||||
<Param name="Rectangle rec2" />
|
||||
<Overload retVal="bool" descr="Check collision between two rayRectangles">
|
||||
<Param name="rayRectangle rec1" />
|
||||
<Param name="rayRectangle rec2" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="CheckCollisionCircles" func="yes">
|
||||
|
|
@ -1437,16 +1437,16 @@
|
|||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="CheckCollisionCircleRec" func="yes">
|
||||
<Overload retVal="bool" descr="Check collision between circle and rectangle">
|
||||
<Overload retVal="bool" descr="Check collision between circle and rayRectangle">
|
||||
<Param name="Vector2 center" />
|
||||
<Param name="float radius" />
|
||||
<Param name="Rectangle rec" />
|
||||
<Param name="rayRectangle rec" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="CheckCollisionPointRec" func="yes">
|
||||
<Overload retVal="bool" descr="Check if point is inside rectangle">
|
||||
<Overload retVal="bool" descr="Check if point is inside rayRectangle">
|
||||
<Param name="Vector2 point" />
|
||||
<Param name="Rectangle rec" />
|
||||
<Param name="rayRectangle rec" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="CheckCollisionPointCircle" func="yes">
|
||||
|
|
@ -1489,9 +1489,9 @@
|
|||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="GetCollisionRec" func="yes">
|
||||
<Overload retVal="Rectangle" descr="Get collision rectangle for two rectangles collision">
|
||||
<Param name="Rectangle rec1" />
|
||||
<Param name="Rectangle rec2" />
|
||||
<Overload retVal="rayRectangle" descr="Get collision rayRectangle for two rayRectangles collision">
|
||||
<Param name="rayRectangle rec1" />
|
||||
<Param name="rayRectangle rec2" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
|
||||
|
|
@ -1658,7 +1658,7 @@
|
|||
<KeyWord name="ImageFromImage" func="yes">
|
||||
<Overload retVal="Image" descr="Create an image from another image piece">
|
||||
<Param name="Image image" />
|
||||
<Param name="Rectangle rec" />
|
||||
<Param name="rayRectangle rec" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageText" func="yes">
|
||||
|
|
@ -1690,9 +1690,9 @@
|
|||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageCrop" func="yes">
|
||||
<Overload retVal="void" descr="Crop an image to a defined rectangle">
|
||||
<Overload retVal="void" descr="Crop an image to a defined rayRectangle">
|
||||
<Param name="Image *image" />
|
||||
<Param name="Rectangle crop" />
|
||||
<Param name="rayRectangle crop" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageAlphaCrop" func="yes">
|
||||
|
|
@ -1847,7 +1847,7 @@
|
|||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="GetImageAlphaBorder" func="yes">
|
||||
<Overload retVal="Rectangle" descr="Get image alpha border rectangle">
|
||||
<Overload retVal="rayRectangle" descr="Get image alpha border rayRectangle">
|
||||
<Param name="Image image" />
|
||||
<Param name="float threshold" />
|
||||
</Overload>
|
||||
|
|
@ -1935,8 +1935,8 @@
|
|||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageDrawRectangle" func="yes">
|
||||
<Overload retVal="void" descr="Draw rectangle within an image">
|
||||
<KeyWord name="ImageDrawrayRectangle" func="yes">
|
||||
<Overload retVal="void" descr="Draw rayRectangle within an image">
|
||||
<Param name="Image *dst" />
|
||||
<Param name="int posX" />
|
||||
<Param name="int posY" />
|
||||
|
|
@ -1945,25 +1945,25 @@
|
|||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageDrawRectangleV" func="yes">
|
||||
<Overload retVal="void" descr="Draw rectangle within an image (Vector version)">
|
||||
<KeyWord name="ImageDrawrayRectangleV" func="yes">
|
||||
<Overload retVal="void" descr="Draw rayRectangle within an image (Vector version)">
|
||||
<Param name="Image *dst" />
|
||||
<Param name="Vector2 position" />
|
||||
<Param name="Vector2 size" />
|
||||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageDrawRectangleRec" func="yes">
|
||||
<Overload retVal="void" descr="Draw rectangle within an image">
|
||||
<KeyWord name="ImageDrawrayRectangleRec" func="yes">
|
||||
<Overload retVal="void" descr="Draw rayRectangle within an image">
|
||||
<Param name="Image *dst" />
|
||||
<Param name="Rectangle rec" />
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="Color color" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageDrawRectangleLines" func="yes">
|
||||
<Overload retVal="void" descr="Draw rectangle lines within an image">
|
||||
<KeyWord name="ImageDrawrayRectangleLines" func="yes">
|
||||
<Overload retVal="void" descr="Draw rayRectangle lines within an image">
|
||||
<Param name="Image *dst" />
|
||||
<Param name="Rectangle rec" />
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="int thick" />
|
||||
<Param name="Color color" />
|
||||
</Overload>
|
||||
|
|
@ -1972,8 +1972,8 @@
|
|||
<Overload retVal="void" descr="Draw a source image within a destination image (tint applied to source)">
|
||||
<Param name="Image *dst" />
|
||||
<Param name="Image src" />
|
||||
<Param name="Rectangle srcRec" />
|
||||
<Param name="Rectangle dstRec" />
|
||||
<Param name="rayRectangle srcRec" />
|
||||
<Param name="rayRectangle dstRec" />
|
||||
<Param name="Color tint" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
|
|
@ -2050,9 +2050,9 @@
|
|||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="UpdateTextureRec" func="yes">
|
||||
<Overload retVal="void" descr="Update GPU texture rectangle with new data">
|
||||
<Overload retVal="void" descr="Update GPU texture rayRectangle with new data">
|
||||
<Param name="Texture2D texture" />
|
||||
<Param name="Rectangle rec" />
|
||||
<Param name="rayRectangle rec" />
|
||||
<Param name="const void *pixels" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
|
|
@ -2102,18 +2102,18 @@
|
|||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawTextureRec" func="yes">
|
||||
<Overload retVal="void" descr="Draw a part of a texture defined by a rectangle">
|
||||
<Overload retVal="void" descr="Draw a part of a texture defined by a rayRectangle">
|
||||
<Param name="Texture2D texture" />
|
||||
<Param name="Rectangle source" />
|
||||
<Param name="rayRectangle source" />
|
||||
<Param name="Vector2 position" />
|
||||
<Param name="Color tint" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DrawTexturePro" func="yes">
|
||||
<Overload retVal="void" descr="Draw a part of a texture defined by a rectangle with 'pro' parameters">
|
||||
<Overload retVal="void" descr="Draw a part of a texture defined by a rayRectangle with 'pro' parameters">
|
||||
<Param name="Texture2D texture" />
|
||||
<Param name="Rectangle source" />
|
||||
<Param name="Rectangle dest" />
|
||||
<Param name="rayRectangle source" />
|
||||
<Param name="rayRectangle dest" />
|
||||
<Param name="Vector2 origin" />
|
||||
<Param name="float rotation" />
|
||||
<Param name="Color tint" />
|
||||
|
|
@ -2123,7 +2123,7 @@
|
|||
<Overload retVal="void" descr="Draws a texture (or part of it) that stretches or shrinks nicely">
|
||||
<Param name="Texture2D texture" />
|
||||
<Param name="NPatchInfo nPatchInfo" />
|
||||
<Param name="Rectangle dest" />
|
||||
<Param name="rayRectangle dest" />
|
||||
<Param name="Vector2 origin" />
|
||||
<Param name="float rotation" />
|
||||
<Param name="Color tint" />
|
||||
|
|
@ -2270,7 +2270,7 @@
|
|||
<KeyWord name="GenImageFontAtlas" func="yes">
|
||||
<Overload retVal="Image" descr="Generate image font atlas using chars info">
|
||||
<Param name="const GlyphInfo *glyphs" />
|
||||
<Param name="Rectangle **glyphRecs" />
|
||||
<Param name="rayRectangle **glyphRecs" />
|
||||
<Param name="int glyphCount" />
|
||||
<Param name="int fontSize" />
|
||||
<Param name="int padding" />
|
||||
|
|
@ -2387,7 +2387,7 @@
|
|||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="GetGlyphAtlasRec" func="yes">
|
||||
<Overload retVal="Rectangle" descr="Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found">
|
||||
<Overload retVal="rayRectangle" descr="Get glyph rayRectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found">
|
||||
<Param name="Font font" />
|
||||
<Param name="int codepoint" />
|
||||
</Overload>
|
||||
|
|
@ -2806,7 +2806,7 @@
|
|||
<Overload retVal="void" descr="Draw a billboard texture defined by source">
|
||||
<Param name="Camera camera" />
|
||||
<Param name="Texture2D texture" />
|
||||
<Param name="Rectangle source" />
|
||||
<Param name="rayRectangle source" />
|
||||
<Param name="Vector3 position" />
|
||||
<Param name="Vector2 size" />
|
||||
<Param name="Color tint" />
|
||||
|
|
@ -2816,13 +2816,13 @@
|
|||
<Overload retVal="void" descr="Draw a billboard texture defined by source and rotation">
|
||||
<Param name="Camera camera" />
|
||||
<Param name="Texture2D texture" />
|
||||
<Param name="Rectangle source" />
|
||||
<Param name="rayRectangle source" />
|
||||
<Param name="Vector3 position" />
|
||||
<Param name="Vector3 up" />
|
||||
<Param name="Vector2 size" />
|
||||
<Param name="Vector2 origin" />
|
||||
<Param name="float rotation" />
|
||||
<Param name="0ó¿8± " />
|
||||
<Param name="0<EFBFBD>8<EFBFBD> " />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// Window-related functions
|
||||
RLAPI void InitWindow(int width, int height, const char *title); // Initialize window and OpenGL context
|
||||
RLAPI void CloseWindow(void); // Close window and unload OpenGL context
|
||||
RLAPI void rayCloseWindow(void); // Close window and unload OpenGL context
|
||||
RLAPI bool WindowShouldClose(void); // Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)
|
||||
RLAPI bool IsWindowReady(void); // Check if window has been initialized successfully
|
||||
RLAPI bool IsWindowFullscreen(void); // Check if window is currently fullscreen
|
||||
|
|
@ -53,7 +53,7 @@ RLAPI void EnableEventWaiting(void); // Enable wait
|
|||
RLAPI void DisableEventWaiting(void); // Disable waiting for events on EndDrawing(), automatic events polling
|
||||
|
||||
// Cursor-related functions
|
||||
RLAPI void ShowCursor(void); // Shows cursor
|
||||
RLAPI void rayShowCursor(void); // Shows cursor
|
||||
RLAPI void HideCursor(void); // Hides cursor
|
||||
RLAPI bool IsCursorHidden(void); // Check if cursor is not visible
|
||||
RLAPI void EnableCursor(void); // Enables cursor (unlock cursor)
|
||||
|
|
@ -258,10 +258,10 @@ RLAPI void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, f
|
|||
//------------------------------------------------------------------------------------
|
||||
// Basic Shapes Drawing Functions (Module: shapes)
|
||||
//------------------------------------------------------------------------------------
|
||||
// Set texture and rectangle to be used on shapes drawing
|
||||
// Set texture and rayRectangle to be used on shapes drawing
|
||||
// NOTE: It can be useful when using basic shapes and one single font,
|
||||
// defining a font char white rectangle would allow drawing everything in a single draw call
|
||||
RLAPI void SetShapesTexture(Texture2D texture, Rectangle source); // Set texture and rectangle to be used on shapes drawing
|
||||
// defining a font char white rayRectangle would allow drawing everything in a single draw call
|
||||
RLAPI void SetShapesTexture(Texture2D texture, rayRectangle source); // Set texture and rayRectangle to be used on shapes drawing
|
||||
|
||||
// Basic shapes drawing functions
|
||||
RLAPI void DrawPixel(int posX, int posY, Color color); // Draw a pixel
|
||||
|
|
@ -282,17 +282,17 @@ RLAPI void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, C
|
|||
RLAPI void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color); // Draw ellipse outline
|
||||
RLAPI void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); // Draw ring
|
||||
RLAPI void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); // Draw ring outline
|
||||
RLAPI void DrawRectangle(int posX, int posY, int width, int height, Color color); // Draw a color-filled rectangle
|
||||
RLAPI void DrawRectangleV(Vector2 position, Vector2 size, Color color); // Draw a color-filled rectangle (Vector version)
|
||||
RLAPI void DrawRectangleRec(Rectangle rec, Color color); // Draw a color-filled rectangle
|
||||
RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color); // Draw a color-filled rectangle with pro parameters
|
||||
RLAPI void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a vertical-gradient-filled rectangle
|
||||
RLAPI void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a horizontal-gradient-filled rectangle
|
||||
RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4); // Draw a gradient-filled rectangle with custom vertex colors
|
||||
RLAPI void DrawRectangleLines(int posX, int posY, int width, int height, Color color); // Draw rectangle outline
|
||||
RLAPI void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color); // Draw rectangle outline with extended parameters
|
||||
RLAPI void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color); // Draw rectangle with rounded edges
|
||||
RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, float lineThick, Color color); // Draw rectangle with rounded edges outline
|
||||
RLAPI void DrawrayRectangle(int posX, int posY, int width, int height, Color color); // Draw a color-filled rayRectangle
|
||||
RLAPI void DrawrayRectangleV(Vector2 position, Vector2 size, Color color); // Draw a color-filled rayRectangle (Vector version)
|
||||
RLAPI void DrawrayRectangleRec(rayRectangle rec, Color color); // Draw a color-filled rayRectangle
|
||||
RLAPI void DrawrayRectanglePro(rayRectangle rec, Vector2 origin, float rotation, Color color); // Draw a color-filled rayRectangle with pro parameters
|
||||
RLAPI void DrawrayRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a vertical-gradient-filled rayRectangle
|
||||
RLAPI void DrawrayRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a horizontal-gradient-filled rayRectangle
|
||||
RLAPI void DrawrayRectangleGradientEx(rayRectangle rec, Color col1, Color col2, Color col3, Color col4); // Draw a gradient-filled rayRectangle with custom vertex colors
|
||||
RLAPI void DrawrayRectangleLines(int posX, int posY, int width, int height, Color color); // Draw rayRectangle outline
|
||||
RLAPI void DrawrayRectangleLinesEx(rayRectangle rec, float lineThick, Color color); // Draw rayRectangle outline with extended parameters
|
||||
RLAPI void DrawrayRectangleRounded(rayRectangle rec, float roundness, int segments, Color color); // Draw rayRectangle with rounded edges
|
||||
RLAPI void DrawrayRectangleRoundedLines(rayRectangle rec, float roundness, int segments, float lineThick, Color color); // Draw rayRectangle with rounded edges outline
|
||||
RLAPI void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw a color-filled triangle (vertex in counter-clockwise order!)
|
||||
RLAPI void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw triangle outline (vertex in counter-clockwise order!)
|
||||
RLAPI void DrawTriangleFan(Vector2 *points, int pointCount, Color color); // Draw a triangle fan defined by points (first vertex is the center)
|
||||
|
|
@ -321,16 +321,16 @@ RLAPI Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float
|
|||
RLAPI Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t); // Get (evaluate) spline point: Cubic Bezier
|
||||
|
||||
// Basic shapes collision detection functions
|
||||
RLAPI bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2); // Check collision between two rectangles
|
||||
RLAPI bool CheckCollisionRecs(rayRectangle rec1, rayRectangle rec2); // Check collision between two rayRectangles
|
||||
RLAPI bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2); // Check collision between two circles
|
||||
RLAPI bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec); // Check collision between circle and rectangle
|
||||
RLAPI bool CheckCollisionPointRec(Vector2 point, Rectangle rec); // Check if point is inside rectangle
|
||||
RLAPI bool CheckCollisionCircleRec(Vector2 center, float radius, rayRectangle rec); // Check collision between circle and rayRectangle
|
||||
RLAPI bool CheckCollisionPointRec(Vector2 point, rayRectangle rec); // Check if point is inside rayRectangle
|
||||
RLAPI bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius); // Check if point is inside circle
|
||||
RLAPI bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3); // Check if point is inside a triangle
|
||||
RLAPI bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount); // Check if point is within a polygon described by array of vertices
|
||||
RLAPI bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint); // Check the collision between two lines defined by two points each, returns collision point by reference
|
||||
RLAPI bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold); // Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
|
||||
RLAPI Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); // Get collision rectangle for two rectangles collision
|
||||
RLAPI rayRectangle GetCollisionRec(rayRectangle rec1, rayRectangle rec2); // Get collision rayRectangle for two rayRectangles collision
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
// Texture Loading and Drawing Functions (Module: textures)
|
||||
|
|
@ -364,12 +364,12 @@ RLAPI Image GenImageText(int width, int height, const char *text);
|
|||
|
||||
// Image manipulation functions
|
||||
RLAPI Image ImageCopy(Image image); // Create an image duplicate (useful for transformations)
|
||||
RLAPI Image ImageFromImage(Image image, Rectangle rec); // Create an image from another image piece
|
||||
RLAPI Image ImageFromImage(Image image, rayRectangle rec); // Create an image from another image piece
|
||||
RLAPI Image ImageText(const char *text, int fontSize, Color color); // Create an image from text (default font)
|
||||
RLAPI Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint); // Create an image from text (custom sprite font)
|
||||
RLAPI void ImageFormat(Image *image, int newFormat); // Convert image data to desired format
|
||||
RLAPI void ImageToPOT(Image *image, Color fill); // Convert image to POT (power-of-two)
|
||||
RLAPI void ImageCrop(Image *image, Rectangle crop); // Crop an image to a defined rectangle
|
||||
RLAPI void ImageCrop(Image *image, rayRectangle crop); // Crop an image to a defined rayRectangle
|
||||
RLAPI void ImageAlphaCrop(Image *image, float threshold); // Crop image depending on alpha value
|
||||
RLAPI void ImageAlphaClear(Image *image, Color color, float threshold); // Clear alpha channel to desired color
|
||||
RLAPI void ImageAlphaMask(Image *image, Image alphaMask); // Apply alpha mask to image
|
||||
|
|
@ -395,7 +395,7 @@ RLAPI Color *LoadImageColors(Image image);
|
|||
RLAPI Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount); // Load colors palette from image as a Color array (RGBA - 32bit)
|
||||
RLAPI void UnloadImageColors(Color *colors); // Unload color data loaded with LoadImageColors()
|
||||
RLAPI void UnloadImagePalette(Color *colors); // Unload colors palette loaded with LoadImagePalette()
|
||||
RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
|
||||
RLAPI rayRectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rayRectangle
|
||||
RLAPI Color GetImageColor(Image image, int x, int y); // Get image pixel color at (x, y) position
|
||||
|
||||
// Image drawing functions
|
||||
|
|
@ -409,11 +409,11 @@ RLAPI void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Col
|
|||
RLAPI void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color); // Draw a filled circle within an image (Vector version)
|
||||
RLAPI void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color); // Draw circle outline within an image
|
||||
RLAPI void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color); // Draw circle outline within an image (Vector version)
|
||||
RLAPI void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color); // Draw rectangle within an image
|
||||
RLAPI void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color); // Draw rectangle within an image (Vector version)
|
||||
RLAPI void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color); // Draw rectangle within an image
|
||||
RLAPI void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color); // Draw rectangle lines within an image
|
||||
RLAPI void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint); // Draw a source image within a destination image (tint applied to source)
|
||||
RLAPI void ImageDrawrayRectangle(Image *dst, int posX, int posY, int width, int height, Color color); // Draw rayRectangle within an image
|
||||
RLAPI void ImageDrawrayRectangleV(Image *dst, Vector2 position, Vector2 size, Color color); // Draw rayRectangle within an image (Vector version)
|
||||
RLAPI void ImageDrawrayRectangleRec(Image *dst, rayRectangle rec, Color color); // Draw rayRectangle within an image
|
||||
RLAPI void ImageDrawrayRectangleLines(Image *dst, rayRectangle rec, int thick, Color color); // Draw rayRectangle lines within an image
|
||||
RLAPI void ImageDraw(Image *dst, Image src, rayRectangle srcRec, rayRectangle dstRec, Color tint); // Draw a source image within a destination image (tint applied to source)
|
||||
RLAPI void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font) within an image (destination)
|
||||
RLAPI void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text (custom sprite font) within an image (destination)
|
||||
|
||||
|
|
@ -428,7 +428,7 @@ RLAPI void UnloadTexture(Texture2D texture);
|
|||
RLAPI bool IsRenderTextureReady(RenderTexture2D target); // Check if a render texture is ready
|
||||
RLAPI void UnloadRenderTexture(RenderTexture2D target); // Unload render texture from GPU memory (VRAM)
|
||||
RLAPI void UpdateTexture(Texture2D texture, const void *pixels); // Update GPU texture with new data
|
||||
RLAPI void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels); // Update GPU texture rectangle with new data
|
||||
RLAPI void UpdateTextureRec(Texture2D texture, rayRectangle rec, const void *pixels); // Update GPU texture rayRectangle with new data
|
||||
|
||||
// Texture configuration functions
|
||||
RLAPI void GenTextureMipmaps(Texture2D *texture); // Generate GPU mipmaps for a texture
|
||||
|
|
@ -439,9 +439,9 @@ RLAPI void SetTextureWrap(Texture2D texture, int wrap);
|
|||
RLAPI void DrawTexture(Texture2D texture, int posX, int posY, Color tint); // Draw a Texture2D
|
||||
RLAPI void DrawTextureV(Texture2D texture, Vector2 position, Color tint); // Draw a Texture2D with position defined as Vector2
|
||||
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 source, Vector2 position, Color tint); // Draw a part of a texture defined by a rectangle
|
||||
RLAPI void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint); // Draw a part of a texture defined by a rectangle with 'pro' parameters
|
||||
RLAPI void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint); // Draws a texture (or part of it) that stretches or shrinks nicely
|
||||
RLAPI void DrawTextureRec(Texture2D texture, rayRectangle source, Vector2 position, Color tint); // Draw a part of a texture defined by a rayRectangle
|
||||
RLAPI void DrawTexturePro(Texture2D texture, rayRectangle source, rayRectangle dest, Vector2 origin, float rotation, Color tint); // Draw a part of a texture defined by a rayRectangle with 'pro' parameters
|
||||
RLAPI void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, rayRectangle dest, Vector2 origin, float rotation, Color tint); // Draws a texture (or part of it) that stretches or shrinks nicely
|
||||
|
||||
// Color/pixel related functions
|
||||
RLAPI Color Fade(Color color, float alpha); // Get color with alpha applied, alpha goes from 0.0f to 1.0f
|
||||
|
|
@ -472,7 +472,7 @@ RLAPI Font LoadFontFromImage(Image image, Color key, int firstChar);
|
|||
RLAPI Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount); // Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
|
||||
RLAPI bool IsFontReady(Font font); // Check if a font is ready
|
||||
RLAPI GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type); // Load font data for further use
|
||||
RLAPI Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info
|
||||
RLAPI Image GenImageFontAtlas(const GlyphInfo *glyphs, rayRectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info
|
||||
RLAPI void UnloadFontData(GlyphInfo *glyphs, int glyphCount); // Unload font chars info data (RAM)
|
||||
RLAPI void UnloadFont(Font font); // Unload font from GPU memory (VRAM)
|
||||
RLAPI bool ExportFontAsCode(Font font, const char *fileName); // Export font as code file, returns true on success
|
||||
|
|
@ -491,7 +491,7 @@ RLAPI int MeasureText(const char *text, int fontSize);
|
|||
RLAPI Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); // Measure string size for Font
|
||||
RLAPI int GetGlyphIndex(Font font, int codepoint); // Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
|
||||
RLAPI GlyphInfo GetGlyphInfo(Font font, int codepoint); // Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
|
||||
RLAPI Rectangle GetGlyphAtlasRec(Font font, int codepoint); // Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
|
||||
RLAPI rayRectangle GetGlyphAtlasRec(Font font, int codepoint); // Get glyph rayRectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
|
||||
|
||||
// Text codepoints management functions (unicode characters)
|
||||
RLAPI char *LoadUTF8(const int *codepoints, int length); // Load UTF-8 text encoded from codepoints array
|
||||
|
|
@ -567,8 +567,8 @@ RLAPI void DrawModelWires(Model model, Vector3 position, float scale, Color tint
|
|||
RLAPI void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); // Draw a model wires (with texture if set) with extended parameters
|
||||
RLAPI void DrawBoundingBox(BoundingBox box, Color color); // Draw bounding box (wires)
|
||||
RLAPI void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint); // Draw a billboard texture
|
||||
RLAPI void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint); // Draw a billboard texture defined by source
|
||||
RLAPI void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint); // Draw a billboard texture defined by source and rotation
|
||||
RLAPI void DrawBillboardRec(Camera camera, Texture2D texture, rayRectangle source, Vector3 position, Vector2 size, Color tint); // Draw a billboard texture defined by source
|
||||
RLAPI void DrawBillboardPro(Camera camera, Texture2D texture, rayRectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint); // Draw a billboard texture defined by source and rotation
|
||||
|
||||
// Mesh management functions
|
||||
RLAPI void UploadMesh(Mesh *mesh, bool dynamic); // Upload mesh vertex data in GPU and provide VAO/VBO ids
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ int main(void)
|
|||
|
||||
// TODO: Unload all loaded resources at this point
|
||||
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
rayCloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@
|
|||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{48871156-181A-475A-BD8D-200086A09675}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>shapes_draw_rectangle_rounded</RootNamespace>
|
||||
<RootNamespace>shapes_draw_rayRectangle_rounded</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
<ProjectName>shapes_draw_rectangle_rounded</ProjectName>
|
||||
<ProjectName>shapes_draw_rayRectangle_rounded</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
|
|
@ -374,7 +374,7 @@
|
|||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\examples\shapes\shapes_draw_rectangle_rounded.c" />
|
||||
<ClCompile Include="..\..\..\examples\shapes\shapes_draw_rayRectangle_rounded.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\raylib\raylib.vcxproj">
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@
|
|||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{1EDD4BCF-345C-4065-8CBD-7285224293C3}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>shapes_easings_rectangle_array</RootNamespace>
|
||||
<RootNamespace>shapes_easings_rayRectangle_array</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
<ProjectName>shapes_easings_rectangle_array</ProjectName>
|
||||
<ProjectName>shapes_easings_rayRectangle_array</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
|
|
@ -374,7 +374,7 @@
|
|||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\examples\shapes\shapes_easings_rectangle_array.c" />
|
||||
<ClCompile Include="..\..\..\examples\shapes\shapes_easings_rayRectangle_array.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\raylib\raylib.vcxproj">
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@
|
|||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{F90FCDC5-EE14-4B89-96DB-4392E28F34AF}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>shapes_rectangle_scaling</RootNamespace>
|
||||
<RootNamespace>shapes_rayRectangle_scaling</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
<ProjectName>shapes_rectangle_scaling</ProjectName>
|
||||
<ProjectName>shapes_rayRectangle_scaling</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
|
|
@ -374,7 +374,7 @@
|
|||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\examples\shapes\shapes_rectangle_scaling.c" />
|
||||
<ClCompile Include="..\..\..\examples\shapes\shapes_rayRectangle_scaling.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\raylib\raylib.vcxproj">
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@
|
|||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{25BCB876-B60A-499B-9046-E9801CFD7780}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>text_rectangle_bounds</RootNamespace>
|
||||
<RootNamespace>text_rayRectangle_bounds</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
<ProjectName>text_rectangle_bounds</ProjectName>
|
||||
<ProjectName>text_rayRectangle_bounds</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
|
|
@ -374,7 +374,7 @@
|
|||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\examples\text\text_rectangle_bounds.c" />
|
||||
<ClCompile Include="..\..\..\examples\text\text_rayRectangle_bounds.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\raylib\raylib.vcxproj">
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "text_writing_anim", "exampl
|
|||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "text_unicode", "examples\text_unicode.vcxproj", "{1FE8758D-7E8A-41F3-9B6D-FD50E9A2A03D}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "text_rectangle_bounds", "examples\text_rectangle_bounds.vcxproj", "{25BCB876-B60A-499B-9046-E9801CFD7780}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "text_rayRectangle_bounds", "examples\text_rayRectangle_bounds.vcxproj", "{25BCB876-B60A-499B-9046-E9801CFD7780}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "text_raylib_fonts", "examples\text_raylib_fonts.vcxproj", "{56FB0A45-145F-4EAE-B2C8-E5833E682D8F}"
|
||||
EndProject
|
||||
|
|
@ -165,7 +165,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "text_font_loading", "exampl
|
|||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "text_font_filters", "examples\text_font_filters.vcxproj", "{8CF3F7BA-4C99-43EB-B4F1-7CA346817D0A}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_rectangle_scaling", "examples\shapes_rectangle_scaling.vcxproj", "{F90FCDC5-EE14-4B89-96DB-4392E28F34AF}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_rayRectangle_scaling", "examples\shapes_rayRectangle_scaling.vcxproj", "{F90FCDC5-EE14-4B89-96DB-4392E28F34AF}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_logo_raylib_anim", "examples\shapes_logo_raylib_anim.vcxproj", "{93A864C9-93B7-4E5C-ACE7-E8FC5F9EFF79}"
|
||||
EndProject
|
||||
|
|
@ -185,7 +185,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_colors_palette", "ex
|
|||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_draw_circle_sector", "examples\shapes_draw_circle_sector.vcxproj", "{33459B4E-1839-4856-BF6B-22480D11FE31}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_draw_rectangle_rounded", "examples\shapes_draw_rectangle_rounded.vcxproj", "{48871156-181A-475A-BD8D-200086A09675}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_draw_rayRectangle_rounded", "examples\shapes_draw_rayRectangle_rounded.vcxproj", "{48871156-181A-475A-BD8D-200086A09675}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_draw_ring", "examples\shapes_draw_ring.vcxproj", "{C4416DA1-9E62-46BA-9CD3-F8963C79E1A1}"
|
||||
EndProject
|
||||
|
|
@ -193,7 +193,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_easings_ball_anim",
|
|||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_easings_box_anim", "examples\shapes_easings_box_anim.vcxproj", "{F91142E2-A999-47F0-9E74-38C1E2930EBE}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_easings_rectangle_array", "examples\shapes_easings_rectangle_array.vcxproj", "{1EDD4BCF-345C-4065-8CBD-7285224293C3}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shapes_easings_rayRectangle_array", "examples\shapes_easings_rayRectangle_array.vcxproj", "{1EDD4BCF-345C-4065-8CBD-7285224293C3}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shaders_basic_lighting", "examples\shaders_basic_lighting.vcxproj", "{A6B2A11B-0669-4AF5-A025-8DD02DBBE5EA}"
|
||||
EndProject
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ int main()
|
|||
|
||||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
rayCloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ int main(void)
|
|||
|
||||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
rayCloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue