diff --git a/README.md b/README.md index 0e513e25..9458ffab 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ int main() { { BeginDrawing(); - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); diff --git a/docs/_audio_device_8hpp_source.html b/docs/_audio_device_8hpp_source.html index 598f1f3f..3c76e5c6 100644 --- a/docs/_audio_device_8hpp_source.html +++ b/docs/_audio_device_8hpp_source.html @@ -122,7 +122,7 @@
raylib::AudioDevice::IsReady
bool IsReady() const
Check if audio device has been initialized successfully.
Definition: AudioDevice.hpp:49
diff --git a/docs/_audio_stream_8hpp_source.html b/docs/_audio_stream_8hpp_source.html index 9823b488..f603d0ec 100644 --- a/docs/_audio_stream_8hpp_source.html +++ b/docs/_audio_stream_8hpp_source.html @@ -181,7 +181,7 @@
raylib::AudioStream::AudioStream
AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:20
diff --git a/docs/_bounding_box_8hpp_source.html b/docs/_bounding_box_8hpp_source.html index 282090a3..465cde40 100644 --- a/docs/_bounding_box_8hpp_source.html +++ b/docs/_bounding_box_8hpp_source.html @@ -139,7 +139,7 @@
raylib::BoundingBox::CheckCollision
bool CheckCollision(const ::Ray &ray) const
Detect collision between ray and bounding box.
Definition: BoundingBox.hpp:62
diff --git a/docs/_camera2_d_8hpp_source.html b/docs/_camera2_d_8hpp_source.html index 44ea7179..89dc76e6 100644 --- a/docs/_camera2_d_8hpp_source.html +++ b/docs/_camera2_d_8hpp_source.html @@ -147,7 +147,7 @@
raylib::Camera2D::GetWorldToScreen
Vector2 GetWorldToScreen(::Vector2 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera2D.hpp:57
diff --git a/docs/_camera3_d_8hpp_source.html b/docs/_camera3_d_8hpp_source.html index 1af68da5..5c9b6751 100644 --- a/docs/_camera3_d_8hpp_source.html +++ b/docs/_camera3_d_8hpp_source.html @@ -220,7 +220,7 @@
raylib::Camera3D::GetWorldToScreen
Vector2 GetWorldToScreen(::Vector3 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera3D.hpp:124
diff --git a/docs/_color_8hpp_source.html b/docs/_color_8hpp_source.html index e4f144b4..b4bc6829 100644 --- a/docs/_color_8hpp_source.html +++ b/docs/_color_8hpp_source.html @@ -302,7 +302,7 @@
raylib::Color::Color
Color(int hexValue)
Get Color structure from hexadecimal value.
Definition: Color.hpp:48
diff --git a/docs/_font_8hpp_source.html b/docs/_font_8hpp_source.html index b95def9a..5df8dab0 100644 --- a/docs/_font_8hpp_source.html +++ b/docs/_font_8hpp_source.html @@ -197,7 +197,7 @@
raylib::Font::DrawText
Font & DrawText(const std::string &text, ::Rectangle rec, float fontSize, float spacing, bool wordWrap, ::Color tint, int selectStart, int selectLength, ::Color selectText, ::Color selectBack)
Draw text using font inside rectangle limits with support for text selection.
Definition: Font.hpp:79
diff --git a/docs/_functions_8hpp_source.html b/docs/_functions_8hpp_source.html index 6e2301bc..979d4bbf 100644 --- a/docs/_functions_8hpp_source.html +++ b/docs/_functions_8hpp_source.html @@ -261,7 +261,7 @@
raylib::GetClipboardText
static std::string GetClipboardText()
Get clipboard text content.
Definition: Functions.hpp:52
diff --git a/docs/_gamepad_8hpp_source.html b/docs/_gamepad_8hpp_source.html index fe5ebe54..5fa76cfc 100644 --- a/docs/_gamepad_8hpp_source.html +++ b/docs/_gamepad_8hpp_source.html @@ -173,7 +173,7 @@
raylib::Gamepad::IsAvailable
static bool IsAvailable(int number)
Detect if a gamepad is available.
Definition: Gamepad.hpp:44
diff --git a/docs/_image_8hpp_source.html b/docs/_image_8hpp_source.html index 394e3af7..e5b83e04 100644 --- a/docs/_image_8hpp_source.html +++ b/docs/_image_8hpp_source.html @@ -529,7 +529,7 @@
raylib::Image::ColorReplace
Image & ColorReplace(::Color color, ::Color replace)
Modify image color: replace color.
Definition: Image.hpp:407
diff --git a/docs/_material_8hpp_source.html b/docs/_material_8hpp_source.html index e0793c30..ddc554c4 100644 --- a/docs/_material_8hpp_source.html +++ b/docs/_material_8hpp_source.html @@ -142,7 +142,7 @@
raylib::Material
Material type (generic)
Definition: Material.hpp:14
diff --git a/docs/_matrix_8hpp_source.html b/docs/_matrix_8hpp_source.html index a40b0600..00555478 100644 --- a/docs/_matrix_8hpp_source.html +++ b/docs/_matrix_8hpp_source.html @@ -318,7 +318,7 @@
raylib::Matrix::GetProjection
static Matrix GetProjection()
Get internal projection matrix.
Definition: Matrix.hpp:115
diff --git a/docs/_mesh_8hpp_source.html b/docs/_mesh_8hpp_source.html index 51dac470..8126d34b 100644 --- a/docs/_mesh_8hpp_source.html +++ b/docs/_mesh_8hpp_source.html @@ -256,7 +256,7 @@
raylib::Mesh::Plane
::Mesh Plane(float width, float length, int resX, int resZ)
Generate plane mesh (with subdivisions)
Definition: Mesh.hpp:46
diff --git a/docs/_model_8hpp_source.html b/docs/_model_8hpp_source.html index 3a1a9f8b..b69facf4 100644 --- a/docs/_model_8hpp_source.html +++ b/docs/_model_8hpp_source.html @@ -218,7 +218,7 @@
raylib::Model::UnloadKeepMeshes
Model & UnloadKeepMeshes()
Unload model (but not meshes) from memory (RAM and/or VRAM)
Definition: Model.hpp:61
diff --git a/docs/_model_animation_8hpp_source.html b/docs/_model_animation_8hpp_source.html index 1f605353..de4654bf 100644 --- a/docs/_model_animation_8hpp_source.html +++ b/docs/_model_animation_8hpp_source.html @@ -141,7 +141,7 @@
raylib::ModelAnimation
Model animation.
Definition: ModelAnimation.hpp:15
diff --git a/docs/_mouse_8hpp_source.html b/docs/_mouse_8hpp_source.html index 44d41c45..f9d0ae7a 100644 --- a/docs/_mouse_8hpp_source.html +++ b/docs/_mouse_8hpp_source.html @@ -163,7 +163,7 @@
raylib::Mouse::IsButtonReleased
static bool IsButtonReleased(int button)
Detect if a mouse button has been released once.
Definition: Mouse.hpp:30
diff --git a/docs/_music_8hpp_source.html b/docs/_music_8hpp_source.html index 4df198da..b83b9071 100644 --- a/docs/_music_8hpp_source.html +++ b/docs/_music_8hpp_source.html @@ -187,7 +187,7 @@
raylib::Music::GetTimePlayed
float GetTimePlayed() const
Get current music time played (in seconds)
Definition: Music.hpp:124
diff --git a/docs/_physics_8hpp_source.html b/docs/_physics_8hpp_source.html index d975869f..0891a31e 100644 --- a/docs/_physics_8hpp_source.html +++ b/docs/_physics_8hpp_source.html @@ -199,7 +199,7 @@
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
diff --git a/docs/_ray_8hpp_source.html b/docs/_ray_8hpp_source.html index 6075e385..e66c41da 100644 --- a/docs/_ray_8hpp_source.html +++ b/docs/_ray_8hpp_source.html @@ -158,7 +158,7 @@
raylib::Ray::GetCollisionGround
RayHitInfo GetCollisionGround(float groundHeight) const
Get collision info between ray and ground plane (Y-normal plane)
Definition: Ray.hpp:82
diff --git a/docs/_ray_hit_info_8hpp_source.html b/docs/_ray_hit_info_8hpp_source.html index 83faed54..9d4796ce 100644 --- a/docs/_ray_hit_info_8hpp_source.html +++ b/docs/_ray_hit_info_8hpp_source.html @@ -138,7 +138,7 @@
raylib::RayHitInfo::RayHitInfo
RayHitInfo(const ::Ray &ray, const ::Model &model)
Get collision info between ray and model.
Definition: RayHitInfo.hpp:34
diff --git a/docs/_rectangle_8hpp_source.html b/docs/_rectangle_8hpp_source.html index 2a7b0a86..7b45dc65 100644 --- a/docs/_rectangle_8hpp_source.html +++ b/docs/_rectangle_8hpp_source.html @@ -230,7 +230,7 @@
raylib::Rectangle::Draw
Rectangle & Draw(::Color color)
Draw a color-filled rectangle.
Definition: Rectangle.hpp:49
diff --git a/docs/_render_texture_8hpp_source.html b/docs/_render_texture_8hpp_source.html index 1cbce859..b6c7ac6c 100644 --- a/docs/_render_texture_8hpp_source.html +++ b/docs/_render_texture_8hpp_source.html @@ -138,7 +138,7 @@
raylib::Texture
Texture type.
Definition: Texture.hpp:15
diff --git a/docs/_shader_8hpp_source.html b/docs/_shader_8hpp_source.html index 7775a8f8..064d2ed3 100644 --- a/docs/_shader_8hpp_source.html +++ b/docs/_shader_8hpp_source.html @@ -203,7 +203,7 @@
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const ::Texture2D &texture)
Set shader uniform value for texture.
Definition: Shader.hpp:132
diff --git a/docs/_sound_8hpp_source.html b/docs/_sound_8hpp_source.html index 870d6e2b..92dd9cb7 100644 --- a/docs/_sound_8hpp_source.html +++ b/docs/_sound_8hpp_source.html @@ -185,7 +185,7 @@
raylib::Sound::PlayMulti
Sound & PlayMulti()
Play a sound (using multichannel buffer pool)
Definition: Sound.hpp:94
diff --git a/docs/_text_8hpp_source.html b/docs/_text_8hpp_source.html index 27e89ec6..c6211494 100644 --- a/docs/_text_8hpp_source.html +++ b/docs/_text_8hpp_source.html @@ -120,7 +120,7 @@
raylib::TextLength
static unsigned int TextLength(const std::string &text)
Check if two text string are equal.
Definition: Text.hpp:49
diff --git a/docs/_texture_8hpp_source.html b/docs/_texture_8hpp_source.html index 021516f5..acb97cc0 100644 --- a/docs/_texture_8hpp_source.html +++ b/docs/_texture_8hpp_source.html @@ -281,7 +281,7 @@
raylib::Texture::Update
Texture & Update(const void *pixels)
Update GPU texture with new data.
Definition: Texture.hpp:89
diff --git a/docs/_vector2_8hpp_source.html b/docs/_vector2_8hpp_source.html index 4a1482f8..f4a3d21d 100644 --- a/docs/_vector2_8hpp_source.html +++ b/docs/_vector2_8hpp_source.html @@ -363,7 +363,7 @@
raylib::Vector2::CheckCollisionLines
bool CheckCollisionLines(::Vector2 endPos1, ::Vector2 startPos2, ::Vector2 endPos2, ::Vector2 *collisionPoint) const
Check the collision between two lines defined by two points each, returns collision point by referenc...
Definition: Vector2.hpp:315
diff --git a/docs/_vector3_8hpp_source.html b/docs/_vector3_8hpp_source.html index df125d6a..1be203c5 100644 --- a/docs/_vector3_8hpp_source.html +++ b/docs/_vector3_8hpp_source.html @@ -387,7 +387,7 @@
raylib::Vector3::CheckCollision
bool CheckCollision(float radius1, const ::Vector3 &center2, float radius2)
Detect collision between two spheres.
Definition: Vector3.hpp:302
diff --git a/docs/_vector4_8hpp_source.html b/docs/_vector4_8hpp_source.html index 0b03cff1..75c74e32 100644 --- a/docs/_vector4_8hpp_source.html +++ b/docs/_vector4_8hpp_source.html @@ -238,7 +238,7 @@
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
diff --git a/docs/_vr_simulator_8hpp_source.html b/docs/_vr_simulator_8hpp_source.html index 32f73e11..336b9d9a 100644 --- a/docs/_vr_simulator_8hpp_source.html +++ b/docs/_vr_simulator_8hpp_source.html @@ -156,7 +156,7 @@
raylib::VrSimulator::BeginDrawing
VrSimulator & BeginDrawing()
Begin VR simulator stereo rendering.
Definition: VrSimulator.hpp:79
diff --git a/docs/_wave_8hpp_source.html b/docs/_wave_8hpp_source.html index ad5d3d96..23519245 100644 --- a/docs/_wave_8hpp_source.html +++ b/docs/_wave_8hpp_source.html @@ -201,7 +201,7 @@
raylib::Wave::LoadSound
inline ::Sound LoadSound()
Load sound from wave data.
Definition: Wave.hpp:128
diff --git a/docs/_window_8hpp_source.html b/docs/_window_8hpp_source.html index 8c9a9bb2..06793646 100644 --- a/docs/_window_8hpp_source.html +++ b/docs/_window_8hpp_source.html @@ -150,180 +150,187 @@
125  return *this;
126  }
127 
-
131  inline Window& ToggleFullscreen() {
-
132  ::ToggleFullscreen();
+
131  inline Window& ClearBackground(const raylib::Color& color = raylib::Color::Black()) {
+
132  ::ClearBackground(color);
133  return *this;
134  }
135 
-
139  inline Window& SetFullscreen(bool fullscreen) {
-
140  if (fullscreen) {
-
141  if (!IsFullscreen()) {
-
142  ToggleFullscreen();
-
143  }
-
144  } else {
-
145  if (IsFullscreen()) {
-
146  ToggleFullscreen();
-
147  }
-
148  }
-
149 
-
150  return *this;
-
151  }
-
152 
-
156  inline Window& Maximize() {
-
157  ::MaximizeWindow();
+
139  inline Window& ToggleFullscreen() {
+
140  ::ToggleFullscreen();
+
141  return *this;
+
142  }
+
143 
+
147  inline Window& SetFullscreen(bool fullscreen) {
+
148  if (fullscreen) {
+
149  if (!IsFullscreen()) {
+
150  ToggleFullscreen();
+
151  }
+
152  } else {
+
153  if (IsFullscreen()) {
+
154  ToggleFullscreen();
+
155  }
+
156  }
+
157 
158  return *this;
159  }
160 
-
164  inline Window& Minimize() {
-
165  ::MinimizeWindow();
+
164  inline Window& Maximize() {
+
165  ::MaximizeWindow();
166  return *this;
167  }
168 
-
172  inline Window& Restore() {
-
173  ::RestoreWindow();
+
172  inline Window& Minimize() {
+
173  ::MinimizeWindow();
174  return *this;
175  }
176 
-
180  inline Window& SetIcon(const ::Image& image) {
-
181  ::SetWindowIcon(image);
+
180  inline Window& Restore() {
+
181  ::RestoreWindow();
182  return *this;
183  }
184 
-
188  inline Window& SetTitle(const std::string& title) {
-
189  ::SetWindowTitle(title.c_str());
+
188  inline Window& SetIcon(const ::Image& image) {
+
189  ::SetWindowIcon(image);
190  return *this;
191  }
192 
-
196  inline Window& SetPosition(int x, int y) {
-
197  ::SetWindowPosition(x, y);
+
196  inline Window& SetTitle(const std::string& title) {
+
197  ::SetWindowTitle(title.c_str());
198  return *this;
199  }
200 
-
204  inline Window& SetPosition(const ::Vector2& position) {
-
205  return SetPosition(static_cast<int>(position.x), static_cast<int>(position.y));
-
206  }
-
207 
-
211  inline Window& SetMonitor(int monitor) {
-
212  ::SetWindowMonitor(monitor);
-
213  return *this;
+
204  inline Window& SetPosition(int x, int y) {
+
205  ::SetWindowPosition(x, y);
+
206  return *this;
+
207  }
+
208 
+
212  inline Window& SetPosition(const ::Vector2& position) {
+
213  return SetPosition(static_cast<int>(position.x), static_cast<int>(position.y));
214  }
215 
-
219  inline Window& SetMinSize(int width, int height) {
-
220  ::SetWindowMinSize(width, height);
+
219  inline Window& SetMonitor(int monitor) {
+
220  ::SetWindowMonitor(monitor);
221  return *this;
222  }
223 
-
227  inline Window& SetSize(int width, int height) {
-
228  ::SetWindowSize(width, height);
+
227  inline Window& SetMinSize(int width, int height) {
+
228  ::SetWindowMinSize(width, height);
229  return *this;
230  }
231 
-
235  inline Window& SetSize(const ::Vector2& size) {
-
236  return SetSize(static_cast<int>(size.x), static_cast<int>(size.y));
-
237  }
-
238 
-
242  inline ::Vector2 GetSize() {
-
243  return {static_cast<float>(GetWidth()), static_cast<float>(GetHeight())};
-
244  }
-
245 
-
249  inline void* GetHandle() const {
-
250  return ::GetWindowHandle();
-
251  }
-
252 
-
256  inline Window& BeginDrawing() {
-
257  ::BeginDrawing();
-
258  return *this;
+
235  inline Window& SetSize(int width, int height) {
+
236  ::SetWindowSize(width, height);
+
237  return *this;
+
238  }
+
239 
+
243  inline Window& SetSize(const ::Vector2& size) {
+
244  return SetSize(static_cast<int>(size.x), static_cast<int>(size.y));
+
245  }
+
246 
+
250  inline ::Vector2 GetSize() {
+
251  return {static_cast<float>(GetWidth()), static_cast<float>(GetHeight())};
+
252  }
+
253 
+
257  inline void* GetHandle() const {
+
258  return ::GetWindowHandle();
259  }
260 
-
264  inline Window& EndDrawing() {
-
265  ::EndDrawing();
+
264  inline Window& BeginDrawing() {
+
265  ::BeginDrawing();
266  return *this;
267  }
268 
-
272  inline int GetWidth() const {
-
273  return ::GetScreenWidth();
-
274  }
-
275 
-
279  inline int GetHeight() const {
-
280  return ::GetScreenHeight();
-
281  }
-
282 
-
286  inline ::Vector2 GetPosition() const {
-
287  return ::GetWindowPosition();
-
288  }
-
289 
-
293  inline ::Vector2 GetScaleDPI() const {
-
294  return ::GetWindowScaleDPI();
-
295  }
-
296 
-
300  inline Window& SetTargetFPS(int fps) {
-
301  ::SetTargetFPS(fps);
-
302  return *this;
+
272  inline Window& EndDrawing() {
+
273  ::EndDrawing();
+
274  return *this;
+
275  }
+
276 
+
280  inline int GetWidth() const {
+
281  return ::GetScreenWidth();
+
282  }
+
283 
+
287  inline int GetHeight() const {
+
288  return ::GetScreenHeight();
+
289  }
+
290 
+
294  inline ::Vector2 GetPosition() const {
+
295  return ::GetWindowPosition();
+
296  }
+
297 
+
301  inline ::Vector2 GetScaleDPI() const {
+
302  return ::GetWindowScaleDPI();
303  }
304 
-
308  inline int GetFPS() const {
-
309  return ::GetFPS();
-
310  }
-
311 
-
315  inline float GetFrameTime() const {
-
316  return ::GetFrameTime();
-
317  }
-
318 
-
322  inline double GetTime() const {
-
323  return ::GetTime();
-
324  }
-
325 };
-
326 } // namespace raylib
-
327 
-
328 #endif // RAYLIB_CPP_INCLUDE_WINDOW_HPP_
+
308  inline Window& SetTargetFPS(int fps) {
+
309  ::SetTargetFPS(fps);
+
310  return *this;
+
311  }
+
312 
+
316  inline int GetFPS() const {
+
317  return ::GetFPS();
+
318  }
+
319 
+
323  inline float GetFrameTime() const {
+
324  return ::GetFrameTime();
+
325  }
+
326 
+
330  inline double GetTime() const {
+
331  return ::GetTime();
+
332  }
+
333 };
+
334 } // namespace raylib
+
335 
+
336 #endif // RAYLIB_CPP_INCLUDE_WINDOW_HPP_
-
raylib::Window::GetSize
inline ::Vector2 GetSize()
Get the screen's width and height.
Definition: Window.hpp:242
-
raylib::Window::GetWidth
int GetWidth() const
Get current screen width.
Definition: Window.hpp:272
-
raylib::Window::GetHandle
void * GetHandle() const
Get native window handle.
Definition: Window.hpp:249
+
raylib::Window::GetSize
inline ::Vector2 GetSize()
Get the screen's width and height.
Definition: Window.hpp:250
+
raylib::Window::GetWidth
int GetWidth() const
Get current screen width.
Definition: Window.hpp:280
+
raylib::Window::GetHandle
void * GetHandle() const
Get native window handle.
Definition: Window.hpp:257
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
-
raylib::Window::SetMonitor
Window & SetMonitor(int monitor)
Set monitor for the current window.
Definition: Window.hpp:211
-
raylib::Window::GetTime
double GetTime() const
Returns elapsed time in seconds since InitWindow()
Definition: Window.hpp:322
+
raylib::Window::SetMonitor
Window & SetMonitor(int monitor)
Set monitor for the current window.
Definition: Window.hpp:219
+
raylib::Window::GetTime
double GetTime() const
Returns elapsed time in seconds since InitWindow()
Definition: Window.hpp:330
+
raylib::Window::ClearBackground
Window & ClearBackground(const raylib::Color &color=raylib::Color::Black())
Clear window with given color.
Definition: Window.hpp:131
raylib::Window::~Window
~Window()
Close window and unload OpenGL context.
Definition: Window.hpp:27
raylib::Window::IsHidden
bool IsHidden() const
Check if window is currently hidden.
Definition: Window.hpp:73
raylib::SetWindowTitle
static void SetWindowTitle(const std::string &title)
Set title for window.
Definition: Functions.hpp:31
raylib::Window::Close
void Close()
Close window and unload OpenGL context.
Definition: Window.hpp:45
-
raylib::Window::SetMinSize
Window & SetMinSize(int width, int height)
Set window minimum dimensions.
Definition: Window.hpp:219
+
raylib::Window::SetMinSize
Window & SetMinSize(int width, int height)
Set window minimum dimensions.
Definition: Window.hpp:227
raylib::Window::SetState
Window & SetState(unsigned int flag)
Set window configuration state using flags.
Definition: Window.hpp:115
-
raylib::Window::GetFrameTime
float GetFrameTime() const
Returns time in seconds for last frame drawn.
Definition: Window.hpp:315
+
raylib::Window::GetFrameTime
float GetFrameTime() const
Returns time in seconds for last frame drawn.
Definition: Window.hpp:323
raylib::Window::ShouldClose
bool ShouldClose() const
Check if KEY_ESCAPE pressed or Close icon pressed.
Definition: Window.hpp:38
raylib::InitWindow
static void InitWindow(int width, int height, const std::string &title="raylib")
Initialize window and OpenGL context.
Definition: Functions.hpp:24
-
raylib::Window::SetFullscreen
Window & SetFullscreen(bool fullscreen)
Set whether or not the application should be fullscreen.
Definition: Window.hpp:139
-
raylib::Window::SetPosition
Window & SetPosition(int x, int y)
Set window position on screen.
Definition: Window.hpp:196
-
raylib::Window::SetSize
Window & SetSize(const ::Vector2 &size)
Set window dimensions.
Definition: Window.hpp:235
+
raylib::Window::SetFullscreen
Window & SetFullscreen(bool fullscreen)
Set whether or not the application should be fullscreen.
Definition: Window.hpp:147
+
raylib::Window::SetPosition
Window & SetPosition(int x, int y)
Set window position on screen.
Definition: Window.hpp:204
+
raylib::Window::SetSize
Window & SetSize(const ::Vector2 &size)
Set window dimensions.
Definition: Window.hpp:243
raylib::Window::IsMaximized
bool IsMaximized() const
Check if window is currently minimized.
Definition: Window.hpp:87
-
raylib::Window::GetScaleDPI
inline ::Vector2 GetScaleDPI() const
Get window scale DPI factor.
Definition: Window.hpp:293
+
raylib::Window::GetScaleDPI
inline ::Vector2 GetScaleDPI() const
Get window scale DPI factor.
Definition: Window.hpp:301
raylib::Window::Window
Window(int width=800, int height=450, const std::string &title="raylib", bool lateInit=false)
Initialize window and OpenGL context.
Definition: Window.hpp:17
raylib::Window::IsFocused
bool IsFocused() const
Check if window is currently focused.
Definition: Window.hpp:94
raylib::Window::IsResized
bool IsResized() const
Check if window has been resized last frame.
Definition: Window.hpp:101
-
raylib::Window::GetHeight
int GetHeight() const
Get current screen height.
Definition: Window.hpp:279
-
raylib::Window::EndDrawing
Window & EndDrawing()
End canvas drawing and swap buffers (double buffering)
Definition: Window.hpp:264
-
raylib::Window::SetSize
Window & SetSize(int width, int height)
Set window dimensions.
Definition: Window.hpp:227
-
raylib::Window::GetFPS
int GetFPS() const
Returns current FPS.
Definition: Window.hpp:308
-
raylib::Window::Minimize
Window & Minimize()
Set window state: minimized, if resizable (only PLATFORM_DESKTOP)
Definition: Window.hpp:164
-
raylib::Window::ToggleFullscreen
Window & ToggleFullscreen()
Toggle window state: fullscreen/windowed.
Definition: Window.hpp:131
-
raylib::Window::Maximize
Window & Maximize()
Set window state: maximized, if resizable (only PLATFORM_DESKTOP)
Definition: Window.hpp:156
-
raylib::Window::SetTitle
Window & SetTitle(const std::string &title)
Set title for window.
Definition: Window.hpp:188
+
raylib::Window::GetHeight
int GetHeight() const
Get current screen height.
Definition: Window.hpp:287
+
raylib::Window::EndDrawing
Window & EndDrawing()
End canvas drawing and swap buffers (double buffering)
Definition: Window.hpp:272
+
raylib::Window::SetSize
Window & SetSize(int width, int height)
Set window dimensions.
Definition: Window.hpp:235
+
raylib::Window::GetFPS
int GetFPS() const
Returns current FPS.
Definition: Window.hpp:316
+
raylib::Window::Minimize
Window & Minimize()
Set window state: minimized, if resizable (only PLATFORM_DESKTOP)
Definition: Window.hpp:172
+
raylib::Window::ToggleFullscreen
Window & ToggleFullscreen()
Toggle window state: fullscreen/windowed.
Definition: Window.hpp:139
+
raylib::Window::Maximize
Window & Maximize()
Set window state: maximized, if resizable (only PLATFORM_DESKTOP)
Definition: Window.hpp:164
+
raylib::Window::SetTitle
Window & SetTitle(const std::string &title)
Set title for window.
Definition: Window.hpp:196
raylib::Window::IsCursorOnScreen
bool IsCursorOnScreen() const
Check if cursor is on the current screen.
Definition: Window.hpp:52
+
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
raylib::Window::IsFullscreen
bool IsFullscreen() const
Check if window is currently fullscreen.
Definition: Window.hpp:66
raylib::Window::IsReady
static bool IsReady()
Check if window has been initialized successfully.
Definition: Window.hpp:59
-
raylib::Window::BeginDrawing
Window & BeginDrawing()
Setup canvas (framebuffer) to start drawing.
Definition: Window.hpp:256
+
raylib::Window::BeginDrawing
Window & BeginDrawing()
Setup canvas (framebuffer) to start drawing.
Definition: Window.hpp:264
raylib::Window::ClearState
Window & ClearState(unsigned int flag)
Clear window configuration state flags.
Definition: Window.hpp:123
raylib::Window::IsState
bool IsState(unsigned int flag) const
Check if one specific window flag is enabled.
Definition: Window.hpp:108
-
raylib::Window::SetPosition
Window & SetPosition(const ::Vector2 &position)
Set window position on screen.
Definition: Window.hpp:204
-
raylib::Window::SetTargetFPS
Window & SetTargetFPS(int fps)
Set target FPS (maximum)
Definition: Window.hpp:300
-
raylib::Window::GetPosition
inline ::Vector2 GetPosition() const
Get window position XY on monitor.
Definition: Window.hpp:286
+
raylib::Window::SetPosition
Window & SetPosition(const ::Vector2 &position)
Set window position on screen.
Definition: Window.hpp:212
+
raylib::Window::SetTargetFPS
Window & SetTargetFPS(int fps)
Set target FPS (maximum)
Definition: Window.hpp:308
+
raylib::Window::GetPosition
inline ::Vector2 GetPosition() const
Get window position XY on monitor.
Definition: Window.hpp:294
raylib::Window::IsMinimized
bool IsMinimized() const
Check if window is currently minimized.
Definition: Window.hpp:80
-
raylib::Window::Restore
Window & Restore()
Set window state: not minimized/maximized (only PLATFORM_DESKTOP)
Definition: Window.hpp:172
-
raylib::Window::SetIcon
Window & SetIcon(const ::Image &image)
Set icon for window.
Definition: Window.hpp:180
+
raylib::Window::Restore
Window & Restore()
Set window state: not minimized/maximized (only PLATFORM_DESKTOP)
Definition: Window.hpp:180
+
raylib::Window::SetIcon
Window & SetIcon(const ::Image &image)
Set icon for window.
Definition: Window.hpp:188
raylib::Window
Window and Graphics Device Functions.
Definition: Window.hpp:12
diff --git a/docs/annotated.html b/docs/annotated.html index e4ceefc4..373d8f0d 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -105,7 +105,7 @@ diff --git a/docs/classes.html b/docs/classes.html index 9cba1902..bf3ce20c 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -144,7 +144,7 @@ diff --git a/docs/classraylib_1_1_audio_device-members.html b/docs/classraylib_1_1_audio_device-members.html index 5359f066..e365a46a 100644 --- a/docs/classraylib_1_1_audio_device-members.html +++ b/docs/classraylib_1_1_audio_device-members.html @@ -83,7 +83,7 @@ diff --git a/docs/classraylib_1_1_audio_device.html b/docs/classraylib_1_1_audio_device.html index 1919bc5c..47c5aabb 100644 --- a/docs/classraylib_1_1_audio_device.html +++ b/docs/classraylib_1_1_audio_device.html @@ -150,7 +150,7 @@

diff --git a/docs/classraylib_1_1_audio_stream-members.html b/docs/classraylib_1_1_audio_stream-members.html index 7a39b34f..7ad076b4 100644 --- a/docs/classraylib_1_1_audio_stream-members.html +++ b/docs/classraylib_1_1_audio_stream-members.html @@ -100,7 +100,7 @@ diff --git a/docs/classraylib_1_1_audio_stream.html b/docs/classraylib_1_1_audio_stream.html index 8ec13687..0a709d34 100644 --- a/docs/classraylib_1_1_audio_stream.html +++ b/docs/classraylib_1_1_audio_stream.html @@ -435,7 +435,7 @@

diff --git a/docs/classraylib_1_1_bounding_box-members.html b/docs/classraylib_1_1_bounding_box-members.html index e4a90f93..ce480d71 100644 --- a/docs/classraylib_1_1_bounding_box-members.html +++ b/docs/classraylib_1_1_bounding_box-members.html @@ -89,7 +89,7 @@ diff --git a/docs/classraylib_1_1_bounding_box.html b/docs/classraylib_1_1_bounding_box.html index 7a66bdae..dc626a76 100644 --- a/docs/classraylib_1_1_bounding_box.html +++ b/docs/classraylib_1_1_bounding_box.html @@ -262,7 +262,7 @@

diff --git a/docs/classraylib_1_1_camera2_d-members.html b/docs/classraylib_1_1_camera2_d-members.html index 442a859f..12ac1f3a 100644 --- a/docs/classraylib_1_1_camera2_d-members.html +++ b/docs/classraylib_1_1_camera2_d-members.html @@ -94,7 +94,7 @@ diff --git a/docs/classraylib_1_1_camera2_d.html b/docs/classraylib_1_1_camera2_d.html index 3e4ed7eb..c385e8f2 100644 --- a/docs/classraylib_1_1_camera2_d.html +++ b/docs/classraylib_1_1_camera2_d.html @@ -404,7 +404,7 @@

diff --git a/docs/classraylib_1_1_camera3_d-members.html b/docs/classraylib_1_1_camera3_d-members.html index 1903ca52..d0520ded 100644 --- a/docs/classraylib_1_1_camera3_d-members.html +++ b/docs/classraylib_1_1_camera3_d-members.html @@ -104,7 +104,7 @@ diff --git a/docs/classraylib_1_1_camera3_d.html b/docs/classraylib_1_1_camera3_d.html index 77fe03db..7c6897e6 100644 --- a/docs/classraylib_1_1_camera3_d.html +++ b/docs/classraylib_1_1_camera3_d.html @@ -510,7 +510,7 @@

diff --git a/docs/classraylib_1_1_color-members.html b/docs/classraylib_1_1_color-members.html index 0c7e0772..c9d1005e 100644 --- a/docs/classraylib_1_1_color-members.html +++ b/docs/classraylib_1_1_color-members.html @@ -144,7 +144,7 @@ diff --git a/docs/classraylib_1_1_color.html b/docs/classraylib_1_1_color.html index 427a8bc9..1f4f0193 100644 --- a/docs/classraylib_1_1_color.html +++ b/docs/classraylib_1_1_color.html @@ -573,7 +573,7 @@

diff --git a/docs/classraylib_1_1_font-members.html b/docs/classraylib_1_1_font-members.html index 59cb44b4..a2029641 100644 --- a/docs/classraylib_1_1_font-members.html +++ b/docs/classraylib_1_1_font-members.html @@ -105,7 +105,7 @@ diff --git a/docs/classraylib_1_1_font.html b/docs/classraylib_1_1_font.html index 72fdfed1..f621d17a 100644 --- a/docs/classraylib_1_1_font.html +++ b/docs/classraylib_1_1_font.html @@ -569,7 +569,7 @@

diff --git a/docs/classraylib_1_1_gamepad-members.html b/docs/classraylib_1_1_gamepad-members.html index 1f28a357..c119dcf1 100644 --- a/docs/classraylib_1_1_gamepad-members.html +++ b/docs/classraylib_1_1_gamepad-members.html @@ -96,7 +96,7 @@ diff --git a/docs/classraylib_1_1_gamepad.html b/docs/classraylib_1_1_gamepad.html index 13220b73..aff917c1 100644 --- a/docs/classraylib_1_1_gamepad.html +++ b/docs/classraylib_1_1_gamepad.html @@ -232,7 +232,7 @@

diff --git a/docs/classraylib_1_1_image-members.html b/docs/classraylib_1_1_image-members.html index 805211dc..ae64b954 100644 --- a/docs/classraylib_1_1_image-members.html +++ b/docs/classraylib_1_1_image-members.html @@ -161,7 +161,7 @@ diff --git a/docs/classraylib_1_1_image.html b/docs/classraylib_1_1_image.html index a8755e01..17f3e944 100644 --- a/docs/classraylib_1_1_image.html +++ b/docs/classraylib_1_1_image.html @@ -921,7 +921,7 @@

diff --git a/docs/classraylib_1_1_material-members.html b/docs/classraylib_1_1_material-members.html index 1d019543..5a055a2d 100644 --- a/docs/classraylib_1_1_material-members.html +++ b/docs/classraylib_1_1_material-members.html @@ -90,7 +90,7 @@ diff --git a/docs/classraylib_1_1_material.html b/docs/classraylib_1_1_material.html index 1d5df52f..f66f0c8d 100644 --- a/docs/classraylib_1_1_material.html +++ b/docs/classraylib_1_1_material.html @@ -331,7 +331,7 @@

diff --git a/docs/classraylib_1_1_matrix-members.html b/docs/classraylib_1_1_matrix-members.html index a5df9fc7..8d07dafb 100644 --- a/docs/classraylib_1_1_matrix-members.html +++ b/docs/classraylib_1_1_matrix-members.html @@ -143,7 +143,7 @@ diff --git a/docs/classraylib_1_1_matrix.html b/docs/classraylib_1_1_matrix.html index c9576769..ff1f8d7d 100644 --- a/docs/classraylib_1_1_matrix.html +++ b/docs/classraylib_1_1_matrix.html @@ -1354,7 +1354,7 @@

diff --git a/docs/classraylib_1_1_mesh-members.html b/docs/classraylib_1_1_mesh-members.html index 2207e94a..b4bd2ff7 100644 --- a/docs/classraylib_1_1_mesh-members.html +++ b/docs/classraylib_1_1_mesh-members.html @@ -131,7 +131,7 @@ diff --git a/docs/classraylib_1_1_mesh.html b/docs/classraylib_1_1_mesh.html index 8e59d47c..492a59dc 100644 --- a/docs/classraylib_1_1_mesh.html +++ b/docs/classraylib_1_1_mesh.html @@ -1262,7 +1262,7 @@

diff --git a/docs/classraylib_1_1_model-members.html b/docs/classraylib_1_1_model-members.html index 49e2b100..1fc766d8 100644 --- a/docs/classraylib_1_1_model-members.html +++ b/docs/classraylib_1_1_model-members.html @@ -110,7 +110,7 @@ diff --git a/docs/classraylib_1_1_model.html b/docs/classraylib_1_1_model.html index 3f5cf596..368ca71f 100644 --- a/docs/classraylib_1_1_model.html +++ b/docs/classraylib_1_1_model.html @@ -789,7 +789,7 @@

diff --git a/docs/classraylib_1_1_model_animation-members.html b/docs/classraylib_1_1_model_animation-members.html index 00c9635d..20c67429 100644 --- a/docs/classraylib_1_1_model_animation-members.html +++ b/docs/classraylib_1_1_model_animation-members.html @@ -92,7 +92,7 @@ diff --git a/docs/classraylib_1_1_model_animation.html b/docs/classraylib_1_1_model_animation.html index 9e52f490..97b7de4e 100644 --- a/docs/classraylib_1_1_model_animation.html +++ b/docs/classraylib_1_1_model_animation.html @@ -403,7 +403,7 @@

diff --git a/docs/classraylib_1_1_mouse-members.html b/docs/classraylib_1_1_mouse-members.html index 3c58f8fc..ab3f656d 100644 --- a/docs/classraylib_1_1_mouse-members.html +++ b/docs/classraylib_1_1_mouse-members.html @@ -95,7 +95,7 @@ diff --git a/docs/classraylib_1_1_mouse.html b/docs/classraylib_1_1_mouse.html index 8e0cb744..d4781a18 100644 --- a/docs/classraylib_1_1_mouse.html +++ b/docs/classraylib_1_1_mouse.html @@ -145,7 +145,7 @@ diff --git a/docs/classraylib_1_1_music-members.html b/docs/classraylib_1_1_music-members.html index 0e0fba6d..f0a403d9 100644 --- a/docs/classraylib_1_1_music-members.html +++ b/docs/classraylib_1_1_music-members.html @@ -102,7 +102,7 @@ diff --git a/docs/classraylib_1_1_music.html b/docs/classraylib_1_1_music.html index 051f202d..4a056b44 100644 --- a/docs/classraylib_1_1_music.html +++ b/docs/classraylib_1_1_music.html @@ -507,7 +507,7 @@

diff --git a/docs/classraylib_1_1_physics-members.html b/docs/classraylib_1_1_physics-members.html index 84fea167..74854475 100644 --- a/docs/classraylib_1_1_physics-members.html +++ b/docs/classraylib_1_1_physics-members.html @@ -101,7 +101,7 @@ diff --git a/docs/classraylib_1_1_physics.html b/docs/classraylib_1_1_physics.html index 63c4e99f..6d421020 100644 --- a/docs/classraylib_1_1_physics.html +++ b/docs/classraylib_1_1_physics.html @@ -154,7 +154,7 @@ diff --git a/docs/classraylib_1_1_ray-members.html b/docs/classraylib_1_1_ray-members.html index 37b71af7..75cd20fe 100644 --- a/docs/classraylib_1_1_ray-members.html +++ b/docs/classraylib_1_1_ray-members.html @@ -92,7 +92,7 @@ diff --git a/docs/classraylib_1_1_ray.html b/docs/classraylib_1_1_ray.html index e2cd4218..13702b46 100644 --- a/docs/classraylib_1_1_ray.html +++ b/docs/classraylib_1_1_ray.html @@ -273,7 +273,7 @@

diff --git a/docs/classraylib_1_1_ray_hit_info-members.html b/docs/classraylib_1_1_ray_hit_info-members.html index 89574e3e..462cd800 100644 --- a/docs/classraylib_1_1_ray_hit_info-members.html +++ b/docs/classraylib_1_1_ray_hit_info-members.html @@ -92,7 +92,7 @@ diff --git a/docs/classraylib_1_1_ray_hit_info.html b/docs/classraylib_1_1_ray_hit_info.html index 52bed883..a224f2db 100644 --- a/docs/classraylib_1_1_ray_hit_info.html +++ b/docs/classraylib_1_1_ray_hit_info.html @@ -402,7 +402,7 @@

diff --git a/docs/classraylib_1_1_rectangle-members.html b/docs/classraylib_1_1_rectangle-members.html index fbba79d6..8ace08f0 100644 --- a/docs/classraylib_1_1_rectangle-members.html +++ b/docs/classraylib_1_1_rectangle-members.html @@ -115,7 +115,7 @@ diff --git a/docs/classraylib_1_1_rectangle.html b/docs/classraylib_1_1_rectangle.html index 9ff71a3d..21ada737 100644 --- a/docs/classraylib_1_1_rectangle.html +++ b/docs/classraylib_1_1_rectangle.html @@ -469,7 +469,7 @@

diff --git a/docs/classraylib_1_1_render_texture-members.html b/docs/classraylib_1_1_render_texture-members.html index 10acb48c..92d664d5 100644 --- a/docs/classraylib_1_1_render_texture-members.html +++ b/docs/classraylib_1_1_render_texture-members.html @@ -91,7 +91,7 @@ diff --git a/docs/classraylib_1_1_render_texture.html b/docs/classraylib_1_1_render_texture.html index 355783b2..f7b2cf25 100644 --- a/docs/classraylib_1_1_render_texture.html +++ b/docs/classraylib_1_1_render_texture.html @@ -328,7 +328,7 @@

diff --git a/docs/classraylib_1_1_shader-members.html b/docs/classraylib_1_1_shader-members.html index 7df96bf3..649b5fb5 100644 --- a/docs/classraylib_1_1_shader-members.html +++ b/docs/classraylib_1_1_shader-members.html @@ -102,7 +102,7 @@ diff --git a/docs/classraylib_1_1_shader.html b/docs/classraylib_1_1_shader.html index 87c86967..e3394e02 100644 --- a/docs/classraylib_1_1_shader.html +++ b/docs/classraylib_1_1_shader.html @@ -542,7 +542,7 @@

diff --git a/docs/classraylib_1_1_sound-members.html b/docs/classraylib_1_1_sound-members.html index 18ceb03b..9ec87225 100644 --- a/docs/classraylib_1_1_sound-members.html +++ b/docs/classraylib_1_1_sound-members.html @@ -97,7 +97,7 @@ diff --git a/docs/classraylib_1_1_sound.html b/docs/classraylib_1_1_sound.html index 86f2785a..e87cc410 100644 --- a/docs/classraylib_1_1_sound.html +++ b/docs/classraylib_1_1_sound.html @@ -292,7 +292,7 @@

Wave/Sound management functions.
Definition: Sound.hpp:18
diff --git a/docs/classraylib_1_1_texture-members.html b/docs/classraylib_1_1_texture-members.html index 66f81fcf..2fd3c2cf 100644 --- a/docs/classraylib_1_1_texture-members.html +++ b/docs/classraylib_1_1_texture-members.html @@ -118,7 +118,7 @@ diff --git a/docs/classraylib_1_1_texture.html b/docs/classraylib_1_1_texture.html index dbfba80c..9313923c 100644 --- a/docs/classraylib_1_1_texture.html +++ b/docs/classraylib_1_1_texture.html @@ -558,7 +558,7 @@

diff --git a/docs/classraylib_1_1_vector2-members.html b/docs/classraylib_1_1_vector2-members.html index a7ac6725..9ac69ed3 100644 --- a/docs/classraylib_1_1_vector2-members.html +++ b/docs/classraylib_1_1_vector2-members.html @@ -132,7 +132,7 @@ diff --git a/docs/classraylib_1_1_vector2.html b/docs/classraylib_1_1_vector2.html index 686aa054..2758a025 100644 --- a/docs/classraylib_1_1_vector2.html +++ b/docs/classraylib_1_1_vector2.html @@ -446,7 +446,7 @@

diff --git a/docs/classraylib_1_1_vector3-members.html b/docs/classraylib_1_1_vector3-members.html index 0ab5ec90..77bb725e 100644 --- a/docs/classraylib_1_1_vector3-members.html +++ b/docs/classraylib_1_1_vector3-members.html @@ -143,7 +143,7 @@ diff --git a/docs/classraylib_1_1_vector3.html b/docs/classraylib_1_1_vector3.html index 27119785..06c63f83 100644 --- a/docs/classraylib_1_1_vector3.html +++ b/docs/classraylib_1_1_vector3.html @@ -487,7 +487,7 @@

diff --git a/docs/classraylib_1_1_vector4-members.html b/docs/classraylib_1_1_vector4-members.html index 18ce74c4..c2eebae8 100644 --- a/docs/classraylib_1_1_vector4-members.html +++ b/docs/classraylib_1_1_vector4-members.html @@ -117,7 +117,7 @@ diff --git a/docs/classraylib_1_1_vector4.html b/docs/classraylib_1_1_vector4.html index b3351999..54310fba 100644 --- a/docs/classraylib_1_1_vector4.html +++ b/docs/classraylib_1_1_vector4.html @@ -474,7 +474,7 @@

diff --git a/docs/classraylib_1_1_vr_simulator-members.html b/docs/classraylib_1_1_vr_simulator-members.html index 35d20dd6..eaddd597 100644 --- a/docs/classraylib_1_1_vr_simulator-members.html +++ b/docs/classraylib_1_1_vr_simulator-members.html @@ -89,7 +89,7 @@ diff --git a/docs/classraylib_1_1_vr_simulator.html b/docs/classraylib_1_1_vr_simulator.html index 394c9177..11d21afc 100644 --- a/docs/classraylib_1_1_vr_simulator.html +++ b/docs/classraylib_1_1_vr_simulator.html @@ -131,7 +131,7 @@ diff --git a/docs/classraylib_1_1_wave-members.html b/docs/classraylib_1_1_wave-members.html index 6fcdcbb9..49553773 100644 --- a/docs/classraylib_1_1_wave-members.html +++ b/docs/classraylib_1_1_wave-members.html @@ -104,7 +104,7 @@ diff --git a/docs/classraylib_1_1_wave.html b/docs/classraylib_1_1_wave.html index dcc0fdba..eae7634d 100644 --- a/docs/classraylib_1_1_wave.html +++ b/docs/classraylib_1_1_wave.html @@ -561,7 +561,7 @@

diff --git a/docs/classraylib_1_1_window-members.html b/docs/classraylib_1_1_window-members.html index ec591c0b..be1161f3 100644 --- a/docs/classraylib_1_1_window-members.html +++ b/docs/classraylib_1_1_window-members.html @@ -75,50 +75,51 @@

This is the complete list of members for raylib::Window, including all inherited members.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BeginDrawing()raylib::Windowinline
ClearState(unsigned int flag)raylib::Windowinline
Close()raylib::Windowinline
EndDrawing()raylib::Windowinline
GetFPS() constraylib::Windowinline
GetFrameTime() constraylib::Windowinline
GetHandle() constraylib::Windowinline
GetHeight() constraylib::Windowinline
GetPosition() constraylib::Windowinline
GetScaleDPI() constraylib::Windowinline
GetSize()raylib::Windowinline
GetTime() constraylib::Windowinline
GetWidth() constraylib::Windowinline
Init(int width=800, int height=450, const std::string &title="raylib") (defined in raylib::Window)raylib::Windowinline
IsCursorOnScreen() constraylib::Windowinline
IsFocused() constraylib::Windowinline
IsFullscreen() constraylib::Windowinline
IsHidden() constraylib::Windowinline
IsMaximized() constraylib::Windowinline
IsMinimized() constraylib::Windowinline
IsReady()raylib::Windowinlinestatic
IsResized() constraylib::Windowinline
IsState(unsigned int flag) constraylib::Windowinline
Maximize()raylib::Windowinline
Minimize()raylib::Windowinline
Restore()raylib::Windowinline
SetFullscreen(bool fullscreen)raylib::Windowinline
SetIcon(const ::Image &image)raylib::Windowinline
SetMinSize(int width, int height)raylib::Windowinline
SetMonitor(int monitor)raylib::Windowinline
SetPosition(int x, int y)raylib::Windowinline
SetPosition(const ::Vector2 &position)raylib::Windowinline
SetSize(int width, int height)raylib::Windowinline
SetSize(const ::Vector2 &size)raylib::Windowinline
SetState(unsigned int flag)raylib::Windowinline
SetTargetFPS(int fps)raylib::Windowinline
SetTitle(const std::string &title)raylib::Windowinline
ShouldClose() constraylib::Windowinline
ToggleFullscreen()raylib::Windowinline
Window(int width=800, int height=450, const std::string &title="raylib", bool lateInit=false)raylib::Windowinline
~Window()raylib::Windowinline
ClearBackground(const raylib::Color &color=raylib::Color::Black())raylib::Windowinline
ClearState(unsigned int flag)raylib::Windowinline
Close()raylib::Windowinline
EndDrawing()raylib::Windowinline
GetFPS() constraylib::Windowinline
GetFrameTime() constraylib::Windowinline
GetHandle() constraylib::Windowinline
GetHeight() constraylib::Windowinline
GetPosition() constraylib::Windowinline
GetScaleDPI() constraylib::Windowinline
GetSize()raylib::Windowinline
GetTime() constraylib::Windowinline
GetWidth() constraylib::Windowinline
Init(int width=800, int height=450, const std::string &title="raylib") (defined in raylib::Window)raylib::Windowinline
IsCursorOnScreen() constraylib::Windowinline
IsFocused() constraylib::Windowinline
IsFullscreen() constraylib::Windowinline
IsHidden() constraylib::Windowinline
IsMaximized() constraylib::Windowinline
IsMinimized() constraylib::Windowinline
IsReady()raylib::Windowinlinestatic
IsResized() constraylib::Windowinline
IsState(unsigned int flag) constraylib::Windowinline
Maximize()raylib::Windowinline
Minimize()raylib::Windowinline
Restore()raylib::Windowinline
SetFullscreen(bool fullscreen)raylib::Windowinline
SetIcon(const ::Image &image)raylib::Windowinline
SetMinSize(int width, int height)raylib::Windowinline
SetMonitor(int monitor)raylib::Windowinline
SetPosition(int x, int y)raylib::Windowinline
SetPosition(const ::Vector2 &position)raylib::Windowinline
SetSize(int width, int height)raylib::Windowinline
SetSize(const ::Vector2 &size)raylib::Windowinline
SetState(unsigned int flag)raylib::Windowinline
SetTargetFPS(int fps)raylib::Windowinline
SetTitle(const std::string &title)raylib::Windowinline
ShouldClose() constraylib::Windowinline
ToggleFullscreen()raylib::Windowinline
Window(int width=800, int height=450, const std::string &title="raylib", bool lateInit=false)raylib::Windowinline
~Window()raylib::Windowinline
diff --git a/docs/classraylib_1_1_window.html b/docs/classraylib_1_1_window.html index 95be4cb6..1d6bde39 100644 --- a/docs/classraylib_1_1_window.html +++ b/docs/classraylib_1_1_window.html @@ -93,6 +93,10 @@ WindowBeginDrawing ()  Setup canvas (framebuffer) to start drawing.
  + +WindowClearBackground (const raylib::Color &color=raylib::Color::Black()) + Clear window with given color.
WindowClearState (unsigned int flag)  Clear window configuration state flags.
@@ -255,7 +259,7 @@ diff --git a/docs/dir_d44c64559bbebec7f509842c48db8b23.html b/docs/dir_d44c64559bbebec7f509842c48db8b23.html index 05fddfec..729a6acc 100644 --- a/docs/dir_d44c64559bbebec7f509842c48db8b23.html +++ b/docs/dir_d44c64559bbebec7f509842c48db8b23.html @@ -74,7 +74,7 @@ diff --git a/docs/functions.html b/docs/functions.html index 46a939e4..227be25b 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -94,7 +94,7 @@

- a -

    diff --git a/docs/functions_b.html b/docs/functions_b.html index 24f78307..bd39618e 100644 --- a/docs/functions_b.html +++ b/docs/functions_b.html @@ -86,7 +86,7 @@

    - b -

      diff --git a/docs/functions_c.html b/docs/functions_c.html index fe0a731e..0a3adc25 100644 --- a/docs/functions_c.html +++ b/docs/functions_c.html @@ -91,6 +91,7 @@

      - c -

      • ClearBackground() : raylib::Color , raylib::Image +, raylib::Window
      • ClearState() : raylib::Window @@ -102,7 +103,7 @@

        - c -

          , raylib::Window
        • Color() -: raylib::Color +: raylib::Color , raylib::Image
        • ColorBrightness() @@ -128,7 +129,7 @@

          - c -

            , raylib::Wave
          • Crop() -: raylib::Image +: raylib::Image , raylib::Wave
          • Cube() @@ -144,7 +145,7 @@

            - c -

              diff --git a/docs/functions_d.html b/docs/functions_d.html index 022639cf..743ba32c 100644 --- a/docs/functions_d.html +++ b/docs/functions_d.html @@ -105,7 +105,7 @@

              - d -

                diff --git a/docs/functions_e.html b/docs/functions_e.html index f7f84499..374766c9 100644 --- a/docs/functions_e.html +++ b/docs/functions_e.html @@ -88,7 +88,7 @@

                - e -

                  diff --git a/docs/functions_f.html b/docs/functions_f.html index 77eb88e2..e0ee3058 100644 --- a/docs/functions_f.html +++ b/docs/functions_f.html @@ -89,7 +89,7 @@

                  - f -

                    diff --git a/docs/functions_func.html b/docs/functions_func.html index 3339a6eb..4f579e74 100644 --- a/docs/functions_func.html +++ b/docs/functions_func.html @@ -94,7 +94,7 @@

                    - a -

                      diff --git a/docs/functions_func_b.html b/docs/functions_func_b.html index 602aa642..0ba24ff0 100644 --- a/docs/functions_func_b.html +++ b/docs/functions_func_b.html @@ -86,7 +86,7 @@

                      - b -

                        diff --git a/docs/functions_func_c.html b/docs/functions_func_c.html index 62b74cd1..9de19859 100644 --- a/docs/functions_func_c.html +++ b/docs/functions_func_c.html @@ -91,6 +91,7 @@

                        - c -

                        • ClearBackground() : raylib::Color , raylib::Image +, raylib::Window
                        • ClearState() : raylib::Window @@ -102,7 +103,7 @@

                          - c -

                            , raylib::Window
                          • Color() -: raylib::Color +: raylib::Color , raylib::Image
                          • ColorBrightness() @@ -128,7 +129,7 @@

                            - c -

                              , raylib::Wave
                            • Crop() -: raylib::Image +: raylib::Image , raylib::Wave
                            • Cube() @@ -144,7 +145,7 @@

                              - c -

                                diff --git a/docs/functions_func_d.html b/docs/functions_func_d.html index edeafabe..29a2b3a9 100644 --- a/docs/functions_func_d.html +++ b/docs/functions_func_d.html @@ -105,7 +105,7 @@

                                - d -

                                  diff --git a/docs/functions_func_e.html b/docs/functions_func_e.html index 12208d6c..d1797acf 100644 --- a/docs/functions_func_e.html +++ b/docs/functions_func_e.html @@ -88,7 +88,7 @@

                                  - e -

                                    diff --git a/docs/functions_func_f.html b/docs/functions_func_f.html index d7503212..a1081044 100644 --- a/docs/functions_func_f.html +++ b/docs/functions_func_f.html @@ -89,7 +89,7 @@

                                    - f -

                                      diff --git a/docs/functions_func_g.html b/docs/functions_func_g.html index 79d305b1..b663719d 100644 --- a/docs/functions_func_g.html +++ b/docs/functions_func_g.html @@ -474,7 +474,7 @@

                                      - g -

                                        diff --git a/docs/functions_func_h.html b/docs/functions_func_h.html index feb269d7..a3a174f9 100644 --- a/docs/functions_func_h.html +++ b/docs/functions_func_h.html @@ -76,7 +76,7 @@

                                        - h -

                                          diff --git a/docs/functions_func_i.html b/docs/functions_func_i.html index 96c4c0c5..dc630c05 100644 --- a/docs/functions_func_i.html +++ b/docs/functions_func_i.html @@ -141,7 +141,7 @@

                                          - i -

                                            diff --git a/docs/functions_func_k.html b/docs/functions_func_k.html index 3206f1b5..266e0709 100644 --- a/docs/functions_func_k.html +++ b/docs/functions_func_k.html @@ -73,7 +73,7 @@

                                            - k -

                                              diff --git a/docs/functions_func_l.html b/docs/functions_func_l.html index ca503159..52af9c06 100644 --- a/docs/functions_func_l.html +++ b/docs/functions_func_l.html @@ -123,7 +123,7 @@

                                              - l -

                                                diff --git a/docs/functions_func_m.html b/docs/functions_func_m.html index 78352aa1..8343b979 100644 --- a/docs/functions_func_m.html +++ b/docs/functions_func_m.html @@ -91,7 +91,7 @@

                                                - m -

                                                  diff --git a/docs/functions_func_n.html b/docs/functions_func_n.html index 1f5238c9..61968705 100644 --- a/docs/functions_func_n.html +++ b/docs/functions_func_n.html @@ -77,7 +77,7 @@

                                                  - n -

                                                    diff --git a/docs/functions_func_o.html b/docs/functions_func_o.html index 44811f8e..ec30d2a1 100644 --- a/docs/functions_func_o.html +++ b/docs/functions_func_o.html @@ -97,7 +97,7 @@

                                                    - o -

                                                      diff --git a/docs/functions_func_p.html b/docs/functions_func_p.html index 2d9a4d64..472de567 100644 --- a/docs/functions_func_p.html +++ b/docs/functions_func_p.html @@ -92,7 +92,7 @@

                                                      - p -

                                                        diff --git a/docs/functions_func_r.html b/docs/functions_func_r.html index eb844ee2..238b7af6 100644 --- a/docs/functions_func_r.html +++ b/docs/functions_func_r.html @@ -102,7 +102,7 @@

                                                        - r -

                                                          diff --git a/docs/functions_func_s.html b/docs/functions_func_s.html index b1dd05ed..afa9f293 100644 --- a/docs/functions_func_s.html +++ b/docs/functions_func_s.html @@ -464,7 +464,7 @@

                                                          - s -

                                                            diff --git a/docs/functions_func_t.html b/docs/functions_func_t.html index fbf28232..e6bb19b2 100644 --- a/docs/functions_func_t.html +++ b/docs/functions_func_t.html @@ -100,7 +100,7 @@

                                                            - t -

                                                              diff --git a/docs/functions_func_u.html b/docs/functions_func_u.html index 958d7919..0ddb926a 100644 --- a/docs/functions_func_u.html +++ b/docs/functions_func_u.html @@ -105,7 +105,7 @@

                                                              - u -

                                                                diff --git a/docs/functions_func_w.html b/docs/functions_func_w.html index 68c15ca5..790054cc 100644 --- a/docs/functions_func_w.html +++ b/docs/functions_func_w.html @@ -79,7 +79,7 @@

                                                                - w -

                                                                  diff --git a/docs/functions_func_z.html b/docs/functions_func_z.html index 0e61fb8a..3db98e72 100644 --- a/docs/functions_func_z.html +++ b/docs/functions_func_z.html @@ -73,7 +73,7 @@

                                                                  - z -

                                                                    diff --git a/docs/functions_func_~.html b/docs/functions_func_~.html index d16868e7..ca7c541e 100644 --- a/docs/functions_func_~.html +++ b/docs/functions_func_~.html @@ -85,7 +85,7 @@

                                                                    - ~ -

                                                                      diff --git a/docs/functions_g.html b/docs/functions_g.html index b3d3f32c..945ab203 100644 --- a/docs/functions_g.html +++ b/docs/functions_g.html @@ -474,7 +474,7 @@

                                                                      - g -

                                                                        diff --git a/docs/functions_h.html b/docs/functions_h.html index eb9599bd..5fe5ba66 100644 --- a/docs/functions_h.html +++ b/docs/functions_h.html @@ -76,7 +76,7 @@

                                                                        - h -

                                                                          diff --git a/docs/functions_i.html b/docs/functions_i.html index a98d5e19..13781358 100644 --- a/docs/functions_i.html +++ b/docs/functions_i.html @@ -141,7 +141,7 @@

                                                                          - i -

                                                                            diff --git a/docs/functions_k.html b/docs/functions_k.html index 5d0be95d..80e41d42 100644 --- a/docs/functions_k.html +++ b/docs/functions_k.html @@ -73,7 +73,7 @@

                                                                            - k -

                                                                              diff --git a/docs/functions_l.html b/docs/functions_l.html index 99baa660..421bb69f 100644 --- a/docs/functions_l.html +++ b/docs/functions_l.html @@ -123,7 +123,7 @@

                                                                              - l -

                                                                                diff --git a/docs/functions_m.html b/docs/functions_m.html index b773d0bb..e8e7c585 100644 --- a/docs/functions_m.html +++ b/docs/functions_m.html @@ -91,7 +91,7 @@

                                                                                - m -

                                                                                  diff --git a/docs/functions_n.html b/docs/functions_n.html index 10288068..680694b2 100644 --- a/docs/functions_n.html +++ b/docs/functions_n.html @@ -77,7 +77,7 @@

                                                                                  - n -

                                                                                    diff --git a/docs/functions_o.html b/docs/functions_o.html index 882a4e72..6b3e3285 100644 --- a/docs/functions_o.html +++ b/docs/functions_o.html @@ -97,7 +97,7 @@

                                                                                    - o -

                                                                                      diff --git a/docs/functions_p.html b/docs/functions_p.html index 25e95873..7da8da64 100644 --- a/docs/functions_p.html +++ b/docs/functions_p.html @@ -92,7 +92,7 @@

                                                                                      - p -

                                                                                        diff --git a/docs/functions_r.html b/docs/functions_r.html index 0ca84ef6..ddd3f8fb 100644 --- a/docs/functions_r.html +++ b/docs/functions_r.html @@ -102,7 +102,7 @@

                                                                                        - r -

                                                                                          diff --git a/docs/functions_s.html b/docs/functions_s.html index 293186e1..a38f7498 100644 --- a/docs/functions_s.html +++ b/docs/functions_s.html @@ -464,7 +464,7 @@

                                                                                          - s -

                                                                                            diff --git a/docs/functions_t.html b/docs/functions_t.html index 0e34b818..576b9739 100644 --- a/docs/functions_t.html +++ b/docs/functions_t.html @@ -100,7 +100,7 @@

                                                                                            - t -

                                                                                              diff --git a/docs/functions_u.html b/docs/functions_u.html index b9d11a04..156283e1 100644 --- a/docs/functions_u.html +++ b/docs/functions_u.html @@ -105,7 +105,7 @@

                                                                                              - u -

                                                                                                diff --git a/docs/functions_w.html b/docs/functions_w.html index 856e1af4..3f8a9b41 100644 --- a/docs/functions_w.html +++ b/docs/functions_w.html @@ -79,7 +79,7 @@

                                                                                                - w -

                                                                                                  diff --git a/docs/functions_z.html b/docs/functions_z.html index 3668632d..39a7f3af 100644 --- a/docs/functions_z.html +++ b/docs/functions_z.html @@ -73,7 +73,7 @@

                                                                                                  - z -

                                                                                                    diff --git a/docs/functions_~.html b/docs/functions_~.html index 92ce1014..5a4ba357 100644 --- a/docs/functions_~.html +++ b/docs/functions_~.html @@ -85,7 +85,7 @@

                                                                                                    - ~ -

                                                                                                      diff --git a/docs/index.html b/docs/index.html index 7bd7b3a6..023bad27 100644 --- a/docs/index.html +++ b/docs/index.html @@ -104,8 +104,7 @@
                                                                                                      //--------------------------------------------------------------------------------------
                                                                                                      // Main game loop
                                                                                                      -
                                                                                                      while (!window.ShouldClose()) // Detect window close button or ESC key
                                                                                                      -
                                                                                                      {
                                                                                                      +
                                                                                                      while (!window.ShouldClose()) { // Detect window close button or ESC key
                                                                                                      // Update
                                                                                                      //----------------------------------------------------------------------------------
                                                                                                      // TODO: Update your variables here
                                                                                                      @@ -115,7 +114,7 @@
                                                                                                      //----------------------------------------------------------------------------------
                                                                                                      BeginDrawing();
                                                                                                      {
                                                                                                      -
                                                                                                      ClearBackground(RAYWHITE);
                                                                                                      +
                                                                                                      window.ClearBackground(RAYWHITE);
                                                                                                      textColor.DrawText("Congrats! You created your first window!", 190, 200, 20);
                                                                                                      }
                                                                                                      EndDrawing();
                                                                                                      @@ -141,7 +140,7 @@
                                                                                                      Window and Graphics Device Functions.
                                                                                                      Definition: Window.hpp:12
                                                                                                      diff --git a/docs/namespacemembers.html b/docs/namespacemembers.html index dd131142..f224aea7 100644 --- a/docs/namespacemembers.html +++ b/docs/namespacemembers.html @@ -216,7 +216,7 @@

                                                                                                      - u -

                                                                                                        diff --git a/docs/namespacemembers_func.html b/docs/namespacemembers_func.html index 5f6b6440..4f872eeb 100644 --- a/docs/namespacemembers_func.html +++ b/docs/namespacemembers_func.html @@ -216,7 +216,7 @@

                                                                                                        - u -

                                                                                                          diff --git a/docs/namespaceraylib.html b/docs/namespaceraylib.html index cbe27d70..321efd9e 100644 --- a/docs/namespaceraylib.html +++ b/docs/namespaceraylib.html @@ -330,7 +330,7 @@ diff --git a/docs/namespaces.html b/docs/namespaces.html index e17be859..14dcfad3 100644 --- a/docs/namespaces.html +++ b/docs/namespaces.html @@ -75,7 +75,7 @@ diff --git a/docs/physac_8hpp_source.html b/docs/physac_8hpp_source.html index 341f05e5..2c35b3e3 100644 --- a/docs/physac_8hpp_source.html +++ b/docs/physac_8hpp_source.html @@ -87,7 +87,7 @@ diff --git a/docs/raylib-cpp-utils_8hpp_source.html b/docs/raylib-cpp-utils_8hpp_source.html index 47383e0e..ae595af8 100644 --- a/docs/raylib-cpp-utils_8hpp_source.html +++ b/docs/raylib-cpp-utils_8hpp_source.html @@ -88,7 +88,7 @@ diff --git a/docs/raylib-cpp_8hpp_source.html b/docs/raylib-cpp_8hpp_source.html index 9500962c..30bdd4da 100644 --- a/docs/raylib-cpp_8hpp_source.html +++ b/docs/raylib-cpp_8hpp_source.html @@ -116,7 +116,7 @@
                                                                                                          All raylib-cpp classes and functions appear in the raylib namespace.
                                                                                                          Definition: AudioDevice.hpp:7
                                                                                                          diff --git a/docs/raylib_8hpp_source.html b/docs/raylib_8hpp_source.html index 676518e5..a9f32483 100644 --- a/docs/raylib_8hpp_source.html +++ b/docs/raylib_8hpp_source.html @@ -87,7 +87,7 @@ diff --git a/docs/raymath_8hpp_source.html b/docs/raymath_8hpp_source.html index 69b36192..a73b0851 100644 --- a/docs/raymath_8hpp_source.html +++ b/docs/raymath_8hpp_source.html @@ -89,7 +89,7 @@ diff --git a/docs/search/all_2.js b/docs/search/all_2.js index 1bb542ce..04fe960c 100644 --- a/docs/search/all_2.js +++ b/docs/search/all_2.js @@ -9,7 +9,7 @@ var searchData= ['checkcollisionlines_18',['CheckCollisionLines',['../classraylib_1_1_vector2.html#adf2ac764f0a4b4c6d67dc1cfbb8d0df5',1,'raylib::Vector2']]], ['checkcollisionsphere_19',['CheckCollisionSphere',['../classraylib_1_1_ray.html#a3190f8eb00e4d06b841580201115eed8',1,'raylib::Ray::CheckCollisionSphere(::Vector3 center, float radius) const'],['../classraylib_1_1_ray.html#a79269fb7290a8281489d88ede3c29cc8',1,'raylib::Ray::CheckCollisionSphere(::Vector3 center, float radius, ::Vector3 *collisionPoint) const']]], ['checked_20',['Checked',['../classraylib_1_1_image.html#a2b0aa1a0c8906def18d36dc2d635f4bf',1,'raylib::Image']]], - ['clearbackground_21',['ClearBackground',['../classraylib_1_1_color.html#ace467f20d71ff4af44e0211d6aeea9b5',1,'raylib::Color::ClearBackground()'],['../classraylib_1_1_image.html#aed48d37124df81191a9c10a417508703',1,'raylib::Image::ClearBackground()']]], + ['clearbackground_21',['ClearBackground',['../classraylib_1_1_color.html#ace467f20d71ff4af44e0211d6aeea9b5',1,'raylib::Color::ClearBackground()'],['../classraylib_1_1_image.html#aed48d37124df81191a9c10a417508703',1,'raylib::Image::ClearBackground()'],['../classraylib_1_1_window.html#a01f751e6074244f094eb669c3c716555',1,'raylib::Window::ClearBackground()']]], ['clearstate_22',['ClearState',['../classraylib_1_1_window.html#a359e2101ac13e8ee8423b3ffb27c8a42',1,'raylib::Window']]], ['close_23',['Close',['../classraylib_1_1_audio_device.html#a04b39055a7d4dc12801f39f3429af9a0',1,'raylib::AudioDevice::Close()'],['../classraylib_1_1_audio_stream.html#a325438e3339a84ba7ac8927bbf78baa5',1,'raylib::AudioStream::Close()'],['../classraylib_1_1_vr_simulator.html#a6c5348f2b4269e2a8741e8076cc8cbd9',1,'raylib::VrSimulator::Close()'],['../classraylib_1_1_window.html#a59cf11e97d3e33d914bc7b1711c2ccaf',1,'raylib::Window::Close()']]], ['color_24',['Color',['../classraylib_1_1_color.html',1,'raylib::Color'],['../classraylib_1_1_color.html#ac0af7e53c6e05e6ec4de88169bae3952',1,'raylib::Color::Color()'],['../classraylib_1_1_color.html#a3c177f10d10851fdf20d09fae83c8e19',1,'raylib::Color::Color(::Vector3 hsv)'],['../classraylib_1_1_color.html#ad922c14839a64fc49597059855edb76b',1,'raylib::Color::Color(int hexValue)'],['../classraylib_1_1_color.html#aa5b23dd8167f9babe41abd378339d3a4',1,'raylib::Color::Color(::Vector4 normalized)'],['../classraylib_1_1_image.html#a8cf520f677b90541789a53b6bed96e6e',1,'raylib::Image::Color()']]], diff --git a/docs/search/functions_2.js b/docs/search/functions_2.js index 004089ca..ac3b71fb 100644 --- a/docs/search/functions_2.js +++ b/docs/search/functions_2.js @@ -7,7 +7,7 @@ var searchData= ['checkcollisionlines_495',['CheckCollisionLines',['../classraylib_1_1_vector2.html#adf2ac764f0a4b4c6d67dc1cfbb8d0df5',1,'raylib::Vector2']]], ['checkcollisionsphere_496',['CheckCollisionSphere',['../classraylib_1_1_ray.html#a3190f8eb00e4d06b841580201115eed8',1,'raylib::Ray::CheckCollisionSphere(::Vector3 center, float radius) const'],['../classraylib_1_1_ray.html#a79269fb7290a8281489d88ede3c29cc8',1,'raylib::Ray::CheckCollisionSphere(::Vector3 center, float radius, ::Vector3 *collisionPoint) const']]], ['checked_497',['Checked',['../classraylib_1_1_image.html#a2b0aa1a0c8906def18d36dc2d635f4bf',1,'raylib::Image']]], - ['clearbackground_498',['ClearBackground',['../classraylib_1_1_color.html#ace467f20d71ff4af44e0211d6aeea9b5',1,'raylib::Color::ClearBackground()'],['../classraylib_1_1_image.html#aed48d37124df81191a9c10a417508703',1,'raylib::Image::ClearBackground()']]], + ['clearbackground_498',['ClearBackground',['../classraylib_1_1_color.html#ace467f20d71ff4af44e0211d6aeea9b5',1,'raylib::Color::ClearBackground()'],['../classraylib_1_1_image.html#aed48d37124df81191a9c10a417508703',1,'raylib::Image::ClearBackground()'],['../classraylib_1_1_window.html#a01f751e6074244f094eb669c3c716555',1,'raylib::Window::ClearBackground()']]], ['clearstate_499',['ClearState',['../classraylib_1_1_window.html#a359e2101ac13e8ee8423b3ffb27c8a42',1,'raylib::Window']]], ['close_500',['Close',['../classraylib_1_1_audio_device.html#a04b39055a7d4dc12801f39f3429af9a0',1,'raylib::AudioDevice::Close()'],['../classraylib_1_1_audio_stream.html#a325438e3339a84ba7ac8927bbf78baa5',1,'raylib::AudioStream::Close()'],['../classraylib_1_1_vr_simulator.html#a6c5348f2b4269e2a8741e8076cc8cbd9',1,'raylib::VrSimulator::Close()'],['../classraylib_1_1_window.html#a59cf11e97d3e33d914bc7b1711c2ccaf',1,'raylib::Window::Close()']]], ['color_501',['Color',['../classraylib_1_1_color.html#ac0af7e53c6e05e6ec4de88169bae3952',1,'raylib::Color::Color()'],['../classraylib_1_1_color.html#a3c177f10d10851fdf20d09fae83c8e19',1,'raylib::Color::Color(::Vector3 hsv)'],['../classraylib_1_1_color.html#ad922c14839a64fc49597059855edb76b',1,'raylib::Color::Color(int hexValue)'],['../classraylib_1_1_color.html#aa5b23dd8167f9babe41abd378339d3a4',1,'raylib::Color::Color(::Vector4 normalized)'],['../classraylib_1_1_image.html#a8cf520f677b90541789a53b6bed96e6e',1,'raylib::Image::Color()']]], diff --git a/examples/audio/audio_music_stream.cpp b/examples/audio/audio_music_stream.cpp index 03565346..c23407ee 100644 --- a/examples/audio/audio_music_stream.cpp +++ b/examples/audio/audio_music_stream.cpp @@ -64,7 +64,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); DrawText("MUSIC SHOULD BE PLAYING!", 255, 150, 20, LIGHTGRAY); diff --git a/examples/audio/audio_sound_loading.cpp b/examples/audio/audio_sound_loading.cpp index 5d9dd527..fbc97034 100644 --- a/examples/audio/audio_sound_loading.cpp +++ b/examples/audio/audio_sound_loading.cpp @@ -39,7 +39,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); DrawText("Press SPACE to PLAY the WAV sound!", 200, 180, 20, LIGHTGRAY); DrawText("Press ENTER to PLAY the OGG sound!", 200, 220, 20, LIGHTGRAY); diff --git a/examples/core/core_3d_camera_first_person.cpp b/examples/core/core_3d_camera_first_person.cpp index e7c42b97..5696e92c 100644 --- a/examples/core/core_3d_camera_first_person.cpp +++ b/examples/core/core_3d_camera_first_person.cpp @@ -20,7 +20,6 @@ int main() { const int screenHeight = 450; raylib::Window window(screenWidth, screenHeight, "raylib [core] example - 3d camera first person"); - raylib::Color background(RAYWHITE); // Define the camera to look into our 3d world (position, target, up vector) raylib::Camera camera( @@ -58,7 +57,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - background.ClearBackground(); + window.ClearBackground(RAYWHITE); camera.BeginMode(); { diff --git a/examples/core/core_basic_window.cpp b/examples/core/core_basic_window.cpp index 768075c7..d95affc8 100644 --- a/examples/core/core_basic_window.cpp +++ b/examples/core/core_basic_window.cpp @@ -43,7 +43,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); textColor.DrawText("Congrats! You created your first window!", 190, 200, 20); } EndDrawing(); diff --git a/examples/core/core_drop_files.cpp b/examples/core/core_drop_files.cpp index 1ec6ad1b..63dc257e 100644 --- a/examples/core/core_drop_files.cpp +++ b/examples/core/core_drop_files.cpp @@ -39,7 +39,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); // Check if there are files to process. if (droppedFiles.empty()) { diff --git a/examples/core/core_input_mouse.cpp b/examples/core/core_input_mouse.cpp index f928e554..96a78cee 100644 --- a/examples/core/core_input_mouse.cpp +++ b/examples/core/core_input_mouse.cpp @@ -20,7 +20,6 @@ int main() { raylib::Window window(screenWidth, screenHeight, "raylib [core] example - mouse input"); raylib::Vector2 ballPosition(-100.0f, -100.0f); - raylib::Color background(RAYWHITE); raylib::Color ballColor(DARKBLUE); raylib::Color textColor(DARKGRAY); @@ -42,7 +41,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - background.ClearBackground(); + window.ClearBackground(RAYWHITE); ballPosition.DrawCircle(40, ballColor); diff --git a/examples/core/core_loading_thread.cpp b/examples/core/core_loading_thread.cpp index 1a1e37d1..eecacb85 100644 --- a/examples/core/core_loading_thread.cpp +++ b/examples/core/core_loading_thread.cpp @@ -91,7 +91,7 @@ int main(void) BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); switch (state) { diff --git a/examples/core/core_random_values.cpp b/examples/core/core_random_values.cpp index 8bf4740d..1b7a144e 100644 --- a/examples/core/core_random_values.cpp +++ b/examples/core/core_random_values.cpp @@ -44,7 +44,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); DrawText("Every 2 seconds a new random value is generated:", 130, 100, 20, MAROON); diff --git a/examples/core/core_world_screen.cpp b/examples/core/core_world_screen.cpp index 0c0af582..83ac092d 100644 --- a/examples/core/core_world_screen.cpp +++ b/examples/core/core_world_screen.cpp @@ -49,7 +49,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); camera.BeginMode(); { diff --git a/examples/models/models_billboard.cpp b/examples/models/models_billboard.cpp index 75a74c5c..bebd21b1 100644 --- a/examples/models/models_billboard.cpp +++ b/examples/models/models_billboard.cpp @@ -48,7 +48,7 @@ int main() { BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); camera.BeginMode(); { diff --git a/examples/models/models_first_person_maze.cpp b/examples/models/models_first_person_maze.cpp index 6593572f..dbac4bbb 100644 --- a/examples/models/models_first_person_maze.cpp +++ b/examples/models/models_first_person_maze.cpp @@ -88,7 +88,7 @@ int main(void) //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); camera.BeginMode(); { diff --git a/examples/multiple/main.cpp b/examples/multiple/main.cpp index 947e45a8..a1a06e06 100644 --- a/examples/multiple/main.cpp +++ b/examples/multiple/main.cpp @@ -10,7 +10,7 @@ int main() { while (!window.ShouldClose()) { window.BeginDrawing(); { - ClearBackground(SKYBLUE); + window.ClearBackground(SKYBLUE); player.Update(); player.Draw(); } diff --git a/examples/physics/physics_demo.cpp b/examples/physics/physics_demo.cpp index f98c2b1f..6209a7d6 100644 --- a/examples/physics/physics_demo.cpp +++ b/examples/physics/physics_demo.cpp @@ -92,7 +92,7 @@ int main(void) //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(BLACK); + window.ClearBackground(BLACK); DrawFPS(screenWidth - 90, screenHeight - 30); diff --git a/examples/shapes/shapes_collision_area.cpp b/examples/shapes/shapes_collision_area.cpp index 2eddaefc..bd06a7d8 100644 --- a/examples/shapes/shapes_collision_area.cpp +++ b/examples/shapes/shapes_collision_area.cpp @@ -74,7 +74,7 @@ int main(void) //----------------------------------------------------- BeginDrawing(); - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); DrawRectangle(0, 0, screenWidth, screenUpperLimit, collision? RED : BLACK); diff --git a/examples/shapes/shapes_logo_raylib.cpp b/examples/shapes/shapes_logo_raylib.cpp index 696c2473..3702a898 100644 --- a/examples/shapes/shapes_logo_raylib.cpp +++ b/examples/shapes/shapes_logo_raylib.cpp @@ -35,7 +35,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - background.ClearBackground(); + window.ClearBackground(background); foreground.DrawRectangle(screenWidth/2 - 128, screenHeight/2 - 128, 256, 256); background.DrawRectangle(screenWidth/2 - 112, screenHeight/2 - 112, 224, 224); diff --git a/examples/text/text_font_loading.cpp b/examples/text/text_font_loading.cpp index cd46cb09..10d08780 100644 --- a/examples/text/text_font_loading.cpp +++ b/examples/text/text_font_loading.cpp @@ -60,7 +60,7 @@ int main() { window.BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); DrawText("Hold SPACE to use TTF generated font", 20, 20, 20, LIGHTGRAY); diff --git a/examples/text/text_font_spritefont.cpp b/examples/text/text_font_spritefont.cpp index 7225ff8e..f7e2c33d 100644 --- a/examples/text/text_font_spritefont.cpp +++ b/examples/text/text_font_spritefont.cpp @@ -54,7 +54,7 @@ int main(void) //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); font1.DrawText(msg1, fontPosition1, font1.baseSize, -3); font2.DrawText(msg2, fontPosition2, font2.baseSize, -2); diff --git a/examples/text/text_raylib_fonts.cpp b/examples/text/text_raylib_fonts.cpp index f768518d..b8decef5 100644 --- a/examples/text/text_raylib_fonts.cpp +++ b/examples/text/text_raylib_fonts.cpp @@ -26,7 +26,6 @@ int main() { int screenHeight = 450; raylib::Window window(screenWidth, screenHeight, "raylib [text] example - raylib fonts"); - raylib::Color background(RAYWHITE); raylib::Color textColor(DARKGRAY); // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) @@ -82,7 +81,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - background.ClearBackground(); + window.ClearBackground(RAYWHITE); textColor.DrawText("free fonts included with raylib", 250, 20, 20); textColor.DrawLine(220, 50, 590, 50); diff --git a/examples/textures/textures_bunnymark.cpp b/examples/textures/textures_bunnymark.cpp index 85e61855..05fbf258 100644 --- a/examples/textures/textures_bunnymark.cpp +++ b/examples/textures/textures_bunnymark.cpp @@ -90,7 +90,7 @@ int main(void) //---------------------------------------------------------------------------------- BeginDrawing(); { - ClearBackground(RAYWHITE); + window.ClearBackground(RAYWHITE); for (Bunny& bunny: bunnies) { // NOTE: When internal batch buffer limit is reached (MAX_BATCH_ELEMENTS), diff --git a/examples/textures/textures_image_drawing.cpp b/examples/textures/textures_image_drawing.cpp index edfa19fa..4bc761a9 100644 --- a/examples/textures/textures_image_drawing.cpp +++ b/examples/textures/textures_image_drawing.cpp @@ -21,7 +21,6 @@ int main(void) const int screenHeight = 450; raylib::Window window(screenWidth, screenHeight, "raylib [textures] example - image drawing"); - raylib::Color background(RAYWHITE); raylib::Color darkGray(DARKGRAY); // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) @@ -61,7 +60,7 @@ int main(void) //---------------------------------------------------------------------------------- BeginDrawing(); { - background.ClearBackground(); + window.ClearBackground(RAYWHITE); texture.Draw(screenWidth/2 - texture.width/2, screenHeight/2 - texture.height/2 - 40); darkGray.DrawRectangleLines(screenWidth/2 - texture.width/2, screenHeight/2 - texture.height/2 - 40, texture.width, texture.height); diff --git a/examples/textures/textures_image_loading.cpp b/examples/textures/textures_image_loading.cpp index eaa0bc03..5ab7e21f 100644 --- a/examples/textures/textures_image_loading.cpp +++ b/examples/textures/textures_image_loading.cpp @@ -21,7 +21,6 @@ int main() { raylib::Window window(screenWidth, screenHeight, "raylib [textures] example - image loading"); raylib::Texture texture("resources/raylib_logo.png"); - raylib::Color background = raylib::Color::RayWhite(); raylib::Color textColor = raylib::Color::LightGray(); // Main game loop @@ -35,7 +34,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); { - background.ClearBackground(); + window.ClearBackground(raylib::Color::RayWhite()); texture.Draw(screenWidth / 2 - texture.GetWidth() / 2, screenHeight / 2 - texture.GetHeight() / 2); diff --git a/include/Window.hpp b/include/Window.hpp index 365cfccd..d35a2789 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -125,6 +125,14 @@ class Window { return *this; } + /** + * Clear window with given color. + */ + inline Window& ClearBackground(const raylib::Color& color = raylib::Color::Black()) { + ::ClearBackground(color); + return *this; + } + /** * Toggle window state: fullscreen/windowed */ diff --git a/projects/CMake/main.cpp b/projects/CMake/main.cpp index 62931df5..8c68946f 100644 --- a/projects/CMake/main.cpp +++ b/projects/CMake/main.cpp @@ -26,7 +26,6 @@ int main() { //-------------------------------------------------------------------------------------- int screenWidth = 800; int screenHeight = 450; - raylib::Color background(RAYWHITE); raylib::Color textColor(LIGHTGRAY); raylib::Window window(screenWidth, screenHeight, "raylib [core] example - basic window"); @@ -45,7 +44,7 @@ int main() { //---------------------------------------------------------------------------------- BeginDrawing(); - background.ClearBackground(); + window.ClearBackground(RAYWHITE); textColor.DrawText("Congrats! You created your first window!", 190, 200, 20);