| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
RLAPI void InitWindow(int width, int height, const char *title); |
| 7 |
RLAPI void CloseWindow(void); |
| 8 |
RLAPI bool WindowShouldClose(void); |
| 9 |
RLAPI bool IsWindowReady(void); |
| 10 |
RLAPI bool IsWindowFullscreen(void); |
| 11 |
RLAPI bool IsWindowHidden(void); |
| 12 |
RLAPI bool IsWindowMinimized(void); |
| 13 |
RLAPI bool IsWindowMaximized(void); |
| 14 |
RLAPI bool IsWindowFocused(void); |
| 15 |
RLAPI bool IsWindowResized(void); |
| 16 |
RLAPI bool IsWindowState(unsigned int flag); |
| 17 |
RLAPI void SetWindowState(unsigned int flags); |
| 18 |
RLAPI void ClearWindowState(unsigned int flags); |
| 19 |
RLAPI void ToggleFullscreen(void); |
| 20 |
RLAPI void ToggleBorderlessWindowed(void); |
| 21 |
RLAPI void MaximizeWindow(void); |
| 22 |
RLAPI void MinimizeWindow(void); |
| 23 |
RLAPI void RestoreWindow(void); |
| 24 |
RLAPI void SetWindowIcon(Image image); |
| 25 |
RLAPI void SetWindowIcons(Image *images, int count); |
| 26 |
RLAPI void SetWindowTitle(const char *title); |
| 27 |
RLAPI void SetWindowPosition(int x, int y); |
| 28 |
RLAPI void SetWindowMonitor(int monitor); |
| 29 |
RLAPI void SetWindowMinSize(int width, int height); |
| 30 |
RLAPI void SetWindowMaxSize(int width, int height); |
| 31 |
RLAPI void SetWindowSize(int width, int height); |
| 32 |
RLAPI void SetWindowOpacity(float opacity); |
| 33 |
RLAPI void SetWindowFocused(void); |
| 34 |
RLAPI void *GetWindowHandle(void); |
| 35 |
RLAPI int GetScreenWidth(void); |
| 36 |
RLAPI int GetScreenHeight(void); |
| 37 |
RLAPI int GetRenderWidth(void); |
| 38 |
RLAPI int GetRenderHeight(void); |
| 39 |
RLAPI int GetMonitorCount(void); |
| 40 |
RLAPI int GetCurrentMonitor(void); |
| 41 |
RLAPI Vector2 GetMonitorPosition(int monitor); |
| 42 |
RLAPI int GetMonitorWidth(int monitor); |
| 43 |
RLAPI int GetMonitorHeight(int monitor); |
| 44 |
RLAPI int GetMonitorPhysicalWidth(int monitor); |
| 45 |
RLAPI int GetMonitorPhysicalHeight(int monitor); |
| 46 |
RLAPI int GetMonitorRefreshRate(int monitor); |
| 47 |
RLAPI Vector2 GetWindowPosition(void); |
| 48 |
RLAPI Vector2 GetWindowScaleDPI(void); |
| 49 |
RLAPI const char *GetMonitorName(int monitor); |
| 50 |
RLAPI void SetClipboardText(const char *text); |
| 51 |
RLAPI const char *GetClipboardText(void); |
| 52 |
RLAPI Image GetClipboardImage(void); |
| 53 |
RLAPI void EnableEventWaiting(void); |
| 54 |
RLAPI void DisableEventWaiting(void); |
| 55 |
|
| 56 |
|
| 57 |
RLAPI void ShowCursor(void); |
| 58 |
RLAPI void HideCursor(void); |
| 59 |
RLAPI bool IsCursorHidden(void); |
| 60 |
RLAPI void EnableCursor(void); |
| 61 |
RLAPI void DisableCursor(void); |
| 62 |
RLAPI bool IsCursorOnScreen(void); |
| 63 |
|
| 64 |
|
| 65 |
RLAPI void ClearBackground(Color color); |
| 66 |
RLAPI void BeginDrawing(void); |
| 67 |
RLAPI void EndDrawing(void); |
| 68 |
RLAPI void BeginMode2D(Camera2D camera); |
| 69 |
RLAPI void EndMode2D(void); |
| 70 |
RLAPI void BeginMode3D(Camera3D camera); |
| 71 |
RLAPI void EndMode3D(void); |
| 72 |
RLAPI void BeginTextureMode(RenderTexture2D target); |
| 73 |
RLAPI void EndTextureMode(void); |
| 74 |
RLAPI void BeginShaderMode(Shader shader); |
| 75 |
RLAPI void EndShaderMode(void); |
| 76 |
RLAPI void BeginBlendMode(int mode); |
| 77 |
RLAPI void EndBlendMode(void); |
| 78 |
RLAPI void BeginScissorMode(int x, int y, int width, int height); |
| 79 |
RLAPI void EndScissorMode(void); |
| 80 |
RLAPI void BeginVrStereoMode(VrStereoConfig config); |
| 81 |
RLAPI void EndVrStereoMode(void); |
| 82 |
|
| 83 |
|
| 84 |
RLAPI VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device); |
| 85 |
RLAPI void UnloadVrStereoConfig(VrStereoConfig config); |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
RLAPI Shader LoadShader(const char *vsFileName, const char *fsFileName); |
| 90 |
RLAPI Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode); |
| 91 |
RLAPI bool IsShaderValid(Shader shader); |
| 92 |
RLAPI int GetShaderLocation(Shader shader, const char *uniformName); |
| 93 |
RLAPI int GetShaderLocationAttrib(Shader shader, const char *attribName); |
| 94 |
RLAPI void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType); |
| 95 |
RLAPI void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count); |
| 96 |
RLAPI void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat); |
| 97 |
RLAPI void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture); |
| 98 |
RLAPI void UnloadShader(Shader shader); |
| 99 |
|
| 100 |
|
| 101 |
#define GetMouseRay GetScreenToWorldRay // Compatibility hack for previous raylib versions |
| 102 |
RLAPI Ray GetScreenToWorldRay(Vector2 position, Camera camera); |
| 103 |
RLAPI Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height); |
| 104 |
RLAPI Vector2 GetWorldToScreen(Vector3 position, Camera camera); |
| 105 |
RLAPI Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height); |
| 106 |
RLAPI Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); |
| 107 |
RLAPI Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera); |
| 108 |
RLAPI Matrix GetCameraMatrix(Camera camera); |
| 109 |
RLAPI Matrix GetCameraMatrix2D(Camera2D camera); |
| 110 |
|
| 111 |
|
| 112 |
RLAPI void SetTargetFPS(int fps); |
| 113 |
RLAPI float GetFrameTime(void); |
| 114 |
RLAPI double GetTime(void); |
| 115 |
RLAPI int GetFPS(void); |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
RLAPI void SwapScreenBuffer(void); |
| 122 |
RLAPI void PollInputEvents(void); |
| 123 |
RLAPI void WaitTime(double seconds); |
| 124 |
|
| 125 |
|
| 126 |
RLAPI void SetRandomSeed(unsigned int seed); |
| 127 |
RLAPI int GetRandomValue(int min, int max); |
| 128 |
RLAPI int *LoadRandomSequence(unsigned int count, int min, int max); |
| 129 |
RLAPI void UnloadRandomSequence(int *sequence); |
| 130 |
|
| 131 |
|
| 132 |
RLAPI void TakeScreenshot(const char *fileName); |
| 133 |
RLAPI void SetConfigFlags(unsigned int flags); |
| 134 |
RLAPI void OpenURL(const char *url); |
| 135 |
|
| 136 |
|
| 137 |
RLAPI void SetTraceLogLevel(int logLevel); |
| 138 |
RLAPI void TraceLog(int logLevel, const char *text, ...); |
| 139 |
RLAPI void SetTraceLogCallback(TraceLogCallback callback); |
| 140 |
|
| 141 |
|
| 142 |
RLAPI void *MemAlloc(unsigned int size); |
| 143 |
RLAPI void *MemRealloc(void *ptr, unsigned int size); |
| 144 |
RLAPI void MemFree(void *ptr); |
| 145 |
|
| 146 |
|
| 147 |
RLAPI unsigned char *LoadFileData(const char *fileName, int *dataSize); |
| 148 |
RLAPI void UnloadFileData(unsigned char *data); |
| 149 |
RLAPI bool SaveFileData(const char *fileName, void *data, int dataSize); |
| 150 |
RLAPI bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName); |
| 151 |
RLAPI char *LoadFileText(const char *fileName); |
| 152 |
RLAPI void UnloadFileText(char *text); |
| 153 |
RLAPI bool SaveFileText(const char *fileName, const char *text); |
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
RLAPI void SetLoadFileDataCallback(LoadFileDataCallback callback); |
| 158 |
RLAPI void SetSaveFileDataCallback(SaveFileDataCallback callback); |
| 159 |
RLAPI void SetLoadFileTextCallback(LoadFileTextCallback callback); |
| 160 |
RLAPI void SetSaveFileTextCallback(SaveFileTextCallback callback); |
| 161 |
|
| 162 |
RLAPI int FileRename(const char *fileName, const char *fileRename); |
| 163 |
RLAPI int FileRemove(const char *fileName); |
| 164 |
RLAPI int FileCopy(const char *srcPath, const char *dstPath); |
| 165 |
RLAPI int FileMove(const char *srcPath, const char *dstPath); |
| 166 |
RLAPI int FileTextReplace(const char *fileName, const char *search, const char *replacement); |
| 167 |
RLAPI int FileTextFindIndex(const char *fileName, const char *search); |
| 168 |
RLAPI bool FileExists(const char *fileName); |
| 169 |
RLAPI bool DirectoryExists(const char *dirPath); |
| 170 |
RLAPI bool IsFileExtension(const char *fileName, const char *ext); |
| 171 |
RLAPI int GetFileLength(const char *fileName); |
| 172 |
RLAPI long GetFileModTime(const char *fileName); |
| 173 |
RLAPI const char *GetFileExtension(const char *fileName); |
| 174 |
RLAPI const char *GetFileName(const char *filePath); |
| 175 |
RLAPI const char *GetFileNameWithoutExt(const char *filePath); |
| 176 |
RLAPI const char *GetDirectoryPath(const char *filePath); |
| 177 |
RLAPI const char *GetPrevDirectoryPath(const char *dirPath); |
| 178 |
RLAPI const char *GetWorkingDirectory(void); |
| 179 |
RLAPI const char *GetApplicationDirectory(void); |
| 180 |
RLAPI int MakeDirectory(const char *dirPath); |
| 181 |
RLAPI bool ChangeDirectory(const char *dirPath); |
| 182 |
RLAPI bool IsPathFile(const char *path); |
| 183 |
RLAPI bool IsFileNameValid(const char *fileName); |
| 184 |
RLAPI FilePathList LoadDirectoryFiles(const char *dirPath); |
| 185 |
RLAPI FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs); |
| 186 |
RLAPI void UnloadDirectoryFiles(FilePathList files); |
| 187 |
RLAPI bool IsFileDropped(void); |
| 188 |
RLAPI FilePathList LoadDroppedFiles(void); |
| 189 |
RLAPI void UnloadDroppedFiles(FilePathList files); |
| 190 |
RLAPI unsigned int GetDirectoryFileCount(const char *dirPath); |
| 191 |
RLAPI unsigned int GetDirectoryFileCountEx(const char *basePath, const char *filter, bool scanSubdirs); |
| 192 |
|
| 193 |
|
| 194 |
RLAPI unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize); |
| 195 |
RLAPI unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize); |
| 196 |
RLAPI char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize); |
| 197 |
RLAPI unsigned char *DecodeDataBase64(const char *text, int *outputSize); |
| 198 |
RLAPI unsigned int ComputeCRC32(unsigned char *data, int dataSize); |
| 199 |
RLAPI unsigned int *ComputeMD5(unsigned char *data, int dataSize); |
| 200 |
RLAPI unsigned int *ComputeSHA1(unsigned char *data, int dataSize); |
| 201 |
RLAPI unsigned int *ComputeSHA256(unsigned char *data, int dataSize); |
| 202 |
|
| 203 |
|
| 204 |
RLAPI AutomationEventList LoadAutomationEventList(const char *fileName); |
| 205 |
RLAPI void UnloadAutomationEventList(AutomationEventList list); |
| 206 |
RLAPI bool ExportAutomationEventList(AutomationEventList list, const char *fileName); |
| 207 |
RLAPI void SetAutomationEventList(AutomationEventList *list); |
| 208 |
RLAPI void SetAutomationEventBaseFrame(int frame); |
| 209 |
RLAPI void StartAutomationEventRecording(void); |
| 210 |
RLAPI void StopAutomationEventRecording(void); |
| 211 |
RLAPI void PlayAutomationEvent(AutomationEvent event); |
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
RLAPI bool IsKeyPressed(int key); |
| 219 |
RLAPI bool IsKeyPressedRepeat(int key); |
| 220 |
RLAPI bool IsKeyDown(int key); |
| 221 |
RLAPI bool IsKeyReleased(int key); |
| 222 |
RLAPI bool IsKeyUp(int key); |
| 223 |
RLAPI int GetKeyPressed(void); |
| 224 |
RLAPI int GetCharPressed(void); |
| 225 |
RLAPI const char *GetKeyName(int key); |
| 226 |
RLAPI void SetExitKey(int key); |
| 227 |
|
| 228 |
|
| 229 |
RLAPI bool IsGamepadAvailable(int gamepad); |
| 230 |
RLAPI const char *GetGamepadName(int gamepad); |
| 231 |
RLAPI bool IsGamepadButtonPressed(int gamepad, int button); |
| 232 |
RLAPI bool IsGamepadButtonDown(int gamepad, int button); |
| 233 |
RLAPI bool IsGamepadButtonReleased(int gamepad, int button); |
| 234 |
RLAPI bool IsGamepadButtonUp(int gamepad, int button); |
| 235 |
RLAPI int GetGamepadButtonPressed(void); |
| 236 |
RLAPI int GetGamepadAxisCount(int gamepad); |
| 237 |
RLAPI float GetGamepadAxisMovement(int gamepad, int axis); |
| 238 |
RLAPI int SetGamepadMappings(const char *mappings); |
| 239 |
RLAPI void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration); |
| 240 |
|
| 241 |
|
| 242 |
RLAPI bool IsMouseButtonPressed(int button); |
| 243 |
RLAPI bool IsMouseButtonDown(int button); |
| 244 |
RLAPI bool IsMouseButtonReleased(int button); |
| 245 |
RLAPI bool IsMouseButtonUp(int button); |
| 246 |
RLAPI int GetMouseX(void); |
| 247 |
RLAPI int GetMouseY(void); |
| 248 |
RLAPI Vector2 GetMousePosition(void); |
| 249 |
RLAPI Vector2 GetMouseDelta(void); |
| 250 |
RLAPI void SetMousePosition(int x, int y); |
| 251 |
RLAPI void SetMouseOffset(int offsetX, int offsetY); |
| 252 |
RLAPI void SetMouseScale(float scaleX, float scaleY); |
| 253 |
RLAPI float GetMouseWheelMove(void); |
| 254 |
RLAPI Vector2 GetMouseWheelMoveV(void); |
| 255 |
RLAPI void SetMouseCursor(int cursor); |
| 256 |
|
| 257 |
|
| 258 |
RLAPI int GetTouchX(void); |
| 259 |
RLAPI int GetTouchY(void); |
| 260 |
RLAPI Vector2 GetTouchPosition(int index); |
| 261 |
RLAPI int GetTouchPointId(int index); |
| 262 |
RLAPI int GetTouchPointCount(void); |
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
RLAPI void SetGesturesEnabled(unsigned int flags); |
| 268 |
RLAPI bool IsGestureDetected(unsigned int gesture); |
| 269 |
RLAPI int GetGestureDetected(void); |
| 270 |
RLAPI float GetGestureHoldDuration(void); |
| 271 |
RLAPI Vector2 GetGestureDragVector(void); |
| 272 |
RLAPI float GetGestureDragAngle(void); |
| 273 |
RLAPI Vector2 GetGesturePinchVector(void); |
| 274 |
RLAPI float GetGesturePinchAngle(void); |
| 275 |
|
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
RLAPI void UpdateCamera(Camera *camera, int mode); |
| 280 |
RLAPI void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom); |
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
RLAPI void SetShapesTexture(Texture2D texture, Rectangle source); |
| 289 |
RLAPI Texture2D GetShapesTexture(void); |
| 290 |
RLAPI Rectangle GetShapesTextureRectangle(void); |
| 291 |
|
| 292 |
|
| 293 |
RLAPI void DrawPixel(int posX, int posY, Color color); |
| 294 |
RLAPI void DrawPixelV(Vector2 position, Color color); |
| 295 |
RLAPI void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color); |
| 296 |
RLAPI void DrawLineV(Vector2 startPos, Vector2 endPos, Color color); |
| 297 |
RLAPI void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color); |
| 298 |
RLAPI void DrawLineStrip(const Vector2 *points, int pointCount, Color color); |
| 299 |
RLAPI void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color); |
| 300 |
RLAPI void DrawLineDashed(Vector2 startPos, Vector2 endPos, int dashSize, int spaceSize, Color color); |
| 301 |
RLAPI void DrawCircle(int centerX, int centerY, float radius, Color color); |
| 302 |
RLAPI void DrawCircleV(Vector2 center, float radius, Color color); |
| 303 |
RLAPI void DrawCircleGradient(Vector2 center, float radius, Color inner, Color outer); |
| 304 |
RLAPI void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); |
| 305 |
RLAPI void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); |
| 306 |
RLAPI void DrawCircleLines(int centerX, int centerY, float radius, Color color); |
| 307 |
RLAPI void DrawCircleLinesV(Vector2 center, float radius, Color color); |
| 308 |
RLAPI void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color); |
| 309 |
RLAPI void DrawEllipseV(Vector2 center, float radiusH, float radiusV, Color color); |
| 310 |
RLAPI void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color); |
| 311 |
RLAPI void DrawEllipseLinesV(Vector2 center, float radiusH, float radiusV, Color color); |
| 312 |
RLAPI void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); |
| 313 |
RLAPI void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); |
| 314 |
RLAPI void DrawRectangle(int posX, int posY, int width, int height, Color color); |
| 315 |
RLAPI void DrawRectangleV(Vector2 position, Vector2 size, Color color); |
| 316 |
RLAPI void DrawRectangleRec(Rectangle rec, Color color); |
| 317 |
RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color); |
| 318 |
RLAPI void DrawRectangleGradientV(int posX, int posY, int width, int height, Color top, Color bottom); |
| 319 |
RLAPI void DrawRectangleGradientH(int posX, int posY, int width, int height, Color left, Color right); |
| 320 |
RLAPI void DrawRectangleGradientEx(Rectangle rec, Color topLeft, Color bottomLeft, Color bottomRight, Color topRight); |
| 321 |
RLAPI void DrawRectangleLines(int posX, int posY, int width, int height, Color color); |
| 322 |
RLAPI void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color); |
| 323 |
RLAPI void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color); |
| 324 |
RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color); |
| 325 |
RLAPI void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color); |
| 326 |
RLAPI void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color); |
| 327 |
RLAPI void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color); |
| 328 |
RLAPI void DrawTriangleFan(const Vector2 *points, int pointCount, Color color); |
| 329 |
RLAPI void DrawTriangleStrip(const Vector2 *points, int pointCount, Color color); |
| 330 |
RLAPI void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color); |
| 331 |
RLAPI void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color); |
| 332 |
RLAPI void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color); |
| 333 |
|
| 334 |
|
| 335 |
RLAPI void DrawSplineLinear(const Vector2 *points, int pointCount, float thick, Color color); |
| 336 |
RLAPI void DrawSplineBasis(const Vector2 *points, int pointCount, float thick, Color color); |
| 337 |
RLAPI void DrawSplineCatmullRom(const Vector2 *points, int pointCount, float thick, Color color); |
| 338 |
RLAPI void DrawSplineBezierQuadratic(const Vector2 *points, int pointCount, float thick, Color color); |
| 339 |
RLAPI void DrawSplineBezierCubic(const Vector2 *points, int pointCount, float thick, Color color); |
| 340 |
RLAPI void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color); |
| 341 |
RLAPI void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color); |
| 342 |
RLAPI void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color); |
| 343 |
RLAPI void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color); |
| 344 |
RLAPI void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color); |
| 345 |
|
| 346 |
|
| 347 |
RLAPI Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t); |
| 348 |
RLAPI Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); |
| 349 |
RLAPI Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); |
| 350 |
RLAPI Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t); |
| 351 |
RLAPI Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t); |
| 352 |
|
| 353 |
|
| 354 |
RLAPI bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2); |
| 355 |
RLAPI bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2); |
| 356 |
RLAPI bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec); |
| 357 |
RLAPI bool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2); |
| 358 |
RLAPI bool CheckCollisionPointRec(Vector2 point, Rectangle rec); |
| 359 |
RLAPI bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius); |
| 360 |
RLAPI bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3); |
| 361 |
RLAPI bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold); |
| 362 |
RLAPI bool CheckCollisionPointPoly(Vector2 point, const Vector2 *points, int pointCount); |
| 363 |
RLAPI bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint); |
| 364 |
RLAPI Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); |
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
RLAPI Image LoadImage(const char *fileName); |
| 373 |
RLAPI Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize); |
| 374 |
RLAPI Image LoadImageAnim(const char *fileName, int *frames); |
| 375 |
RLAPI Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames); |
| 376 |
RLAPI Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); |
| 377 |
RLAPI Image LoadImageFromTexture(Texture2D texture); |
| 378 |
RLAPI Image LoadImageFromScreen(void); |
| 379 |
RLAPI bool IsImageValid(Image image); |
| 380 |
RLAPI void UnloadImage(Image image); |
| 381 |
RLAPI bool ExportImage(Image image, const char *fileName); |
| 382 |
RLAPI unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize); |
| 383 |
RLAPI bool ExportImageAsCode(Image image, const char *fileName); |
| 384 |
|
| 385 |
|
| 386 |
RLAPI Image GenImageColor(int width, int height, Color color); |
| 387 |
RLAPI Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end); |
| 388 |
RLAPI Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer); |
| 389 |
RLAPI Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer); |
| 390 |
RLAPI Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2); |
| 391 |
RLAPI Image GenImageWhiteNoise(int width, int height, float factor); |
| 392 |
RLAPI Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale); |
| 393 |
RLAPI Image GenImageCellular(int width, int height, int tileSize); |
| 394 |
RLAPI Image GenImageText(int width, int height, const char *text); |
| 395 |
|
| 396 |
|
| 397 |
RLAPI Image ImageCopy(Image image); |
| 398 |
RLAPI Image ImageFromImage(Image image, Rectangle rec); |
| 399 |
RLAPI Image ImageFromChannel(Image image, int selectedChannel); |
| 400 |
RLAPI Image ImageText(const char *text, int fontSize, Color color); |
| 401 |
RLAPI Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint); |
| 402 |
RLAPI void ImageFormat(Image *image, int newFormat); |
| 403 |
RLAPI void ImageToPOT(Image *image, Color fill); |
| 404 |
RLAPI void ImageCrop(Image *image, Rectangle crop); |
| 405 |
RLAPI void ImageAlphaCrop(Image *image, float threshold); |
| 406 |
RLAPI void ImageAlphaClear(Image *image, Color color, float threshold); |
| 407 |
RLAPI void ImageAlphaMask(Image *image, Image alphaMask); |
| 408 |
RLAPI void ImageAlphaPremultiply(Image *image); |
| 409 |
RLAPI void ImageBlurGaussian(Image *image, int blurSize); |
| 410 |
RLAPI void ImageKernelConvolution(Image *image, const float *kernel, int kernelSize); |
| 411 |
RLAPI void ImageResize(Image *image, int newWidth, int newHeight); |
| 412 |
RLAPI void ImageResizeNN(Image *image, int newWidth, int newHeight); |
| 413 |
RLAPI void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill); |
| 414 |
RLAPI void ImageMipmaps(Image *image); |
| 415 |
RLAPI void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp); |
| 416 |
RLAPI void ImageFlipVertical(Image *image); |
| 417 |
RLAPI void ImageFlipHorizontal(Image *image); |
| 418 |
RLAPI void ImageRotate(Image *image, int degrees); |
| 419 |
RLAPI void ImageRotateCW(Image *image); |
| 420 |
RLAPI void ImageRotateCCW(Image *image); |
| 421 |
RLAPI void ImageColorTint(Image *image, Color color); |
| 422 |
RLAPI void ImageColorInvert(Image *image); |
| 423 |
RLAPI void ImageColorGrayscale(Image *image); |
| 424 |
RLAPI void ImageColorContrast(Image *image, float contrast); |
| 425 |
RLAPI void ImageColorBrightness(Image *image, int brightness); |
| 426 |
RLAPI void ImageColorReplace(Image *image, Color color, Color replace); |
| 427 |
RLAPI Color *LoadImageColors(Image image); |
| 428 |
RLAPI Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount); |
| 429 |
RLAPI void UnloadImageColors(Color *colors); |
| 430 |
RLAPI void UnloadImagePalette(Color *colors); |
| 431 |
RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold); |
| 432 |
RLAPI Color GetImageColor(Image image, int x, int y); |
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
RLAPI void ImageClearBackground(Image *dst, Color color); |
| 437 |
RLAPI void ImageDrawPixel(Image *dst, int posX, int posY, Color color); |
| 438 |
RLAPI void ImageDrawPixelV(Image *dst, Vector2 position, Color color); |
| 439 |
RLAPI void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color); |
| 440 |
RLAPI void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color); |
| 441 |
RLAPI void ImageDrawLineEx(Image *dst, Vector2 start, Vector2 end, int thick, Color color); |
| 442 |
RLAPI void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color); |
| 443 |
RLAPI void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color); |
| 444 |
RLAPI void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color); |
| 445 |
RLAPI void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color); |
| 446 |
RLAPI void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color); |
| 447 |
RLAPI void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color); |
| 448 |
RLAPI void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color); |
| 449 |
RLAPI void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color); |
| 450 |
RLAPI void ImageDrawTriangle(Image *dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color); |
| 451 |
RLAPI void ImageDrawTriangleEx(Image *dst, Vector2 v1, Vector2 v2, Vector2 v3, Color c1, Color c2, Color c3); |
| 452 |
RLAPI void ImageDrawTriangleLines(Image *dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color); |
| 453 |
RLAPI void ImageDrawTriangleFan(Image *dst, const Vector2 *points, int pointCount, Color color); |
| 454 |
RLAPI void ImageDrawTriangleStrip(Image *dst, const Vector2 *points, int pointCount, Color color); |
| 455 |
RLAPI void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint); |
| 456 |
RLAPI void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color); |
| 457 |
RLAPI void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); |
| 458 |
|
| 459 |
|
| 460 |
|
| 461 |
RLAPI Texture2D LoadTexture(const char *fileName); |
| 462 |
RLAPI Texture2D LoadTextureFromImage(Image image); |
| 463 |
RLAPI TextureCubemap LoadTextureCubemap(Image image, int layout); |
| 464 |
RLAPI RenderTexture2D LoadRenderTexture(int width, int height); |
| 465 |
RLAPI bool IsTextureValid(Texture2D texture); |
| 466 |
RLAPI void UnloadTexture(Texture2D texture); |
| 467 |
RLAPI bool IsRenderTextureValid(RenderTexture2D target); |
| 468 |
RLAPI void UnloadRenderTexture(RenderTexture2D target); |
| 469 |
RLAPI void UpdateTexture(Texture2D texture, const void *pixels); |
| 470 |
RLAPI void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels); |
| 471 |
|
| 472 |
|
| 473 |
RLAPI void GenTextureMipmaps(Texture2D *texture); |
| 474 |
RLAPI void SetTextureFilter(Texture2D texture, int filter); |
| 475 |
RLAPI void SetTextureWrap(Texture2D texture, int wrap); |
| 476 |
|
| 477 |
|
| 478 |
RLAPI void DrawTexture(Texture2D texture, int posX, int posY, Color tint); |
| 479 |
RLAPI void DrawTextureV(Texture2D texture, Vector2 position, Color tint); |
| 480 |
RLAPI void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint); |
| 481 |
RLAPI void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint); |
| 482 |
RLAPI void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint); |
| 483 |
RLAPI void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint); |
| 484 |
|
| 485 |
|
| 486 |
RLAPI bool ColorIsEqual(Color col1, Color col2); |
| 487 |
RLAPI Color Fade(Color color, float alpha); |
| 488 |
RLAPI int ColorToInt(Color color); |
| 489 |
RLAPI Vector4 ColorNormalize(Color color); |
| 490 |
RLAPI Color ColorFromNormalized(Vector4 normalized); |
| 491 |
RLAPI Vector3 ColorToHSV(Color color); |
| 492 |
RLAPI Color ColorFromHSV(float hue, float saturation, float value); |
| 493 |
RLAPI Color ColorTint(Color color, Color tint); |
| 494 |
RLAPI Color ColorBrightness(Color color, float factor); |
| 495 |
RLAPI Color ColorContrast(Color color, float contrast); |
| 496 |
RLAPI Color ColorAlpha(Color color, float alpha); |
| 497 |
RLAPI Color ColorAlphaBlend(Color dst, Color src, Color tint); |
| 498 |
RLAPI Color ColorLerp(Color color1, Color color2, float factor); |
| 499 |
RLAPI Color GetColor(unsigned int hexValue); |
| 500 |
RLAPI Color GetPixelColor(void *srcPtr, int format); |
| 501 |
RLAPI void SetPixelColor(void *dstPtr, Color color, int format); |
| 502 |
RLAPI int GetPixelDataSize(int width, int height, int format); |
| 503 |
|
| 504 |
|
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
RLAPI Font GetFontDefault(void); |
| 510 |
RLAPI Font LoadFont(const char *fileName); |
| 511 |
RLAPI Font LoadFontEx(const char *fileName, int fontSize, const int *codepoints, int codepointCount); |
| 512 |
RLAPI Font LoadFontFromImage(Image image, Color key, int firstChar); |
| 513 |
RLAPI Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, const int *codepoints, int codepointCount); |
| 514 |
RLAPI bool IsFontValid(Font font); |
| 515 |
RLAPI GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, const int *codepoints, int codepointCount, int type, int *glyphCount); |
| 516 |
RLAPI Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod); |
| 517 |
RLAPI void UnloadFontData(GlyphInfo *glyphs, int glyphCount); |
| 518 |
RLAPI void UnloadFont(Font font); |
| 519 |
RLAPI bool ExportFontAsCode(Font font, const char *fileName); |
| 520 |
|
| 521 |
|
| 522 |
RLAPI void DrawFPS(int posX, int posY); |
| 523 |
RLAPI void DrawText(const char *text, int posX, int posY, int fontSize, Color color); |
| 524 |
RLAPI void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); |
| 525 |
RLAPI void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint); |
| 526 |
RLAPI void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint); |
| 527 |
RLAPI void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint); |
| 528 |
|
| 529 |
|
| 530 |
RLAPI void SetTextLineSpacing(int spacing); |
| 531 |
RLAPI int MeasureText(const char *text, int fontSize); |
| 532 |
RLAPI Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); |
| 533 |
RLAPI Vector2 MeasureTextCodepoints(Font font, const int *codepoints, int length, float fontSize, float spacing); |
| 534 |
RLAPI int GetGlyphIndex(Font font, int codepoint); |
| 535 |
RLAPI GlyphInfo GetGlyphInfo(Font font, int codepoint); |
| 536 |
RLAPI Rectangle GetGlyphAtlasRec(Font font, int codepoint); |
| 537 |
|
| 538 |
|
| 539 |
RLAPI char *LoadUTF8(const int *codepoints, int length); |
| 540 |
RLAPI void UnloadUTF8(char *text); |
| 541 |
RLAPI int *LoadCodepoints(const char *text, int *count); |
| 542 |
RLAPI void UnloadCodepoints(int *codepoints); |
| 543 |
RLAPI int GetCodepointCount(const char *text); |
| 544 |
RLAPI int GetCodepoint(const char *text, int *codepointSize); |
| 545 |
RLAPI int GetCodepointNext(const char *text, int *codepointSize); |
| 546 |
RLAPI int GetCodepointPrevious(const char *text, int *codepointSize); |
| 547 |
RLAPI const char *CodepointToUTF8(int codepoint, int *utf8Size); |
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
RLAPI char **LoadTextLines(const char *text, int *count); |
| 553 |
RLAPI void UnloadTextLines(char **text, int lineCount); |
| 554 |
RLAPI int TextCopy(char *dst, const char *src); |
| 555 |
RLAPI bool TextIsEqual(const char *text1, const char *text2); |
| 556 |
RLAPI unsigned int TextLength(const char *text); |
| 557 |
RLAPI const char *TextFormat(const char *text, ...); |
| 558 |
RLAPI const char *TextSubtext(const char *text, int position, int length); |
| 559 |
RLAPI const char *TextRemoveSpaces(const char *text); |
| 560 |
RLAPI char *GetTextBetween(const char *text, const char *begin, const char *end); |
| 561 |
RLAPI char *TextReplace(const char *text, const char *search, const char *replacement); |
| 562 |
RLAPI char *TextReplaceAlloc(const char *text, const char *search, const char *replacement); |
| 563 |
RLAPI char *TextReplaceBetween(const char *text, const char *begin, const char *end, const char *replacement); |
| 564 |
RLAPI char *TextReplaceBetweenAlloc(const char *text, const char *begin, const char *end, const char *replacement); |
| 565 |
RLAPI char *TextInsert(const char *text, const char *insert, int position); |
| 566 |
RLAPI char *TextInsertAlloc(const char *text, const char *insert, int position); |
| 567 |
RLAPI char *TextJoin(char **textList, int count, const char *delimiter); |
| 568 |
RLAPI char **TextSplit(const char *text, char delimiter, int *count); |
| 569 |
RLAPI void TextAppend(char *text, const char *append, int *position); |
| 570 |
RLAPI int TextFindIndex(const char *text, const char *search); |
| 571 |
RLAPI char *TextToUpper(const char *text); |
| 572 |
RLAPI char *TextToLower(const char *text); |
| 573 |
RLAPI char *TextToPascal(const char *text); |
| 574 |
RLAPI char *TextToSnake(const char *text); |
| 575 |
RLAPI char *TextToCamel(const char *text); |
| 576 |
RLAPI int TextToInteger(const char *text); |
| 577 |
RLAPI float TextToFloat(const char *text); |
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
|
| 582 |
|
| 583 |
|
| 584 |
RLAPI void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color); |
| 585 |
RLAPI void DrawPoint3D(Vector3 position, Color color); |
| 586 |
RLAPI void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color); |
| 587 |
RLAPI void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color); |
| 588 |
RLAPI void DrawTriangleStrip3D(const Vector3 *points, int pointCount, Color color); |
| 589 |
RLAPI void DrawCube(Vector3 position, float width, float height, float length, Color color); |
| 590 |
RLAPI void DrawCubeV(Vector3 position, Vector3 size, Color color); |
| 591 |
RLAPI void DrawCubeWires(Vector3 position, float width, float height, float length, Color color); |
| 592 |
RLAPI void DrawCubeWiresV(Vector3 position, Vector3 size, Color color); |
| 593 |
RLAPI void DrawSphere(Vector3 centerPos, float radius, Color color); |
| 594 |
RLAPI void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color); |
| 595 |
RLAPI void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color); |
| 596 |
RLAPI void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color); |
| 597 |
RLAPI void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color); |
| 598 |
RLAPI void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color); |
| 599 |
RLAPI void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color); |
| 600 |
RLAPI void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color); |
| 601 |
RLAPI void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color); |
| 602 |
RLAPI void DrawPlane(Vector3 centerPos, Vector2 size, Color color); |
| 603 |
RLAPI void DrawRay(Ray ray, Color color); |
| 604 |
RLAPI void DrawGrid(int slices, float spacing); |
| 605 |
|
| 606 |
|
| 607 |
|
| 608 |
|
| 609 |
|
| 610 |
|
| 611 |
RLAPI Model LoadModel(const char *fileName); |
| 612 |
RLAPI Model LoadModelFromMesh(Mesh mesh); |
| 613 |
RLAPI bool IsModelValid(Model model); |
| 614 |
RLAPI void UnloadModel(Model model); |
| 615 |
RLAPI BoundingBox GetModelBoundingBox(Model model); |
| 616 |
|
| 617 |
|
| 618 |
RLAPI void DrawModel(Model model, Vector3 position, float scale, Color tint); |
| 619 |
RLAPI void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); |
| 620 |
RLAPI void DrawModelWires(Model model, Vector3 position, float scale, Color tint); |
| 621 |
RLAPI void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); |
| 622 |
RLAPI void DrawBoundingBox(BoundingBox box, Color color); |
| 623 |
RLAPI void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float scale, Color tint); |
| 624 |
RLAPI void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint); |
| 625 |
RLAPI void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint); |
| 626 |
|
| 627 |
|
| 628 |
RLAPI void UploadMesh(Mesh *mesh, bool dynamic); |
| 629 |
RLAPI void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset); |
| 630 |
RLAPI void UnloadMesh(Mesh mesh); |
| 631 |
RLAPI void DrawMesh(Mesh mesh, Material material, Matrix transform); |
| 632 |
RLAPI void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances); |
| 633 |
RLAPI BoundingBox GetMeshBoundingBox(Mesh mesh); |
| 634 |
RLAPI void GenMeshTangents(Mesh *mesh); |
| 635 |
RLAPI bool ExportMesh(Mesh mesh, const char *fileName); |
| 636 |
RLAPI bool ExportMeshAsCode(Mesh mesh, const char *fileName); |
| 637 |
|
| 638 |
|
| 639 |
RLAPI Mesh GenMeshPoly(int sides, float radius); |
| 640 |
RLAPI Mesh GenMeshPlane(float width, float length, int resX, int resZ); |
| 641 |
RLAPI Mesh GenMeshCube(float width, float height, float length); |
| 642 |
RLAPI Mesh GenMeshSphere(float radius, int rings, int slices); |
| 643 |
RLAPI Mesh GenMeshHemiSphere(float radius, int rings, int slices); |
| 644 |
RLAPI Mesh GenMeshCylinder(float radius, float height, int slices); |
| 645 |
RLAPI Mesh GenMeshCone(float radius, float height, int slices); |
| 646 |
RLAPI Mesh GenMeshTorus(float radius, float size, int radSeg, int sides); |
| 647 |
RLAPI Mesh GenMeshKnot(float radius, float size, int radSeg, int sides); |
| 648 |
RLAPI Mesh GenMeshHeightmap(Image heightmap, Vector3 size); |
| 649 |
RLAPI Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize); |
| 650 |
|
| 651 |
|
| 652 |
RLAPI Material *LoadMaterials(const char *fileName, int *materialCount); |
| 653 |
RLAPI Material LoadMaterialDefault(void); |
| 654 |
RLAPI bool IsMaterialValid(Material material); |
| 655 |
RLAPI void UnloadMaterial(Material material); |
| 656 |
RLAPI void SetMaterialTexture(Material *material, int mapType, Texture2D texture); |
| 657 |
RLAPI void SetModelMeshMaterial(Model *model, int meshId, int materialId); |
| 658 |
|
| 659 |
|
| 660 |
RLAPI ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount); |
| 661 |
RLAPI void UpdateModelAnimation(Model model, ModelAnimation anim, float frame); |
| 662 |
RLAPI void UpdateModelAnimationEx(Model model, ModelAnimation animA, float frameA, ModelAnimation animB, float frameB, float blend); |
| 663 |
RLAPI void UnloadModelAnimations(ModelAnimation *animations, int animCount); |
| 664 |
RLAPI bool IsModelAnimationValid(Model model, ModelAnimation anim); |
| 665 |
|
| 666 |
|
| 667 |
RLAPI bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2); |
| 668 |
RLAPI bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2); |
| 669 |
RLAPI bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius); |
| 670 |
RLAPI RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius); |
| 671 |
RLAPI RayCollision GetRayCollisionBox(Ray ray, BoundingBox box); |
| 672 |
RLAPI RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform); |
| 673 |
RLAPI RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3); |
| 674 |
RLAPI RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4); |
| 675 |
|
| 676 |
|
| 677 |
|
| 678 |
|
| 679 |
typedef void (*AudioCallback)(void *bufferData, unsigned int frames); |
| 680 |
|
| 681 |
|
| 682 |
RLAPI void InitAudioDevice(void); |
| 683 |
RLAPI void CloseAudioDevice(void); |
| 684 |
RLAPI bool IsAudioDeviceReady(void); |
| 685 |
RLAPI void SetMasterVolume(float volume); |
| 686 |
RLAPI float GetMasterVolume(void); |
| 687 |
|
| 688 |
|
| 689 |
RLAPI Wave LoadWave(const char *fileName); |
| 690 |
RLAPI Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); |
| 691 |
RLAPI bool IsWaveValid(Wave wave); |
| 692 |
RLAPI Sound LoadSound(const char *fileName); |
| 693 |
RLAPI Sound LoadSoundFromWave(Wave wave); |
| 694 |
RLAPI Sound LoadSoundAlias(Sound source); |
| 695 |
RLAPI bool IsSoundValid(Sound sound); |
| 696 |
RLAPI void UpdateSound(Sound sound, const void *data, int sampleCount); |
| 697 |
RLAPI void UnloadWave(Wave wave); |
| 698 |
RLAPI void UnloadSound(Sound sound); |
| 699 |
RLAPI void UnloadSoundAlias(Sound alias); |
| 700 |
RLAPI bool ExportWave(Wave wave, const char *fileName); |
| 701 |
RLAPI bool ExportWaveAsCode(Wave wave, const char *fileName); |
| 702 |
|
| 703 |
|
| 704 |
RLAPI void PlaySound(Sound sound); |
| 705 |
RLAPI void StopSound(Sound sound); |
| 706 |
RLAPI void PauseSound(Sound sound); |
| 707 |
RLAPI void ResumeSound(Sound sound); |
| 708 |
RLAPI bool IsSoundPlaying(Sound sound); |
| 709 |
RLAPI void SetSoundVolume(Sound sound, float volume); |
| 710 |
RLAPI void SetSoundPitch(Sound sound, float pitch); |
| 711 |
RLAPI void SetSoundPan(Sound sound, float pan); |
| 712 |
RLAPI Wave WaveCopy(Wave wave); |
| 713 |
RLAPI void WaveCrop(Wave *wave, int initFrame, int finalFrame); |
| 714 |
RLAPI void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels); |
| 715 |
RLAPI float *LoadWaveSamples(Wave wave); |
| 716 |
RLAPI void UnloadWaveSamples(float *samples); |
| 717 |
|
| 718 |
|
| 719 |
RLAPI Music LoadMusicStream(const char *fileName); |
| 720 |
RLAPI Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize); |
| 721 |
RLAPI bool IsMusicValid(Music music); |
| 722 |
RLAPI void UnloadMusicStream(Music music); |
| 723 |
RLAPI void PlayMusicStream(Music music); |
| 724 |
RLAPI bool IsMusicStreamPlaying(Music music); |
| 725 |
RLAPI void UpdateMusicStream(Music music); |
| 726 |
RLAPI void StopMusicStream(Music music); |
| 727 |
RLAPI void PauseMusicStream(Music music); |
| 728 |
RLAPI void ResumeMusicStream(Music music); |
| 729 |
RLAPI void SeekMusicStream(Music music, float position); |
| 730 |
RLAPI void SetMusicVolume(Music music, float volume); |
| 731 |
RLAPI void SetMusicPitch(Music music, float pitch); |
| 732 |
RLAPI void SetMusicPan(Music music, float pan); |
| 733 |
RLAPI float GetMusicTimeLength(Music music); |
| 734 |
RLAPI float GetMusicTimePlayed(Music music); |
| 735 |
|
| 736 |
|
| 737 |
RLAPI AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels); |
| 738 |
RLAPI bool IsAudioStreamValid(AudioStream stream); |
| 739 |
RLAPI void UnloadAudioStream(AudioStream stream); |
| 740 |
RLAPI void UpdateAudioStream(AudioStream stream, const void *data, int frameCount); |
| 741 |
RLAPI bool IsAudioStreamProcessed(AudioStream stream); |
| 742 |
RLAPI void PlayAudioStream(AudioStream stream); |
| 743 |
RLAPI void PauseAudioStream(AudioStream stream); |
| 744 |
RLAPI void ResumeAudioStream(AudioStream stream); |
| 745 |
RLAPI bool IsAudioStreamPlaying(AudioStream stream); |
| 746 |
RLAPI void StopAudioStream(AudioStream stream); |
| 747 |
RLAPI void SetAudioStreamVolume(AudioStream stream, float volume); |
| 748 |
RLAPI void SetAudioStreamPitch(AudioStream stream, float pitch); |
| 749 |
RLAPI void SetAudioStreamPan(AudioStream stream, float pan); |
| 750 |
RLAPI void SetAudioStreamBufferSizeDefault(int size); |
| 751 |
RLAPI void SetAudioStreamCallback(AudioStream stream, AudioCallback callback); |
| 752 |
|
| 753 |
RLAPI void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor); |
| 754 |
RLAPI void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor); |
| 755 |
|
| 756 |
RLAPI void AttachAudioMixedProcessor(AudioCallback processor); |
| 757 |
RLAPI void DetachAudioMixedProcessor(AudioCallback processor); |