|
static bool | ChangeDirectory (const std::string &dir) |
| Change working directory, return true on success.
|
|
static bool | DirectoryExists (const std::string &dirPath) |
| Check if directory path exists.
|
|
static void | DrawText (const char *text, int posX, int posY, int fontSize, ::Color color) |
| Draw text (using default font)
|
|
static void | DrawText (const std::string &text, int posX, int posY, int fontSize, ::Color color) |
| Draw text (using default font)
|
|
static void | DrawTextEx (const Font &font, char *text, Vector2 position, float fontSize, float spacing, ::Color tint) |
| Draw text using font and additional parameters.
|
|
static void | DrawTextEx (const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint) |
| Draw text using font and additional parameters.
|
|
static void | DrawTextPro (const Font &font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint) |
| Draw text using Font and pro parameters (rotation)
|
|
static void | DrawTextPro (const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint) |
| Draw text using Font and pro parameters (rotation)
|
|
static bool | ExportImage (const Image &image, const std::string &fileName) |
| Export image data to file.
|
|
static bool | ExportImageAsCode (const Image &image, const std::string &fileName) |
| Export image as code file (.h) defining an array of bytes.
|
|
static bool | FileExists (const std::string &fileName) |
| Check if file exists.
|
|
static std::string | GetClipboardText () |
| Get clipboard text content.
|
|
static std::string | GetDirectoryPath (const std::string &filePath) |
| Get full path for a given fileName with path.
|
|
static std::string | GetFileExtension (const std::string &fileName) |
| Get pointer to extension for a filename string (including point: ".png")
|
|
static long | GetFileModTime (const std::string &fileName) |
| Get file modification time (last write time)
|
|
static std::string | GetFileName (const std::string &filePath) |
| Get pointer to filename for a path string.
|
|
static std::string | GetFileNameWithoutExt (const std::string &filePath) |
| Get filename string without extension.
|
|
static std::string | GetGamepadName (int gamepad) |
| Get gamepad internal name id.
|
|
static std::string | GetMonitorName (int monitor=0) |
| Get the human-readable, UTF-8 encoded name of the primary monitor.
|
|
static std::string | GetPrevDirectoryPath (const std::string &dirPath) |
| Get previous directory path for a given path.
|
|
static std::string | GetWorkingDirectory () |
| Get current working directory.
|
|
static void | InitWindow (int width, int height, const std::string &title="raylib") |
| Initialize window and OpenGL context.
|
|
static bool | IsFileExtension (const std::string &fileName, const std::string &ext) |
| Check file extension (including point: .png, .wav)
|
|
static std::vector< std::string > | LoadDirectoryFiles (const std::string &dirPath) |
| Get filenames in a directory path.
|
|
static std::vector< std::string > | LoadDroppedFiles () |
| Get dropped files names.
|
|
static std::string | LoadFileText (const std::string &fileName) |
| Load text data from file (read)
|
|
static inline ::Font | LoadFont (const std::string &fileName) |
| Load font from file (filename must include file extension)
|
|
static inline ::Font | LoadFontEx (const std::string &fileName, int fontSize, int *fontChars, int charsCount) |
| Load font from file (filename must include file extension)
|
|
static inline ::Image | LoadImage (const std::string &fileName) |
| Load an image.
|
|
static inline ::Image | LoadImageAnim (const std::string &fileName, int *frames) |
| Load animated image data.
|
|
static inline ::Image | LoadImageFromMemory (const std::string &fileType, const unsigned char *fileData, int dataSize) |
| Load image from memory buffer, fileType refers to extension like "png".
|
|
static inline ::Image | LoadImageRaw (const std::string &fileName, int width, int height, int format, int headerSize) |
| Load an image from RAW file data.
|
|
static int | MeasureText (const char *text, int fontSize) |
| Measure string width for default font.
|
|
static int | MeasureText (const std::string &text, int fontSize) |
| Measure string width for default font.
|
|
static void | OpenURL (const std::string &url) |
| Open URL with default system browser (if available)
|
|
static bool | SaveFileText (const std::string &fileName, const std::string &text) |
| Save text data to file (write)
|
|
static void | SetClipboardText (const std::string &text) |
| Set clipboard text content.
|
|
static void | SetWindowTitle (const std::string &title) |
| Set title for window.
|
|
static void | TakeScreenshot (const std::string &fileName) |
| Takes a screenshot of current screen (saved a .png)
|
|
static int | TextFindIndex (const std::string &text, const std::string &find) |
| Find first text occurrence within a string.
|
|
static std::string | TextInsert (const std::string &text, const std::string &insert, int position) |
| Insert text in a position.
|
|
static bool | TextIsEqual (const char *text1, const char *text2) |
| Check if two text string are equal.
|
|
static bool | TextIsEqual (const std::string &text1, const std::string &text2) |
| Check if two text string are equal.
|
|
static unsigned int | TextLength (const char *text) |
| Check if two text string are equal.
|
|
static unsigned int | TextLength (const std::string &text) |
| Check if two text string are equal.
|
|
static std::string | TextReplace (const std::string &text, const std::string &replace, const std::string &by) |
| Replace text string.
|
|
static std::vector< std::string > | TextSplit (const std::string &text, char delimiter) |
| Split text into multiple strings.
|
|
static std::string | TextSubtext (const std::string &text, int position, int length) |
| Get text length, checks for '\0' ending.
|
|
static int | TextToInteger (const std::string &text) |
| Get integer value from text (negative values not supported)
|
|
static std::string | TextToLower (const std::string &text) |
| Get lower case version of provided string.
|
|
static std::string | TextToPascal (const std::string &text) |
| Get Pascal case notation version of provided string.
|
|
static std::string | TextToUpper (const std::string &text) |
| Get upper case version of provided string.
|
|
All raylib-cpp classes and functions appear in the raylib namespace.