Early raylib API 3.0 support
This commit is contained in:
parent
96d1a00ac9
commit
c2472cd1a7
2
raylib
2
raylib
@ -1 +1 @@
|
|||||||
Subproject commit 7ae7a87f8ae10ed9c68f308a62d7d7b0dc31a55a
|
Subproject commit a025636fa1fa9699b1e20be32f9604e48d0e1e62
|
18
tools/api.h
18
tools/api.h
@ -5,6 +5,7 @@ bool IsWindowReady(void);
|
|||||||
bool IsWindowMinimized(void);
|
bool IsWindowMinimized(void);
|
||||||
bool IsWindowResized(void);
|
bool IsWindowResized(void);
|
||||||
bool IsWindowHidden(void);
|
bool IsWindowHidden(void);
|
||||||
|
bool IsWindowFullscreen(void);
|
||||||
void ToggleFullscreen(void);
|
void ToggleFullscreen(void);
|
||||||
void UnhideWindow(void);
|
void UnhideWindow(void);
|
||||||
void HideWindow(void);
|
void HideWindow(void);
|
||||||
@ -69,6 +70,8 @@ void TakeScreenshot(const char *fileName);
|
|||||||
int GetRandomValue(int min, int max);
|
int GetRandomValue(int min, int max);
|
||||||
unsigned char *LoadFileData(const char *fileName, int *bytesRead);
|
unsigned char *LoadFileData(const char *fileName, int *bytesRead);
|
||||||
void SaveFileData(const char *fileName, void *data, int bytesToWrite);
|
void SaveFileData(const char *fileName, void *data, int bytesToWrite);
|
||||||
|
char *LoadFileText(const char *fileName);
|
||||||
|
void SaveFileText(const char *fileName, char *text);
|
||||||
bool FileExists(const char *fileName);
|
bool FileExists(const char *fileName);
|
||||||
bool IsFileExtension(const char *fileName, const char *ext);
|
bool IsFileExtension(const char *fileName, const char *ext);
|
||||||
bool DirectoryExists(const char *dirPath);
|
bool DirectoryExists(const char *dirPath);
|
||||||
@ -214,10 +217,20 @@ Color *ImageExtractPalette(Image image, int maxPaletteSize, int *extractCount);
|
|||||||
Image ImageText(const char *text, int fontSize, Color color);
|
Image ImageText(const char *text, int fontSize, Color color);
|
||||||
Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint);
|
Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint);
|
||||||
void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint);
|
void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint);
|
||||||
void ImageDrawRectangle(Image *dst, Rectangle rec, Color color);
|
void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color);
|
||||||
|
void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color);
|
||||||
|
void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color);
|
||||||
void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color);
|
void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color);
|
||||||
|
void ImageClearBackground(Image *dst, Color color);
|
||||||
|
void ImageDrawPixel(Image *dst, int posX, int posY, Color color);
|
||||||
|
void ImageDrawPixelV(Image *dst, Vector2 position, Color color);
|
||||||
|
void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color);
|
||||||
|
void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color);
|
||||||
|
void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color);
|
||||||
|
void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color);
|
||||||
void ImageDrawText(Image *dst, Vector2 position, const char *text, int fontSize, Color color);
|
void ImageDrawText(Image *dst, Vector2 position, const char *text, int fontSize, Color color);
|
||||||
void ImageDrawTextEx(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color);
|
void ImageDrawTextEx(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color);
|
||||||
|
void ImageDrawTextEx(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color);
|
||||||
void ImageFlipVertical(Image *image);
|
void ImageFlipVertical(Image *image);
|
||||||
void ImageFlipHorizontal(Image *image);
|
void ImageFlipHorizontal(Image *image);
|
||||||
void ImageRotateCW(Image *image);
|
void ImageRotateCW(Image *image);
|
||||||
@ -245,6 +258,8 @@ void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float sc
|
|||||||
void DrawTextureRec(Texture2D texture, Rectangle sourceRec, Vector2 position, Color tint);
|
void DrawTextureRec(Texture2D texture, Rectangle sourceRec, Vector2 position, Color tint);
|
||||||
void DrawTextureQuad(Texture2D texture, Vector2 tiling, Vector2 offset, Rectangle quad, Color tint);
|
void DrawTextureQuad(Texture2D texture, Vector2 tiling, Vector2 offset, Rectangle quad, Color tint);
|
||||||
void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint);
|
void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint);
|
||||||
|
void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint);
|
||||||
|
void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint);
|
||||||
void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint);
|
void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint);
|
||||||
Font GetFontDefault(void);
|
Font GetFontDefault(void);
|
||||||
Font LoadFont(const char *fileName);
|
Font LoadFont(const char *fileName);
|
||||||
@ -343,7 +358,6 @@ bool CheckCollisionRayBox(Ray ray, BoundingBox box);
|
|||||||
RayHitInfo GetCollisionRayModel(Ray ray, Model model);
|
RayHitInfo GetCollisionRayModel(Ray ray, Model model);
|
||||||
RayHitInfo GetCollisionRayTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3);
|
RayHitInfo GetCollisionRayTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3);
|
||||||
RayHitInfo GetCollisionRayGround(Ray ray, float groundHeight);
|
RayHitInfo GetCollisionRayGround(Ray ray, float groundHeight);
|
||||||
char *LoadText(const char *fileName);
|
|
||||||
Shader LoadShader(const char *vsFileName, const char *fsFileName);
|
Shader LoadShader(const char *vsFileName, const char *fsFileName);
|
||||||
Shader LoadShaderCode(const char *vsCode, const char *fsCode);
|
Shader LoadShaderCode(const char *vsCode, const char *fsCode);
|
||||||
void UnloadShader(Shader shader);
|
void UnloadShader(Shader shader);
|
||||||
|
Loading…
Reference in New Issue
Block a user