84 #define RAYLIB_VERSION_MAJOR 5 85 #define RAYLIB_VERSION_MINOR 1 86 #define RAYLIB_VERSION_PATCH 0 87 #define RAYLIB_VERSION "5.1-dev" 93 #if defined(__TINYC__) 94 #define __declspec(x) __attribute__((x)) 96 #if defined(BUILD_LIBTYPE_SHARED) 97 #define RLAPI __declspec(dllexport) // We are building the library as a Win32 shared library (.dll) 98 #elif defined(USE_LIBTYPE_SHARED) 99 #define RLAPI __declspec(dllimport) // We are using the library as a Win32 shared library (.dll) 102 #if defined(BUILD_LIBTYPE_SHARED) 103 #define RLAPI __attribute__((visibility("default"))) // We are building as a Unix shared library (.so/.dylib) 108 #define RLAPI // Functions defined as 'extern' by default (implicit specifiers) 115 #define PI 3.14159265358979323846f 118 #define DEG2RAD (PI/180.0f) 121 #define RAD2DEG (180.0f/PI) 127 #define RL_MALLOC(sz) malloc(sz) 130 #define RL_CALLOC(n,sz) calloc(n,sz) 133 #define RL_REALLOC(ptr,sz) realloc(ptr,sz) 136 #define RL_FREE(ptr) free(ptr) 142 #if defined(__cplusplus) 143 #define CLITERAL(type) type 145 #define CLITERAL(type) (type) 151 #if !defined(_MSC_VER) && (defined(__cplusplus) && __cplusplus < 201103L) 152 #error "C++11 or later is required. Add -std=c++11" 159 #define RL_COLOR_TYPE 160 #define RL_RECTANGLE_TYPE 161 #define RL_VECTOR2_TYPE 162 #define RL_VECTOR3_TYPE 163 #define RL_VECTOR4_TYPE 164 #define RL_QUATERNION_TYPE 165 #define RL_MATRIX_TYPE 169 #define LIGHTGRAY CLITERAL(Color){ 200, 200, 200, 255 } // Light Gray 170 #define GRAY CLITERAL(Color){ 130, 130, 130, 255 } // Gray 171 #define DARKGRAY CLITERAL(Color){ 80, 80, 80, 255 } // Dark Gray 172 #define YELLOW CLITERAL(Color){ 253, 249, 0, 255 } // Yellow 173 #define GOLD CLITERAL(Color){ 255, 203, 0, 255 } // Gold 174 #define ORANGE CLITERAL(Color){ 255, 161, 0, 255 } // Orange 175 #define PINK CLITERAL(Color){ 255, 109, 194, 255 } // Pink 176 #define RED CLITERAL(Color){ 230, 41, 55, 255 } // Red 177 #define MAROON CLITERAL(Color){ 190, 33, 55, 255 } // Maroon 178 #define GREEN CLITERAL(Color){ 0, 228, 48, 255 } // Green 179 #define LIME CLITERAL(Color){ 0, 158, 47, 255 } // Lime 180 #define DARKGREEN CLITERAL(Color){ 0, 117, 44, 255 } // Dark Green 181 #define SKYBLUE CLITERAL(Color){ 102, 191, 255, 255 } // Sky Blue 182 #define BLUE CLITERAL(Color){ 0, 121, 241, 255 } // Blue 183 #define DARKBLUE CLITERAL(Color){ 0, 82, 172, 255 } // Dark Blue 184 #define PURPLE CLITERAL(Color){ 200, 122, 255, 255 } // Purple 185 #define VIOLET CLITERAL(Color){ 135, 60, 190, 255 } // Violet 186 #define DARKPURPLE CLITERAL(Color){ 112, 31, 126, 255 } // Dark Purple 187 #define BEIGE CLITERAL(Color){ 211, 176, 131, 255 } // Beige 188 #define BROWN CLITERAL(Color){ 127, 106, 79, 255 } // Brown 189 #define DARKBROWN CLITERAL(Color){ 76, 63, 47, 255 } // Dark Brown 191 #define WHITE CLITERAL(Color){ 255, 255, 255, 255 } // White 192 #define BLACK CLITERAL(Color){ 0, 0, 0, 255 } // Black 193 #define BLANK CLITERAL(Color){ 0, 0, 0, 0 } // Blank (Transparent) 194 #define MAGENTA CLITERAL(Color){ 255, 0, 255, 255 } // Magenta 195 #define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo) 201 #if (defined(__STDC__) && __STDC_VERSION__ >= 199901L) || (defined(_MSC_VER) && _MSC_VER >= 1800) 203 #elif !defined(__cplusplus) && !defined(bool) 204 typedef enum bool {
false = 0,
true = !
false } bool;
234 float m0, m4, m8, m12;
235 float m1, m5, m9, m13;
236 float m2, m6, m10, m14;
237 float m3, m7, m11, m15;
241 typedef struct Color {
349 unsigned char *colors;
350 unsigned short *indices;
355 unsigned char *boneIds;
443 unsigned int frameCount;
444 unsigned int sampleRate;
445 unsigned int sampleSize;
446 unsigned int channels;
457 rAudioBuffer *buffer;
458 rAudioProcessor *processor;
460 unsigned int sampleRate;
461 unsigned int sampleSize;
462 unsigned int channels;
468 unsigned int frameCount;
474 unsigned int frameCount;
487 float eyeToScreenDistance;
488 float lensSeparationDistance;
489 float interpupillaryDistance;
490 float lensDistortionValues[4];
491 float chromaAbCorrection[4];
498 float leftLensCenter[2];
499 float rightLensCenter[2];
500 float leftScreenCenter[2];
501 float rightScreenCenter[2];
508 unsigned int capacity;
522 unsigned int capacity;
534 FLAG_VSYNC_HINT = 0x00000040,
535 FLAG_FULLSCREEN_MODE = 0x00000002,
536 FLAG_WINDOW_RESIZABLE = 0x00000004,
537 FLAG_WINDOW_UNDECORATED = 0x00000008,
538 FLAG_WINDOW_HIDDEN = 0x00000080,
539 FLAG_WINDOW_MINIMIZED = 0x00000200,
540 FLAG_WINDOW_MAXIMIZED = 0x00000400,
541 FLAG_WINDOW_UNFOCUSED = 0x00000800,
542 FLAG_WINDOW_TOPMOST = 0x00001000,
543 FLAG_WINDOW_ALWAYS_RUN = 0x00000100,
544 FLAG_WINDOW_TRANSPARENT = 0x00000010,
545 FLAG_WINDOW_HIGHDPI = 0x00002000,
546 FLAG_WINDOW_MOUSE_PASSTHROUGH = 0x00004000,
547 FLAG_BORDERLESS_WINDOWED_MODE = 0x00008000,
548 FLAG_MSAA_4X_HINT = 0x00000020,
549 FLAG_INTERLACED_HINT = 0x00010000
614 KEY_LEFT_BRACKET = 91,
616 KEY_RIGHT_BRACKET = 93,
635 KEY_SCROLL_LOCK = 281,
637 KEY_PRINT_SCREEN = 283,
651 KEY_LEFT_SHIFT = 340,
652 KEY_LEFT_CONTROL = 341,
654 KEY_LEFT_SUPER = 343,
655 KEY_RIGHT_SHIFT = 344,
656 KEY_RIGHT_CONTROL = 345,
658 KEY_RIGHT_SUPER = 347,
671 KEY_KP_DECIMAL = 330,
673 KEY_KP_MULTIPLY = 332,
674 KEY_KP_SUBTRACT = 333,
686 #define MOUSE_LEFT_BUTTON MOUSE_BUTTON_LEFT 687 #define MOUSE_RIGHT_BUTTON MOUSE_BUTTON_RIGHT 688 #define MOUSE_MIDDLE_BUTTON MOUSE_BUTTON_MIDDLE 692 MOUSE_BUTTON_LEFT = 0,
693 MOUSE_BUTTON_RIGHT = 1,
694 MOUSE_BUTTON_MIDDLE = 2,
695 MOUSE_BUTTON_SIDE = 3,
696 MOUSE_BUTTON_EXTRA = 4,
697 MOUSE_BUTTON_FORWARD = 5,
698 MOUSE_BUTTON_BACK = 6,
703 MOUSE_CURSOR_DEFAULT = 0,
704 MOUSE_CURSOR_ARROW = 1,
705 MOUSE_CURSOR_IBEAM = 2,
706 MOUSE_CURSOR_CROSSHAIR = 3,
707 MOUSE_CURSOR_POINTING_HAND = 4,
708 MOUSE_CURSOR_RESIZE_EW = 5,
709 MOUSE_CURSOR_RESIZE_NS = 6,
710 MOUSE_CURSOR_RESIZE_NWSE = 7,
711 MOUSE_CURSOR_RESIZE_NESW = 8,
712 MOUSE_CURSOR_RESIZE_ALL = 9,
713 MOUSE_CURSOR_NOT_ALLOWED = 10
718 GAMEPAD_BUTTON_UNKNOWN = 0,
719 GAMEPAD_BUTTON_LEFT_FACE_UP,
720 GAMEPAD_BUTTON_LEFT_FACE_RIGHT,
721 GAMEPAD_BUTTON_LEFT_FACE_DOWN,
722 GAMEPAD_BUTTON_LEFT_FACE_LEFT,
723 GAMEPAD_BUTTON_RIGHT_FACE_UP,
724 GAMEPAD_BUTTON_RIGHT_FACE_RIGHT,
725 GAMEPAD_BUTTON_RIGHT_FACE_DOWN,
726 GAMEPAD_BUTTON_RIGHT_FACE_LEFT,
727 GAMEPAD_BUTTON_LEFT_TRIGGER_1,
728 GAMEPAD_BUTTON_LEFT_TRIGGER_2,
729 GAMEPAD_BUTTON_RIGHT_TRIGGER_1,
730 GAMEPAD_BUTTON_RIGHT_TRIGGER_2,
731 GAMEPAD_BUTTON_MIDDLE_LEFT,
732 GAMEPAD_BUTTON_MIDDLE,
733 GAMEPAD_BUTTON_MIDDLE_RIGHT,
734 GAMEPAD_BUTTON_LEFT_THUMB,
735 GAMEPAD_BUTTON_RIGHT_THUMB
740 GAMEPAD_AXIS_LEFT_X = 0,
741 GAMEPAD_AXIS_LEFT_Y = 1,
742 GAMEPAD_AXIS_RIGHT_X = 2,
743 GAMEPAD_AXIS_RIGHT_Y = 3,
744 GAMEPAD_AXIS_LEFT_TRIGGER = 4,
745 GAMEPAD_AXIS_RIGHT_TRIGGER = 5
750 MATERIAL_MAP_ALBEDO = 0,
751 MATERIAL_MAP_METALNESS,
753 MATERIAL_MAP_ROUGHNESS,
754 MATERIAL_MAP_OCCLUSION,
755 MATERIAL_MAP_EMISSION,
757 MATERIAL_MAP_CUBEMAP,
758 MATERIAL_MAP_IRRADIANCE,
759 MATERIAL_MAP_PREFILTER,
763 #define MATERIAL_MAP_DIFFUSE MATERIAL_MAP_ALBEDO 764 #define MATERIAL_MAP_SPECULAR MATERIAL_MAP_METALNESS 768 SHADER_LOC_VERTEX_POSITION = 0,
769 SHADER_LOC_VERTEX_TEXCOORD01,
770 SHADER_LOC_VERTEX_TEXCOORD02,
771 SHADER_LOC_VERTEX_NORMAL,
772 SHADER_LOC_VERTEX_TANGENT,
773 SHADER_LOC_VERTEX_COLOR,
774 SHADER_LOC_MATRIX_MVP,
775 SHADER_LOC_MATRIX_VIEW,
776 SHADER_LOC_MATRIX_PROJECTION,
777 SHADER_LOC_MATRIX_MODEL,
778 SHADER_LOC_MATRIX_NORMAL,
779 SHADER_LOC_VECTOR_VIEW,
780 SHADER_LOC_COLOR_DIFFUSE,
781 SHADER_LOC_COLOR_SPECULAR,
782 SHADER_LOC_COLOR_AMBIENT,
783 SHADER_LOC_MAP_ALBEDO,
784 SHADER_LOC_MAP_METALNESS,
785 SHADER_LOC_MAP_NORMAL,
786 SHADER_LOC_MAP_ROUGHNESS,
787 SHADER_LOC_MAP_OCCLUSION,
788 SHADER_LOC_MAP_EMISSION,
789 SHADER_LOC_MAP_HEIGHT,
790 SHADER_LOC_MAP_CUBEMAP,
791 SHADER_LOC_MAP_IRRADIANCE,
792 SHADER_LOC_MAP_PREFILTER,
794 } ShaderLocationIndex;
796 #define SHADER_LOC_MAP_DIFFUSE SHADER_LOC_MAP_ALBEDO 797 #define SHADER_LOC_MAP_SPECULAR SHADER_LOC_MAP_METALNESS 801 SHADER_UNIFORM_FLOAT = 0,
806 SHADER_UNIFORM_IVEC2,
807 SHADER_UNIFORM_IVEC3,
808 SHADER_UNIFORM_IVEC4,
809 SHADER_UNIFORM_SAMPLER2D
810 } ShaderUniformDataType;
814 SHADER_ATTRIB_FLOAT = 0,
818 } ShaderAttributeDataType;
823 PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1,
824 PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA,
825 PIXELFORMAT_UNCOMPRESSED_R5G6B5,
826 PIXELFORMAT_UNCOMPRESSED_R8G8B8,
827 PIXELFORMAT_UNCOMPRESSED_R5G5B5A1,
828 PIXELFORMAT_UNCOMPRESSED_R4G4B4A4,
829 PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
830 PIXELFORMAT_UNCOMPRESSED_R32,
831 PIXELFORMAT_UNCOMPRESSED_R32G32B32,
832 PIXELFORMAT_UNCOMPRESSED_R32G32B32A32,
833 PIXELFORMAT_UNCOMPRESSED_R16,
834 PIXELFORMAT_UNCOMPRESSED_R16G16B16,
835 PIXELFORMAT_UNCOMPRESSED_R16G16B16A16,
836 PIXELFORMAT_COMPRESSED_DXT1_RGB,
837 PIXELFORMAT_COMPRESSED_DXT1_RGBA,
838 PIXELFORMAT_COMPRESSED_DXT3_RGBA,
839 PIXELFORMAT_COMPRESSED_DXT5_RGBA,
840 PIXELFORMAT_COMPRESSED_ETC1_RGB,
841 PIXELFORMAT_COMPRESSED_ETC2_RGB,
842 PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA,
843 PIXELFORMAT_COMPRESSED_PVRT_RGB,
844 PIXELFORMAT_COMPRESSED_PVRT_RGBA,
845 PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA,
846 PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA
853 TEXTURE_FILTER_POINT = 0,
854 TEXTURE_FILTER_BILINEAR,
855 TEXTURE_FILTER_TRILINEAR,
856 TEXTURE_FILTER_ANISOTROPIC_4X,
857 TEXTURE_FILTER_ANISOTROPIC_8X,
858 TEXTURE_FILTER_ANISOTROPIC_16X,
863 TEXTURE_WRAP_REPEAT = 0,
865 TEXTURE_WRAP_MIRROR_REPEAT,
866 TEXTURE_WRAP_MIRROR_CLAMP
871 CUBEMAP_LAYOUT_AUTO_DETECT = 0,
872 CUBEMAP_LAYOUT_LINE_VERTICAL,
873 CUBEMAP_LAYOUT_LINE_HORIZONTAL,
874 CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR,
875 CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE,
876 CUBEMAP_LAYOUT_PANORAMA
892 BLEND_SUBTRACT_COLORS,
893 BLEND_ALPHA_PREMULTIPLY,
895 BLEND_CUSTOM_SEPARATE
903 GESTURE_DOUBLETAP = 2,
906 GESTURE_SWIPE_RIGHT = 16,
907 GESTURE_SWIPE_LEFT = 32,
908 GESTURE_SWIPE_UP = 64,
909 GESTURE_SWIPE_DOWN = 128,
910 GESTURE_PINCH_IN = 256,
911 GESTURE_PINCH_OUT = 512
925 CAMERA_PERSPECTIVE = 0,
931 NPATCH_NINE_PATCH = 0,
932 NPATCH_THREE_PATCH_VERTICAL,
933 NPATCH_THREE_PATCH_HORIZONTAL
938 typedef void (*TraceLogCallback)(
int logLevel,
const char *text, va_list args);
939 typedef unsigned char *(*LoadFileDataCallback)(
const char *fileName,
int *dataSize);
940 typedef bool (*SaveFileDataCallback)(
const char *fileName,
void *data,
int dataSize);
941 typedef char *(*LoadFileTextCallback)(
const char *fileName);
942 typedef bool (*SaveFileTextCallback)(
const char *fileName,
char *text);
953 #if defined(__cplusplus) 958 RLAPI
void InitWindow(
int width,
int height,
const char *title);
959 RLAPI
void CloseWindow(
void);
960 RLAPI
bool WindowShouldClose(
void);
961 RLAPI
bool IsWindowReady(
void);
962 RLAPI
bool IsWindowFullscreen(
void);
963 RLAPI
bool IsWindowHidden(
void);
964 RLAPI
bool IsWindowMinimized(
void);
965 RLAPI
bool IsWindowMaximized(
void);
966 RLAPI
bool IsWindowFocused(
void);
967 RLAPI
bool IsWindowResized(
void);
968 RLAPI
bool IsWindowState(
unsigned int flag);
969 RLAPI
void SetWindowState(
unsigned int flags);
970 RLAPI
void ClearWindowState(
unsigned int flags);
971 RLAPI
void ToggleFullscreen(
void);
972 RLAPI
void ToggleBorderlessWindowed(
void);
973 RLAPI
void MaximizeWindow(
void);
974 RLAPI
void MinimizeWindow(
void);
975 RLAPI
void RestoreWindow(
void);
976 RLAPI
void SetWindowIcon(
Image image);
977 RLAPI
void SetWindowIcons(
Image *images,
int count);
978 RLAPI
void SetWindowTitle(
const char *title);
979 RLAPI
void SetWindowPosition(
int x,
int y);
980 RLAPI
void SetWindowMonitor(
int monitor);
981 RLAPI
void SetWindowMinSize(
int width,
int height);
982 RLAPI
void SetWindowMaxSize(
int width,
int height);
983 RLAPI
void SetWindowSize(
int width,
int height);
984 RLAPI
void SetWindowOpacity(
float opacity);
985 RLAPI
void SetWindowFocused(
void);
986 RLAPI
void *GetWindowHandle(
void);
987 RLAPI
int GetScreenWidth(
void);
988 RLAPI
int GetScreenHeight(
void);
989 RLAPI
int GetRenderWidth(
void);
990 RLAPI
int GetRenderHeight(
void);
991 RLAPI
int GetMonitorCount(
void);
992 RLAPI
int GetCurrentMonitor(
void);
993 RLAPI
Vector2 GetMonitorPosition(
int monitor);
994 RLAPI
int GetMonitorWidth(
int monitor);
995 RLAPI
int GetMonitorHeight(
int monitor);
996 RLAPI
int GetMonitorPhysicalWidth(
int monitor);
997 RLAPI
int GetMonitorPhysicalHeight(
int monitor);
998 RLAPI
int GetMonitorRefreshRate(
int monitor);
999 RLAPI
Vector2 GetWindowPosition(
void);
1000 RLAPI
Vector2 GetWindowScaleDPI(
void);
1001 RLAPI
const char *GetMonitorName(
int monitor);
1002 RLAPI
void SetClipboardText(
const char *text);
1003 RLAPI
const char *GetClipboardText(
void);
1004 RLAPI
void EnableEventWaiting(
void);
1005 RLAPI
void DisableEventWaiting(
void);
1008 RLAPI
void ShowCursor(
void);
1009 RLAPI
void HideCursor(
void);
1010 RLAPI
bool IsCursorHidden(
void);
1011 RLAPI
void EnableCursor(
void);
1012 RLAPI
void DisableCursor(
void);
1013 RLAPI
bool IsCursorOnScreen(
void);
1016 RLAPI
void ClearBackground(
Color color);
1017 RLAPI
void BeginDrawing(
void);
1018 RLAPI
void EndDrawing(
void);
1019 RLAPI
void BeginMode2D(
Camera2D camera);
1020 RLAPI
void EndMode2D(
void);
1021 RLAPI
void BeginMode3D(
Camera3D camera);
1022 RLAPI
void EndMode3D(
void);
1024 RLAPI
void EndTextureMode(
void);
1025 RLAPI
void BeginShaderMode(
Shader shader);
1026 RLAPI
void EndShaderMode(
void);
1027 RLAPI
void BeginBlendMode(
int mode);
1028 RLAPI
void EndBlendMode(
void);
1029 RLAPI
void BeginScissorMode(
int x,
int y,
int width,
int height);
1030 RLAPI
void EndScissorMode(
void);
1032 RLAPI
void EndVrStereoMode(
void);
1040 RLAPI
Shader LoadShader(
const char *vsFileName,
const char *fsFileName);
1041 RLAPI
Shader LoadShaderFromMemory(
const char *vsCode,
const char *fsCode);
1042 RLAPI
bool IsShaderReady(
Shader shader);
1043 RLAPI
int GetShaderLocation(
Shader shader,
const char *uniformName);
1044 RLAPI
int GetShaderLocationAttrib(
Shader shader,
const char *attribName);
1045 RLAPI
void SetShaderValue(
Shader shader,
int locIndex,
const void *value,
int uniformType);
1046 RLAPI
void SetShaderValueV(
Shader shader,
int locIndex,
const void *value,
int uniformType,
int count);
1047 RLAPI
void SetShaderValueMatrix(
Shader shader,
int locIndex,
Matrix mat);
1048 RLAPI
void SetShaderValueTexture(
Shader shader,
int locIndex,
Texture2D texture);
1049 RLAPI
void UnloadShader(
Shader shader);
1052 #define GetMouseRay GetScreenToWorldRay // Compatibility hack for previous raylib versions 1054 RLAPI
Ray GetScreenToWorldRayEx(
Vector2 position,
Camera camera,
int width,
int height);
1063 RLAPI
void SetTargetFPS(
int fps);
1064 RLAPI
float GetFrameTime(
void);
1065 RLAPI
double GetTime(
void);
1066 RLAPI
int GetFPS(
void);
1072 RLAPI
void SwapScreenBuffer(
void);
1073 RLAPI
void PollInputEvents(
void);
1074 RLAPI
void WaitTime(
double seconds);
1077 RLAPI
void SetRandomSeed(
unsigned int seed);
1078 RLAPI
int GetRandomValue(
int min,
int max);
1079 RLAPI
int *LoadRandomSequence(
unsigned int count,
int min,
int max);
1080 RLAPI
void UnloadRandomSequence(
int *sequence);
1083 RLAPI
void TakeScreenshot(
const char *fileName);
1084 RLAPI
void SetConfigFlags(
unsigned int flags);
1085 RLAPI
void OpenURL(
const char *url);
1089 RLAPI
void TraceLog(
int logLevel,
const char *text, ...);
1090 RLAPI
void SetTraceLogLevel(
int logLevel);
1091 RLAPI
void *MemAlloc(
unsigned int size);
1092 RLAPI
void *MemRealloc(
void *ptr,
unsigned int size);
1093 RLAPI
void MemFree(
void *ptr);
1097 RLAPI
void SetTraceLogCallback(TraceLogCallback callback);
1098 RLAPI
void SetLoadFileDataCallback(LoadFileDataCallback callback);
1099 RLAPI
void SetSaveFileDataCallback(SaveFileDataCallback callback);
1100 RLAPI
void SetLoadFileTextCallback(LoadFileTextCallback callback);
1101 RLAPI
void SetSaveFileTextCallback(SaveFileTextCallback callback);
1104 RLAPI
unsigned char *LoadFileData(
const char *fileName,
int *dataSize);
1105 RLAPI
void UnloadFileData(
unsigned char *data);
1106 RLAPI
bool SaveFileData(
const char *fileName,
void *data,
int dataSize);
1107 RLAPI
bool ExportDataAsCode(
const unsigned char *data,
int dataSize,
const char *fileName);
1108 RLAPI
char *LoadFileText(
const char *fileName);
1109 RLAPI
void UnloadFileText(
char *text);
1110 RLAPI
bool SaveFileText(
const char *fileName,
char *text);
1114 RLAPI
bool FileExists(
const char *fileName);
1115 RLAPI
bool DirectoryExists(
const char *dirPath);
1116 RLAPI
bool IsFileExtension(
const char *fileName,
const char *ext);
1117 RLAPI
int GetFileLength(
const char *fileName);
1118 RLAPI
const char *GetFileExtension(
const char *fileName);
1119 RLAPI
const char *GetFileName(
const char *filePath);
1120 RLAPI
const char *GetFileNameWithoutExt(
const char *filePath);
1121 RLAPI
const char *GetDirectoryPath(
const char *filePath);
1122 RLAPI
const char *GetPrevDirectoryPath(
const char *dirPath);
1123 RLAPI
const char *GetWorkingDirectory(
void);
1124 RLAPI
const char *GetApplicationDirectory(
void);
1125 RLAPI
bool ChangeDirectory(
const char *dir);
1126 RLAPI
bool IsPathFile(
const char *path);
1127 RLAPI
bool IsFileNameValid(
const char *fileName);
1128 RLAPI
FilePathList LoadDirectoryFiles(
const char *dirPath);
1129 RLAPI
FilePathList LoadDirectoryFilesEx(
const char *basePath,
const char *filter,
bool scanSubdirs);
1131 RLAPI
bool IsFileDropped(
void);
1134 RLAPI
long GetFileModTime(
const char *fileName);
1137 RLAPI
unsigned char *CompressData(
const unsigned char *data,
int dataSize,
int *compDataSize);
1138 RLAPI
unsigned char *DecompressData(
const unsigned char *compData,
int compDataSize,
int *dataSize);
1139 RLAPI
char *EncodeDataBase64(
const unsigned char *data,
int dataSize,
int *outputSize);
1140 RLAPI
unsigned char *DecodeDataBase64(
const unsigned char *data,
int *outputSize);
1147 RLAPI
void SetAutomationEventBaseFrame(
int frame);
1148 RLAPI
void StartAutomationEventRecording(
void);
1149 RLAPI
void StopAutomationEventRecording(
void);
1157 RLAPI
bool IsKeyPressed(
int key);
1158 RLAPI
bool IsKeyPressedRepeat(
int key);
1159 RLAPI
bool IsKeyDown(
int key);
1160 RLAPI
bool IsKeyReleased(
int key);
1161 RLAPI
bool IsKeyUp(
int key);
1162 RLAPI
int GetKeyPressed(
void);
1163 RLAPI
int GetCharPressed(
void);
1164 RLAPI
void SetExitKey(
int key);
1167 RLAPI
bool IsGamepadAvailable(
int gamepad);
1168 RLAPI
const char *GetGamepadName(
int gamepad);
1169 RLAPI
bool IsGamepadButtonPressed(
int gamepad,
int button);
1170 RLAPI
bool IsGamepadButtonDown(
int gamepad,
int button);
1171 RLAPI
bool IsGamepadButtonReleased(
int gamepad,
int button);
1172 RLAPI
bool IsGamepadButtonUp(
int gamepad,
int button);
1173 RLAPI
int GetGamepadButtonPressed(
void);
1174 RLAPI
int GetGamepadAxisCount(
int gamepad);
1175 RLAPI
float GetGamepadAxisMovement(
int gamepad,
int axis);
1176 RLAPI
int SetGamepadMappings(
const char *mappings);
1177 RLAPI
void SetGamepadVibration(
int gamepad,
float leftMotor,
float rightMotor);
1180 RLAPI
bool IsMouseButtonPressed(
int button);
1181 RLAPI
bool IsMouseButtonDown(
int button);
1182 RLAPI
bool IsMouseButtonReleased(
int button);
1183 RLAPI
bool IsMouseButtonUp(
int button);
1184 RLAPI
int GetMouseX(
void);
1185 RLAPI
int GetMouseY(
void);
1186 RLAPI
Vector2 GetMousePosition(
void);
1187 RLAPI
Vector2 GetMouseDelta(
void);
1188 RLAPI
void SetMousePosition(
int x,
int y);
1189 RLAPI
void SetMouseOffset(
int offsetX,
int offsetY);
1190 RLAPI
void SetMouseScale(
float scaleX,
float scaleY);
1191 RLAPI
float GetMouseWheelMove(
void);
1192 RLAPI
Vector2 GetMouseWheelMoveV(
void);
1193 RLAPI
void SetMouseCursor(
int cursor);
1196 RLAPI
int GetTouchX(
void);
1197 RLAPI
int GetTouchY(
void);
1198 RLAPI
Vector2 GetTouchPosition(
int index);
1199 RLAPI
int GetTouchPointId(
int index);
1200 RLAPI
int GetTouchPointCount(
void);
1205 RLAPI
void SetGesturesEnabled(
unsigned int flags);
1206 RLAPI
bool IsGestureDetected(
unsigned int gesture);
1207 RLAPI
int GetGestureDetected(
void);
1208 RLAPI
float GetGestureHoldDuration(
void);
1209 RLAPI
Vector2 GetGestureDragVector(
void);
1210 RLAPI
float GetGestureDragAngle(
void);
1211 RLAPI
Vector2 GetGesturePinchVector(
void);
1212 RLAPI
float GetGesturePinchAngle(
void);
1217 RLAPI
void UpdateCamera(
Camera *camera,
int mode);
1228 RLAPI
Rectangle GetShapesTextureRectangle(
void);
1231 RLAPI
void DrawPixel(
int posX,
int posY,
Color color);
1233 RLAPI
void DrawLine(
int startPosX,
int startPosY,
int endPosX,
int endPosY,
Color color);
1236 RLAPI
void DrawLineStrip(
Vector2 *points,
int pointCount,
Color color);
1238 RLAPI
void DrawCircle(
int centerX,
int centerY,
float radius,
Color color);
1239 RLAPI
void DrawCircleSector(
Vector2 center,
float radius,
float startAngle,
float endAngle,
int segments,
Color color);
1240 RLAPI
void DrawCircleSectorLines(
Vector2 center,
float radius,
float startAngle,
float endAngle,
int segments,
Color color);
1241 RLAPI
void DrawCircleGradient(
int centerX,
int centerY,
float radius,
Color color1,
Color color2);
1242 RLAPI
void DrawCircleV(
Vector2 center,
float radius,
Color color);
1243 RLAPI
void DrawCircleLines(
int centerX,
int centerY,
float radius,
Color color);
1244 RLAPI
void DrawCircleLinesV(
Vector2 center,
float radius,
Color color);
1245 RLAPI
void DrawEllipse(
int centerX,
int centerY,
float radiusH,
float radiusV,
Color color);
1246 RLAPI
void DrawEllipseLines(
int centerX,
int centerY,
float radiusH,
float radiusV,
Color color);
1247 RLAPI
void DrawRing(
Vector2 center,
float innerRadius,
float outerRadius,
float startAngle,
float endAngle,
int segments,
Color color);
1248 RLAPI
void DrawRingLines(
Vector2 center,
float innerRadius,
float outerRadius,
float startAngle,
float endAngle,
int segments,
Color color);
1249 RLAPI
void DrawRectangle(
int posX,
int posY,
int width,
int height,
Color color);
1253 RLAPI
void DrawRectangleGradientV(
int posX,
int posY,
int width,
int height,
Color color1,
Color color2);
1254 RLAPI
void DrawRectangleGradientH(
int posX,
int posY,
int width,
int height,
Color color1,
Color color2);
1256 RLAPI
void DrawRectangleLines(
int posX,
int posY,
int width,
int height,
Color color);
1257 RLAPI
void DrawRectangleLinesEx(
Rectangle rec,
float lineThick,
Color color);
1258 RLAPI
void DrawRectangleRounded(
Rectangle rec,
float roundness,
int segments,
Color color);
1259 RLAPI
void DrawRectangleRoundedLines(
Rectangle rec,
float roundness,
int segments,
Color color);
1260 RLAPI
void DrawRectangleRoundedLinesEx(
Rectangle rec,
float roundness,
int segments,
float lineThick,
Color color);
1263 RLAPI
void DrawTriangleFan(
Vector2 *points,
int pointCount,
Color color);
1264 RLAPI
void DrawTriangleStrip(
Vector2 *points,
int pointCount,
Color color);
1265 RLAPI
void DrawPoly(
Vector2 center,
int sides,
float radius,
float rotation,
Color color);
1266 RLAPI
void DrawPolyLines(
Vector2 center,
int sides,
float radius,
float rotation,
Color color);
1267 RLAPI
void DrawPolyLinesEx(
Vector2 center,
int sides,
float radius,
float rotation,
float lineThick,
Color color);
1270 RLAPI
void DrawSplineLinear(
Vector2 *points,
int pointCount,
float thick,
Color color);
1271 RLAPI
void DrawSplineBasis(
Vector2 *points,
int pointCount,
float thick,
Color color);
1272 RLAPI
void DrawSplineCatmullRom(
Vector2 *points,
int pointCount,
float thick,
Color color);
1273 RLAPI
void DrawSplineBezierQuadratic(
Vector2 *points,
int pointCount,
float thick,
Color color);
1274 RLAPI
void DrawSplineBezierCubic(
Vector2 *points,
int pointCount,
float thick,
Color color);
1290 RLAPI
bool CheckCollisionCircles(
Vector2 center1,
float radius1,
Vector2 center2,
float radius2);
1291 RLAPI
bool CheckCollisionCircleRec(
Vector2 center,
float radius,
Rectangle rec);
1293 RLAPI
bool CheckCollisionPointCircle(
Vector2 point,
Vector2 center,
float radius);
1295 RLAPI
bool CheckCollisionPointPoly(
Vector2 point,
Vector2 *points,
int pointCount);
1307 RLAPI
Image LoadImage(
const char *fileName);
1308 RLAPI
Image LoadImageRaw(
const char *fileName,
int width,
int height,
int format,
int headerSize);
1309 RLAPI
Image LoadImageSvg(
const char *fileNameOrString,
int width,
int height);
1310 RLAPI
Image LoadImageAnim(
const char *fileName,
int *frames);
1311 RLAPI
Image LoadImageAnimFromMemory(
const char *fileType,
const unsigned char *fileData,
int dataSize,
int *frames);
1312 RLAPI
Image LoadImageFromMemory(
const char *fileType,
const unsigned char *fileData,
int dataSize);
1314 RLAPI
Image LoadImageFromScreen(
void);
1315 RLAPI
bool IsImageReady(
Image image);
1316 RLAPI
void UnloadImage(
Image image);
1317 RLAPI
bool ExportImage(
Image image,
const char *fileName);
1318 RLAPI
unsigned char *ExportImageToMemory(
Image image,
const char *fileType,
int *fileSize);
1319 RLAPI
bool ExportImageAsCode(
Image image,
const char *fileName);
1322 RLAPI
Image GenImageColor(
int width,
int height,
Color color);
1323 RLAPI
Image GenImageGradientLinear(
int width,
int height,
int direction,
Color start,
Color end);
1324 RLAPI
Image GenImageGradientRadial(
int width,
int height,
float density,
Color inner,
Color outer);
1325 RLAPI
Image GenImageGradientSquare(
int width,
int height,
float density,
Color inner,
Color outer);
1326 RLAPI
Image GenImageChecked(
int width,
int height,
int checksX,
int checksY,
Color col1,
Color col2);
1327 RLAPI
Image GenImageWhiteNoise(
int width,
int height,
float factor);
1328 RLAPI
Image GenImagePerlinNoise(
int width,
int height,
int offsetX,
int offsetY,
float scale);
1329 RLAPI
Image GenImageCellular(
int width,
int height,
int tileSize);
1330 RLAPI
Image GenImageText(
int width,
int height,
const char *text);
1335 RLAPI
Image ImageText(
const char *text,
int fontSize,
Color color);
1336 RLAPI
Image ImageTextEx(
Font font,
const char *text,
float fontSize,
float spacing,
Color tint);
1337 RLAPI
void ImageFormat(
Image *image,
int newFormat);
1338 RLAPI
void ImageToPOT(
Image *image,
Color fill);
1340 RLAPI
void ImageAlphaCrop(
Image *image,
float threshold);
1341 RLAPI
void ImageAlphaClear(
Image *image,
Color color,
float threshold);
1342 RLAPI
void ImageAlphaMask(
Image *image,
Image alphaMask);
1343 RLAPI
void ImageAlphaPremultiply(
Image *image);
1344 RLAPI
void ImageBlurGaussian(
Image *image,
int blurSize);
1345 RLAPI
void ImageKernelConvolution(
Image *image,
float* kernel,
int kernelSize);
1346 RLAPI
void ImageResize(
Image *image,
int newWidth,
int newHeight);
1347 RLAPI
void ImageResizeNN(
Image *image,
int newWidth,
int newHeight);
1348 RLAPI
void ImageResizeCanvas(
Image *image,
int newWidth,
int newHeight,
int offsetX,
int offsetY,
Color fill);
1349 RLAPI
void ImageMipmaps(
Image *image);
1350 RLAPI
void ImageDither(
Image *image,
int rBpp,
int gBpp,
int bBpp,
int aBpp);
1351 RLAPI
void ImageFlipVertical(
Image *image);
1352 RLAPI
void ImageFlipHorizontal(
Image *image);
1353 RLAPI
void ImageRotate(
Image *image,
int degrees);
1354 RLAPI
void ImageRotateCW(
Image *image);
1355 RLAPI
void ImageRotateCCW(
Image *image);
1356 RLAPI
void ImageColorTint(
Image *image,
Color color);
1357 RLAPI
void ImageColorInvert(
Image *image);
1358 RLAPI
void ImageColorGrayscale(
Image *image);
1359 RLAPI
void ImageColorContrast(
Image *image,
float contrast);
1360 RLAPI
void ImageColorBrightness(
Image *image,
int brightness);
1361 RLAPI
void ImageColorReplace(
Image *image,
Color color,
Color replace);
1363 RLAPI
Color *LoadImagePalette(
Image image,
int maxPaletteSize,
int *colorCount);
1364 RLAPI
void UnloadImageColors(
Color *colors);
1365 RLAPI
void UnloadImagePalette(
Color *colors);
1366 RLAPI
Rectangle GetImageAlphaBorder(
Image image,
float threshold);
1367 RLAPI
Color GetImageColor(
Image image,
int x,
int y);
1371 RLAPI
void ImageClearBackground(
Image *dst,
Color color);
1372 RLAPI
void ImageDrawPixel(
Image *dst,
int posX,
int posY,
Color color);
1374 RLAPI
void ImageDrawLine(
Image *dst,
int startPosX,
int startPosY,
int endPosX,
int endPosY,
Color color);
1376 RLAPI
void ImageDrawCircle(
Image *dst,
int centerX,
int centerY,
int radius,
Color color);
1377 RLAPI
void ImageDrawCircleV(
Image *dst,
Vector2 center,
int radius,
Color color);
1378 RLAPI
void ImageDrawCircleLines(
Image *dst,
int centerX,
int centerY,
int radius,
Color color);
1379 RLAPI
void ImageDrawCircleLinesV(
Image *dst,
Vector2 center,
int radius,
Color color);
1380 RLAPI
void ImageDrawRectangle(
Image *dst,
int posX,
int posY,
int width,
int height,
Color color);
1385 RLAPI
void ImageDrawText(
Image *dst,
const char *text,
int posX,
int posY,
int fontSize,
Color color);
1386 RLAPI
void ImageDrawTextEx(
Image *dst,
Font font,
const char *text,
Vector2 position,
float fontSize,
float spacing,
Color tint);
1390 RLAPI
Texture2D LoadTexture(
const char *fileName);
1394 RLAPI
bool IsTextureReady(
Texture2D texture);
1395 RLAPI
void UnloadTexture(
Texture2D texture);
1398 RLAPI
void UpdateTexture(
Texture2D texture,
const void *pixels);
1402 RLAPI
void GenTextureMipmaps(
Texture2D *texture);
1403 RLAPI
void SetTextureFilter(
Texture2D texture,
int filter);
1404 RLAPI
void SetTextureWrap(
Texture2D texture,
int wrap);
1407 RLAPI
void DrawTexture(
Texture2D texture,
int posX,
int posY,
Color tint);
1409 RLAPI
void DrawTextureEx(
Texture2D texture,
Vector2 position,
float rotation,
float scale,
Color tint);
1415 RLAPI
bool ColorIsEqual(
Color col1,
Color col2);
1417 RLAPI
int ColorToInt(
Color color);
1421 RLAPI
Color ColorFromHSV(
float hue,
float saturation,
float value);
1423 RLAPI
Color ColorBrightness(
Color color,
float factor);
1424 RLAPI
Color ColorContrast(
Color color,
float contrast);
1425 RLAPI
Color ColorAlpha(
Color color,
float alpha);
1427 RLAPI
Color GetColor(
unsigned int hexValue);
1428 RLAPI
Color GetPixelColor(
void *srcPtr,
int format);
1429 RLAPI
void SetPixelColor(
void *dstPtr,
Color color,
int format);
1430 RLAPI
int GetPixelDataSize(
int width,
int height,
int format);
1437 RLAPI
Font GetFontDefault(
void);
1438 RLAPI
Font LoadFont(
const char *fileName);
1439 RLAPI
Font LoadFontEx(
const char *fileName,
int fontSize,
int *codepoints,
int codepointCount);
1440 RLAPI
Font LoadFontFromImage(
Image image,
Color key,
int firstChar);
1441 RLAPI
Font LoadFontFromMemory(
const char *fileType,
const unsigned char *fileData,
int dataSize,
int fontSize,
int *codepoints,
int codepointCount);
1442 RLAPI
bool IsFontReady(
Font font);
1443 RLAPI
GlyphInfo *LoadFontData(
const unsigned char *fileData,
int dataSize,
int fontSize,
int *codepoints,
int codepointCount,
int type);
1444 RLAPI
Image GenImageFontAtlas(
const GlyphInfo *glyphs,
Rectangle **glyphRecs,
int glyphCount,
int fontSize,
int padding,
int packMethod);
1445 RLAPI
void UnloadFontData(
GlyphInfo *glyphs,
int glyphCount);
1446 RLAPI
void UnloadFont(
Font font);
1447 RLAPI
bool ExportFontAsCode(
Font font,
const char *fileName);
1450 RLAPI
void DrawFPS(
int posX,
int posY);
1451 RLAPI
void DrawText(
const char *text,
int posX,
int posY,
int fontSize,
Color color);
1452 RLAPI
void DrawTextEx(
Font font,
const char *text,
Vector2 position,
float fontSize,
float spacing,
Color tint);
1453 RLAPI
void DrawTextPro(
Font font,
const char *text,
Vector2 position,
Vector2 origin,
float rotation,
float fontSize,
float spacing,
Color tint);
1454 RLAPI
void DrawTextCodepoint(
Font font,
int codepoint,
Vector2 position,
float fontSize,
Color tint);
1455 RLAPI
void DrawTextCodepoints(
Font font,
const int *codepoints,
int codepointCount,
Vector2 position,
float fontSize,
float spacing,
Color tint);
1458 RLAPI
void SetTextLineSpacing(
int spacing);
1459 RLAPI
int MeasureText(
const char *text,
int fontSize);
1460 RLAPI
Vector2 MeasureTextEx(
Font font,
const char *text,
float fontSize,
float spacing);
1461 RLAPI
int GetGlyphIndex(
Font font,
int codepoint);
1466 RLAPI
char *LoadUTF8(
const int *codepoints,
int length);
1467 RLAPI
void UnloadUTF8(
char *text);
1468 RLAPI
int *LoadCodepoints(
const char *text,
int *count);
1469 RLAPI
void UnloadCodepoints(
int *codepoints);
1470 RLAPI
int GetCodepointCount(
const char *text);
1471 RLAPI
int GetCodepoint(
const char *text,
int *codepointSize);
1472 RLAPI
int GetCodepointNext(
const char *text,
int *codepointSize);
1473 RLAPI
int GetCodepointPrevious(
const char *text,
int *codepointSize);
1474 RLAPI
const char *CodepointToUTF8(
int codepoint,
int *utf8Size);
1478 RLAPI
int TextCopy(
char *dst,
const char *src);
1479 RLAPI
bool TextIsEqual(
const char *text1,
const char *text2);
1480 RLAPI
unsigned int TextLength(
const char *text);
1481 RLAPI
const char *TextFormat(
const char *text, ...);
1482 RLAPI
const char *TextSubtext(
const char *text,
int position,
int length);
1483 RLAPI
char *TextReplace(
const char *text,
const char *replace,
const char *by);
1484 RLAPI
char *TextInsert(
const char *text,
const char *insert,
int position);
1485 RLAPI
const char *TextJoin(
const char **textList,
int count,
const char *delimiter);
1486 RLAPI
const char **TextSplit(
const char *text,
char delimiter,
int *count);
1487 RLAPI
void TextAppend(
char *text,
const char *append,
int *position);
1488 RLAPI
int TextFindIndex(
const char *text,
const char *find);
1489 RLAPI
const char *TextToUpper(
const char *text);
1490 RLAPI
const char *TextToLower(
const char *text);
1491 RLAPI
const char *TextToPascal(
const char *text);
1492 RLAPI
int TextToInteger(
const char *text);
1493 RLAPI
float TextToFloat(
const char *text);
1502 RLAPI
void DrawCircle3D(
Vector3 center,
float radius,
Vector3 rotationAxis,
float rotationAngle,
Color color);
1504 RLAPI
void DrawTriangleStrip3D(
Vector3 *points,
int pointCount,
Color color);
1505 RLAPI
void DrawCube(
Vector3 position,
float width,
float height,
float length,
Color color);
1507 RLAPI
void DrawCubeWires(
Vector3 position,
float width,
float height,
float length,
Color color);
1509 RLAPI
void DrawSphere(
Vector3 centerPos,
float radius,
Color color);
1510 RLAPI
void DrawSphereEx(
Vector3 centerPos,
float radius,
int rings,
int slices,
Color color);
1511 RLAPI
void DrawSphereWires(
Vector3 centerPos,
float radius,
int rings,
int slices,
Color color);
1512 RLAPI
void DrawCylinder(
Vector3 position,
float radiusTop,
float radiusBottom,
float height,
int slices,
Color color);
1513 RLAPI
void DrawCylinderEx(
Vector3 startPos,
Vector3 endPos,
float startRadius,
float endRadius,
int sides,
Color color);
1514 RLAPI
void DrawCylinderWires(
Vector3 position,
float radiusTop,
float radiusBottom,
float height,
int slices,
Color color);
1515 RLAPI
void DrawCylinderWiresEx(
Vector3 startPos,
Vector3 endPos,
float startRadius,
float endRadius,
int sides,
Color color);
1516 RLAPI
void DrawCapsule(
Vector3 startPos,
Vector3 endPos,
float radius,
int slices,
int rings,
Color color);
1517 RLAPI
void DrawCapsuleWires(
Vector3 startPos,
Vector3 endPos,
float radius,
int slices,
int rings,
Color color);
1519 RLAPI
void DrawRay(
Ray ray,
Color color);
1520 RLAPI
void DrawGrid(
int slices,
float spacing);
1527 RLAPI
Model LoadModel(
const char *fileName);
1528 RLAPI
Model LoadModelFromMesh(
Mesh mesh);
1529 RLAPI
bool IsModelReady(
Model model);
1530 RLAPI
void UnloadModel(
Model model);
1536 RLAPI
void DrawModelWires(
Model model,
Vector3 position,
float scale,
Color tint);
1544 RLAPI
void UploadMesh(
Mesh *mesh,
bool dynamic);
1545 RLAPI
void UpdateMeshBuffer(
Mesh mesh,
int index,
const void *data,
int dataSize,
int offset);
1546 RLAPI
void UnloadMesh(
Mesh mesh);
1548 RLAPI
void DrawMeshInstanced(
Mesh mesh,
Material material,
const Matrix *transforms,
int instances);
1550 RLAPI
void GenMeshTangents(
Mesh *mesh);
1551 RLAPI
bool ExportMesh(
Mesh mesh,
const char *fileName);
1552 RLAPI
bool ExportMeshAsCode(
Mesh mesh,
const char *fileName);
1555 RLAPI
Mesh GenMeshPoly(
int sides,
float radius);
1556 RLAPI
Mesh GenMeshPlane(
float width,
float length,
int resX,
int resZ);
1557 RLAPI
Mesh GenMeshCube(
float width,
float height,
float length);
1558 RLAPI
Mesh GenMeshSphere(
float radius,
int rings,
int slices);
1559 RLAPI
Mesh GenMeshHemiSphere(
float radius,
int rings,
int slices);
1560 RLAPI
Mesh GenMeshCylinder(
float radius,
float height,
int slices);
1561 RLAPI
Mesh GenMeshCone(
float radius,
float height,
int slices);
1562 RLAPI
Mesh GenMeshTorus(
float radius,
float size,
int radSeg,
int sides);
1563 RLAPI
Mesh GenMeshKnot(
float radius,
float size,
int radSeg,
int sides);
1568 RLAPI
Material *LoadMaterials(
const char *fileName,
int *materialCount);
1569 RLAPI
Material LoadMaterialDefault(
void);
1570 RLAPI
bool IsMaterialReady(
Material material);
1571 RLAPI
void UnloadMaterial(
Material material);
1572 RLAPI
void SetMaterialTexture(
Material *material,
int mapType,
Texture2D texture);
1573 RLAPI
void SetModelMeshMaterial(
Model *model,
int meshId,
int materialId);
1576 RLAPI
ModelAnimation *LoadModelAnimations(
const char *fileName,
int *animCount);
1579 RLAPI
void UnloadModelAnimations(
ModelAnimation *animations,
int animCount);
1583 RLAPI
bool CheckCollisionSpheres(
Vector3 center1,
float radius1,
Vector3 center2,
float radius2);
1595 typedef void (*AudioCallback)(
void *bufferData,
unsigned int frames);
1598 RLAPI
void InitAudioDevice(
void);
1599 RLAPI
void CloseAudioDevice(
void);
1600 RLAPI
bool IsAudioDeviceReady(
void);
1601 RLAPI
void SetMasterVolume(
float volume);
1602 RLAPI
float GetMasterVolume(
void);
1605 RLAPI
Wave LoadWave(
const char *fileName);
1606 RLAPI
Wave LoadWaveFromMemory(
const char *fileType,
const unsigned char *fileData,
int dataSize);
1607 RLAPI
bool IsWaveReady(
Wave wave);
1608 RLAPI
Sound LoadSound(
const char *fileName);
1609 RLAPI
Sound LoadSoundFromWave(
Wave wave);
1611 RLAPI
bool IsSoundReady(
Sound sound);
1612 RLAPI
void UpdateSound(
Sound sound,
const void *data,
int sampleCount);
1613 RLAPI
void UnloadWave(
Wave wave);
1614 RLAPI
void UnloadSound(
Sound sound);
1615 RLAPI
void UnloadSoundAlias(
Sound alias);
1616 RLAPI
bool ExportWave(
Wave wave,
const char *fileName);
1617 RLAPI
bool ExportWaveAsCode(
Wave wave,
const char *fileName);
1620 RLAPI
void PlaySound(
Sound sound);
1621 RLAPI
void StopSound(
Sound sound);
1622 RLAPI
void PauseSound(
Sound sound);
1623 RLAPI
void ResumeSound(
Sound sound);
1624 RLAPI
bool IsSoundPlaying(
Sound sound);
1625 RLAPI
void SetSoundVolume(
Sound sound,
float volume);
1626 RLAPI
void SetSoundPitch(
Sound sound,
float pitch);
1627 RLAPI
void SetSoundPan(
Sound sound,
float pan);
1629 RLAPI
void WaveCrop(
Wave *wave,
int initFrame,
int finalFrame);
1630 RLAPI
void WaveFormat(
Wave *wave,
int sampleRate,
int sampleSize,
int channels);
1631 RLAPI
float *LoadWaveSamples(
Wave wave);
1632 RLAPI
void UnloadWaveSamples(
float *samples);
1635 RLAPI
Music LoadMusicStream(
const char *fileName);
1636 RLAPI
Music LoadMusicStreamFromMemory(
const char *fileType,
const unsigned char *data,
int dataSize);
1637 RLAPI
bool IsMusicReady(
Music music);
1638 RLAPI
void UnloadMusicStream(
Music music);
1639 RLAPI
void PlayMusicStream(
Music music);
1640 RLAPI
bool IsMusicStreamPlaying(
Music music);
1641 RLAPI
void UpdateMusicStream(
Music music);
1642 RLAPI
void StopMusicStream(
Music music);
1643 RLAPI
void PauseMusicStream(
Music music);
1644 RLAPI
void ResumeMusicStream(
Music music);
1645 RLAPI
void SeekMusicStream(
Music music,
float position);
1646 RLAPI
void SetMusicVolume(
Music music,
float volume);
1647 RLAPI
void SetMusicPitch(
Music music,
float pitch);
1648 RLAPI
void SetMusicPan(
Music music,
float pan);
1649 RLAPI
float GetMusicTimeLength(
Music music);
1650 RLAPI
float GetMusicTimePlayed(
Music music);
1653 RLAPI
AudioStream LoadAudioStream(
unsigned int sampleRate,
unsigned int sampleSize,
unsigned int channels);
1654 RLAPI
bool IsAudioStreamReady(
AudioStream stream);
1656 RLAPI
void UpdateAudioStream(
AudioStream stream,
const void *data,
int frameCount);
1657 RLAPI
bool IsAudioStreamProcessed(
AudioStream stream);
1661 RLAPI
bool IsAudioStreamPlaying(
AudioStream stream);
1663 RLAPI
void SetAudioStreamVolume(
AudioStream stream,
float volume);
1664 RLAPI
void SetAudioStreamPitch(
AudioStream stream,
float pitch);
1665 RLAPI
void SetAudioStreamPan(
AudioStream stream,
float pan);
1666 RLAPI
void SetAudioStreamBufferSizeDefault(
int size);
1667 RLAPI
void SetAudioStreamCallback(
AudioStream stream, AudioCallback callback);
1669 RLAPI
void AttachAudioStreamProcessor(
AudioStream stream, AudioCallback processor);
1670 RLAPI
void DetachAudioStreamProcessor(
AudioStream stream, AudioCallback processor);
1672 RLAPI
void AttachAudioMixedProcessor(AudioCallback processor);
1673 RLAPI
void DetachAudioMixedProcessor(AudioCallback processor);
1675 #if defined(__cplusplus)
Definition: rlgl_standalone.c:87
Definition: rlgl_standalone.c:79