|
|
|
@ -334,10 +334,10 @@ typedef Camera3D Camera; // Camera type fallback, defaults to Camera3D |
|
|
|
|
|
|
|
// Camera2D, defines position/orientation in 2d space |
|
|
|
typedef struct Camera2D { |
|
|
|
Vector2 offset; // Camera offset (displacement from target) |
|
|
|
Vector2 target; // Camera target (rotation and zoom origin) |
|
|
|
float rotation; // Camera rotation in degrees |
|
|
|
float zoom; // Camera zoom (scaling), should be 1.0f by default |
|
|
|
Vector2 offset; // Camera offset (screen space offset from window origin) |
|
|
|
Vector2 target; // Camera target (world space target point that is mapped to screen space offset) |
|
|
|
float rotation; // Camera rotation in degrees (pivots around target) |
|
|
|
float zoom; // Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale |
|
|
|
} Camera2D; |
|
|
|
|
|
|
|
// Mesh, vertex data and vao/vbo |
|
|
|
@ -1145,7 +1145,7 @@ RLAPI const char *GetPrevDirectoryPath(const char *dirPath); // Get previ |
|
|
|
RLAPI const char *GetWorkingDirectory(void); // Get current working directory (uses static string) |
|
|
|
RLAPI const char *GetApplicationDirectory(void); // Get the directory of the running application (uses static string) |
|
|
|
RLAPI int MakeDirectory(const char *dirPath); // Create directories (including full path requested), returns 0 on success |
|
|
|
RLAPI bool ChangeDirectory(const char *dir); // Change working directory, return true on success |
|
|
|
RLAPI bool ChangeDirectory(const char *dirPath); // Change working directory, return true on success |
|
|
|
RLAPI bool IsPathFile(const char *path); // Check if a given path is a file or a directory |
|
|
|
RLAPI bool IsFileNameValid(const char *fileName); // Check if fileName is valid for the platform/OS |
|
|
|
RLAPI FilePathList LoadDirectoryFiles(const char *dirPath); // Load directory filepaths |
|
|
|
@ -1657,7 +1657,7 @@ RLAPI Sound LoadSound(const char *fileName); // Load so |
|
|
|
RLAPI Sound LoadSoundFromWave(Wave wave); // Load sound from wave data |
|
|
|
RLAPI Sound LoadSoundAlias(Sound source); // Create a new sound that shares the same sample data as the source sound, does not own the sound data |
|
|
|
RLAPI bool IsSoundValid(Sound sound); // Checks if a sound is valid (data loaded and buffers initialized) |
|
|
|
RLAPI void UpdateSound(Sound sound, const void *data, int sampleCount); // Update sound buffer with new data (n">data and frame count should fit in sound) |
|
|
|
RLAPI void UpdateSound(Sound sound, const void *data, int sampleCount); // Update sound buffer with new data (k">default data format: 32 bit float, stereo) |
|
|
|
RLAPI void UnloadWave(Wave wave); // Unload wave data |
|
|
|
RLAPI void UnloadSound(Sound sound); // Unload sound |
|
|
|
RLAPI void UnloadSoundAlias(Sound alias); // Unload a sound alias (does not deallocate sample data) |
|
|
|
|