Skip to content

Commit bb5758f

Browse files
committed
Add window overrides
1 parent 56e40e0 commit bb5758f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/Functions.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@
3232

3333
namespace raylib {
3434

35+
/**
36+
* Initialize window and OpenGL context
37+
*/
38+
inline void InitWindow(int width, int height, const std::string& title) {
39+
::InitWindow(width, height, title.c_str());
40+
}
41+
42+
/**
43+
* Set title for window
44+
*/
45+
inline void SetWindowTitle(const std::string& title) {
46+
::SetWindowTitle(title.c_str());
47+
}
48+
3549
/**
3650
* Get the human-readable, UTF-8 encoded name of the primary monitor
3751
*/

0 commit comments

Comments
 (0)